Intro to Jev · 4The simplest call
comment.ts
import { noul, TypeSafeClient } from "@typesafe-ai/sdk";
const client = new TypeSafeClient();
const { answers } = await client.systemOne({
state: "Who taught you to code? Useless post.",
questions: {
offensive: noul("The comment is offensive or insulting"),
},
});
console.log(answers.offensive.noul); // 0.80
answer
answers.offensive.noul
0.80
probability of "yes", from 0 to 1
One state, one question, one number.