Skip to content
Get started

Memories

List, get, update, and delete content and memories

Forget a memory
client.memories.forget(MemoryForgetParams { containerTag, id, content, reason } body, RequestOptionsoptions?): MemoryForgetResponse { id, forgotten }
DELETE/v4/memories
Update a memory (creates new version)
client.memories.updateMemory(MemoryUpdateMemoryParams { containerTag, newContent, id, 5 more } body, RequestOptionsoptions?): MemoryUpdateMemoryResponse { id, createdAt, forgetAfter, 5 more }
PATCH/v4/memories
ModelsExpand Collapse
MemoryForgetResponse { id, forgotten }

Response after forgetting a memory

id: string

ID of the memory that was forgotten

forgotten: boolean

Indicates the memory was successfully forgotten

MemoryUpdateMemoryResponse { id, createdAt, forgetAfter, 5 more }

Response after updating a memory

id: string

ID of the newly created memory version

createdAt: string

When this memory version was created

formatdatetime
forgetAfter: string | null

When this memory will be auto-forgotten, or null if no expiry

formatdatetime
forgetReason: string | null

Reason for the scheduled forgetting, or null

memory: string

The content of the new memory version

parentMemoryId: string | null

ID of the memory this version updates

rootMemoryId: string | null

ID of the first memory in this version chain

version: number

Version number of this memory entry