Skip to content

docs: document the handoffs routing mechanism#2187

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:fix-docker-agent-issue-2184
Mar 20, 2026
Merged

docs: document the handoffs routing mechanism#2187
dgageot merged 1 commit intodocker:mainfrom
dgageot:fix-docker-agent-issue-2184

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Mar 19, 2026

Summary

Add comprehensive documentation for the handoffs peer-to-peer routing pattern, which was previously undocumented or mislabeled as "A2A".

Changes

  • docs/concepts/multi-agent/index.md — Add a comparison table (delegation vs handoffs), a new "Handoffs Routing" section with how-it-works steps, a 3-agent example, and a link to the full pipeline in examples/handoff.yaml
  • docs/configuration/agents/index.md — Fix the handoffs property description from incorrect "A2A agent configurations" to "agent names this agent can hand off to", with a link to the new section
  • docs/guides/tips/index.md — Fix the handoffs card from "A2A" to "peer-to-peer" with an accurate description and a link to the detailed docs

Fixes #2184

Add comprehensive documentation for the handoffs peer-to-peer routing
pattern, covering how it works, when to use it vs delegation, and a
practical example with a link to the full pipeline example.

- Add comparison table and handoffs routing section to multi-agent docs
- Fix incorrect 'A2A agent' description of handoffs in agent config ref
- Fix 'A2A' label in tips page to 'peer-to-peer'

Fixes docker#2184

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner March 19, 2026 22:11
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

This documentation PR successfully adds comprehensive documentation for the handoffs routing mechanism. The changes correctly:

  • Distinguish between delegation (sub_agents) and handoffs patterns
  • Fix incorrect "A2A" references to accurately describe peer-to-peer routing
  • Add clear examples and comparison tables
  • Update configuration documentation with correct terminology

No bugs found in the changed code. The documentation improvements enhance clarity and accuracy.

@dgageot dgageot merged commit 32db1cf into docker:main Mar 20, 2026
8 checks passed
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.

handoffs routing is not documented

3 participants