Files
docker-agent/examples/sub-agents-from-registry.yaml
Arnaud Héritier d11fbf1a91 chore(examples): bump stale model references to current-generation values
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.
2026-09-03 08:38:54 +00:00

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.