feat(todo): add model and provider fields for per-task model override#18865
Closed
zhuzeyu22 wants to merge 1 commit into
Closed
feat(todo): add model and provider fields for per-task model override#18865zhuzeyu22 wants to merge 1 commit into
zhuzeyu22 wants to merge 1 commit into
Conversation
- Add optional model and provider fields to todo task schema - Add per-task model/provider override support in delegate_task - Implement _resolve_task_model() for format parsing - Update schema descriptions for clarity - Add unit tests for model/provider field handling This enables multi-model cross-validation by allowing different subagents to use different models.
Collaborator
|
Likely duplicate of #17756 — same per-task model/provider override feature for delegate_tool, more comprehensive implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the ability to specify different models and providers when creating subtasks in the todo system, enabling multi-model cross-validation scenarios.
Changes
tools/todo_tool.py
modelandproviderfields toTODO_SCHEMAfor per-task overrideTodoStore._validate()to handle model/provider validationTodoStore.write()to support merge mode with model/provider fieldstools/delegate_tool.py
modelandproviderfields toDELEGATE_TASK_SCHEMAtasks items_resolve_task_model()function to parse model/provider format_resolve_delegation_credentials()to accept per-task overridesdelegate_task()tests/tools/test_todo_tool.py
TestModelProviderFieldsclass with 5 test methodsUsage
Two formats are supported:
Priority chain: task-level override → delegation config → parent agent inheritance
Testing
All 17 tests in test_todo_tool.py pass.
Closes #[issue-number]