Skip to main content

Module rules

Module rules 

Source
Expand description

The rule index: its entries and the merge of several rule sources.

Rules stay lazy: the model sees each document’s name and first line and reads the rest on demand. Where the documents come from is the RuleProvider contract; the directory-backed sources are in prompt_files.

Structs§

RuleEntry
One discovered rule document.
RuleTiers
Rule sources merged into one index: a later source’s entry replaces an earlier one of the same name, and the result is sorted by name.