Skip to main content

render_checked

Function render_checked 

Source
pub fn render_checked(
    doc: &Document,
    bindings: &Bindings,
    counter: &impl TokenCounter,
) -> Result<RenderedPrompt, Vec<Diagnostic>>
Expand description

Bind and validate the entire document, returning immutable text, exact tokenizer measurement, budget report, and non-overlapping section provenance.