Skip to main content

memory_props

Function memory_props 

Source
pub fn memory_props(
    content: &str,
    extra: Option<&Value>,
) -> Result<Props, String>
Expand description

Builds a new Memory node’s props: caller extra is validated (the system-maintained keys below are rejected, and content collides via merge_required_prop), then the whitespace-normalized content hash is stamped. The ONE constructor for every front end’s new-memory write (plan_remember, MCP create_memory, CLI create-memory) — so the reserved set cannot drift between surfaces.