Validate Rule
Validate a rule by executing it with test data without creating a saved rule.
This endpoint allows testing LLM-as-judge evaluators before saving them. It accepts a rule configuration (same as rule creation) and test data, executes the evaluator, and returns the evaluation results in the same format as batch_invoke_evaluator.
Only LLM-as-judge rules (evaluators) are supported. Code evaluators are not allowed.
The evaluator execution traces are written to the database (in the "evaluators" project), which allows users to see the evaluator execution history.
Request body
Response
Successful Response
Changes
Changed in 2 of the 48 revisions of this API.13
- ▲
removed
RunRuleSpendLimitSchemafrom thespend_limitrequest propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional request property
tracer_session_issue_idnew-optional-request-property
- ○
added
RunRuleSpendLimitSchema-Inputto thespend_limitrequest propertyanyOflistrequest-property-any-of-added
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
spend_limitnew-optional-request-property
- ○