Tiny LangGraph demo that analyzes today vs. yesterday sales data and spits out profit, CAC alerts, and recommendations.
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
pytest -q # tests → ..
langgraph dev --open # open Studio (graph: business_agent){
"today": { "revenue": 950, "cost": 1100, "num_customers": 38 },
"yesterday": { "revenue": 1000, "cost": 900, "num_customers": 40 }
}app/agent.py # builds graph
app/nodes.py # process & recommend
app/schema.py # Pydantic models
tests/ # unit tests
studio_graph.json