Read an agent definition (AS17)
curl --request GET \
--url https://api.eddy.engineer/v1/agents/{id}import requests
url = "https://api.eddy.engineer/v1/agents/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents/{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/{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/{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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{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{
"agent": {},
"model": {
"default": "<string>",
"effort": "<string>",
"gateway": "<string>",
"id": "<string>"
},
"policy": {
"defaults": {},
"effects": [
{
"agent": "<string>",
"effect": "<string>",
"effective": "allow",
"engine": "<string>",
"locked": true,
"org": "<string>",
"source": "agent"
}
],
"lock": true
},
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"reserved": [
{
"note": "<string>",
"path": "<string>",
"unit": "<string>"
}
],
"resolution": {
"direct": [
"<string>"
],
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"scopes": [
"<string>"
],
"tools": [
{
"direct": true,
"effects": [
"<string>"
],
"family": "<string>",
"kind": "tool",
"name": "<string>",
"selector": 123
}
],
"via_catalog": true,
"withheld": [
{
"missing": [
"<string>"
],
"name": "<string>",
"reason": "<string>",
"selector": 123
}
]
},
"shape": true,
"valid": true
}Meta
Read an agent definition (AS17)
The agent’s project (its ss.agent/1 document as agent.doc) with the validation report: its problems, its reserved sections, and its tool selectors resolved within the caller’s scopes (what a run started by the caller would carry).
GET
/
v1
/
agents
/
{id}
Read an agent definition (AS17)
curl --request GET \
--url https://api.eddy.engineer/v1/agents/{id}import requests
url = "https://api.eddy.engineer/v1/agents/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/agents/{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/{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/{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/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{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{
"agent": {},
"model": {
"default": "<string>",
"effort": "<string>",
"gateway": "<string>",
"id": "<string>"
},
"policy": {
"defaults": {},
"effects": [
{
"agent": "<string>",
"effect": "<string>",
"effective": "allow",
"engine": "<string>",
"locked": true,
"org": "<string>",
"source": "agent"
}
],
"lock": true
},
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"reserved": [
{
"note": "<string>",
"path": "<string>",
"unit": "<string>"
}
],
"resolution": {
"direct": [
"<string>"
],
"problems": [
{
"message": "<string>",
"path": "<string>"
}
],
"scopes": [
"<string>"
],
"tools": [
{
"direct": true,
"effects": [
"<string>"
],
"family": "<string>",
"kind": "tool",
"name": "<string>",
"selector": 123
}
],
"via_catalog": true,
"withheld": [
{
"missing": [
"<string>"
],
"name": "<string>",
"reason": "<string>",
"selector": 123
}
]
},
"shape": true,
"valid": true
}Response
The agent and its report