项目文件夹

文件
Simon Willison ee2ffbec23 Tool implementations can receive the ToolCall via llm_tool_call parameter
Tool functions (sync or async, including Toolbox methods) that declare
a parameter named llm_tool_call are now passed the llm.ToolCall object
for the current invocation. The parameter is reserved: it is excluded
from the input schema exposed to the model and is only injected when
declared explicitly - a **kwargs catch-all does not receive it.

This lets tool implementations key external state against the unique
tool_call_id, e.g. for human-in-the-loop approval flows that need to
resume a specific tool call after the answer arrives.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-09 13:01:39 -07:00
..
2023-04-01 15:00:19 -07:00
2026-04-28 14:42:39 -07:00
2026-04-28 14:42:39 -07:00
2025-01-31 13:18:41 -08:00
2025-04-10 17:19:36 -07:00
2025-05-27 10:16:27 -07:00
2026-03-17 11:25:12 -07:00