Schema for individual test cases within a suite.
Test cases define variable values to substitute into prompts and assertions to validate the LLM output.
Supported assertion types:
- contains: Check if output contains a specific string
- not_contains: Check if output does not contain a string
- regex: Match output against a regular expression
- exact_match: Check for exact string match
Summary
Functions
Changeset for creating or updating a test case.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Changeset for creating or updating a test case.
Validates that suite_id, variable_values, and assertions are present.