Skip to content

tinker_cookbook.tool_use.handle_tool_call

tinker_cookbook.tool_use.handle_tool_call(tools, tool_call)

Handle a single tool call, returning a ToolResult.

Parameters:

  • tools (dict[str, Tool])
  • tool_call (ToolCall)