Console

Decision model guardrails

Configure a judge model, test risk thresholds, and publish to the Gateway.

This is a local preview awaiting review and release. Deploy matching frontend and backend versions and publish the Workspace configuration before business requests use it. Real Provider accuracy and latency still need validation.

Prepare the model and Key

Provision and publish the judge model in the current Workspace, with native Decisions or System One operations, Usage, and token rates enabled. Use an editor account and a valid published Key allowing Integration model access. Tests use short-lived delegation; no plaintext Key needs to be pasted.

Configure a check

Open Guardrails, create or edit a Profile, and select Decision model. Selecting a Key automatically loads and selects the first available model and operation; you can change them. Give each question a unique ID, explicit risk criteria, and a threshold from 0 to 1. A probability equal to or above the threshold matches; any matching question triggers the check action. Start with monitor before enabling block.

Checking stages

  • input.messages: Messages and Responses instructions.
  • input.tools: Tool names, descriptions, and parameter schemas.
  • input.tool_results: Tool results.
  • output.message: Model response text.
  • output.tool_calls: Model tool calls and arguments.

Test and publish

Choose a stage and enter approved synthetic text. The editor wraps it for that stage; tool-definition samples become tool descriptions. The test panel no longer accepts full JSON. The JSON example below is for actual Chat Completions requests. Run test keeps only the latest result, showing probabilities, thresholds, coverage, latency, and cost; it does not publish the draft. Threshold changes re-score locally; changes to questions, models, or samples require another run. Unscanned chunks and missing answers are not safe verdicts. Save, review, and publish, then send requests through Playground or an SDK and inspect request logs.

Streaming and failures

Input checks run before the business request. Output block for Chat Completions / Responses buffers the complete response and releases it only after checking; monitor forwards live output and assesses it asynchronously after completion. Buffering is limited to 4 MiB and 120 seconds, subject to shorter request deadlines. Oversized, malformed, or incomplete streams return 502 without releasing buffered content. Risk blocks return 400; judge failures return 503 with block + fail_closed, while fail_open allows and records the failure. Timeout and failure toasts do not mean a risk matched. Run test does not replace testing the real streaming path.

Usage and boundaries

Judge calls are metered separately and consume budget. Input blocking can incur judge cost; output blocking also includes the business model cost. Missing upstream usage is charged using the reservation estimate. Ordinary logs retain structured results; actual blocking evidence follows existing controlled retention rules. Preview content is not archived. Text and tool structures are supported; media attachments are check errors. Agent Hooks skip this check and Realtime is unsupported. Messages and tool units are assessed in chunks, without guaranteed cross-message reasoning.

Execution limits

Each check supports 1–20 questions; a total timeout of 100–10000 ms includes waiting and all chunks. Chunks contain 256–24000 characters, with at most 64 chunks and check concurrency of 1–8. Coverage overflow fails instead of treating truncated content as safe. Defaults are 12000 characters, 16 chunks, and concurrency 2. Start with a 5000 ms timeout and a 0.8 threshold, then tune against samples.

Tool-definition JSON example

Chat Completions:

{
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "lookup_inventory",
        "description": "Read inventory availability without changing records.",
        "parameters": {
          "type": "object",
          "properties": {
            "item_id": {
              "type": "string"
            }
          },
          "required": ["item_id"],
          "additionalProperties": false
        }
      }
    }
  ]
}

Related: Guardrails overview.