Skip to main content

Module prompt_compiler

Module prompt_compiler 

Source
Expand description

PSP-7 §5: Typed prompt compiler.

Maps (PromptIntent, PromptEvidence) → CompiledPrompt with full provenance tracking. This module is the single entry-point for all prompt assembly; callers build a PromptEvidence and select a PromptIntent, and the compiler returns a CompiledPrompt with the final text and provenance.

Functions§

compile
Compile a prompt from a typed intent and gathered evidence.