项目文件夹

文件
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
..
2026-05-12 10:43:00 -07:00
2026-05-16 18:38:18 -07:00
2025-05-27 19:46:40 -07:00
2026-05-12 10:43:00 -07:00
2026-05-12 05:34:11 +00:00
2023-09-05 14:22:33 -07:00
2025-05-30 17:44:52 -07:00