Foundry.LlmToolCall

g Foundry.LlmToolCall Foundry.LlmToolCall GObject.Object GObject.Object GObject.Object->Foundry.LlmToolCall

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

confirm ()

deny ()

dup_subtitle ()

dup_title ()

is_callable ()

Virtual Methods

Inherited:

GObject.Object (7)

do_confirm ()

do_deny ()

do_dup_subtitle ()

do_dup_title ()

do_is_callable ()

Properties

Name

Type

Flags

Short Description

is-callable

bool

r

subtitle

str

r

title

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.LlmToolCall(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.LlmToolCallClass

confirm()
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.

Return type:

Dex.Future

Confirms that the tool call is authorized and performs it.

The result should be a [class`Foundry`.LlmMessage] that may be sent back to the model to continue the conversation.

deny()
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.

Return type:

Dex.Future

Denies that the tool call is authorized and returns a message of failure to be sent back to the model.

dup_subtitle()
Return type:

str

dup_title()
Return type:

str

is_callable()
Return type:

bool

do_confirm() virtual
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.

Return type:

Dex.Future

Confirms that the tool call is authorized and performs it.

The result should be a [class`Foundry`.LlmMessage] that may be sent back to the model to continue the conversation.

do_deny() virtual
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.

Return type:

Dex.Future

Denies that the tool call is authorized and returns a message of failure to be sent back to the model.

do_dup_subtitle() virtual
Return type:

str

do_dup_title() virtual
Return type:

str

do_is_callable() virtual
Return type:

bool

Property Details

Foundry.LlmToolCall.props.is_callable
Name:

is-callable

Type:

bool

Default Value:

False

Flags:

READABLE

Foundry.LlmToolCall.props.subtitle
Name:

subtitle

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.LlmToolCall.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE