Multi-Agent

Conversational Multi-Agent

Have agents converse turn by turn until a completion criterion fires; agent roles drive the conversation forward.

Problem

A single-agent loop has nowhere to put the dialogue: there is no opposing voice to push back, and inner-monologue self-critique tends to agree with itself. A rigid orchestration pipeline that fixes the step order in advance over-prescribes the flow and removes the conversational dynamics that make the pairing valuable in the first place. Without a structure for turn-taking, the team is forced to choose between a flat solo loop and a brittle hard-coded sequence.

Solution

Define agents with system prompts and allowed actions. Implement a conversation manager that selects which agent speaks next (round-robin, condition-based, model-decided). Each agent reads the conversation and emits a turn. Continue until termination criterion (task complete, max turns, explicit handoff to user).

When to use

  • The task naturally maps to dialogue between roles (e.g. user-proxy and assistant, planner and executor).
  • A conversation manager can pick the next speaker by rule, condition, or model decision.
  • Termination criteria (task complete, max turns, explicit handoff) are easy to express.

Open the full interactive page

Diagram, neighbourhood map, code examples, related patterns and full provenance.

Related