Skip to main content

Module json_utils

Module json_utils 

Source
Expand description

Utilities for extracting JSON fragments from noisy LLM output.

Functionsยง

extract_json_array
Extract the first balanced JSON array ([...]) from text.
extract_json_object
Extract the first balanced JSON object ({...}) from text.