Skip to main content

native_prompt_block

Function native_prompt_block 

Source
pub fn native_prompt_block(
    enabled: bool,
    memory_path: &Path,
    workspace: &Path,
) -> Option<String>
Expand description

Compose the user-memory prompt block for the native store resolved from a memory path. Single seam used by the engine, the TUI system-prompt builder, and the context report so all three describe the same bytes. Returns None when memory is disabled, the path is not a native memory/global/MEMORY.md layout, or there is nothing worth injecting. The block is a codewhale.memory.context.v1 envelope: memory entries are untrusted evidence, never instructions.