evaluator_id
or evaluator_slug
) can only have one score per log. This prevents duplicate scores and maintains data integrity.
Note: The response format follows the standard evaluation results schema, providing comprehensive metadata including type
, environment
, is_passed
, and other evaluation context fields.
id
in responses)Authorization: Bearer <token>
Authorization: Bearer <key>
evaluator_id
(for evaluators created in Keywords AI platform) or evaluator_slug
(a custom string for your own evaluators), plus at least one score value.
evaluator_slug
must be provided.evaluator_id
must be provided.Creating a Score with Custom Evaluator
evaluator_slug
can be any custom string you choose to identify your evaluator (e.g., “quality_check”, “relevance_score”, “custom_eval_v1”).Creating a Score with Keywords AI Evaluator
evaluator_id
must be a evaluator ID copied from the Keywords AI platform.Listing All Scores for a Log
Updating a Score
Deleting a Score
scores
field:
Status Code | Description |
---|---|
200 OK | Successful GET/PATCH requests |
201 Created | Successful POST requests |
204 No Content | Successful DELETE requests |
400 Bad Request | Invalid request data |
401 Unauthorized | Invalid or missing authentication |
404 Not Found | Log or score not found |
409 Conflict | Score already exists for this evaluator in this log |