Get Version Details
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number} \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number}"
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/version/{version_number}', 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/version/{version_number}",
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/version/{version_number}"
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/version/{version_number}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number}")
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{
"author": "admin",
"change_type": "both",
"config": {
"config_id": "def456",
"created_at": "2023-05-16T14:30:15.123456",
"embedding_name": "text-embedding-ada-002",
"is_active": true,
"memory_blocks": [
{
"label": "core_memory",
"value": "..."
}
],
"metadata": {
"author": "admin"
},
"model_name": "gpt-4",
"tools": [
"google_search",
"public_services"
]
},
"created_at": "2023-05-16T14:30:15.123456",
"description": "Atualização que incluiu melhorias no prompt e novas ferramentas",
"metadata": {
"author": "admin",
"reason": "Melhoria completa"
},
"prompt": {
"content": "Você é EAí, o assistente oficial da Prefeitura do Rio de Janeiro...",
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin"
},
"prompt_id": "abc123"
},
"reason": "Melhoria completa do sistema",
"version_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"version_number": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Unified History
Get Version Details
Obtém detalhes completos de uma versão específica do histórico unificado.
Args: version_number: Número da versão agent_type: Tipo do agente db: Sessão do banco de dados
Returns: UnifiedVersionDetailsResponse: Detalhes completos da versão
GET
/
api
/
v1
/
unified-history
/
version
/
{version_number}
Get Version Details
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number} \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number}"
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/version/{version_number}', 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/version/{version_number}",
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/version/{version_number}"
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/version/{version_number}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/unified-history/version/{version_number}")
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{
"author": "admin",
"change_type": "both",
"config": {
"config_id": "def456",
"created_at": "2023-05-16T14:30:15.123456",
"embedding_name": "text-embedding-ada-002",
"is_active": true,
"memory_blocks": [
{
"label": "core_memory",
"value": "..."
}
],
"metadata": {
"author": "admin"
},
"model_name": "gpt-4",
"tools": [
"google_search",
"public_services"
]
},
"created_at": "2023-05-16T14:30:15.123456",
"description": "Atualização que incluiu melhorias no prompt e novas ferramentas",
"metadata": {
"author": "admin",
"reason": "Melhoria completa"
},
"prompt": {
"content": "Você é EAí, o assistente oficial da Prefeitura do Rio de Janeiro...",
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin"
},
"prompt_id": "abc123"
},
"reason": "Melhoria completa do sistema",
"version_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"version_number": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Tipo do agente
Response
Successful Response
Detalhes completos de uma versão específica.
ID único da versão
Número sequencial da versão
Tipo da alteração
Data de criação
Autor da alteração
Motivo da alteração
Descrição detalhada
Metadados da versão
Dados completos do prompt
Show child attributes
Show child attributes
Dados completos da configuração
Show child attributes
Show child attributes
⌘I
