Skip to main content

vault_fact

Creates a directed edge between two entities with searchable fact text. Use this for immediate, precise fact storage. Unlike record_memory (which distills asynchronously), facts from vault_fact appear in the graph right away. Auto-creates target or source entities when their type is provided. Includes semantic near-duplicate detection to keep the graph clean.

Parameters

Read-only

No. This tool writes to your memory.

Example usage

Edge taxonomy snapping

BaseLayer automatically normalizes similar relation_type values to maintain a clean, consistent graph. For example, "employed_at" and "works_at" may be snapped to the same canonical type. If you intentionally want a distinct relation type and the taxonomy check is flagging it as a near-duplicate, set skip_taxonomy_check to true.

Temporal facts

Use expires_at for facts that are temporary or transient:
  • Durable facts (preferences, relationships, traits): Omit expires_at
  • Transient facts (currently researching X, reading book Y, troubleshooting issue Z): Set expires_at to a reasonable date
Expired facts become “faded” — hidden from entity summaries but still findable via search.
Use valid_at to record when a fact became true, not when it was recorded. This helps build an accurate timeline for entities.