refactor(subagent): shorten model-selection tool descriptions

This commit is contained in:
Dudu-0223 committed 2026-10-12 17:20:06 +08:00
1 parent 155ab69fae
commit 56affefb19
80 files changed
+594 -602

No files matched your search

+4 -4
View File
@@ -225,11 +225,11 @@
en: 841abe0dd5913ea7
zh: 841abe0dd5913ea7
/tool-schema-catalog/deepseek-ai-dsh-tool-subagent/list-subagent-models:
en: aba834ab4f70005a
zh: 142f819e8da5acc7
en: 6872bee11fccb6c8
zh: 230f2d443dc5d9a6
/tool-schema-catalog/deepseek-ai-dsh-tool-subagent/subagent:
en: 0de8d49aa443ec9c
zh: 7cb7c8a55a0469b1
en: aff4a6668b41b7d5
zh: 98d6ddf8aa28c7f9
/tool-schema-catalog/deepseek-ai-dsh-tool-subagent-control:
en: ab82e130c3413f04
zh: ab82e130c3413f04
+7 -7
View File
@@ -2017,7 +2017,7 @@ The five read-only tools hide provider cursors and authorize every result from t
### `list_subagent_models`
Discover LLM routes for subagents without changing the current Agent. Call with no arguments to list registered providers, with `provider` to list its allowed models, or with `provider` and `model` to inspect that exact model and its reasoning efforts. Catalog membership is advisory: an adapter may accept an unlisted model id. Use the returned ids with a delegation tool's `provider`, `model`, and `reasoning_effort` fields.
Inspect subagent models without changing the current Agent. No arguments: providers; `provider`: allowed models; `provider` + `model`: that model and its reasoning efforts. Use returned ids for delegation.
```json
{
@@ -2025,11 +2025,11 @@ Discover LLM routes for subagents without changing the current Agent. Call with
"properties": {
"provider": {
"type": "string",
"description": "Registered LLM provider id. Omit to list providers."
"description": "Registered LLM provider id."
},
"model": {
"type": "string",
"description": "Exact model id to inspect. Requires provider; omit to list that provider's allowed models."
"description": "Exact model id; requires provider."
}
}
}
@@ -2039,7 +2039,7 @@ Source: [`packages/subagent/tool-subagent/src/list-models.ts`](../packages/subag
### `subagent`
Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps. This tool starts an independently managed subagent and immediately returns its id. The runtime notifies you when it finishes. The child reports results with `send_message`; use `send_message` to steer it while running or continue its conversation after it finishes. Child LLM selection is optional. Omit `provider`, `model`, and `reasoning_effort` to use configured child defaults and inherit compatible missing values from the parent Agent. Supply `provider` and `model` together after using `list_subagent_models` to inspect advertised routes and efforts. Changing the effective route without naming an effort uses the selected model's default effort.
Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps. This tool starts an independently managed subagent and immediately returns its id. The runtime notifies you when it finishes. The child reports results with `send_message`; use `send_message` to steer it while running or continue its conversation after it finishes. Inspect options with `list_subagent_models` before setting `provider` and `model` together. Omitted values use child defaults, falling back to compatible parent values. When the effective route changes, an omitted `reasoning_effort` uses the model's default.
```json
{
@@ -2059,15 +2059,15 @@ Delegate a self-contained task to a subagent (a separate agent that works in its
},
"provider": {
"type": "string",
"description": "LLM provider route for the child. Supply together with model; omit both to use configured child defaults or inherit the parent route."
"description": "Child LLM provider id."
},
"model": {
"type": "string",
"description": "Model id interpreted by provider. Supply together with provider; omit both to use configured child defaults or inherit the parent route."
"description": "Model id within that provider."
},
"reasoning_effort": {
"type": "string",
"description": "Adapter-owned reasoning effort for the effective child route. Omit to inherit a compatible configured/parent effort or use a newly selected model's default."
"description": "Model-specific reasoning effort id."
}
},
"required": [
+7 -7
View File
@@ -2023,7 +2023,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
### `list_subagent_models`
发现 subagent 可用的 LLM 路由,不更改当前 Agent。无参数调用会列出已注册提供方;提供 `provider` 时会列出其允许的模型;同时提供 `provider` 和 `model` 时会检查该精确模型及其推理强度。目录条目只提供建议:adapter 可能接受未列出的模型 id。把返回的 id 用于委派工具的 `provider`、`model` 与 `reasoning_effort` 字段。
查询 subagent 可用的模型,不更改当前 Agent。无参数:提供方;`provider`:允许的模型;`provider` + `model`:该模型及其推理强度。将返回的 id 用于委派。
```json
{
@@ -2031,11 +2031,11 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
"properties": {
"provider": {
"type": "string",
"description": "Registered LLM provider id. Omit to list providers."
"description": "Registered LLM provider id."
},
"model": {
"type": "string",
"description": "Exact model id to inspect. Requires provider; omit to list that provider's allowed models."
"description": "Exact model id; requires provider."
}
}
}
@@ -2045,7 +2045,7 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
### `subagent`
将一项自包含任务委派给 subagent(在自身上下文中工作的独立 agent),用它卸载聚焦且独立的工作,例如研究、限定范围的实现或分析,以免消耗当前对话的上下文。subagent 会返回结果,但不会返回中间步骤。此工具启动独立管理的 subagent 并立即返回其 id。运行时会在任务结束时通知你。子代理通过 `send_message` 汇报结果;你可以使用 `send_message` 在运行时引导它,或在结束后继续对话。子级 LLM 选择是可选的。省略 `provider`、`model` 和 `reasoning_effort` 会使用配置的子级默认值,并从父 Agent 继承缺失且兼容的值。先通过 `list_subagent_models` 查询路由和强度,再同时提供 `provider` 与 `model`。更改生效路由却不指定强度时,使用所选模型的默认强度。
将一项自包含任务委派给 subagent(在自身上下文中工作的独立 agent),用它卸载聚焦且独立的工作,例如研究、限定范围的实现或分析,以免消耗当前对话的上下文。subagent 会返回结果,但不会返回中间步骤。此工具启动独立管理的 subagent 并立即返回其 id。运行时会在任务结束时通知你。子代理通过 `send_message` 汇报结果;你可以使用 `send_message` 在运行时引导它,或在结束后继续对话。先通过 `list_subagent_models` 查询选项,再同时设置 `provider` 与 `model`。省略的值使用子级默认值,缺失时使用兼容的父级值。生效路由改变时,省略 `reasoning_effort` 会使用模型的默认强度。
```json
{
@@ -2065,15 +2065,15 @@ lsp 工具将提供方选择和语言服务器子进程置于 ctx.lsp 之后,
},
"provider": {
"type": "string",
"description": "LLM provider route for the child. Supply together with model; omit both to use configured child defaults or inherit the parent route."
"description": "Child LLM provider id."
},
"model": {
"type": "string",
"description": "Model id interpreted by provider. Supply together with provider; omit both to use configured child defaults or inherit the parent route."
"description": "Model id within that provider."
},
"reasoning_effort": {
"type": "string",
"description": "Adapter-owned reasoning effort for the effective child route. Omit to inherit a compatible configured/parent effort or use a newly selected model's default."
"description": "Model-specific reasoning effort id."
}
},
"required": [