curl --request GET \
--url https://api.eddy.engineer/v1/agents.auditimport requests
url = "https://api.eddy.engineer/v1/agents.audit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents.audit', 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.audit",
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.audit"
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.audit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.audit")
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{
"agent": "<string>",
"events": [
{
"action": "<string>",
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"call": "<string>",
"credits": 123,
"kind": "run_started",
"method": "<string>",
"note": "<string>",
"owner": "<string>",
"path": "<string>",
"principal": "<string>",
"run": "<string>",
"state": "<string>",
"status": 123,
"tool": "<string>"
}
],
"org": "<string>",
"runs": [
{
"agent": "<string>",
"by": "<string>",
"cap_credits": 123,
"credits": 123,
"ended_at_unix_ms": 123,
"error": "<string>",
"kind": "definition",
"name": "<string>",
"owner": "<string>",
"run": "<string>",
"started_at_unix_ms": 123,
"state": "<string>"
}
],
"scope": "org",
"totals": {
"approved": 123,
"asked": 123,
"calls": 123,
"credits": 123,
"denied": 123,
"events": 123,
"refused_calls": 123,
"runs": 123
},
"trail_complete": true,
"trail_scanned": 123,
"user": "<string>"
}What agents did: the audit (AS19)
Per agent, per person or per org: the runs (who started them, when, how each ended, what it spent and what the org held it to; never their inputs or answers), every call their delegated principals made (AS2’s trail: method, path, status), each approval asked and decided with its note, and every control action (stop, pause, ceilings, defaults, a day’s ceiling reached), newest first. The org’s view is an org admin’s; a person’s is theirs or an org admin’s; an agent’s is its owner’s and an org admin’s (anyone else sees their own runs of it). Slice 2: kind narrows the events to runs, calls, approvals or control actions (comma-separated); since keeps what happened at or after a time; format=csv answers the same events as CSV (one row an event, a cell a spreadsheet would read as a formula quoted as text) for export; user takes an email as well as a uid; an agent’s view also reads its run index (agent-run/index/<agent>), so its runs outlive the engine and the org ledger’s 500.
curl --request GET \
--url https://api.eddy.engineer/v1/agents.auditimport requests
url = "https://api.eddy.engineer/v1/agents.audit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents.audit', 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.audit",
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.audit"
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.audit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.audit")
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{
"agent": "<string>",
"events": [
{
"action": "<string>",
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"call": "<string>",
"credits": 123,
"kind": "run_started",
"method": "<string>",
"note": "<string>",
"owner": "<string>",
"path": "<string>",
"principal": "<string>",
"run": "<string>",
"state": "<string>",
"status": 123,
"tool": "<string>"
}
],
"org": "<string>",
"runs": [
{
"agent": "<string>",
"by": "<string>",
"cap_credits": 123,
"credits": 123,
"ended_at_unix_ms": 123,
"error": "<string>",
"kind": "definition",
"name": "<string>",
"owner": "<string>",
"run": "<string>",
"started_at_unix_ms": 123,
"state": "<string>"
}
],
"scope": "org",
"totals": {
"approved": 123,
"asked": 123,
"calls": 123,
"credits": 123,
"denied": 123,
"events": 123,
"refused_calls": 123,
"runs": 123
},
"trail_complete": true,
"trail_scanned": 123,
"user": "<string>"
}