How mithun-22/scm-agent- works
SCM Agent is a Streamlit supply-chain analytics application. Users upload Excel workbooks, explore the extracted tables, then analyze them through natural-language queries, pivots, risk insights, KPIs, and what-if scenarios. The README documents the AI query path from context construction through Azure OpenAI-generated Pandas code, sandboxed execution, result formatting, and rendering. The repository has one substantial source file, so these responsibilities share app.py; connections beyond the documented query pipeline are limited to README-described behavior.
Main entry points: app.py Streamlit App
Components 13
User Interface
- Streamlit App
app.py - Data Explorer
app.py - Result Renderer
app.py
Data Analysis
- Excel Extraction
app.py - Pivot Analysis
app.py - KPI Analysis
app.py
AI Query
- Context Builder
app.py - Azure OpenAI
- Safe Code Executor
app.py - Result Formatter
app.py
Planning Insights
- Risk Insights
app.py - What-If Simulation
app.py
Other components
- Supply Chain User
Connections 13
- Supply Chain User → Streamlit App: uses
README.md - Streamlit App → Excel Extraction: uploads workbooks
README.md - Streamlit App → Data Explorer: opens explorer
README.md - Streamlit App → Pivot Analysis: creates pivots
README.md - Streamlit App → KPI Analysis: shows KPIs
README.md - Streamlit App → Risk Insights: shows alerts
README.md - Streamlit App → What-If Simulation: runs scenarios
README.md - Streamlit App → Context Builder: submits question
README.md - Context Builder → Azure OpenAI: requests code
README.md - Azure OpenAI → Safe Code Executor: generates Pandas code
README.md - Safe Code Executor → Result Formatter: returns result
README.md - Result Formatter → Result Renderer: formats response
README.md - Result Renderer → Supply Chain User: renders results
README.md