How kanerika-ai/langgraph-supervisor-agent works
This repository implements a LangGraph supervisor workflow for producing market-analysis reports. A user submits an example or custom task through the CLI; the workflow shares conversation state, lets the supervisor dynamically dispatch Research, Data, and Writing agents, and returns the final report. The README documents synthetic company, industry, and financial data, plus Azure OpenAI configuration. Several documented modules are absent from the supplied file tree and source excerpts, so their internal calls are represented only where the README explicitly describes them.
Main entry points: main.py CLI entry · config.py Azure LLM config
Components 14
Task entry
- CLI entry
main.py - Azure LLM config
config.py
Workflow orchestration
- Workflow runner
- Shared state
- Supervisor
Analysis agents
- Research agent
- Data agent
- Writing agent
Synthetic knowledge
- Company profiles
- Industry trends
- Financial dataset
Other components
- User
- Azure OpenAI
- Final report
Connections 17
- User → CLI entry: submits task
README.md - CLI entry → Workflow runner: runs workflow
main.py - Workflow runner → Supervisor: routes tasks
README.md - Workflow runner → Shared state: shares history
README.md - Supervisor → Research agent: dispatches
README.md - Supervisor → Data agent: dispatches
README.md - Supervisor → Writing agent: dispatches
README.md - Research agent → Shared state: updates history
README.md - Data agent → Shared state: updates history
README.md - Writing agent → Shared state: updates history
README.md - Research agent → Company profiles: reads profiles
README.md - Research agent → Industry trends: reads trends
README.md - Data agent → Financial dataset: analyzes metrics
README.md - Writing agent → Shared state: synthesizes context
README.md - Azure LLM config → Azure OpenAI: configures model
config.py - Workflow runner → Azure LLM config: uses model config
- CLI entry → Final report: prints report
main.py