docs: document the handoffs routing mechanism#2187
Merged
dgageot merged 1 commit intodocker:mainfrom Mar 20, 2026
Merged
Conversation
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
There was a problem hiding this comment.
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.
aheritier
approved these changes
Mar 20, 2026
trungutt
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inexamples/handoff.yamldocs/configuration/agents/index.md— Fix thehandoffsproperty description from incorrect "A2A agent configurations" to "agent names this agent can hand off to", with a link to the new sectiondocs/guides/tips/index.md— Fix the handoffs card from "A2A" to "peer-to-peer" with an accurate description and a link to the detailed docsFixes #2184