Skip to content

RP-22: operationalize with FastAPI entry point and LLM fallback#17

Merged
b17saurabh merged 1 commit into
mainfrom
RP-22/operationalize-ai-investigation-service
Jun 14, 2026
Merged

RP-22: operationalize with FastAPI entry point and LLM fallback#17
b17saurabh merged 1 commit into
mainfrom
RP-22/operationalize-ai-investigation-service

Conversation

@b17saurabh

Copy link
Copy Markdown
Contributor

feat(ai-investigation): operationalize with FastAPI entry point and LLM fallback

  • Add main.py with lifespan (creates OpenAILLMProvider, InvestigationPipeline)
  • Add health and investigate routers (GET /health, POST /investigate/run)
  • Add generate_structured fallback: try response_format first, retry with prompt-based JSON instruction when model doesn't support structured output
  • Add _extract_json to strip think tags, markdown fences, and leading text
  • Add scripts/simulate_incident.py for end-to-end testing
  • Update Dockerfile with EXPOSE 8002 and uvicorn CMD
  • Add env_file and extra=ignore to OpenAI and investigation configs
  • Update .env with OPENAI_BASE_URL and infrastructure credentials

…LM fallback

- Add main.py with lifespan (creates OpenAILLMProvider, InvestigationPipeline)
- Add health and investigate routers (GET /health, POST /investigate/run)
- Add generate_structured fallback: try response_format first, retry with
  prompt-based JSON instruction when model doesn't support structured output
- Add _extract_json to strip think tags, markdown fences, and leading text
- Add scripts/simulate_incident.py for end-to-end testing
- Update Dockerfile with EXPOSE 8002 and uvicorn CMD
- Add env_file and extra=ignore to OpenAI and investigation configs
- Update .env with OPENAI_BASE_URL and infrastructure credentials
@b17saurabh b17saurabh self-assigned this Jun 14, 2026
@b17saurabh b17saurabh merged commit 0aa7b72 into main Jun 14, 2026
4 checks passed
@b17saurabh b17saurabh deleted the RP-22/operationalize-ai-investigation-service branch June 14, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant