Specification for a tool that can be used within the conversation.
ToolDefSpec
const toolSpecExample: ToolDefSpec = { name: "WeatherFetcher", description: "Fetches weather information.", arguments: { location: { description: "The location for which to fetch the weather.", required: true } }}; Copy
const toolSpecExample: ToolDefSpec = { name: "WeatherFetcher", description: "Fetches weather information.", arguments: { location: { description: "The location for which to fetch the weather.", required: true } }};
Arguments required by the tool, with descriptions for each argument.
A description of what the tool does.
The name of the tool.
Specification for a tool that can be used within the conversation.
ToolDefSpec
Example