Files
DeepTutor/deeptutor/tools/prompting/hints/zh/call_tool.yaml
zszz3 12e9809a6e fix: reach loaded tools through call_tool instead of growing tools[] mid-turn
load_tools appended the loaded schema to the end of tools[]. tools[] is the
first thing in the provider's prompt-cache key, so the next request of the
same turn re-processed the system prompt and the whole history.

When the turn mounts the new call_tool builtin, load_tools now returns the
loaded tools' definitions in its result and leaves tools[] alone; the loop
forwards each call_tool call to the named tool before dispatch, so the tool
runs with its own argument checks, injected kwargs and trace, while the
history keeps the model's own call. Tools loaded this way stay proxied for
the session (loaded_tools.json gains proxied_tools). Runtime loads that must
land in tools[] pass native=True; the TypeScript engine keeps the old
behaviour.
2026-11-30 23:35:59 +08:00

5 lines
287 B
YAML

short_description: "调用 `load_tools` 返回了定义的扩展工具。"
when_to_use: "`load_tools` 说明某工具要通过 `call_tool` 调用之后使用。"
input_format: "`name` — 工具的准确名称;`arguments` — 按该工具参数填写的对象。"
phase: "exploration"