Foundry.LlmProvider

g Foundry.Contextual Foundry.Contextual Foundry.LlmProvider Foundry.LlmProvider Foundry.Contextual->Foundry.LlmProvider GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)

Structs:

GObject.ObjectClass (5)

dup_name ()

dup_plugin_info ()

list_models ()

list_resources ()

list_tools ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

do_dup_name ()

do_list_models ()

do_list_resources ()

do_list_tools ()

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

plugin-info

Peas.PluginInfo

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.LlmProvider(**kwargs)
Bases:

Foundry.Contextual

Abstract:

Yes

Structure:

Foundry.LlmProviderClass

dup_name()
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Ollama”.

dup_plugin_info()
Return type:

Peas.PluginInfo or None

list_models()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmModel].

Return type:

Dex.Future

List the models available from the provider.

list_resources()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmResource].

Return type:

Dex.Future

List resources that may be made available to the model.

New in version 1.1.

list_tools()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmTool].

Return type:

Dex.Future

List the tools available from the provider.

do_dup_name() virtual
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Ollama”.

do_list_models() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmModel].

Return type:

Dex.Future

List the models available from the provider.

do_list_resources() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmResource].

Return type:

Dex.Future

List resources that may be made available to the model.

New in version 1.1.

do_list_tools() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmTool].

Return type:

Dex.Future

List the tools available from the provider.

Property Details

Foundry.LlmProvider.props.plugin_info
Name:

plugin-info

Type:

Peas.PluginInfo

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY