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>'
{
  "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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

agent_type
string
default:agentic_search

Tipo do agente

limit
integer
default:50

Limite de resultados

Required range: 1 <= x <= 200

Response

200
application/json

Successful Response

Resposta do histórico unificado.