Repository navigation
为subagent选择了模型为什么还是使用的主模型? #7421
|
我在subagent只选择某模型做子代理,主模型只管大方向方案和代码评审。但是我发现很多子代理启动后都是使用的主模型,这是为什么? |
Replies: 1 comment 1 reply
Short versionThat card authorizes which models the agent may choose — it is not a "default model for subagents". And a second delegation tool ( 1. The preference is an authorization list, not a child default
⇒ Enabling the card and picking a model is only half the path: the agent still has to name that route in each 2.
|
Short version
That card authorizes which models the agent may choose — it is not a "default model for subagents". And a second delegation tool (
subagent_fork) cannot take a model at all, by design. So "the child runs the parent's model" is the expected result in two of the three cases below, not a broken setting.1. The preference is an authorization list, not a child default
packages/subagent/tool-subagent/src/model-selection-settings.ts:24-25(docstring): "Exact child LLM routes offered to newly composed top-level Sessions" — a candidate list the agent picks from per delegation. The UI says the same ("Models agents may choose", "Applies only to new sessions"), but it reads like "the mo…