Get System Prompt History
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/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/system-prompt/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/system-prompt/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/system-prompt/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/system-prompt/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/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",
"prompts": [
{
"content": "Fundamental Identity: You are EAí, the official...",
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin",
"reason": "Melhoria na resposta de emergência"
},
"prompt_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"updated_at": "2023-05-16T14:30:15.123456",
"version": 3
},
{
"content": "Fundamental Identity: You are EAí, the official...",
"created_at": "2023-05-10T09:15:30.123456",
"is_active": false,
"metadata": {
"author": "admin",
"reason": "Ajuste inicial"
},
"prompt_id": "a1b2c3d4-1234-5678-9abc-def0123456789",
"updated_at": "2023-05-10T09:15:30.123456",
"version": 2
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}System Prompt
Get System Prompt History
Obtém o histórico de versões de system prompts para um tipo de agente.
Args: agent_type: Tipo do agente limit: Limite de resultados db: Sessão do banco de dados
Returns: SystemPromptHistoryResponse: Histórico de versões
GET
/
api
/
v1
/
system-prompt
/
history
Get System Prompt History
curl --request GET \
--url https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/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/system-prompt/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/system-prompt/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/system-prompt/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/system-prompt/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt/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",
"prompts": [
{
"content": "Fundamental Identity: You are EAí, the official...",
"created_at": "2023-05-16T14:30:15.123456",
"is_active": true,
"metadata": {
"author": "admin",
"reason": "Melhoria na resposta de emergência"
},
"prompt_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"updated_at": "2023-05-16T14:30:15.123456",
"version": 3
},
{
"content": "Fundamental Identity: You are EAí, the official...",
"created_at": "2023-05-10T09:15:30.123456",
"is_active": false,
"metadata": {
"author": "admin",
"reason": "Ajuste inicial"
},
"prompt_id": "a1b2c3d4-1234-5678-9abc-def0123456789",
"updated_at": "2023-05-10T09:15:30.123456",
"version": 2
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Limite de resultados
Required range:
x >= 1⌘I
