Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
Utilities

Evaluate Decision

- jev-latest (the default) is TypeSafe's current stable release, text only, up to 64k tokens. jev-preview tracks TypeSafe's newest release. Pin a version such as jev-1.13.0 when a threshold was tuned against that version.

About this capability

- jev-latest (the default) is TypeSafe's current stable release, text only, up to 64k tokens. jev-preview tracks TypeSafe's newest release. Pin a version such as jev-1.13.0 when a threshold was tuned against that version.

- clef and clef-flash run Cloudflare Clef, which also reads up to 4 PNG, JPEG, or WebP images, each at most 4 MiB and 8 MiB together, and takes at most 64 questions, each id using only letters, digits, underscore, dot, and hyphen, up to 100 characters. clef is the larger model, clef-flash the faster one. @cf/cloudflare/clef and @cf/cloudflare/clef-flash name the same two.

- gpt-6-luna-decisions runs OpenAI's Decisions API (in beta), which reads up to 922k tokens and PNG, JPEG, WebP, or GIF images of up to 20 MB each. It takes up to 200 questions, and a choice needs at least 2 options. gpt-6-luna names it too.

  • state is the content to judge: a string, or a JSON object or array (a record, a chat log, application state).
  • questions is a map. The key is an id you choose. It is not shown to the model. The answer comes back under the same id.
  • A noul asks a yes/no question and returns noul, a probability from 0 (no) to 1 (yes). Optional criteria.true and criteria.false say what a yes and a no mean.
  • A choice picks one option. criteria is a map of option id to a short description (or null). At most 255 options. The answer includes the winning choice, a probability for every option, and confidence.
  • A score rates the state on an ordered rubric. criteria is 2 to 10 level descriptions, low to high. The answer's score can land between levels, and includes a probability per level plus confidence.
  • An answer of type refusal means the model declined that question (GPT-6 Luna Decisions can).
  • instructions may be a string, or an object that keeps the question in one field and reference data in the others. Refer to those fields by name in backticks.
  • Send every question you need in one call. The model reads the state once and answers them together.
  • Probabilities from different models are not comparable: tune a threshold against the model, and the version, it will run on.
  • decisionModelOverride.model picks the model:
  • images is for a model that reads them. Pass URLs or data URLs. A model that reads none refuses the call.
  • The response model field is the version that answered.
  • Billed per input token. Output tokens are free. Each model has its own rate, and GPT-6 Luna Decisions bills a prompt over 272k tokens at twice its rate.

Add Evaluate Decision to your workflow

Build powerful AI workflows with drag-and-drop blocks. No coding required.