JEV / 开发者文档
为应用接入决策接口。
通过 System One SDK 连接 Jev,获取选项、评分或概率,再由你的应用决定如何响应。
概率用于辅助应用策略,不会自动执行动作,也不保证单次判断正确。
import { SystemOne, choice } from '@system-one-ai/sdk';
const client = new SystemOne({
apiKey: process.env.SYSTEM_ONE_API_KEY!,
baseURL: 'https://your-deployment.example.com/v1',
maxRetries: 0,
});
const result = await client.evaluate({
state: { message: 'I was charged twice.' },
questions: {
route: choice('Choose a team.', {
billing: 'Payments and refunds',
support: 'Technical help',
}),
},
}, {
headers: { 'Idempotency-Key': crypto.randomUUID() },
});仅展示示例输入,本页不会执行推理。