Multi-Agent Documentation System¶
This example demonstrates a team of three agents working together to scan, document, and validate Python code. It shows different patterns of agent collaboration:
- Async delegation (fire and forget)
- Tool usage with waiting
- Chained tool calls
How It Works¶
- The File Scanner agent scans directories and identifies Python files
- It passes these files to the Documentation Writer agent asynchronously
- In parallel, it uses the Error Checker as a tool to validate the files
- The Documentation Writer processes files as they come in
- Results are printed to the console as they become available
This demonstrates different ways agents can collaborate:
- Async message passing (scanner to writer)
- Synchronous tool usage (scanner using checker)
- Event-based output handling (writer to console)