A minimal FastAPI service for chat operations with structured logging and tracing.
This project was entirely built by an AI agent following professional engineering standards. The templates and standards used for development are documented in docs/engineering/, including:
- AI_COMPOSER_TEMPLATE.md: Standardized template for AI-assisted development
- PR_REVIEW_CHECKLIST.md: Checklist for consistent PR reviews
- ARCHITECTURE_DECISIONS.md: Record of architectural choices
- EVAL_STRATEGY.md: Evaluation and testing standards
-
Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
uvicorn api.main:app --reloadThe API will be available at http://localhost:8000
pytestTests run automatically on pull requests via GitHub Actions CI.
docker build -t ops-copilot .docker run -p 8000:8000 ops-copilotThe API will be available at http://localhost:8000
Send a chat message and receive a stubbed response.
Request Body:
{
"user_message": "hello",
"thread_id": null
}Response:
{
"reply": "stubbed response",
"trace_id": "uuid-string",
"model": "stub-model-v0"
}