1. Native Decisions

Feature01/07

Native Decisions

Evaluate a ticket using native boolean, choice and score questions. Add an image with providers that support image state.

Read guide

0/10

Core checks

  1. Reasoning parameters · OpenAI: not run
  2. Compatibility fallback · OpenAI: not run
  3. Responses & replay · OpenAI: not run
  4. Native Decisions · OpenAI: not run
  5. Native Decisions · OpenRouter: not run
  6. Native Decisions · TypeSafe / Jev: not run
  7. Native Decisions · Cloudflare: not run
  8. Images in tool calls · OpenAI: not run
  9. Images in tool calls · Anthropic: not run
  10. System prompt compatibility · Anthropic: not run
○ Key not configured
Add your OpenAI key in API keys. The playground uses your key for these requests.

Request

decisionsExample
Imageoptional

An attached image adds a color question.

Response

OpenAI
Not run

Run the example to see the model response, validation checks and timing.

Press to run

Example code

examples/decisions.ts → decisionsExample
const result = await experimental_decide({
  model: openaiDecision(), // or openrouterDecision(), typesafeDecision(), cloudflareDecision()
  state: { ticket },
  questions: {
    outage: { type: "boolean", instructions: "Are all customers blocked?" },
    team: { type: "choice", instructions: "Who owns this?", criteria: {
      billing: "Invoices and refunds", engineering: "Outages", support: "General help"
    } },
    impact: { type: "score", instructions: "Rate impact", criteria: ["None", "Some", "All"] }
  }
});

Run history

this session

Runs stay in this browser session. Export the report to keep a record; audio and image bytes are excluded.