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.
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
# This example demonstrates using agents from OCI registries as sub-agents.
|
|
# Sub-agents can be defined locally in the same config, or referenced from
|
|
# external sources such as any OCI-compatible registry.
|
|
#
|
|
# External sub-agents are automatically named after their last path segment
|
|
# without the tag (e.g., "myorg/agent:tag" becomes "agent"). You can also give
|
|
# them an explicit name using the "name:reference" syntax:
|
|
# - reviewer:myorg/review-pr
|
|
#
|
|
# Tag references (like "myorg/agent:tag" below) are re-resolved against the
|
|
# registry on every run, even when the sub-agent is never used. Pin to a digest
|
|
# to serve from cache and skip that lookup:
|
|
# - myorg/agent@sha256:<digest>
|
|
|
|
models:
|
|
model:
|
|
provider: openai
|
|
model: gpt-5.6-sol
|
|
|
|
agents:
|
|
root:
|
|
model: model
|
|
description: Coordinator that delegates to local and external sub-agents
|
|
instruction: |
|
|
You are a coordinator agent. You have access to both local and external sub-agents.
|
|
|
|
- Use the "local_helper" agent for simple tasks.
|
|
- Use the "agent" sub-agent (pulled from the registry) for everything else.
|
|
|
|
Delegate tasks to the most appropriate sub-agent based on the user's request.
|
|
sub_agents:
|
|
- local_helper
|
|
- myorg/agent:tag
|
|
|
|
local_helper:
|
|
model: model
|
|
description: A local helper agent for simple tasks
|
|
instruction: |
|
|
You are a helpful assistant that answers questions concisely.
|