v36

latestOpenAPI 3.1.0raw.githubusercontent.com2025-10-091882241.2 MB
agents

Retrieve Agent Context Window

Retrieve the context window of a specific agent.

get/v1/agents/{agent_id}/context

Path parameters

agent_idstring required

Response

Successful Response

context_window_size_maxinteger required

The maximum amount of tokens the context window can hold.

context_window_size_currentinteger required

The current number of tokens in the context window.

num_messagesinteger required

The number of messages in the context window.

num_archival_memoryinteger required

The number of messages in the archival memory.

num_recall_memoryinteger required

The number of messages in the recall memory.

num_tokens_external_memory_summaryinteger required

The number of tokens in the external memory summary (archival + recall metadata).

external_memory_summarystring required

The metadata summary of the external memory sources (archival + recall metadata).

num_tokens_systeminteger required

The number of tokens in the system prompt.

system_promptstring required

The content of the system prompt.

num_tokens_core_memoryinteger required

The number of tokens in the core memory.

core_memorystring required

The content of the core memory.

num_tokens_summary_memoryinteger required

The number of tokens in the summary memory.

summary_memorystring nullable

The content of the summary memory.

num_tokens_functions_definitionsinteger required

The number of tokens in the functions definitions.

num_tokens_messagesinteger required

The number of tokens in the messages list.

Example response

{
  "messages": [
    {
      "id": "message-123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}