Expand description
The daemon memory’s prompt block: the pinned critical facts and the memory section (communication preferences, the memory tool guide, query-ranked recall, people privacy rules, the current speaker). Pure rendering over records the recall read.
Structs§
- Critical
Fact Summary - Memory
Context - Extended context for memory-rich system prompts. Query-ranked items are selectively rendered into the volatile tail; the full stores remain available through on-demand memory tools.
- Memory
Prompt Report - Recall
Goal - A goal as recall renders it. Goals belong to the host (its work store); it passes the active ones in.
Functions§
- build_
critical_ facts_ prompt_ block - estimate_
tokens - The token estimate the memory budget is measured with (four bytes a token).
- extract_
critical_ fact_ summary - The pinned identities, from typed facts only: the owner’s name is the
value of a canonical name key (
user.name,owner_name, …), the assistant’s that of an assistant name key. A value is never parsed for a name: “I am the CTO” stored under any key names no one. - render_
memory_ section - The daemon memory block: communication preferences, the memory tool guide, query-ranked recall, people privacy rules and current-speaker context.