ReferenceAsk
Remy Reference/agent/evaluateDecision
?

evaluateDecision

Ask structured questions about text, JSON, or images and get calibrated answers from a decision model. The model returns a probability, a selected option, or a score. It does not write a reply. Each question is a noul (yes or no, as a probability from 0 to 1), a choice (one option from a set you define, with a probability for each), or a score (a rating against ordered levels). Put every question in the same call. The question id is yours: answers come back under the same ids. The model defaults to Jev (jev-latest).
mindstudio.evaluateDecision({ state, questions }) → Result

Ask structured questions about text, JSON, or images and get calibrated answers from a decision model. The model returns a probability, a selected option, or a score. It does not write a reply. Each question is a noul (yes or no, as a probability from 0 to 1), a choice (one option from a set you define, with a probability for each), or a score (a rating against ordered levels). Put every question in the same call. The question id is yours: answers come back under the same ids. The model defaults to Jev (jev-latest).

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.
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.
decisionModelOverride
object
Optional model override. Uses the workspace's default decision model (Jev) if not specified
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.evaluateDecision({
  state: /* ... */,
  questions: /* ... */
});