tinker_cookbook.tool_use.types.Tool
Generated from tinker-cookbook at commit 8486b8d. Source links point at that snapshot.
class tinker_cookbook.tool_use.types.Tool(Protocol)
Protocol for tools that can be used by LLM agents.
property name
Tool name shown to the model.
Returns: str
property description
Tool description shown to the model.
Returns: str
property parameters_schema
JSON Schema for tool parameters shown to the model.
Returns: dict[str, Any]
run(input)
to_spec()
Convert to ToolSpec for renderer integration.
Returns: ToolSpec