Skip to main content

Module policy

Module policy 

Source
Expand description

Format policy types for context rendering.

FormatPolicy controls how recalled grains are rendered into LLM-ready strings: output format (SML/Markdown/PlainText/JSON), metadata verbosity, ordering, token budget, and section grouping.

Structs§

FormatPolicy
Complete formatting policy. Constructed via builder pattern.
GrainTypeOverride
Per-grain-type overrides.
SectionConfig
Section grouping configuration.

Enums§

MetadataLevel
How much metadata to include per grain.
Ordering
Ordering strategy for grains in output.
OutputFormat
Output format for rendered context.