Arguments required by the tool, with descriptions for each argument.
OptionalcanOptional function to determine if the tool can run based on the tool call spec.
A description of what the tool does.
The function to execute the tool with the provided arguments.
The name of the tool.
Represents a tool specification with an execute function.
ToolSpec
Example