Retrieve Agent Context Window

Retrieve the context window of a specific agent.

Path parameters

agent_idstringRequired

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Response

Successful Response
context_window_size_maxinteger
The maximum amount of tokens the context window can hold.
context_window_size_currentinteger
The current number of tokens in the context window.
num_messagesinteger
The number of messages in the context window.
num_archival_memoryinteger
The number of messages in the archival memory.
num_recall_memoryinteger
The number of messages in the recall memory.
num_tokens_external_memory_summaryinteger

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

external_memory_summarystring

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

num_tokens_systeminteger
The number of tokens in the system prompt.
system_promptstring
The content of the system prompt.
num_tokens_core_memoryinteger
The number of tokens in the core memory.
core_memorystring
The content of the core memory.
num_tokens_summary_memoryinteger
The number of tokens in the summary memory.
num_tokens_functions_definitionsinteger
The number of tokens in the functions definitions.
num_tokens_messagesinteger
The number of tokens in the messages list.
messageslist of objects
The messages in the context window.
summary_memorystring or null
The content of the summary memory.
functions_definitionslist of objects or null
The content of the functions definitions.