hitakshiA/solari-reflex on GitHub
- Stars
- 0
- Forks
- 1
- Language
- TypeScript
- License
- MIT
- Last push
- 18 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const ok = {
model: "typesafe/jev-1.13",
answers: {
op: { type: "choice", choice: "TYPE", probabilities: { CLICK: 0.1, TYPE: 0.9 }, confidence: 0.85 },
done: { type: "noul", noul: 0.02 },
},
usage: { input_tokens: 120, cost: 0.00001 },
};
test("a valid response decodes to typed answers", async () => {
const r = await client(200, ok).ask("state", questions);
assert.equal(r.answers.op.choice, "TYPE");
assert.equal(r.answers.done.noul, 0.02);
assert.equal(r.usage.inputTokens, 120);
});


