How mohangattu/enterprise-langgraph-ai works
Enterprise LangGraph AI accepts chat requests through a REST API or streaming CLI, routes work through a CEO supervisor to research or coding departments, and returns a composed response. Department supervisors dispatch to specialized agents, whose drafts become department outputs for the CEO. The README documents provider support, streaming, retries, logging, and thread checkpointing; some wiring beyond the sampled source is therefore represented only where the tree or documentation supports it.
Main entry points: ceo_graph.py CEO graph · agents.py CEO supervisor · chat_services.py Chat service · graph.py Research graph
Components 23
User interfaces
- REST API
api.py - Chat request
schemes/request.py - Chat service
services/chat_services.py - Chat response
schemes/response.py - Streaming CLI
app.py
CEO orchestration
- CEO graph
graphs/ceo_graph.py - CEO supervisor
agents.py - Department registry
registry.py - CEO state
state.py
Research department
- Research graph
departments/research/graph.py - Research registry
departments/research/registry.py - Research agents
departments/research/agents.py - Research state
departments/research/state.py
Coding department
- Coding graph
departments/coding/graph.py - Coding registry
departments/coding/registry.py - Coding agents
departments/coding/agents.py - Coding state
departments/coding/state.py
Runtime services
- LLM factory
config.py - Stream helper
core/streaming.py - Thread checkpoint
core/checkpoint.py - Retry policy
core/retry.py
Other components
- User
- LLM providers
Connections 30
- User → REST API: submits request
- REST API → Chat request: validates
- REST API → Chat service: calls
- Chat service → CEO graph: invokes
- CEO graph → Chat service: returns result
- Chat service → Chat response: formats response
- User → Streaming CLI: enters query
- Streaming CLI → Stream helper: streams through
- Stream helper → CEO graph: streams graph
- CEO graph → CEO supervisor: dispatches supervisor
- CEO supervisor → Department registry: looks up department
- CEO graph → Research graph: dispatches research
- CEO graph → Coding graph: dispatches coding
- Research graph → Research registry: routes agents
- Research registry → Research agents: selects agents
- Coding graph → Coding registry: routes agents
- Coding registry → Coding agents: selects agents
- CEO supervisor → Research graph: invokes department
- CEO supervisor → Coding graph: invokes department
- CEO graph → CEO state: updates state
- Research graph → Research state: updates state
- Coding graph → Coding state: updates state
- CEO graph → Thread checkpoint: compiles with
- LLM factory → LLM providers: creates clients
- CEO supervisor → LLM factory: uses model
- Research agents → LLM factory: uses model
- Coding agents → LLM factory: uses model
- CEO supervisor → Retry policy: retries calls
- Research agents → Retry policy: retries calls
- Coding agents → Retry policy: retries calls