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

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
limit
integer
default:10

Limite de resultados

Required range: x >= 1

Response

200
application/json

Successful Response

Schema para resposta da obtenção do histórico de system prompts.