Module: Mistri::PartialJson
- Defined in:
- lib/mistri/partial_json.rb
Overview
Parses the JSON prefix a model has emitted so far, so in-flight tool-call arguments are readable before the closing brace arrives. Best effort by contract: never raises, drops a dangling key or half-written token, and returns {} for hopeless input.
Defined Under Namespace
Classes: Parser