Foundry.LlmTool¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
class |
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.LlmTool(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod add_parameter(pspec)¶
- Parameters:
pspec (
GObject.ParamSpec) – the parameter to add
- call(arguments)¶
- Parameters:
arguments ([
GObject.Value]) –- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.
- Return type:
Calls the tool.
arguments should be an array of initialized
GValuewhich contain values set matching each of the parameters specified by [method`Foundry`.LlmTool.list_parameters] in the same order.
- dup_description()¶
-
Gets the “description” of a tool which may be provided to the model.
This should describe what the function does.
- dup_name()¶
-
Gets the “name” of tool which may be provided to the model.
This is often a descriptive function name like “getWeather”.
- list_parameters()¶
- Return type:
[
GObject.ParamSpec] orNone
Gets a list of parmaeters for the tool which must be supplied when calling [method`Foundry`.LlmTool.call].
- do_call(arguments) virtual¶
- Parameters:
arguments ([
GObject.Value]) –- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmMessage] or rejects with error.
- Return type:
Calls the tool.
arguments should be an array of initialized
GValuewhich contain values set matching each of the parameters specified by [method`Foundry`.LlmTool.list_parameters] in the same order.
- do_dup_description() virtual¶
-
Gets the “description” of a tool which may be provided to the model.
This should describe what the function does.