Foundry.LlmModel¶
- 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 |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.LlmModel(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- chat(system)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmConversation] or rejects with error.
- Return type:
Start a new conversation with the model.
- complete(roles, messages)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmCompletion].
- Return type:
Requests completion using roles and messages.
Each element of roles corresponds to the element at the same index of messages.
The length of messages and roles must be the same.
- is_metered()¶
-
Gets the “metered” property.
- do_chat(system) virtual¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmConversation] or rejects with error.
- Return type:
Start a new conversation with the model.
- do_complete(roles, messages) virtual¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmCompletion].
- Return type:
Requests completion using roles and messages.
Each element of roles corresponds to the element at the same index of messages.
The length of messages and roles must be the same.