Verification API
The Verification API predicts whether a schema is valid and identifies likely errors, without running the full compiler. Responses return in milliseconds, making verification practical inside tight agent loops.
POST /validity-check
Returns a validity prediction with a confidence probability.
Request:
Response:
| Field | Type | Description |
|---|---|---|
valid | boolean | Predicted validity (threshold: 0.5) |
probability | float | Confidence score from 0.0 to 1.0 |
confidence | string | "high" (above 0.85), "medium" (0.6-0.85), or "low" (below 0.6) |
POST /error-check
Predicts probabilities across 20 error categories. Use this to pinpoint what's wrong before asking the LLM to fix it.
Request:
Response:
The 20 categories cover structural issues (missing transitions, orphan states), wiring issues (unmatched emits, broken bindings), and UI issues (missing render effects, invalid patterns).
POST /rank-edits/jepa
Suggests optimal repair actions for a failing schema. See the dedicated Repair API docs for full details.
Quick example:
Next Steps
- Repair API - Detailed repair endpoint documentation
- Embedding API - Similarity search for golden behaviors