mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Bumps model IDs across examples/*.yaml (and the gopher.hcl sibling) to the current-generation anchors: Claude Sonnet 5 / Opus 5 (with Sonnet 4.6 / Opus 4.8 kept where a key signals a cheaper/fallback tier), GPT-5.6-sol/-terra, Gemini 3.8 Flash, Grok 4.5, Kimi K3, and Llama 4 Maverick on OpenRouter. Refs #4137.
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
# Per-Tool Model Routing Example
|
|
#
|
|
# This example demonstrates how to use the `model` field on toolsets
|
|
# to automatically route specific tool results through a cheaper/faster
|
|
# model, while keeping the agent's primary model for complex reasoning.
|
|
#
|
|
# When the LLM calls a tool from a toolset with a `model` field, the
|
|
# next LLM turn (processing the tool results) uses the specified model
|
|
# instead of the agent's primary model. This is a one-shot override:
|
|
# subsequent turns return to the primary model.
|
|
|
|
models:
|
|
primary:
|
|
provider: anthropic
|
|
model: claude-sonnet-5
|
|
fast:
|
|
provider: anthropic
|
|
model: claude-haiku-4-5
|
|
|
|
agents:
|
|
root:
|
|
model: primary
|
|
description: >
|
|
An assistant that uses a fast model for simple tool operations
|
|
and the primary model for complex reasoning.
|
|
instruction: >
|
|
You are a helpful assistant. Use the available tools to help the user.
|
|
toolsets:
|
|
# The filesystem toolset uses the fast model to process results.
|
|
# Reading files and listing directories are simple operations that
|
|
# don't need the most capable model to interpret.
|
|
- type: filesystem
|
|
model: fast
|
|
|
|
# The shell toolset also uses the fast model. Most shell command
|
|
# outputs (ls, cat, grep, etc.) are straightforward to interpret.
|
|
- type: shell
|
|
model: fast
|