POST
/
api
/
v1
/
letta
/
test-message-raw
Test Send Message Raw
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent/api/v1/letta/test-message-raw \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "agt_123456789",
  "message": "Olá, como posso ajudar?",
  "name": "Usuário"
}'
{
  "assistant_messages": [
    {
      "content": "Olá! Como posso ajudar?",
      "role": "assistant"
    }
  ],
  "letta_usage_statistics": [
    {
      "tokens": {
        "completion": 8,
        "prompt": 10
      }
    }
  ],
  "ordered": [
    {
      "message": {
        "content": "Olá",
        "role": "user"
      },
      "type": "user_message"
    },
    {
      "message": {
        "content": "Olá! Como posso ajudar?",
        "role": "assistant"
      },
      "type": "assistant_message"
    }
  ],
  "reasoning_messages": [],
  "system_messages": [],
  "tool_call_messages": [],
  "tool_return_messages": [],
  "user_messages": [
    {
      "content": "Olá",
      "role": "user"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Schema para requisição de envio de mensagem para o agente Letta.

Response

200
application/json

Successful Response

Schema para resposta bruta do agente Letta, contendo todos os tipos de mensagens.