Applications
Draw on a tldraw canvas with your voice and a pointing finger. Jev (TypeSafe System One) decides action, target and place in ~350 ms per spoken word.
<Card title="JEV" note={view.busy ? 'asking…' : jev ? `${jev.latencyMs} ms` : ''} tone={jev?.verdict}>The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
is_commandtrue/falseIs the speaker giving an instruction to the drawing canvas? The speaker may use English or Ukrainian.
completetrue/falseHas the speaker finished the instruction, so that it can be carried out right now?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_command: { type: 'boolean', instructions: 'Is the speaker giving an instruction to the drawing canvas? The speaker may use English or Ukrainian.' },
complete: { type: 'boolean', instructions: 'Has the speaker finished the instruction, so that it can be carried out right now?' },
},
});