Skip to content

Add spawn_agent model overrides#14160

Merged
aibrahim-oai merged 15 commits intomainfrom
dev/spawn-agent-model-overrides
Mar 10, 2026
Merged

Add spawn_agent model overrides#14160
aibrahim-oai merged 15 commits intomainfrom
dev/spawn-agent-model-overrides

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Mar 10, 2026

  • add model and reasoning_effort to the spawn_agent schema so the values pass through
  • validate requested models against model.model and only check that the selected model supports the requested reasoning effort

@aibrahim-oai aibrahim-oai force-pushed the dev/spawn-agent-model-overrides branch from a50fd12 to 46a3a7c Compare March 10, 2026 06:38
Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The product change looks reasonable but the test change seems excessively custom. Can we reuse existing sub agent tests?

}
}

async fn apply_requested_spawn_agent_model_overrides(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that all this code needs to be written is a bit sad. our internal agent api is cumbersome

) -> Result<String, FunctionCallError> {
available_models
.iter()
.find(|model| model.model == requested_model || model.id == requested_model)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we checking id?

@aibrahim-oai aibrahim-oai force-pushed the dev/spawn-agent-model-overrides branch from eb18ad1 to e639866 Compare March 10, 2026 18:44
@aibrahim-oai aibrahim-oai enabled auto-merge (squash) March 10, 2026 20:25
@aibrahim-oai aibrahim-oai disabled auto-merge March 10, 2026 21:04
@aibrahim-oai aibrahim-oai merged commit 2895d35 into main Mar 10, 2026
29 of 31 checks passed
@aibrahim-oai aibrahim-oai deleted the dev/spawn-agent-model-overrides branch March 10, 2026 21:04
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants