Tool Class
An abstract class representing a tool that can be used by an agent.
Constructor
Tool()
Methods
| execute |
Execute the tool with the provided tool call. |
execute
Execute the tool with the provided tool call.
abstract execute(tool_call: Any) -> Any
Parameters
| Name | Description |
|---|---|
|
tool_call
Required
|
The tool call to execute. |
Returns
| Type | Description |
|---|---|
|
The output of the tool operations. |
Attributes
definitions
Get the tool definitions.
abstract property definitions: List[ToolDefinitionT]
resources
Get the tool resources.
abstract property resources: ToolResources