Skip to main content

Startup Due Diligence System

This example demonstrates how to get multiple expert perspectives on the same topic using MixtureOfAgents - perfect for comprehensive analysis requiring diverse viewpoints.

Step 1: Setup

Step 2: Define Expert Panel

Create multiple experts who will all analyze the same startup from different perspectives.
The API always reuses the last agent in agents as MixtureOfAgents’ aggregator (in addition to running it as a normal worker on layer 1): it re-invokes that agent with every other agent’s output appended to the task and records the synthesis under that same agent’s name. max_loops sets the number of worker layers (layers), so with the default max_loops: 1 each worker (including the last one) runs once, then the last agent runs a second time to aggregate. Put a dedicated synthesis agent last if you don’t want a domain-specialist prompt reused for aggregation.

Step 3: Run Due Diligence Analysis

Expected Output:
MixtureOfAgents gives you multiple expert perspectives on the same input, then synthesizes them via the last agent in agents. Each worker sees identical information on layer 1 and analyzes through their specialized lens; on later layers (max_loops > 1) each worker also sees the previous layer’s combined output. agents[-1] runs both as a normal worker and, again, as the aggregator that reads every other agent’s answer.