Get Evaluator
(v1)GET
Retrieves an evaluator with its full definition.
curl -X GET "https://api.confident-ai.com/v1/evaluators/{evaluatorId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<EVALUATOR-ID>",
"output": "score",
"name": "Correctness",
"algorithm": "GEVAL",
"criteria": "Determine if the `actual output` is correct based on the `expected output`.",
"evaluationSteps": null,
"rubric": null,
"dag": null,
"questions": null,
"promptConfig": null,
"multiTurn": false,
"requiredParameters": [
"actualOutput",
"expectedOutput"
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
evaluatorIdstringRequiredThe unique id of the evaluator.
Response
successbooleanIndicates if the request was successful.
dataobject | objectShow 2 variantsHide 2 variants
Score EvaluatorobjectAn evaluator that scores from 0 to 1.
Show 12 propertiesHide 12 properties
idstringThis is the unique id of the metric.
outputenumWhat the evaluator returns.
Show 1 enum valueHide 1 enum value
score
namestringThis is the name of the metric, unique within your project.
algorithmenum | nullThe algorithm the metric is evaluated with.
GEVALscores against criteria or evaluation steps,DAGwalks a decision graph,JEVALasks a decision model bounded questions,PROMPTsends your own judge prompt to the evaluation model,CODEruns your own code, andDEFAULTis a built-in metric.Show 6 enum valuesHide 6 enum values
DEFAULTDAGGEVALJEVALCODEPROMPT
criteriastring | nullThis is the criteria the metric scores against, or
nullwhen it uses evaluation steps.evaluationStepsarray | nullThese are the steps the metric follows to score, or
nullwhen it uses criteria.rubricarray | nullThese are the score ranges that anchor how the metric scores, or
null.Show 2 propertiesHide 2 properties
scoreRangelist of anyThe inclusive start and end of the score range this outcome describes, each between 0 and 10, with the start no greater than the end.
expectedOutcomestringWhat a response scoring in this range looks like.
dagobject | nullThe decision graph of a
DAGmetric. It is validated on write, and metric references are resolved against the metrics in your project.Show 1 propertyHide 1 property
nodesobjectThe graph's nodes keyed by node id, as serialized by deepeval's
DAGmetric. Judgement nodes list theirchildrenby id; verdict nodes carry averdictand ascore, or point at another metric bymetric_name.
questionslist of object | object | object | nullShow 3 variantsHide 3 variants
Jev Noul QuestionobjectA question the decision model answers
trueorfalse.trueDescriptionandfalseDescriptiontell it what each answer means.Show 5 propertiesHide 5 properties
typeenumMarks this as a
noulquestion.Show 1 enum valueHide 1 enum value
noul
questionstringThe question the decision model answers.
weightnumberHow heavily this question counts towards the metric's score, relative to the metric's other questions.
trueDescriptionstringWhat a
trueanswer to this question means.falseDescriptionstringWhat a
falseanswer to this question means.
- OR
Jev Score QuestionobjectA question the decision model answers by picking one of
levels, which are ordered worst first.Show 4 propertiesHide 4 properties
typeenumMarks this as a
scorequestion.Show 1 enum valueHide 1 enum value
score
questionstringThe question the decision model answers.
weightnumberHow heavily this question counts towards the metric's score, relative to the metric's other questions.
levelslist of stringsBetween 2 and 10 ordered levels, worst first.
- OR
Jev Choice QuestionobjectA question the decision model answers by picking one of
options, each carrying the credit that answer earns.Show 4 propertiesHide 4 properties
typeenumMarks this as a
choicequestion.Show 1 enum valueHide 1 enum value
choice
questionstringThe question the decision model answers.
weightnumberHow heavily this question counts towards the metric's score, relative to the metric's other questions.
optionsobjectEach option maps to a credit between 0 and 1, or
nullto mark the question not applicable when that option is likely.
promptConfigobject | nullThe judge prompt of a
PROMPTmetric, and how its variables are filled. The judge scores from 0 to 10 and the score is normalized to 0 to 1.Show 2 propertiesHide 2 properties
messageslist of objectsThe judge prompt, as one or more messages.
Show 2 propertiesHide 2 properties
roleenumWho the message is from. A system message is only allowed first.
Show 3 enum valuesHide 3 enum values
systemuserassistant
contentstringThe message text. Use
{{name}}to insert a mapped variable.
variablesobjectMaps every
{{name}}used in the messages to the data it is filled with.
multiTurnbooleanThis is
truewhen the metric evaluates conversations rather than single test cases.requiredParameterslist of enumsThe test case fields the metric needs to run.
Show 15 enum valuesHide 15 enum values
inputactualOutputexpectedOutputcontextexpectedToolscontentrolescenarioexpectedOutcomeaudioturnstoolsCalledretrievalContextmetadatatags
- OR
Label EvaluatorobjectAn evaluator that tags with one of its labels.
Show 27 propertiesHide 27 properties
idstringThe id of the classifier, generated by Confident AI.
outputenumWhat the evaluator returns.
Show 1 enum valueHide 1 enum value
label
namestringThe name of the classifier.
descriptionstring | nullWhat this classifier is for, or
nullwhen it has no description.traceDescriptionstring | nullWhat this classifier is for when it classifies traces, replacing
descriptionthere.nullusesdescription.spanDescriptionstring | nullWhat this classifier is for when it classifies spans, replacing
descriptionthere.nullusesdescription.threadDescriptionstring | nullWhat this classifier is for when it classifies threads, replacing
descriptionthere.nullusesdescription.enabledbooleanWhether the classifier runs at all.
autoClassifybooleanWhether incoming items are classified automatically as they arrive.
includeAudiobooleanWhether the item's call recording and any audio in its inputs and outputs are sent to the classifier alongside the text.
evaluationModelProviderenum | nullThis is the provider of the model.
Show 26 enum valuesHide 26 enum values
OPEN_AICUSTOMCONFIDENT_AIBEDROCKANTHROPICGEMINIX_AIDEEPSEEKMOONSHOT_AIVERTEX_AIAZUREMISTRALPERPLEXITYOPEN_ROUTERPORTKEYLITE_LLMTRUE_FOUNDRYHUGGING_FACETYPE_SAFEFALZ_AIDEEPGRAMASSEMBLY_AIELEVEN_LABSCARTESIAHUME
evaluationModelNamestring | nullThe name of the model this classifier runs with, or
nullwhen the project's platform model is used.evaluationModelCredentialIdstring | nullFor
BEDROCKandAZURE, the id of the stored credential this classifier runs with, ornullwhen it uses the provider's default credential.decisionModelProviderenum | nullThis is the provider of the model.
Show 26 enum valuesHide 26 enum values
OPEN_AICUSTOMCONFIDENT_AIBEDROCKANTHROPICGEMINIX_AIDEEPSEEKMOONSHOT_AIVERTEX_AIAZUREMISTRALPERPLEXITYOPEN_ROUTERPORTKEYLITE_LLMTRUE_FOUNDRYHUGGING_FACETYPE_SAFEFALZ_AIDEEPGRAMASSEMBLY_AIELEVEN_LABSCARTESIAHUME
decisionModelNamestring | nullThe name of the decision model this classifier picks labels with, or
nullwhen the project's default decision model is used.evalModeenum | nullHow a classifier picks a label:
LLMhas the evaluation model classify, andDECISIONhas the decision model pick from the labels.Show 2 enum valuesHide 2 enum values
LLMDECISION
audioModelProviderenum | nullThis is the provider of the model.
Show 26 enum valuesHide 26 enum values
OPEN_AICUSTOMCONFIDENT_AIBEDROCKANTHROPICGEMINIX_AIDEEPSEEKMOONSHOT_AIVERTEX_AIAZUREMISTRALPERPLEXITYOPEN_ROUTERPORTKEYLITE_LLMTRUE_FOUNDRYHUGGING_FACETYPE_SAFEFALZ_AIDEEPGRAMASSEMBLY_AIELEVEN_LABSCARTESIAHUME
audioModelNamestring | nullThe name of the model that listens to the audio, or
nullwhen the default listens.audioModelCredentialIdstring | nullThe id of the stored credential the audio model runs with, or
nullwhen it uses the provider's default credential.suggestModelProviderenum | nullThis is the provider of the model.
Show 26 enum valuesHide 26 enum values
OPEN_AICUSTOMCONFIDENT_AIBEDROCKANTHROPICGEMINIX_AIDEEPSEEKMOONSHOT_AIVERTEX_AIAZUREMISTRALPERPLEXITYOPEN_ROUTERPORTKEYLITE_LLMTRUE_FOUNDRYHUGGING_FACETYPE_SAFEFALZ_AIDEEPGRAMASSEMBLY_AIELEVEN_LABSCARTESIAHUME
suggestModelNamestring | nullThe name of the model that suggests new labels, or
nullwhen the evaluation model suggests.suggestModelCredentialIdstring | nullThe id of the stored credential the suggest model runs with, or
nullwhen it uses the provider's default credential.issueThresholdnumber | nullThe confidence an issue classifier's label needs to be kept, or
nullwhen the default applies.dataModelenum | nullA kind of production item:
TRACEis an individual trace,SPANa span together with the spans under it,THREADa whole conversation.Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumHow the groups combine:
ANDmatches a record only when every group matches it, andORmatches it when any one group does.Show 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsThe groups of filters to apply, each combining its own filters with its own operator.
Show 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsShow 4 propertiesHide 4 properties
categoryenumShow 128 enum valuesHide 128 enum values
User IdCustomer IdCustomer NameThread IdTrace UUIDTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UUIDNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusCalled toolHanded off toHanded off byNearest parent of typeAnywhere underTop levelNameModelProviderIntegrationLevelTemperatureTop-PMax tokensReasoning effortOutput typeStreamingFinish reasonTime to first tokenCache read tokensCache write tokensReasoning tokensImage tokensInput argumentEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusAI connectionVoice connectionOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameAnnotation DateAnnotation RatingAnnotation ThumbsAnnotation ChoiceAnnotation Yes / NoAnnotation TextMetric ScoreMetric StatusMetric VersionNameMetadataClassifierClassifier VersionMetricMetric NameTrace CountCall DurationCall AudioTest Case IDRequested review fromAssigned toQueue Item StatusAdded atTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagAnnotation QueueVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsFailure ModeRecommendedSource QueueSub-mode NameSub-mode RecommendedSub-mode CertaintyEvalEval TypeExpected LabelActual LabelEval ScoreNoteUserStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumvaluestring | number | list of stringsThe value to compare against. Omitted only for
Is emptyandIs not empty, which take none.keystring
autoGenerationConfigobject | nullHow many recent traces, spans or threads a generation run samples and classifies.
Show 2 propertiesHide 2 properties
dataModelenumA kind of production item:
TRACEis an individual trace,SPANa span together with the spans under it,THREADa whole conversation.Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
sampleSizeintegerHow many traces, spans or threads to sample. Defaults to 200.
labelslist of objectsThe labels this classifier can apply.
Show 7 propertiesHide 7 properties
idstringThe id of the label, generated by Confident AI.
namestringThe name of the label, unique within the classifier.
descriptionstringWhen this label applies. This is the instruction the classifying model reads, so it states the condition rather than restating the name.
enabledbooleanWhether the label can be applied.
statusenumACTIVElabels are in use;RECOMMENDEDones are generated suggestions awaiting review.Show 2 enum valuesHide 2 enum values
RECOMMENDEDACTIVE
polarityenumWhether more of a signal is good, bad, or neither, for trend reporting.
Show 3 enum valuesHide 3 enum values
HIGHER_IS_BETTERLOWER_IS_BETTERNEUTRAL
dataModelslist of enumsThe data models this label can be applied on. A classifier running on a data model only offers the labels that list it.
Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
deprecatedbooleanIndicates if this endpoint is deprecated.