Read an agent run (AS4)
curl --request GET \
--url https://api.eddy.engineer/v1/agents/runs/{id}import requests
url = "https://api.eddy.engineer/v1/agents/runs/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents/runs/{id}', 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/runs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.eddy.engineer/v1/agents/runs/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.eddy.engineer/v1/agents/runs/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/runs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"run": {}
}Meta
Read an agent run (AS4)
The run’s state (queued, running, awaiting_approval, awaiting_client, done, failed, cancelled, over_budget, interrupted), its messages, its steps (each model turn with usage and credits, each tool call started and done with its status and result keys, each approval), usage, the pending calls, the answer or the error. Its person (or an admin) only; TL2: an app’s token reads only the runs its app started (started_by: app:<id>@<rev>, any revision of that app), the rest are not found; a run stored as running that no runner holds reads as interrupted. TL3b: deliverables (absent until there is one): the files the run handed over with run_deliver, each {blob, name, content_type, bytes, note, call} (call is the tool-call id that delivered it).
GET
/
v1
/
agents
/
runs
/
{id}
Read an agent run (AS4)
curl --request GET \
--url https://api.eddy.engineer/v1/agents/runs/{id}import requests
url = "https://api.eddy.engineer/v1/agents/runs/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents/runs/{id}', 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/runs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.eddy.engineer/v1/agents/runs/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.eddy.engineer/v1/agents/runs/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/runs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"run": {}
}