Foundry.LlmProvider¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.LlmProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- dup_name()¶
- Returns:
the name of the provider
- Return type:
Gets a name for the provider that is expected to be displayed to users such as “Ollama”.
- dup_plugin_info()¶
- Return type:
- list_models()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmModel].
- Return type:
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:
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:
List the tools available from the provider.
- do_dup_name() virtual¶
- Returns:
the name of the provider
- Return type:
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:
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:
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:
List the tools available from the provider.
Property Details¶
- Foundry.LlmProvider.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: