Skip to main content

Module parse

Module parse 

Source

Functionsยง

extract_json
Extract the first JSON object or array from text that may contain prose.
parse_lines
Split LLM output into lines, stripping numbering, bullets, and whitespace.
strip_code_fences
Remove markdown code fences from LLM output.