Skip to main content

Module render

Module render 

Source
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§

CriticalFactSummary
MemoryContext
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.
MemoryPromptReport
RecallGoal
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 characters a token, as the prompt budget and compaction count).
extract_critical_fact_summary
The pinned identities, from typed facts only: the owner’s name is the value of a canonical name key (user.preferred_name, user.name, owner_name, …), preferring preferred_name over legal name when both exist; the assistant’s is 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.