Run Evaluator
POST/api/evaluators/{evaluator_id}/run/
Executes an evaluator against provided input/output data for testing purposes. This endpoint allows you to test your evaluator configuration before using it in production.
Authentication
Requires API key authentication. Include your API key in the request headers:Path Parameters
Parameter | Type | Description |
---|---|---|
evaluator_id | string | The unique ID of the evaluator to run |
Request Body
Field | Type | Required | Description |
---|---|---|---|
llm_input | string | Yes | The input that was provided to the LLM |
llm_output | string | Yes | The output generated by the LLM |
extra_params | object | No | Additional parameters for evaluation context |
Examples
Test LLM Evaluator
Test Code Evaluator
Test Human Evaluator (Simulation)
Response
Status: 200 OKLLM Evaluator Response
Code Evaluator Response
Human Evaluator Response (Simulation)
Response Fields
Field | Type | Description |
---|---|---|
id | string | Unique identifier for this evaluation result |
score | number|null | The evaluation score (null for human evaluators awaiting input) |
evaluation_result | string | Detailed evaluation feedback or reasoning |
evaluator_id | string | ID of the evaluator that was run |
created_at | string | ISO timestamp of when the evaluation was performed |
execution_time_ms | number | Time taken to execute the evaluation in milliseconds |
tokens_used | object | Token usage for LLM evaluators (input/output tokens) |
requires_human_input | boolean | Whether this evaluation requires human input (human evaluators only) |