mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 12:49:34 +08:00
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.
5 lines
287 B
YAML
5 lines
287 B
YAML
short_description: "调用 `load_tools` 返回了定义的扩展工具。"
|
|
when_to_use: "`load_tools` 说明某工具要通过 `call_tool` 调用之后使用。"
|
|
input_format: "`name` — 工具的准确名称;`arguments` — 按该工具参数填写的对象。"
|
|
phase: "exploration"
|