Skip to content

Feature/model override flag#437

Merged
dgageot merged 1 commit intodocker:mainfrom
Deepam02:feature/model-override-flag
Oct 9, 2025
Merged

Feature/model override flag#437
dgageot merged 1 commit intodocker:mainfrom
Deepam02:feature/model-override-flag

Conversation

@Deepam02
Copy link
Copy Markdown
Contributor

@Deepam02 Deepam02 commented Oct 7, 2025

closes #325
This PR implements the --model flag for cagent run and cagent exec commands, allowing users to override agent models at runtime without modifying configuration files.

Model Override Flag

The --model flag allows you to override agent models at runtime, providing flexibility without modifying configuration files.

Syntax Options

Global Override (all agents use the same model):

cagent run config.yaml --model "provider/model"

Per-Agent Override (specific agents use specific models):

cagent run config.yaml --model "agent_name=provider/model"

Multiple Overrides (comma-separated):

cagent run config.yaml --model "agent1=provider1/model1,agent2=provider2/model2"

Repeatable Flag (multiple --model flags):

cagent run config.yaml --model "agent1=provider1/model1" --model "agent2=provider2/model2"

@Deepam02 Deepam02 requested a review from a team as a code owner October 7, 2025 11:20
Comment thread pkg/config/runtime.go Outdated
@Deepam02 Deepam02 requested a review from rumpl October 7, 2025 16:41
@Deepam02
Copy link
Copy Markdown
Contributor Author

Deepam02 commented Oct 8, 2025

hi @rumpl
just checking if you’ve had a chance to review this PR. Thanks!

@rumpl
Copy link
Copy Markdown
Member

rumpl commented Oct 8, 2025

Not yet sorry, am working on some hairy parts, will look tomorrow, some things git merged and there are conflicts now, sorry about that, could you rebase?

Closes docker#325

Signed-off-by: Deepam02 <116721751+Deepam02@users.noreply.github.com>
@dgageot dgageot force-pushed the feature/model-override-flag branch from c18e5e2 to 955fd19 Compare October 9, 2025 09:42
@dgageot dgageot merged commit 72a6047 into docker:main Oct 9, 2025
5 checks passed
@Deepam02 Deepam02 deleted the feature/model-override-flag branch November 29, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --model to cagent run

3 participants