List Eval Graders

List the graders in this project, newest first. Pass a grader name to Create Eval Run to score a dataset with it.

List the graders in this project, newest first. Pass a grader name to Create Eval Run to score a dataset with it.

gethttps://statsigapi.net/console/v1/eval_graders

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Query parameters

limitinteger

Results per page

Example:10
Constraints:stringnumber
pageinteger

Page number

Example:1
Constraints:stringnumber

Response

application/json
200· List Eval Graders Success
messagestringrequired

A simple string explaining the result of the operation.

dataobject[]required
Show child attributes
idstringrequired
namestringrequired
typestringrequired

Grader type: label_model, string_check, text_similarity, python, completion_tokens, completion_latency, or logged_score.

isGlobalbooleanrequired
promptoneOfrequired
Constraints:object
One of 8 shapes:
typestringrequired
Allowed values:label_model
contentstringrequired
evalModelstringrequired

OpenAI model that judges a label_model grader. Other grader types ignore it.

choiceScoresobjectrequired
Constraints:nullable
gradingRulesobject[]required

Ordered online grading rules. For each span, the first enabled rule that matches decides whether the grader scores it.

idstringrequired
enabledbooleanrequired
conditionsobject[]required

Combined with AND. A rule with no conditions matches every span.

fieldstringrequired

Span field to match: ai_config (AI config IDs, matched by the config name), config_version (version IDs), environment (statsig.environment), span_name, agent_name (gen_ai.agent.name), model (gen_ai.request.model), or span_attribute (the attribute named by key).

Allowed values:ai_configconfig_versionenvironmentspan_nameagent_namemodelspan_attribute
keystring

Attribute name of a span_attribute condition.

operatorstringrequired

is matches any of the values exactly and is_not matches none of them. A span without the field reads as an empty string.

Allowed values:isis_not
valuesstring[]required
samplingRatenumberrequired

Percentage of matching traces to grade, from 0 to 100. Sampling is by trace ID, so every span of a trace gets the same decision.

Constraints:min: 0max: 100
offlineTargetsoneOf[]required

AI configs and datasets the grader scores in offline evals. A version evaluation of an AI config runs its graders and its dataset's graders. An eval run on a dataset always includes that dataset's graders.

One of 2 shapes:
typestringrequired
Allowed values:ai_config
aiConfigIDstringrequired
isCriticalbooleanrequired
createdTimenumberrequired
Constraints:format: double
lastModifiedTimenumberrequired
Constraints:format: double
paginationobjectrequired

Pagination metadata for checking if there is next page for example.

Show child attributes
itemsPerPagenumberrequired
Constraints:format: double
pageNumbernumberrequired
Constraints:format: double
nextPagestringrequired
Constraints:nullable
previousPagestringrequired
Constraints:nullable
totalItemsnumber
Constraints:format: double
allstring
403· Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.
statusintegerrequired
Allowed values:403
messagestringrequired

Was this helpful?

For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.