Get Agent Context Window

GET
/v1/agents/:agent_id/context

Retrieve the context window of a specific agent.

Path parameters

agent_idstringRequired

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).

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_memorystringOptional

The content of the summary memory.

functions_definitionslist of objectsOptional

The content of the functions definitions.

Errors