PATCH
/
v1
/
blocks
/
{block_id}
/
detach

Headers

user_id
string | null

Path Parameters

block_id
string
required

Query Parameters

agent_id
string
required

The unique identifier of the agent to attach the source to.

Response

200 - application/json

Represents the in-context memory (i.e. Core memory) of the agent. This includes both the Block objects (labelled by sections), as well as tools to edit the blocks.

blocks
object[]
required

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

prompt_template
string
default: {% 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