Skip to content
AgenticAIWiki
  1. Learn
  2. Part 9
  3. 51. Agent frameworks compared
  4. 51.4

Lesson 51.4 · 4 of 6 · 4 min read · Reviewed 24 Nov 2026

Multi-agent frameworks and conversation-style orchestration

By the end, you can

  • Describe conversation-style multi-agent frameworks.
  • Know when they fit.

The model

roles:   researcher, analyst, writer, critic
task:    "Write a market brief on home batteries"
manager: picks who speaks next, passes messages, decides when it's done

AgentsAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. converse: the researcher shares findings, the analyst comments, the writer drafts, the critic reviews.

Where this style lives now

Microsoft’s AutoGen popularised conversation-style agents. In late 2025 Microsoft merged AutoGen and Semantic Kernel into the Microsoft Agent FrameworkAgent framework: A library such as LangGraph, AutoGen, CrewAI or a vendor agent SDK that provides building blocks for agents., and AutoGen itself moved to maintenance, so start new work on the successor or on a framework such as CrewAI. The pattern matters more than the library: roles, a manager, and a conversation that has to be stopped on purpose.

Strengths

  • Fast to sketch multi-role ideas.
  • Natural fit for brainstorming and review-style workflowsWorkflow: A system where LLM calls and tools follow a path defined in code, rather than chosen by the model..
  • Role definitions are easy to read.

Risks

Risk Mitigation
Endless chatter Max turns, a termination phrase or a manager that decides
Cost Each turn re-sends the conversation to the next speaker
Drift Restate the goal; give the manager acceptance criteria
Hard to test Fix the speaking order for production, or move to a supervisor or graph

A practical path

Prototype the idea as a conversation, see which roles add value, then rebuild the useful part as a supervisor (49.1) or a graph (51.3) with clear handoffsEscalation: Handing a case from an agent to a person, with the context needed to continue. and limits.

Key points

  • Some frameworks (CrewAI, the group-chat patterns in Microsoft Agent Framework, and similar) organise agents as roles that talk to each other in a conversation or crew.
  • You define roles, goals and tools; the framework manages turn-taking and task handoffs.
  • They're quick for prototyping multi-role ideas, but conversations can wander and cost a lot.
  • Add turn limits, clear termination conditions and tracing before production use.
Hands-on labRuns in the Playground

Bound a crew conversation

Give a conversation-style crew a termination rule and see what it does to turns and tokens.

You will have: A crew simulation with a manager, acceptance criteria and a printed token count.

Steps

  1. Run the starter: the crew finishes its work by turn 6 but keeps talking to the 40-turn cap.
  2. Write done() as the acceptance criteria: editor approved and facts checked.
  3. End the run as soon as the criteria are met.
  4. Compare the turn and token counts with the starter.
  5. Set MAX_TURNS to 4 and check the cap still ends a run that cannot finish.

Done when

  • The starter runs 40 turns and about 430,000 input tokens.
  • The solution ends at turn 6 with 13,500 input tokens.
  • The manager prints why the run ended.

Open in the Playground No API key needed.

Starter code (Python)
# A conversation-style crew: a manager picks speakers. Without a stop rule, they talk until the cap.
MAX_TURNS, BASE, PER_MSG = 40, 1000, 500    # illustrative tokens: each turn re-sends the conversation


def researcher(s):
    s["facts"] = True
    return "facts gathered"


def writer(s):
    s["drafts"] += 1
    return f"draft v{s['drafts']}"


def editor(s):
    s["edited"] = s["drafts"] >= 2
    return "approved" if s["edited"] else "needs another pass"


def checker(s):
    s["checked"] = s["facts"] and s["drafts"] >= 1
    return "facts check out" if s["checked"] else "missing facts"


ROLES = {"researcher": researcher, "writer": writer, "editor": editor, "checker": checker}
ORDER = ["researcher", "writer", "editor", "writer", "editor", "checker"]


def manager_next(turn, s):
    return ORDER[turn % len(ORDER)]


def done(s):
    # TODO: acceptance criteria: the editor approved and the fact checker passed it
    return False


state = {"facts": False, "drafts": 0, "edited": False, "checked": False}
tokens, turn = 0, 0
while turn < MAX_TURNS:
    role = manager_next(turn, state)
    msg = ROLES[role](state)
    tokens += BASE + PER_MSG * turn
    turn += 1
    if turn <= 6:
        print(f"turn {turn}: {role}: {msg}")
    # TODO: end the run as soon as done(state) is true
print(f"turns: {turn}, input tokens: {tokens:,}")
Show a solution
# A conversation-style crew: a manager picks speakers. Without a stop rule, they talk until the cap.
MAX_TURNS, BASE, PER_MSG = 40, 1000, 500    # illustrative tokens: each turn re-sends the conversation


def researcher(s):
    s["facts"] = True
    return "facts gathered"


def writer(s):
    s["drafts"] += 1
    return f"draft v{s['drafts']}"


def editor(s):
    s["edited"] = s["drafts"] >= 2
    return "approved" if s["edited"] else "needs another pass"


def checker(s):
    s["checked"] = s["facts"] and s["drafts"] >= 1
    return "facts check out" if s["checked"] else "missing facts"


ROLES = {"researcher": researcher, "writer": writer, "editor": editor, "checker": checker}
ORDER = ["researcher", "writer", "editor", "writer", "editor", "checker"]


def manager_next(turn, s):
    return ORDER[turn % len(ORDER)]


def done(s):
    return s["edited"] and s["checked"]


state = {"facts": False, "drafts": 0, "edited": False, "checked": False}
tokens, turn = 0, 0
while turn < MAX_TURNS:
    role = manager_next(turn, state)
    msg = ROLES[role](state)
    tokens += BASE + PER_MSG * turn
    turn += 1
    if turn <= 6:
        print(f"turn {turn}: {role}: {msg}")
    if done(state):
        print("manager: acceptance criteria met, ending the run")
        break
print(f"turns: {turn}, input tokens: {tokens:,}")
Quick checkA role-based agent chat keeps going for 60 turns without finishing. What's missing?
How sure are you?
Pick an answer and how sure you are