synth_ai.sdk.graphs.verifier_schemas
Verifier API Contract Schemas
These schemas define the expected structure for requests and responses
to the verifier scoring endpoint at POST /api/graphs/verifiers/completions.
Zero-shot verifier graphs use the same response format via POST /api/graphs/completions.
This is the canonical contract that the backend MUST conform to.
Classes
EvidenceItem
Evidence item recorded during RLM evaluation via add_evidence tool.
CriterionScorePayload
Per-criterion score returned by the verifier.
ReviewPayload
Rubric review (event-level or outcome-level).
VerifierScoreResponse
Response body for POST /api/graphs/verifiers/completions.
This is the canonical contract that verifier backends MUST return and is
also used as the zero-shot verifier graph output.
Methods:
aggregate_event_reward
- Sum of all event_totals, or None if empty
aggregate_outcome_reward
- outcome_review.total, or None if no outcome review