phureewat29/jev-got on GitHub
- Stars
- 2
- Forks
- 0
- Language
- TypeScript
- Last push
- 19 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
* carries the catalog ids into `Answers`. The span is added by hand instead.
*/
const evaluate = <const Q extends Questions>(state: EntryType, questions: Q) =>
Effect.tryPromise({
try: (signal) => client.systemOne({ state, questions }, { signal }),
catch: (cause) => new QuestionError({ message: describeCause(cause) }),
}).pipe(
Effect.timeout(budget),
Effect.catchTag(
"TimeoutException",
() => new QuestionError({ message: `Jev did not answer within ${Duration.format(budget)}` }),
),
Effect.withSpan("QuestionModel.evaluate", { attributes: { model: options.model } }),
);


