Skip to main content

Module jsonx

Module jsonx 

Source
Expand description

Getting structured data back out of a model, and hashing it stably.

Functionsยง

candidates
Every JSON value plausibly present in a model response, most likely first.
extract_into
Parse a model response straight into a typed value.
extract_json
Pull the last JSON value out of a model response.
finding_key
A stable identity for a review finding, so a refutation survives across rounds even when the reviewer rewords the point.
looks_truncated
Whether a response looks cut off rather than merely malformed.