Skip to content

Constrain risk-assessment certainty #62

Description

@ashrafee-dev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions