Documentation
¶
Overview ¶
Package prompt compiles prompt blocks into deterministic LLM input.
Prompt blocks are model-facing instructions. They are not tools, memory, policy, or orchestration. The default compiler sorts ModeCacheable blocks before ModeDynamic blocks, then sorts by lower Priority, then by Name. Empty block content is omitted from compiled text, and non-empty block content is joined with newlines.
Do not put secrets or raw sensitive data into prompt blocks unless the host intentionally wants that data in model context.
Index ¶
Constants ¶
View Source
const ( ModeCacheable = ports.PromptModeCacheable ModeDynamic = ports.PromptModeDynamic )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block = ports.PromptBlock
type Compiled ¶
type Compiled = ports.CompiledPrompt
type Mode ¶
type Mode = ports.PromptMode
Click to show internal directories.
Click to hide internal directories.