Retrieve Agent 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

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

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 }}> <metadata>read_only="{{ block.read_only}}" chars_current="{{ block.value|length }}" chars_limit="{{ block.limit }}"</metadata><value>{{ block.value }} </value></{{ block.label }}> {% if not loop.last %} {% endif %}{% endfor %}

Jinja2 template for compiling memory blocks into a prompt string