Skip to main content
Production quality monitors continuously score a bounded sample of live Responses and Chat Completions traffic. Each monitor builds a quality baseline, evaluates rolling score windows, and raises tenant-visible drift alerts when quality drops past your configured threshold.
Live quality monitors are available through the REST API and the console under Evals → Monitoring. Typed SDK and CLI helpers follow automatically once your cluster publishes the updated OpenAPI specification.

Before you start

  • Opt-in only. No live traffic is sampled until you create and enable a monitor.
  • Scopes. Reading monitors, samples, and drift alerts requires read:evals. Creating, updating, evaluating, recalibrating, acknowledging, resolving, and deleting monitors requires write:evals.
  • Role requirements. Creating or modifying live traffic monitors (team or org scope) requires an organization owner or admin acting directly (not via X-On-Behalf-Of), because monitors sample traffic across the team or organization.

Built-in evaluators and custom rubrics

Monitors use reference-free evaluators designed for live traffic where ground-truth labels do not exist. List the catalog with GET /api/v1/llm/evals/monitors/evaluators: You can also attach custom_rubric evaluators with a domain-specific 0.0–1.0 scoring rubric. When a monitor enables multiple LLM-judged evaluators, the worker batches them into one structured judge call per sample.

Create a quality monitor

Create a monitor targeting a saved agent, a model, or all matching traffic in the team or organization.
Bash
Key configuration fields:
  • Targeting. Filter by target_agent_id, target_model, and api_surfaces (responses, chat_completions, or both).
  • Sampling and cost caps. sample_rate selects a deterministic fraction of eligible requests without blocking the live response path. max_samples_per_day, max_daily_cost_usd, and max_judge_tokens_per_day bound daily judge spend, and max_input_chars / max_output_chars bound each sample payload.
  • Baselines. baseline_mode: "auto" calibrates the baseline mean and standard deviation once baseline_min_samples are scored. baseline_mode: "fixed" starts enforcing immediately against fixed_baseline_score.
  • Drift thresholds. An alert triggers when a rolling window_minutes window has at least min_samples scored samples and either drops by at least max_drop from the baseline (drop_from_baseline) or falls below min_score (below_floor). cooldown_minutes prevents duplicate notifications while a metric remains drifted. Active alerts auto-resolve once the rolling score recovers above the threshold with hysteresis.

Privacy and residency controls

Quality monitoring applies structural privacy controls at capture, judging, storage, and alerting:
  • store: false exclusion (Responses). Any Responses request sent with store: false is unconditionally excluded from live sampling. Chat Completions does not carry a store flag, so all matching Chat Completions requests on a monitored surface are eligible.
  • Secret redaction. With redact_secrets: true (the default), the gateway runs its secret redactor over captured input and output text before sending samples to the judge or writing previews, masking credentials, bearer tokens, and API keys.
  • Scores-only retention. With payload_retention: "scores_only" (the default), input and output text is cleared immediately after scoring, leaving only numeric scores, judge rationales, and usage metadata. Set payload_retention: "redacted_preview" if you want to inspect bounded previews in the console until retention_days expires. Deleting a stored response immediately clears captured previews and judge payloads for that response.
  • Judge model pinning. Setting judge_model pins judging to that exact model ID and disables cross-provider fallback. Leave judge_model unset to use your organization’s default analyzer model.
  • Metadata-only alerts. Drift alert events include only monitor IDs, metric IDs, scores, deltas, thresholds, and window timestamps—never raw prompts or outputs.

Evaluate on demand and inspect results

Background scoring runs continuously on the eval worker. You can also trigger an immediate scoring and drift-evaluation pass:
Bash
Retrieve monitor status, per-metric baselines, bucketed score trends, and recent drift alerts:
Bash
Inspect recently sampled interactions and scores:
Bash
Reset the baseline after an intentional prompt or model change. Auto recalibration clears the baseline so it calibrates fresh from subsequent scored samples and resolves both active and acknowledged drift alerts for the monitor:
Bash

Drift alerts and notification channels

Every drift breach is stored on the monitor and visible in Evals → Monitoring and via GET /api/v1/llm/evals/monitors/alerts. Acknowledge or resolve an alert through the console or API:
Bash
When notify_on_drift is true, the gateway also emits a quality.drift_detected audit alert event. Subscribe to quality.drift_detected in Admin → Alerts to route drift alerts to tenant Webhook, Email, or ITSM rules scoped to your organization or team.

Pause, resume, or delete a monitor

Pause sampling without deleting historical scores or alerts:
Bash
Remove a monitor from active monitoring (soft-deletes the monitor, stops new sampling as caches expire, skips pending samples, and clears stored sample previews):
Bash
  • Evaluations covers offline task suites and Python graders for pre-release testing.
  • Schedule eval runs covers recurring scheduled suite runs.
  • Guardrails covers real-time inline input and output blocking policies.