Search Plus UI Blocks

Find a block, a category or a site

Hero with a typed request and its decisionhero-decision-call

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/hero-decision-call.json

Hero · 20 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/hero-decision-call
Open ↗

Default content

{
  "eyebrow": {
    "label": "arbitrel-d2 is generally available",
    "href": "#"
  },
  "title": "Ask a question. Get a decision your code can branch on.",
  "description": "Arbitrel is a decision model. It returns a typed answer — one of your options, a score on your scale, a calibrated yes or no — in under 400 ms, never a paragraph to parse.",
  "actions": [
    {
      "label": "Get an API key",
      "href": "#",
      "variant": "primary"
    },
    {
      "label": "Read the quickstart",
      "href": "#",
      "variant": "secondary"
    }
  ],
  "media": {
    "kind": "decision",
    "call": {
      "endpoint": "POST /v1/decide",
      "request": "{\n  \"model\": \"arbitrel-d2\",\n  \"input\": \"Charged twice in March. Invoice 2 has no PO.\",\n  \"decide\": {\n    \"question\": \"Which queue handles this ticket?\",\n    \"type\": \"choice\",\n    \"options\": [\"billing\", \"technical\", \"account\", \"sales\"]\n  }\n}",
      "decision": {
        "type": "choice · 4",
        "value": "billing",
        "detail": "Sent to the billing queue, no human triage"
      },
      "confidence": 0.94,
      "distribution": [
        {
          "label": "billing",
          "p": 0.94
        },
        {
          "label": "account",
          "p": 0.04
        },
        {
          "label": "technical",
          "p": 0.01
        },
        {
          "label": "sales",
          "p": 0.01
        }
      ],
      "latency": "84 ms",
      "tokens": "61 tokens",
      "labels": {
        "request": "Request",
        "response": "Decision",
        "decision": "Value",
        "confidence": "Confidence",
        "latency": "Latency",
        "tokens": "Input tokens"
      }
    }
  },
  "stats": [
    {
      "value": "84 ms",
      "label": "Median latency, choice"
    },
    {
      "value": "0.018",
      "label": "Calibration error (ECE)"
    },
    {
      "value": "100%",
      "label": "Responses that match your schema"
    },
    {
      "value": "$0.30",
      "label": "Per million input tokens"
    }
  ]
}