aoughwl’s Jev client gives Nimony, a Nim-family language, a library and a small command-line tool for TypeSafe’s hosted model. Its reply parser checks the answer against what the caller asked, rather than accepting any response that parses as JSON.
Check the answer before handing it to the app
- Match the original choices. A probability distribution must cover every requested option, omit unlisted options and add up to one within the client’s tolerance. The selected label must also be one the caller supplied.
- Make refusal different from downtime. A bad answer or rejected request gives the caller a reason to inspect the request or response. Rate limits, server failures and transport errors take a separate path that the caller can retry.
- Replay a changed question. One offline test feeds a saved two-option reply into a question with a third option. The parser is expected to refuse it; the reply can still be valid JSON.
Caveat: The code and fixtures were inspected, not run. The parser can enforce the reply format without knowing whether Jev picked the right answer.