Overview
Semantic memory stores embeddings derived from text so agents can later retrieve related facts by meaning. A query like “recurring billing” can surface memories that never used those exact words.
Memory lifecycle
remember()embeds and stores contentrecall()embeds a query and ranks neighborscompress()optionally summarizes and archives clustersforget()/clear()remove data
Content model
v1 content is text-only. The original content.text is never rewritten by the SDK.
typescripttypescript
content: {
text: "Stripe supports recurring invoices."
}