Skip to main content

render

Function render 

Source
pub fn render(shadow: bool, wrapper: Wrapper, level: CompressionLevel) -> String
Expand description

Render lean-ctx rules for a given wrapper, shadow mode, and compression level.

  • shadow — when true, tool-mapping sections (BULLETS, NEVER, CRITICAL banner, “## Tool Mapping” header) are omitted.
  • wrapper — selects the profile (FULL / COMPACT) and wrapping style.
  • level — selects the output-style compression prompt (Lite / Standard / Max) which is appended to the body. Off omits it.