Contents

memory_insert

memory_insert · Tools · Knowledge

Insert a memory unit into one of this tool's namespaces, named by namespace_id. Returns the new memory ULID.

Parameters

NameTypeRequiredDescription
half_life_secondsintegerNoDurability half-life for relevancy decay. Shorter for volatile knowledge; longer or null for stable knowledge.
initial_relevancynumberNoInitial memory relevancy from 0.0 to 1.0: signal quality/usefulness when stored. This is not search confidence. Direct observations and authoritative sources should be high; noisy sources or weak inferences lower.
linksobject[]NoLinks stored with the memory. Use relation source to record where it came from. Relations related and supersedes need an existing memory id, so add those with memory_link_add after insert.
namespace_idstringYesULID of the namespace to save the memory in, from memory_namespace_list.
propertiesobjectNoArbitrary key/value properties stored with the memory.
textstringYesThe memory itself. This is what recall searches and returns.
titlestringYesShort label naming what the memory is about, at most 255 characters. Shown wherever the memory is listed; keep it to a few words.