Foundry.LlmManager¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.LlmManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- find_model(name)¶
- Parameters:
name (
str) – the name of the model- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmModel] or rejects with error.
- Return type:
Finds the first model which matches name.
- find_resource(uri)¶
- Parameters:
uri (
str) – the URI of the resource- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmResource] or rejects with error.
- Return type:
Finds the first resource which matches uri.
New in version 1.1.
- list_models()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmModel].
- Return type:
List models from all providers.
The resulting [iface`Gio`.ListModel] is asynchronously populated. If you want to be sure that all providers have completed populating, you may await completion by calling [func`Foundry`.list_model_await].
- list_resources()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.LlmResource].
- Return type:
List resources from all providers.
The resulting [iface`Gio`.ListModel] is asynchronously populated. If you want to be sure that all providers have completed populating, you may await completion by calling [func`Foundry`.list_model_await].
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:
The resulting [iface`Gio`.ListModel] is asynchronously populated. If you want to be sure that all providers have completed populating, you may await completion by calling [func`Foundry`.list_model_await].