Tool¶
Data Structures for Tools.
ToolCall
¶
Bases: BaseModel
Tool call.
Attributes:
| Name | Type | Description |
|---|---|---|
id_ |
str
|
String identifier for tool call. |
tool_name |
str
|
Name of tool to call. |
arguments |
dict[str, Any]
|
The arguments to pass to the tool execution. |
Source code in src/llm_agents_from_scratch/data_structures/tool.py
ToolCallResult
¶
Bases: BaseModel
Result of a tool call execution.
Attributes:
| Name | Type | Description |
|---|---|---|
tool_call_id |
str
|
The id of the associated tool call. |
content |
Any | None
|
The content of tool call. |
error |
bool
|
Whether or not the tool call yielded an error. |