Agent Behaviour
curl --request GET \
--url https://{deployment}/v1/agents/{agent_id}/behaviour \
--header 'Authorization: Bearer <token>'import requests
url = "https://{deployment}/v1/agents/{agent_id}/behaviour"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{deployment}/v1/agents/{agent_id}/behaviour', 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://{deployment}/v1/agents/{agent_id}/behaviour",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{deployment}/v1/agents/{agent_id}/behaviour"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{deployment}/v1/agents/{agent_id}/behaviour")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}/v1/agents/{agent_id}/behaviour")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"agent_id": "<string>",
"classification": "<string>",
"baseline": {
"agent_id": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"decisions": 123,
"reportable": true,
"outcomes": {},
"tools": {},
"policy_divergence": 123,
"observed_scope": 123,
"amount_median": 123,
"amount_p95": 123
},
"current": {
"agent_id": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"decisions": 123,
"reportable": true,
"outcomes": {},
"tools": {},
"policy_divergence": 123,
"observed_scope": 123,
"amount_median": 123,
"amount_p95": 123
},
"shifts": [
{
"measure": "<string>",
"key": "<string>",
"detail": "<string>",
"before": 123,
"after": 123,
"delta": 123,
"z": 123
}
],
"explanations": [
{
"kind": "<string>",
"at": "<string>",
"detail": "<string>",
"by": "<string>"
}
],
"what_this_means": "<string>",
"minimum_decisions": 123,
"not_assessed": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Behaviour
Agent Behaviour
This agent’s last window against the one before it.
Who may call it: any role. A workspace API key is refused here: this is an act that belongs to a named person.
GET
/
v1
/
agents
/
{agent_id}
/
behaviour
Agent Behaviour
curl --request GET \
--url https://{deployment}/v1/agents/{agent_id}/behaviour \
--header 'Authorization: Bearer <token>'import requests
url = "https://{deployment}/v1/agents/{agent_id}/behaviour"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{deployment}/v1/agents/{agent_id}/behaviour', 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://{deployment}/v1/agents/{agent_id}/behaviour",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{deployment}/v1/agents/{agent_id}/behaviour"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{deployment}/v1/agents/{agent_id}/behaviour")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}/v1/agents/{agent_id}/behaviour")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"agent_id": "<string>",
"classification": "<string>",
"baseline": {
"agent_id": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"decisions": 123,
"reportable": true,
"outcomes": {},
"tools": {},
"policy_divergence": 123,
"observed_scope": 123,
"amount_median": 123,
"amount_p95": 123
},
"current": {
"agent_id": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"decisions": 123,
"reportable": true,
"outcomes": {},
"tools": {},
"policy_divergence": 123,
"observed_scope": 123,
"amount_median": 123,
"amount_p95": 123
},
"shifts": [
{
"measure": "<string>",
"key": "<string>",
"detail": "<string>",
"before": 123,
"after": 123,
"delta": 123,
"z": 123
}
],
"explanations": [
{
"kind": "<string>",
"at": "<string>",
"detail": "<string>",
"by": "<string>"
}
],
"what_this_means": "<string>",
"minimum_decisions": 123,
"not_assessed": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Response
Successful Response
