Problem
The riskAssessment model accepts any integer for certainty, even though the API contract and model prompt require a value from 0 to 100.
Acceptance criteria
- Enforce an inclusive 0–100 range in the Pydantic response model.
- Add tests for the lower bound, upper bound, and invalid values.
- Keep valid existing responses unchanged.
Problem
The
riskAssessmentmodel accepts any integer forcertainty, even though the API contract and model prompt require a value from 0 to 100.Acceptance criteria