Foundry.LlmMessage

g Foundry.LlmMessage Foundry.LlmMessage GObject.Object GObject.Object GObject.Object->Foundry.LlmMessage

Subclasses:

Foundry.SimpleLlmMessage

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_content ()

dup_role ()

has_tool_call ()

list_tool_calls ()

Virtual Methods

Inherited:

GObject.Object (7)

do_dup_content ()

do_dup_role ()

do_has_tool_call ()

do_list_tool_calls ()

Properties

Name

Type

Flags

Short Description

content

str

r

role

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.LlmMessage(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.LlmMessageClass

dup_content()
Return type:

str

The content of the message.

dup_role()
Returns:

the role as a string

Return type:

str

The role of the message such as “system”, “user”, “assistant”, or “tool”.

has_tool_call()
Return type:

bool

list_tool_calls()
Returns:

a [iface`Gio`.ListModel] of [class`Foundry`.LlmToolCall] or None

Return type:

Gio.ListModel or None

do_dup_content() virtual
Return type:

str

The content of the message.

do_dup_role() virtual
Returns:

the role as a string

Return type:

str

The role of the message such as “system”, “user”, “assistant”, or “tool”.

do_has_tool_call() virtual
Return type:

bool

do_list_tool_calls() virtual
Returns:

a [iface`Gio`.ListModel] of [class`Foundry`.LlmToolCall] or None

Return type:

Gio.ListModel or None

Property Details

Foundry.LlmMessage.props.content
Name:

content

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.LlmMessage.props.role
Name:

role

Type:

str

Default Value:

None

Flags:

READABLE