Skip to main content

note_content

Function note_content 

Source
pub fn note_content(turn: &Turn) -> String
Expand description

Renders turn as note content: the question as an # title, the answer with citation markers converted to [[source]] wikilinks, and a ## Sources footer.

The footer lists every one of turn.sources (deduped by clean name, in source/rank order), not just the ones the answer actually cited: a source the model retrieved but under-cited was still part of the turn’s evidence, and provenance must not be silently dropped (CONTEXT.md: Saved answer — “backlinks from the sources find it”).