Skip to content

Examples

Complete, real-world examples you can copy and run. Each example demonstrates one multi-agent pattern applied to a concrete problem.

ExamplePatternWhat it does
Blog Post PipelinePrompt ChainingResearch → outline → draft → polish → SEO metadata
Customer Support RouterRoutingClassifies messages by language, intent, and urgency; routes to specialists
Competitive AnalysisParallelizationAnalyses multiple competitors simultaneously; synthesises into a brief
Automated Code ReviewOrchestrator-WorkersOrchestrator reads a diff and delegates security, perf, and style reviews
Cover Letter GeneratorEvaluator-OptimizerDrafts a cover letter; evaluates against a rubric; rewrites until approved
AI Development WorkflowChaining + Orchestration + EvalFull BDD cycle: feature request → user story → three amigos → tests → implementation → review
Markdown Research PipelineOrchestrator-WorkersAgents and partials defined as markdown files; researcher + writer coordinated by an orchestrator

Running the examples

All examples use provider packages included in the SDK. Install the SDK and set your API key:

bash
npm install @daedalus-ai-dev/ai-sdk
export ANTHROPIC_API_KEY=your_key_here
export OPENAI_API_KEY=your_key_here

Each example imports directly from the SDK:

ts
import { agent, Pipeline, defineTool } from '@daedalus-ai-dev/ai-sdk';
import { anthropic } from '@daedalus-ai-dev/ai-sdk';
import { openai } from '@daedalus-ai-dev/ai-sdk';

Choosing a pattern

Not sure which pattern fits your use case? Start here:

See the patterns overview for a deeper comparison.

Released under the MIT License.