SDK 与客户端
Rails 应用的决策层,基于 TypeSafe 的 Jev System One API,提供类型化、校准的决策控制流程。
The decision layer for your Rails app. A Rails-native wrapper around TypeSafe's Jev System One API: typed, calibrated decisions in your control flow.
# Thin, honest wrapper over POST /v1/systemone. It mirrors the HTTP API one-to-one:链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
取自 spec/jevalyn/cassette_spec.rb:48
urgent是/否Is this urgent, really?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
urgent: { type: 'boolean', instructions: 'Is this urgent, really?' },
},
});