Lab build
CrewAI debate crew
Crew where two agents argue for and against a motion and a judge agent decides.
What it does
Agents and tasks are configured in YAML: a debater proposes the motion, another opposes it, and a judge agent reviews both arguments and picks the more convincing side. Models are routed through LiteLLM, starting with GPT-4o mini, so the judge can run on a different model from the debaters.
What was built
- 01
agents.yaml defines the debater and judge agents; tasks.yaml defines propose, oppose and decide tasks.
- 02
The motion is passed in at kickoff and both sides argue it in sequence.
- 03
Judge agent can run on a different model to compare how LLMs argue and decide.
The pipeline, layer by layer
Four layers, one pipeline.
L1Config
- agents.yaml and tasks.yaml
L2Debate
- Proposer agent
- Opposer agent
L3Decision
- Judge agent
L4Models
- LiteLLM model routing