curl --request GET \
--url https://dev.api.galtea.ai/evaluations \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.api.galtea.ai/evaluations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.api.galtea.ai/evaluations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.api.galtea.ai/evaluations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.api.galtea.ai/evaluations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.galtea.ai/evaluations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.galtea.ai/evaluations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "eval_123",
"metricId": "metric_123",
"sessionId": "session_123",
"productId": "product_123",
"userId": "user_123",
"status": "SUCCESS",
"inferenceResultId": "ir_123",
"score": 0.95,
"reason": "High quality response",
"error": "<string>",
"canRetry": false,
"creditsUsed": 1,
"judgeInputTokens": 4100,
"judgeOutputTokens": 16800,
"judgeReasoningTokens": 12400,
"judgeTraceChars": 5000000,
"judgeTraceBudgetChars": 120000,
"judgeTraceSentChars": 119950,
"conversationSimulatorVersion": "1.0.0",
"humanEvaluatorId": "<string>",
"humanEvaluatorStartedAt": "2023-11-07T05:31:56Z",
"humanScore": 123,
"humanReason": "<string>",
"humanEvaluatorFinishedAt": "2023-11-07T05:31:56Z",
"failedTurns": [
"<string>"
],
"monitorId": "<string>",
"monitorSettledAtTurn": 123,
"monitorSamplingPercentage": 123,
"runId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"evaluatedAt": "2023-11-07T05:31:56Z",
"metricLegacyAt": "2023-11-07T05:31:56Z",
"passed": true,
"metricPassThreshold": 0.5,
"metricDisabledAt": "2023-11-07T05:31:56Z",
"metricExcludedFromAnalyticsAt": "2023-11-07T05:31:56Z",
"metricExcludedByUserId": "<string>",
"testCaseLegacyAt": "2023-11-07T05:31:56Z",
"scoreBreakdown": {
"version": 123,
"model": "<string>",
"type": "yes_no",
"value": 123,
"confidence": 123,
"pYes": 0.5,
"goodAnswer": "yes",
"probabilities": {},
"levelScores": [
123
],
"doesNotApply": true
},
"confidence": 0.9,
"dataRegion": "EU",
"longInput": true,
"createdAt": "2023-11-07T05:31:56Z",
"metricRevisionNumber": 3,
"metricRevisionName": "<string>"
}
]{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}Get evaluations
Get list of evaluations with pagination and filtering. See Evaluations.
curl --request GET \
--url https://dev.api.galtea.ai/evaluations \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.api.galtea.ai/evaluations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.api.galtea.ai/evaluations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.api.galtea.ai/evaluations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.api.galtea.ai/evaluations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.galtea.ai/evaluations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.galtea.ai/evaluations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "eval_123",
"metricId": "metric_123",
"sessionId": "session_123",
"productId": "product_123",
"userId": "user_123",
"status": "SUCCESS",
"inferenceResultId": "ir_123",
"score": 0.95,
"reason": "High quality response",
"error": "<string>",
"canRetry": false,
"creditsUsed": 1,
"judgeInputTokens": 4100,
"judgeOutputTokens": 16800,
"judgeReasoningTokens": 12400,
"judgeTraceChars": 5000000,
"judgeTraceBudgetChars": 120000,
"judgeTraceSentChars": 119950,
"conversationSimulatorVersion": "1.0.0",
"humanEvaluatorId": "<string>",
"humanEvaluatorStartedAt": "2023-11-07T05:31:56Z",
"humanScore": 123,
"humanReason": "<string>",
"humanEvaluatorFinishedAt": "2023-11-07T05:31:56Z",
"failedTurns": [
"<string>"
],
"monitorId": "<string>",
"monitorSettledAtTurn": 123,
"monitorSamplingPercentage": 123,
"runId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"evaluatedAt": "2023-11-07T05:31:56Z",
"metricLegacyAt": "2023-11-07T05:31:56Z",
"passed": true,
"metricPassThreshold": 0.5,
"metricDisabledAt": "2023-11-07T05:31:56Z",
"metricExcludedFromAnalyticsAt": "2023-11-07T05:31:56Z",
"metricExcludedByUserId": "<string>",
"testCaseLegacyAt": "2023-11-07T05:31:56Z",
"scoreBreakdown": {
"version": 123,
"model": "<string>",
"type": "yes_no",
"value": 123,
"confidence": 123,
"pYes": 0.5,
"goodAnswer": "yes",
"probabilities": {},
"levelScores": [
123
],
"doesNotApply": true
},
"confidence": 0.9,
"dataRegion": "EU",
"longInput": true,
"createdAt": "2023-11-07T05:31:56Z",
"metricRevisionNumber": 3,
"metricRevisionName": "<string>"
}
]{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Query Parameters
Filter by evaluation IDs
Filter by product IDs
Filter by session IDs
Filter by trace IDs (for single-turn evaluations)
Filter by metric IDs
Filter by metric group IDs (matches all revisions of a metric)
Filter by monitor IDs (returns only evaluations dispatched by the given monitors)
Filter by run IDs (returns only evaluations launched by the given runs)
Filter by monitor alert IDs (returns only the evaluations of the sessions the alert linked when it opened (its bad sessions, or its sessions with no score), made by the alert's monitor, on the alert's metric family, or on the families a Specification alert measured when it opened). At most 10 IDs.
10Filter by test case IDs
Filter by test IDs (include only). Use an empty string ("") to select evaluations without a test
Omit evaluations linked to the specified test IDs. Use an empty string ("") to omit evaluations without a test
Filter by version IDs
Filter by specification IDs (returns evaluations whose metric is linked to any of the given specifications)
Filter by evaluation statuses
PENDING, PENDING_HUMAN, SUCCESS, FAILED, SKIPPED, CANCELLED, OUTDATED Filter by evaluation types
Filter by metric sources. CLASSIFIER is the deprecated name of DECISION, accepted until 2028-01-17.
Sort instructions (field and direction pairs). Sorting by confidence puts evaluations with no confidence last in both directions. Sorting by agreement orders by the agreement of the judge score with the reported human score, and puts evaluations with no agreement (no judge score or no human score) last in both directions. Sorting by humanScore, humanEvaluatorId or humanEvaluatorFinishedAt orders by the value each evaluation reports: the case annotation on an AI-judged metric, the evaluation itself on a HUMAN_EVALUATION one. Evaluations with no such value come last ascending and first descending, and ties go by id. A caller gets 400 for a sort on a field it sees as null on any product the list reaches (evaluation.readInference).
Filter evaluations that can be retried
Filter evaluations by whether their test case is augmented
Filter by verdict: true returns evaluations whose reported score reaches their metric pass threshold, false the ones below it. Evaluations with no verdict match neither. Any value other than true or false returns 400.
Filter evaluations by the joined Session.isProduction flag. Prefer this over the legacy testIds/excludeTestIds empty-string trick.
Include evaluations whose metric revision is excluded from analytics. Omit or pass false to hide them.
Filter by the human evaluator of a HUMAN_EVALUATION metric, or by the annotator of the case annotation on an AI-judged metric.
Filter by the launching user's id
Filter evaluations created at or after this timestamp (ISO 8601 format)
Filter evaluations created at or before this timestamp (ISO 8601 format)
Keep evaluations whose judge score is greater than this value (0 to 1). Reads the judge's score, not the human review. An evaluation with no judge score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose judge score is greater than or equal to this value (0 to 1). Reads the judge's score, not the human review. An evaluation with no judge score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose judge score is less than this value (0 to 1). Reads the judge's score, not the human review. An evaluation with no judge score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose judge score is less than or equal to this value (0 to 1). Reads the judge's score, not the human review. An evaluation with no judge score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose human review score is greater than this value (0 to 1). An evaluation with no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose human review score is greater than or equal to this value (0 to 1). An evaluation with no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose human review score is less than this value (0 to 1). An evaluation with no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose human review score is less than or equal to this value (0 to 1). An evaluation with no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose agreement with the human review is greater than this value (0 to 1). Agreement is 1 minus the distance between the judge score and the human score, so 1 means the same score. An evaluation with no judge score or no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose agreement with the human review is greater than or equal to this value (0 to 1). Agreement is 1 minus the distance between the judge score and the human score, so 1 means the same score. An evaluation with no judge score or no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose agreement with the human review is less than this value (0 to 1). Agreement is 1 minus the distance between the judge score and the human score, so 1 means the same score. An evaluation with no judge score or no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose agreement with the human review is less than or equal to this value (0 to 1). Agreement is 1 minus the distance between the judge score and the human score, so 1 means the same score. An evaluation with no judge score or no human score never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose decision confidence is greater than this value (0 to 1). An evaluation with no confidence never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose decision confidence is greater than or equal to this value (0 to 1). An evaluation with no confidence never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose decision confidence is less than this value (0 to 1). An evaluation with no confidence never matches. A value outside 0 to 1 returns 400.
Keep evaluations whose decision confidence is less than or equal to this value (0 to 1). An evaluation with no confidence never matches. A value outside 0 to 1 returns 400.
Maximum number of results
0 <= x <= 9007199254740991Number of results to skip
x >= 0Response
Evaluations retrieved successfully
"eval_123"
"metric_123"
"session_123"
Product the evaluated session belongs to
"product_123"
"user_123"
PENDING, PENDING_HUMAN, SUCCESS, FAILED, SKIPPED, CANCELLED, OUTDATED "SUCCESS"
"ir_123"
0.95
"High quality response"
false
1
Tokens the judge received, prompt plus session content
4100
Tokens the judge produced, reasoning included
16800
Reasoning tokens, a subset of judgeOutputTokens
12400
Characters of the traces the judge read, before any shortening. Null when it read no traces
5000000
The judge's trace budget, in characters. Set only when the judge shortened the traces
120000
Characters of traces the judge received. Set only when the judge shortened the traces
119950
"1.0.0"
The human evaluator of a HUMAN_EVALUATION metric. On an AI-judged metric, the annotator of the case annotation, or null when the case has none.
When the human evaluator claimed this HUMAN_EVALUATION evaluation. Always null on an AI-judged metric, because annotating needs no claim.
Human-provided score. On a metric a judge scores, it is the annotation of the case (the session, or this turn), which every revision of the metric shows.
Human-provided reason, from the same annotation as humanScore on a metric a judge scores.
When the human evaluator submitted this HUMAN_EVALUATION evaluation. On an AI-judged metric, when the case annotation was last written.
Conversation turns that failed
ID of the monitor that dispatched this evaluation
Session turn count when the monitor scored it
Sampling percentage in effect when the monitor scored this session
ID of the run that launched this evaluation
Whether the reported score (the reviewer's when set, else the judge's) reaches the metric's pass threshold. Null when the evaluation has no reported score, is outdated or deleted, is a long decision input, or its metric is not loaded.
The pass threshold that decides passed: the metric's, copied onto the evaluation when it was created.
0 <= x <= 1DECISION only: what the decision model answered; null for every other source.
Show child attributes
Show child attributes
DECISION only: how sure the decision model was, from 0 to 1; null for every other source. Values do not compare across question types.
0 <= x <= 10.9
The data region the evaluation was dispatched with: EU keeps its model calls on EU deployments. Null when unknown: an evaluation dispatched before the region was recorded, or never sent to the evaluator.
GLOBAL, EU, null "EU"
True for a DECISION evaluation whose input ran past what the decision model scores reliably (DECISION_RELIABLE_INPUT_TOKENS judge input tokens) and that no reviewer has scored; false for every other evaluation.
The evaluated revision's number within its metric (R1, R2, R3). Null when the metric is not loaded.
3
The evaluated revision's own name, or null when it has none or the metric is not loaded.