GET
/
v1
/
agents
/
{agent_id}
/
context

Authorizations

Authorization
string
headerrequired

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

Path Parameters

agent_id
string
required

Response

200 - application/json

Overview of the context window, including the number of messages and tokens.

context_window_size_max
integer
required

The maximum amount of tokens the context window can hold.

context_window_size_current
integer
required

The current number of tokens in the context window.

num_messages
integer
required

The number of messages in the context window.

num_archival_memory
integer
required

The number of messages in the archival memory.

num_recall_memory
integer
required

The number of messages in the recall memory.

num_tokens_external_memory_summary
integer
required

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

num_tokens_system
integer
required

The number of tokens in the system prompt.

system_prompt
string
required

The content of the system prompt.

num_tokens_core_memory
integer
required

The number of tokens in the core memory.

core_memory
string
required

The content of the core memory.

num_tokens_summary_memory
integer
required

The number of tokens in the summary memory.

num_tokens_functions_definitions
integer
required

The number of tokens in the functions definitions.

functions_definitions
object[] | null
required

The content of the functions definitions.

num_tokens_messages
integer
required

The number of tokens in the messages list.

messages
object[]
required

The messages in the context window.

summary_memory
string | null

The content of the summary memory.