class documentation
Represents a tool that can be executed by the agent.
| Method | __init__ |
Create a tool definition. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | description |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | parameters |
Undocumented |
| Property | json |
Schema for Anthropic's API. |
| Property | json |
Schema for OpenAI's API. |
Create a tool definition.
| Parameters | |
name:str | The tool name. |
description:str | The tool description. |
parameters:Parameters | The tool parameters schema. |