How remyc0des/agilestem_openai_api works
This is a small FastAPI chat service for a manufacturing simulation game. A player sends a question and a game-state snapshot to /chat; the handler combines them with factory-operations mentoring guidance, calls Azure OpenAI, and returns the generated reply. The game-state interpretation and educational behavior are prompt content inside the same handler, not separate runtime modules. The graph reflects only relationships visible in main.py; there are no sampled game-client or simulation-engine components.
Main entry points: main.py Chat handler
Components 6
Chat service
- Chat handler
main.py - Game context
main.py - Advisor guidance
main.py - Chat reply
main.py
Other components
- Player
- Azure OpenAI
Connections 6
- Player → Chat handler: sends question
main.py - Chat handler → Game context: uses snapshot
main.py - Chat handler → Advisor guidance: sets guidance
main.py - Chat handler → Azure OpenAI: requests completion
main.py - Azure OpenAI → Chat handler: returns completion
main.py - Chat handler → Chat reply: returns reply
main.py