symfonic.evals.response_assertions¶
response_assertions ¶
Deterministic assertions over response text and JSON.
CitationsSupported
dataclass
¶
CitationsSupported(attribute: str = 'retrieved_source_ids', minimum: int = 1, name: str = 'citations_supported')
Require response citations to name only evidence retrieved for this turn.
ResponseContains
dataclass
¶
Require all fragments in the answer, optionally case-insensitively.
Source code in src/symfonic/evals/response_assertions.py
ResponseEquals
dataclass
¶
Require an exact answer without copying it into a failed report.
ResponseJson
dataclass
¶
Require valid JSON and optionally an exact object shape.
StructuredOutputMatches
dataclass
¶
StructuredOutputMatches(output_type: type, expected: Mapping[str, Any] | None = None, name: str = 'structured_output_matches')
Require the target's validated structured value and optional exact fields.