ag2-network-discussion
Installation
SKILL.md
AG2 Network — Discussion Adapter
discussion is an N-party round-robin channel. Participants speak in a fixed order, cycling indefinitely until you close it. The adapter enforces "wait your turn" via validate_send; the hub's can_send probe lets each agent's default handler skip wasted LLM calls when it isn't that agent's turn.
Prerequisite: read
ag2-network-quickstartfirst. This skill assumes you already knowHub.open,HubClient.register, the channel lifecycle, andEnvelopebasics.
When to use
- "Three agents debating in turn"
- "A panel discussion / brainstorm with a fixed cast"
- "Round-robin reviewers commenting on a draft"
- Any fixed-order N-party turn-taking where each participant gets a slot per cycle
Don't use discussion for:
- Conditional handoffs ("if alice mentions security, hand to the security expert") → use
ag2-network-workflow. - Pipelines where each step happens once → use
ag2-network-workflowwithTransitionGraph.sequence([...]). - Two participants with no fixed order → use
conversation(covered inag2-network-quickstart). - Strict 1Q1R → use
consulting(covered inag2-network-quickstart).