feat(task-tool): Add model parameter for subagent LLM routing#25881
feat(task-tool): Add model parameter for subagent LLM routing#25881ziuus wants to merge 1 commit intoanomalyco:devfrom
Conversation
- Add optional 'model' parameter to Task tool parameters - Support both 'modelID' and 'providerID/modelID' formats - Model parameter overrides agent default and parent message model - Update task.txt documentation with new parameter - Add tests for model parameter handling - Enables routing subagent tasks to specialized LLMs (vision, research, etc.) Closes feature request for subagent model selection
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs FoundBased on the search results, there are several related PRs that address similar functionality:
Recommendation: Check PR #18528 in particular, as it appears to be the most directly related existing implementation of model override for subagents. |
|
Closing in favor of #18528 which has a more complete implementation with permission gating (model_override). Will contribute to that PR instead. |
Summary
modelparameter to Task tool for specifying which LLM subagents should usemodelIDandproviderID/modelIDformatsChanges
modelto Parameters schema, implemented model selection logic (params.model > agent.default > parent message)Use Cases
Testing
Breaking Changes
None -
modelparameter is optional and backward compatible.Closes #ZZZ (feature request for subagent model routing)