# Evals, prompts and Playground

**Last updated:** 2026-11-27T01:31:49-03:00 (UTC-3)

Switching models or changing a prompt without measuring is a gamble. The gateway includes the full evaluation cycle: datasets, experiments, judges and human annotation on real traffic. Alongside it come versioned prompts and a Playground for testing.

## Evals

With `evaluation_results` on, every score is an [evaluation result](/docs/features/evaluation-results/) attached to the span, trace or session it judged, shown on the request log and the trace, and exported over OTLP. With `evaluation_tracing` on, each judge run is [its own trace linked to what it judged](/docs/features/evaluation-tracing/), request log rows say whether a request came from your application, a judge or an experiment, evaluators report health and 7-day cost, and Cost shows evaluation spend as its own line.

With `evaluation_metrics` on, every result is also a [metric](/docs/features/evaluation-metrics/): Prometheus and OTLP series with a pass-rate formula, evaluation metrics and dimensions in the analytics query, and a Quality tab on the Usage screen. With `evaluation_monitors` on, a team sets [monitors](/docs/features/evaluation-monitors/) over an evaluator's pass rate, result count, judge spend, a span query or an evaluator's health, with a backtest, and is told through its alert channels when one crosses its threshold and when it recovers.

| Feature | What it does | Flag | Learn more |
|---|---|---|---|
| **Evaluators** | An evaluator owns where it runs: span, trace or session scope with idle windows, a query-language filter, sampling and status; every save is a version with a readable spec, compare and restore; the editor tests on real traffic and shows the weekly volume and cost before Publish; a daily cost ceiling | `evaluators` | [Evaluators](/docs/features/evaluators/) |
| **Code, templates, runs on chosen traffic** | JavaScript code evaluators in the extension sandbox with no host operation, a library of more than 60 judges, decision models, code and rules with fixtures, and Evaluate selection, a query over past traffic or a run on one trace, with progress and cancel | `code_evaluators` | [Evaluators](/docs/features/evaluators/#code-evaluators) |
| **Datasets** | Versioned inputs and expected outputs, imported from CSV or from real captures | `evals` | [Evals](/docs/features/evals/) |
| **Experiments** | Runs a dataset against a model or prompt and compares runs side by side, with charts | `evals` | [Evals](/docs/features/evals/) |
| **Experiments as traces** | Each item one trace with its judges nested, dataset version history with diff, notes and restore, a run on an older version, Add to dataset from a span, judging a past run again with an estimate, the experiment_finished alert and the experiments an alias serves | `experiment_traces` | [Experiments as traces](/docs/features/experiment-traces/) |
| **Remote experiments** | The team's own service executes the items, signed, behind the outbound URL guard; outputs answered or posted back, judged like any other | `remote_experiments` | [Remote experiments](/docs/features/experiment-traces/#remote-experiments) |
| **Comparison summaries** | A short summary of compared runs through the team's chosen alias, estimated first, never stored | `experiment_summaries` | [Comparison summaries](/docs/features/experiment-traces/#comparison-summaries) |
| **Regression suites** | Assertions (evaluators or sentences) over a dataset with trials, a pass threshold and a minimum pass rate, and a CI verdict with exit codes | `regression_suites` | [Regression suites](/docs/features/experiment-traces/#regression-suites) |
| **Agent evaluations** | Tasks × targets × trials run on the client (Python runner and CLI; model aliases, the Claude Agent SDK, the OpenAI Agents SDK) with predicate, judge and command checks; each trial one trace; a scorecard with pass rate, pass@k, cost per successful task from the ledger, latency and failure classes | `agent_evaluations` | [Agent evaluations](/docs/features/agent-evaluations/) |
| **Evaluators** | LLM judge with templates, code evaluators and a decision-model judge | `evals` | [Evals](/docs/features/evals/) |
| **Scores** | Numeric, categorical and boolean scores, also through the API (`POST /v1/scores`) | `evals` | [Evals](/docs/features/evals/) |
| **Real traffic** | Captures samples of real requests (encrypted, with retention) and judges them with evaluators filtered in the query language | `eval_capture` | [Evals](/docs/features/evals/) |
| **One capture policy** | Rules judge chat, Messages, Responses and generateContent requests, streams included, from the team's content capture: the request after guardrail masking and the answer, never the request as received | `content_capture_evaluation` | [Content capture](/docs/features/content-capture/#one-policy-for-audit-and-evaluation-content_capture_evaluation) |
| **Reasoning and images for judges** | An evaluator can opt in to read the model's reasoning (`include_reasoning`), kept apart from the answer; a multimodal judge gets captured images back from the media store | `content_capture_reasoning`, `content_capture_media` | [Content capture](/docs/features/content-capture/#the-models-reasoning-content_capture_reasoning) |
| **Annotation queues** | Human reviewers score, correct the output and comment, with mentions and Markdown | `eval_capture` | [Evals](/docs/features/evals/) |
| **Human review** | A queue takes traces and spans and shows each item as the trace view does, with the judges' results; several people review one item under their own locks, and the item carries every reviewer's value, the final value of each field and whether they differed; item assignment, required fields, drafts, export, and calibration of each judge against the reviewers | `review_multi_annotator` | [Human review](/docs/features/human-review/) |
| **Review automations** | A rule in the query language fills a review queue or a dataset from live traffic, forward only, with a sample rate and caps | `review_automations` | [Human review](/docs/features/human-review/#automations) |
| **Topics** | Traces, sessions and agent runs clustered into named topics per facet (Intent, Sentiment, Outcome, Issues, Signals) on your own models and keys: live maps and snapshots, treemap, scatter and table with spend, latency, error rate and pass rate per topic, the topic term in the trace explorer and in evaluator rules, a dataset or an evaluator from a topic, an MCP server and `gateway topics` commands | `topics`, `topics_custom_facets` | [Topics](/docs/features/topics/) |
| **Findings** | Topic changes and model-free cost and reliability detectors (prompts never cached, large tool results, verbose answers, recurring tool errors, retry loops, wasted spend) raised as alerts with their impact and evidence | `topics_findings` | [Topics](/docs/features/topics/#findings) |
| **Public API** | Datasets and experiments from the SDK or from CI (`/v1/datasets`, `/v1/dataset-runs`) | `evals_public_api` | [Evals](/docs/features/evals/) |
| **Evaluators and results from code** | Read results (`GET /v1/evaluations`) and keep evaluators as code (`PUT /v1/evaluators/{name}`, publish) with scoped keys; run a dataset with local evaluators from the Python client | `public_trace_api` | [Public trace API](/docs/features/public-trace-api/) |
| **Result retention** | Evaluation results and dataset runs follow the metadata retention window; annotations and datasets are kept | `evaluation_result_retention` | [Public trace API](/docs/features/public-trace-api/#retention-of-results) |

## Prompts and Playground

| Feature | What it does | Flag | Learn more |
|---|---|---|---|
| **Versioned prompts** | Templates with immutable revisions, explicit publishing and local rendering | `prompt_registry`, `prompt_management` | [Prompts](/docs/features/prompt-registry/) |
| **Mandatory system prompt** | Applies a static published system-only revision to an owning team's Chat alias before guardrails and quotas | `system_prompt` | [System prompt](/docs/features/enforced-system-prompt/) |
| **Per-team read access** | Each team reads its own prompts | `prompt_scoped_read` | [Prompts](/docs/features/prompt-registry/) |
| **Playground** | Chat with streaming, image input, media modes (image, video, speech, transcription) and comparison between models | `playground`, `playground_streaming`, `playground_images` | [Playground](/docs/features/playground/) |
| **From log to Playground** | Opens a captured request in the Playground to reproduce it | `eval_capture` | [Evals](/docs/features/evals/) |
