Get Unified History
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history', 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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history",
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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history"
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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history")
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_type": "agentic_search",
"items": [
{
"author": "admin",
"change_type": "both",
"config": {
"config_id": "def456",
"is_active": true,
"metadata": {},
"model_name": "gpt-4",
"tools": [
"google_search",
"public_services"
]
},
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin",
"reason": "Melhoria completa"
},
"preview": "System Prompt: Você é EAí, assistente oficial... | Config: Tools: google_search, public_services...",
"prompt": {
"content_preview": "Você é EAí, assistente oficial...",
"is_active": true,
"metadata": {},
"prompt_id": "abc123"
},
"reason": "Melhoria completa do sistema",
"version_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"version_number": 3
}
],
"total_items": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Unified History
Get Unified History
Obtém o histórico unificado de alterações (system prompts e configurações) para um tipo de agente.
Args: agent_type: Tipo do agente limit: Limite de resultados (1-200) db: Sessão do banco de dados
Returns: UnifiedHistoryResponse: Histórico unificado de alterações
GET
/
api
/
v1
/
unified-history
Get Unified History
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history', 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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history",
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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history"
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://services.staging.app.dados.rio/eai-agent/api/v1/unified-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history")
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_type": "agentic_search",
"items": [
{
"author": "admin",
"change_type": "both",
"config": {
"config_id": "def456",
"is_active": true,
"metadata": {},
"model_name": "gpt-4",
"tools": [
"google_search",
"public_services"
]
},
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin",
"reason": "Melhoria completa"
},
"preview": "System Prompt: Você é EAí, assistente oficial... | Config: Tools: google_search, public_services...",
"prompt": {
"content_preview": "Você é EAí, assistente oficial...",
"is_active": true,
"metadata": {},
"prompt_id": "abc123"
},
"reason": "Melhoria completa do sistema",
"version_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"version_number": 3
}
],
"total_items": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Tipo do agente
Limite de resultados
Required range:
1 <= x <= 200⌘I
