curl --request POST \
--url https://api.eddy.engineer/v1/agents/{id}/evals.run \
--header 'Content-Type: application/json' \
--data '
{
"cases": [
"<string>"
],
"expected_version": 123
}
'import requests
url = "https://api.eddy.engineer/v1/agents/{id}/evals.run"
payload = {
"cases": ["<string>"],
"expected_version": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({cases: ['<string>'], expected_version: 123})
};
fetch('https://api.eddy.engineer/v1/agents/{id}/evals.run', 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.eddy.engineer/v1/agents/{id}/evals.run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cases' => [
'<string>'
],
'expected_version' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/agents/{id}/evals.run"
payload := strings.NewReader("{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/agents/{id}/evals.run")
.header("Content-Type", "application/json")
.body("{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{id}/evals.run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}"
response = http.request(request)
puts response.read_body{
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"cases": 123,
"checks": 123,
"checks_passed": 123,
"credits": 123,
"live": true,
"note": "<string>",
"passed": 123,
"results": [
{
"case": "<string>",
"checks": [
{
"check": "state",
"detail": "<string>",
"ok": true
}
],
"credits": 123,
"error": "<string>",
"name": "<string>",
"passed": true,
"run": "<string>",
"turns": 123
}
],
"schema": "ss.agent-evals/1",
"score": 123,
"version": 123
}Replay an agent against its eval cases (AS20)
Each case (all, or those named) is a run of the saved definition as the caller — its token, its policy, the org’s controls, its credit hold, like POST /v1/agents//runs — whose model is the case’s recording through ScriptedLlm: no model is called and none is billed, while its tools run on the engine for real, so an engine change fails a check (a value that moved, a grounded number that no longer holds, a replay that diverged). A call that waits for a person is approved when the case says approve, else the run is stopped there. Each case is scored (end state, tools called and not called, values within tolerance, the answer, grounding, credits, turns, approvals); the suite’s score is the cases that pass; it is kept (GET …/evals.results). Live evals are AS20.b (the owner’s spend decision): a case with no recording fails, saying so.
curl --request POST \
--url https://api.eddy.engineer/v1/agents/{id}/evals.run \
--header 'Content-Type: application/json' \
--data '
{
"cases": [
"<string>"
],
"expected_version": 123
}
'import requests
url = "https://api.eddy.engineer/v1/agents/{id}/evals.run"
payload = {
"cases": ["<string>"],
"expected_version": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({cases: ['<string>'], expected_version: 123})
};
fetch('https://api.eddy.engineer/v1/agents/{id}/evals.run', 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.eddy.engineer/v1/agents/{id}/evals.run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cases' => [
'<string>'
],
'expected_version' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/agents/{id}/evals.run"
payload := strings.NewReader("{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/agents/{id}/evals.run")
.header("Content-Type", "application/json")
.body("{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{id}/evals.run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"cases\": [\n \"<string>\"\n ],\n \"expected_version\": 123\n}"
response = http.request(request)
puts response.read_body{
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"cases": 123,
"checks": 123,
"checks_passed": 123,
"credits": 123,
"live": true,
"note": "<string>",
"passed": 123,
"results": [
{
"case": "<string>",
"checks": [
{
"check": "state",
"detail": "<string>",
"ok": true
}
],
"credits": 123,
"error": "<string>",
"name": "<string>",
"passed": true,
"run": "<string>",
"turns": 123
}
],
"schema": "ss.agent-evals/1",
"score": 123,
"version": 123
}Response
The suite