Retrieve Summary
curl --request GET \
--url https://api.lightsage.com/v2/eval-results/summary \
--header 'X-Lightsage-Api-Key: <api-key>'import requests
url = "https://api.lightsage.com/v2/eval-results/summary"
headers = {"X-Lightsage-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Lightsage-Api-Key': '<api-key>'}};
fetch('https://api.lightsage.com/v2/eval-results/summary', 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://api.lightsage.com/v2/eval-results/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Lightsage-Api-Key: <api-key>"
],
]);
$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://api.lightsage.com/v2/eval-results/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Lightsage-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lightsage.com/v2/eval-results/summary")
.header("X-Lightsage-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lightsage.com/v2/eval-results/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Lightsage-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"range": {
"start": "<string>",
"end": "<string>",
"days": 123,
"previous_start": "<string>",
"previous_end": "<string>"
},
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"agents": [
{
"agent": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
}
}
],
"evals": [
{
"eval_id": "<string>",
"eval_name": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"pass_rate_change": 123,
"agents": [
{
"agent": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous_pass_rate": 123
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Evals
Retrieve Summary
Start here for any question about how evals are doing. Returns, in one call, totals for the last days days and the same number of days before: for every eval and every agent (harness and model), the attempts, pass rate, average agent time and average tool calls, and how the pass rate changed. Answers which evals got worse and which agents fail most without retrieving runs one at a time. To see the individual results behind these figures and the judge’s reasons, use GET /v2/eval-results.
GET
/
v2
/
eval-results
/
summary
Retrieve Summary
curl --request GET \
--url https://api.lightsage.com/v2/eval-results/summary \
--header 'X-Lightsage-Api-Key: <api-key>'import requests
url = "https://api.lightsage.com/v2/eval-results/summary"
headers = {"X-Lightsage-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Lightsage-Api-Key': '<api-key>'}};
fetch('https://api.lightsage.com/v2/eval-results/summary', 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://api.lightsage.com/v2/eval-results/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Lightsage-Api-Key: <api-key>"
],
]);
$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://api.lightsage.com/v2/eval-results/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Lightsage-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lightsage.com/v2/eval-results/summary")
.header("X-Lightsage-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lightsage.com/v2/eval-results/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Lightsage-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"range": {
"start": "<string>",
"end": "<string>",
"days": 123,
"previous_start": "<string>",
"previous_end": "<string>"
},
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"agents": [
{
"agent": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
}
}
],
"evals": [
{
"eval_id": "<string>",
"eval_name": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"pass_rate_change": 123,
"agents": [
{
"agent": "<string>",
"results": {
"runs": 123,
"graded": 123,
"passed": 123,
"errored": 123,
"pass_rate": 123,
"time_ms_per_run": 123,
"tool_calls_per_run": 123
},
"previous_pass_rate": 123
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Response
Successful Response