How cgoncalves94/multi_agent_system works
Project Type and Purpose
• Purpose: accept user queries, decide processing path, run one or more agents (possibly in parallel), synthesize agent outputs, and return a cohesive answer or visualization.
File Structure
• Top-level files: configuration (.env.example, langgraph.json, pyproject.toml), docs/, examples/, pre-commit and CI workflows.
• src/agents/: contains subfolders for each agent type:
• orchestrator/ (router logic, graph definitions, prompts & schemas)
• rag/ (retrieval‐augmented generation logic, vector store integration)
• researcher/ (parallel web/wiki search and synthesis)
• summarizer/ (map-reduce document processing)
• src/config.py: global config (API keys, vector store settings).
• src/utils/: file handling, message utilities, debugging helpers.
README Insights
• Query → Router → Agent(s) → Synthesis → Response.
• Agent → External Service / Storage → Agent.
• Router/orchestration (e.g., blue).
• Agents (e.g., green).
• Storage (e.g., orange).
• External APIs (e.g., purple).
• “Core Orchestration”, “Agents”, “Storage & State”, “External Services”.
• Architectural patterns (e.g., map-reduce, parallel streams) near the relevant agent.