Get Agent Memory

GET
/v1/agents/:agent_id/memory

Retrieve the memory state of a specific agent. This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.

Path parameters

agent_idstringRequired

Response

Successful Response

blockslist of objects

Memory blocks contained in the agent’s in-context memory

prompt_templatestringOptionalDefaults to {% for block in blocks %}<{{ block.label }} characters="{{ block.value|length }}/{{ block.limit }}"> {{ block.value }} </{{ block.label }}>{% if not loop.last %} {% endif %}{% endfor %}

Jinja2 template for compiling memory blocks into a prompt string

Errors