Skip to main content

Module output

Module output 

Source
Expand description

Helpers for reading structured output out of model text.

Functionsยง

extract_json
Extract a JSON value from model text: the whole text, a fenced ```json block, or the outermost {...} / [...] span.