Documentation
¶
Index ¶
Constants ¶
View Source
const BoundaryMarker = "--- session context ---"
BoundaryMarker separates the static cacheable prefix from the dynamic per-turn suffix. Plain text (no markdown) so it serves as a deterministic prefix terminator for any caching layer.
Variables ¶
View Source
var Instructions string
View Source
var Planning string
Functions ¶
func BuildInstructions ¶
func BuildInstructions(base string, data SectionData) string
BuildInstructions assembles the system prompt with a cacheable static prefix followed by a boundary marker and a dynamic suffix.
func ComposeSections ¶
Types ¶
type Section ¶
func RenderSections ¶
func RenderSections(data SectionData) []Section
RenderSections returns every renderable section regardless of static/dynamic classification. Retained for tests and callers that need a flat list.
Click to show internal directories.
Click to hide internal directories.