Create a score
Create a new evaluation score.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
evaluator_id
UUID of evaluator created in Respan. Either this or evaluator_slug must be provided.
evaluator_slug
Custom string identifier for your evaluator. Either this or evaluator_id must be provided.
numerical_value
Numerical score value. Use when evaluator’s score_value_type is numerical.
string_value
String/text score value. Use when score_value_type is text or comment.
boolean_value
Boolean score value. Use when score_value_type is boolean.
categorical_value
Categorical score value. Use when score_value_type is single_select, multi_select, or categorical.
Response
Created score.
id
Score ID.
created_at
Creation timestamp.
type
Evaluator type.
Allowed values:
environment
Environment.
numerical_value
Numerical score value.
string_value
String/text score value.
boolean_value
Boolean score value.
categorical_value
Categorical score value (array of strings).
is_passed
Whether the score passes the evaluator's conditions.
cost
Cost of running the evaluation.
evaluator_id
UUID of the Respan platform evaluator.
evaluator_slug
Custom string identifier for the evaluator.
log_id
Associated span ID.
dataset_id
Associated dataset ID.
Errors
401
Unauthorized Error