The calls that wait for you (AS19)
curl --request GET \
--url https://api.eddy.engineer/v1/agents.approvalsimport requests
url = "https://api.eddy.engineer/v1/agents.approvals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents.approvals', 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.approvals",
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.approvals"
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.approvals")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.approvals")
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{
"approvals": [
{
"agent": "<string>",
"asked_at_unix_ms": 123,
"by": "<string>",
"call": "<string>",
"definition": "<string>",
"effects": [
"<string>"
],
"input": {},
"input_chars": 123,
"owner": "<string>",
"run": "<string>",
"tool": "<string>",
"turn": 123
}
],
"count": 123
}Meta
The calls that wait for you (AS19)
Every call of the caller’s agent runs that waits for their decision (its run, tool, effects and input), newest first: the runs this engine holds and the runs the caller’s unread agent_approval notices name. Decide with POST /v1/agents/runs/{id}/approve (a note rides the run and the log; a denied call goes back to the model as an is_error tool result). Slice 2: scope=org (an org admin) lists every call waiting across the org — the runs this engine holds and the org ledger’s open runs read back from the store — each with its person (owner, by); such a call may be denied for its person with POST /v1/agents.approvals.deny.
GET
/
v1
/
agents.approvals
The calls that wait for you (AS19)
curl --request GET \
--url https://api.eddy.engineer/v1/agents.approvalsimport requests
url = "https://api.eddy.engineer/v1/agents.approvals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents.approvals', 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.approvals",
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.approvals"
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.approvals")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.approvals")
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{
"approvals": [
{
"agent": "<string>",
"asked_at_unix_ms": 123,
"by": "<string>",
"call": "<string>",
"definition": "<string>",
"effects": [
"<string>"
],
"input": {},
"input_chars": 123,
"owner": "<string>",
"run": "<string>",
"tool": "<string>",
"turn": 123
}
],
"count": 123
}