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.
Authorizations
Body
Schema for validating rules without creating them.
Extends RunRulesCreateSchema with test data fields for validation. Only LLM-as-judge rules (evaluators) are supported, not code_evaluators.
For trace-level evaluators, provide test_inputs / test_outputs. For thread evaluators (group_by="thread_id"), provide test_thread_id + session_id instead; the backend fetches and assembles all turns automatically.
"thread_id"Response
Successful Response

