Skip to content

Generated by sema doc from stdlib/sema/document.sema. Import with from std.document import …. For a narrative introduction see std.document.

std.document — typed document IR + deterministic render (design ⑦).

The model fills a typed Report; rendering to markdown is a pure, deterministic function — no regex repair of freeform LLM markdown, and section/table placement is structural. Replaces a hand-rolled assemble_basic_answer/_assemble_report. nl is the newline separator, parametrizable so the same renderer can emit a single-line form for tests or real newlines for output.

Fields

fieldtypedescriptor
titlestr
contextstr
confidencef64
rationalestr
takeawayslist[str]
section_titleslist[str]
sections_textstr
conclusionstr
def fmt1(x: f64) -> str !{}

Parameters

nametype
xf64

Returns str

Effects !{}

def render(r: Report, nl: str) -> str !{}

Parameters

nametype
rReport
nlstr

Returns str

Effects !{}