Expand description
Compiled prompt programs and their digests (PSP-10 system 23).
Digests use the length-prefixed canonical encoding under the
perspt-prompt-v1 domain tag. Serde output is never treated as
canonical. Identical inputs — dialect id and version, ordered resolved
sections with ids, versions, and hashes, inclusion outcomes, canonical
variable values (already baked into rendered bytes), token budget —
yield identical rendered bytes, an identical dropped-section set, and
identical digests.
Structs§
- Compiled
Prompt Invocation - The two programs of one model call, hashed together in order.
- Compiled
Prompt Message - One transport-facing message compiled from sections.
- Compiled
Prompt Program - One compiled program: the platform envelope or the domain stage.
Functions§
- tool_
surface_ hash - The content hash of the exact tool surface offered on one model call: name, description, and schema of every spec, in offered order. Enters the compiled program digest, so a discovery-activated tool visibly changes the program identity.