How deeparajasabeson/langgraph-multiagents works
LangGraph-MultiAgents is a FastAPI customer-query service: callers submit a question, the coordinator asks an LLM to classify it, then dispatches to support or sales specialists, or answers general queries directly. Specialist agents use shared model-backed agent graphs and domain tools; the tools currently read hard-coded FAQ, order, and promotion data rather than an external store. Edges reflect calls shown in excerpts; no separate database or persistent state is evidenced.
Main entry points: coordinator.py Intent coordinator · support.py Support agent · base.py Agent runtime · sales.py Sales agent
Components 12
API service
- Query API
main.py
Query routing
- Intent coordinator
agents/coordinator.py - General answer
agents/coordinator.py
Specialist agents
- Support agent
agents/support.py - Sales agent
agents/sales.py - Agent runtime
agents/base.py
Models and tools
- Model client
agents/client.py - FAQ lookup
agents/tools.py - Order status
agents/tools.py - Promotions lookup
agents/tools.py
Other components
- API caller
- Chat model service
Connections 16
- API caller → Query API: submits query
main.py - Query API → Intent coordinator: routes question
main.py - Intent coordinator → Model client: gets model
agents/coordinator.py - Model client → Chat model service: configures model
agents/client.py - Intent coordinator → Chat model service: classifies query
agents/coordinator.py - Intent coordinator → Support agent: dispatches support
agents/coordinator.py - Intent coordinator → Sales agent: dispatches sales
agents/coordinator.py - Intent coordinator → General answer: answers general
agents/coordinator.py - General answer → Chat model service: generates answer
agents/coordinator.py - Support agent → Agent runtime: inherits runtime
agents/support.py - Sales agent → Agent runtime: inherits runtime
agents/sales.py - Support agent → FAQ lookup: registers tool
agents/support.py - Support agent → Order status: registers tool
agents/support.py - Sales agent → Promotions lookup: registers tool
agents/sales.py - Agent runtime → Model client: gets model
agents/base.py - Agent runtime → Chat model service: runs agent graph
agents/base.py