jsonshim

v1.0.2
org.toolkitlabs/jsonshim Checked 4 days ago Published 3 months ago

Recovers malformed LLM JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

recover_json

Extract the JSON value from a language model's raw reply, or refuse. Returns recovered:false rather than inventing a value.

ParameterTypeDescription
text *stringthe model's raw reply

classify_json_failure

Name which known failure categories a broken model reply matches (fenced, prose_wrapped, trailing_comma, unquoted_keys, single_quotes, comments, py_literals, raw_control, brackets).

ParameterTypeDescription
text *string