Problem or Use Case
Expose base_url, provider, and api_key as optional per-task fields in
delegate_task, allowing each sub-agent to target a different model
endpoint.
This enables true parallel execution across multiple inference servers
(e.g. multiple Ollama instances) instead of routing all children to a
single backend.
Implementation:
- Extend delegate_task schema with base_url, provider, api_key
- Wire task-level overrides into _build_child_agent()
- Apply precedence: task override → delegation config → parent fallback
This change is fully backward compatible and leverages existing internal
override support already present in _build_child_agent().
Proposed Solution
Expose per-task model routing overrides in the delegate_task tool schema, allowing each sub-agent to target a different backend.
1. Extend Task Schema
Add optional fields to each task:
{
"base_url": "http://host:11434/v1",
"provider": "custom",
"api_key": "ollama"
}
### Alternatives Considered
_No response_
### Feature Type
Other
### Scope
None
### Contribution
- [ ] I'd like to implement this myself and submit a PR
### Debug Report (optional)
```shell
Problem or Use Case
Expose base_url, provider, and api_key as optional per-task fields in
delegate_task, allowing each sub-agent to target a different model
endpoint.
This enables true parallel execution across multiple inference servers
(e.g. multiple Ollama instances) instead of routing all children to a
single backend.
Implementation:
This change is fully backward compatible and leverages existing internal
override support already present in _build_child_agent().
Proposed Solution
Expose per-task model routing overrides in the
delegate_tasktool schema, allowing each sub-agent to target a different backend.1. Extend Task Schema
Add optional fields to each task:
{ "base_url": "http://host:11434/v1", "provider": "custom", "api_key": "ollama" } ### Alternatives Considered _No response_ ### Feature Type Other ### Scope None ### Contribution - [ ] I'd like to implement this myself and submit a PR ### Debug Report (optional) ```shell