Setup
Firecrawl as an AutoGen Tool
This example wraps Firecrawl’sscrape and search as AutoGen function tools, then lets a single AssistantAgent use them to answer a question.
Multi-Agent: Researcher + Writer
Hand Firecrawl output from a researcher agent to a writer agent in a round-robin team.Notes
- Firecrawl’s Python SDK is synchronous; AutoGen will call your wrappers inside its event loop without issues for small workloads. For heavy concurrent scraping, move calls off the main thread or use batch scrape.
- Replace
OpenAIChatCompletionClientwith any AutoGen-supported model client (Azure OpenAI, Anthropic viaautogen-ext, Ollama, etc.). Firecrawl is model-agnostic. - See the AutoGen docs for agent patterns beyond round-robin (selector, swarm, nested teams).

