How devgomesai/superior-agent works
Project type and purpose
• This is a full-stack, AI-powered stock analysis system built around a multi-agent orchestration pattern.
• Purpose: Accept a stock query (via CLI, HTTP API, or web form), dispatch it through a supervisor and three specialized agents, gather financial data and news, and finally generate a Markdown report (and optional HTML view).
File structure
• Top-level
• agent_flow.json – defines the orchestrator workflow
• pyproject.toml / requirements.txt – dependency and build metadata
• output/ – generated Markdown reports
• src/agent/
• api/api.py – FastAPI HTTP endpoints, request schema, routing
• agent.py – supervisor setup, multi-agent orchestration logic via LangGraph
• src/prompts/agent_prompts.py – system prompts for each agent
• src/templates/index.html – Jinja2 template for the web interface
• src/tools/stock_analysis_tools.py – helper functions for yfinance, Perplexity API, file I/O
• src/tests/ – interactive CLI runner (main.py) and unit tests (test.py)
README for additional insights
• Four logical components: Supervisor, Web Search Expert, Finance Analyst, Report Generator
• External dependencies: Perplexity API, yfinance, LLM providers via LangChain, FastAPI, Uvicorn
• Workflow visualization (graph.png) already generated via LangGraph