?
typesafeEvaluate
Use evaluateDecision: the same questions, answers and models, with decisionModelOverride in place of model. evaluateDecision's earlier name, which still runs: ask structured questions about text, JSON, or images and get calibrated answers from a decision model.
mindstudio.typesafeEvaluate({ state, questions }) → Result
Use evaluateDecision: the same questions, answers and models, with decisionModelOverride in place of model. evaluateDecision's earlier name, which still runs: ask structured questions about text, JSON, or images and get calibrated answers from a decision model.
Parameters
state
object
RequiredThe content to evaluate. A string, or a JSON object or array.
questions
object
RequiredQuestions to ask about the state, keyed by an id you choose.
model
string
Model id or alias. Defaults to the workspace's default decision model (jev-latest). Every model evaluateDecision takes: jev-preview, a pinned version such as jev-1.13.0, clef and clef-flash, gpt-6-luna-decisions.
images
string[]
Images for a model that reads them (Clef, Clef Flash, GPT-6 Luna Decisions). Each entry is a URL or a data URL. A model that reads none refuses the call.
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.typesafeEvaluate({ state: /* ... */, questions: /* ... */ });