Remove Agent Memory Block

DELETE
/v1/agents/:agent_id/memory/block/:block_label

Removes a memory block from an agent by unlnking it. If the block is not linked to any other agent, it is deleted.

Path parameters

agent_idstringRequired
block_labelstringRequired

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