Playground

Try one case against several prompts and models side by side, score the outputs, and save the winner as a prompt version. Decision tasks try a Jev or Hartley decision model the same way.

The Playground is where you work on one case by hand. Put tasks side by side, each with its own messages and model, run them, and compare what comes back. When a wording wins, save it as a prompt version. It is the quick loop between finding a bad answer in your traces and shipping the fix; to check a change across many rows, use a dataset.

Open Assess → Playground. The list shows your saved playgrounds; New playground starts a blank one.

Assess → Playground: the saved playgrounds with their last update, and the New playground button.

The bench

A playground is a row of tasks, side by side. The first is Base task. Add task adds another: Manual, From span, From prompt or Decision. The ⋮ menu on a task switches its source between Manual, From span and From prompt, and has Duplicate and Remove.

A playground with two tasks on two models: each with its Model, Messages and save button, their outputs under Results with latency and tokens, and AI Score, Add task and Run all in the header.

Each task has:

PartWhat it is
ModelA provider key from Settings → Models, a model, and Params (temperature, max tokens and the rest).
MessagesThe conversation sent to the model, each message with its role: System, User or Assistant. Message adds one.
VariablesShown when a message has {{variables}}: the values to fill them with for this run.
ToolsTool definitions as JSON, for testing tool calls.
Output formatText, JSON (any valid JSON) or Structured (exactly the JSON schema you give).

Run all runs every task; ▶ runs one. Each task calls its model once, and its output appears under Results with its latency, tokens and cost.

Save keeps the playground: its tasks, models, settings and last results. A new playground asks for a name the first time you save or run it.

Where a task starts

SourceUse it when
ManualYou write the messages yourself.
From spanYou want to replay a real model call. Paste an LLM span's ID and its whole input comes in as editable messages, with its model picked when you have a key for that provider. If the call used a managed prompt, the task opens as that prompt version with the values it was filled with.
From promptYou want to test a managed prompt exactly as your app runs it. Pick the prompt and a version, then set its variables. An Edited tag shows once you change it.

To start from a span you're looking at in Traces, use its Evaluate menu → Open in playground.

AI Score

Turn on AI Score before you run to score each output. Under each output, AI Score opens the checks, each against its own threshold, and counts those failing:

CheckMeasures
Contextual groundingHow well the output is supported by its context, or by tool results and earlier turns when there is no context. Higher is better.
Rule adherenceThe share of mechanical rules in the system message the output follows: format, length, required phrases. Higher is better.
ContradictionHow likely the output contradicts its context or reverses a key fact. Lower is better.
Factual faithfulnessThe share of hard facts in the output (IDs, numbers, dates, URLs) that its context or the question supports. Higher is better.
Semantic echoHow close the output is to repeating its input. Lower is better.
Refusal scoreHow strongly the model refused or deflected when it should have answered. Lower is better.

A check that doesn't apply to an output (no context to ground against, say) is left out. AI Score is a quick read on one output, not an eval: to score production traffic, use Evals.

Decision tasks

A Decision task tries a decision model. A decision model (Jev or Hartley) reads a state and answers typed questions with a probability for each answer, without writing text. It is the same model an eval's Decision model step uses, so this is where you check a state and its questions before putting them in an eval.

A Decision task: a support ticket as the State, a Choice question asking which team should handle it with four options, and the decision model, Allow can't tell and Run at the bottom.
  1. Paste the State: the text or JSON the model reads, such as a ticket or an agent's trace. Examples loads a ready one: judging an agent trace, routing a support ticket, choosing a tool, scoring with a rubric.
  2. Add Questions. Each has a key, instructions, and a type: Yes / no, Choice (one of the options you list) or Score (one of the levels you list).
  3. Pick the decision model and its model at the bottom. It needs a Jev or Hartley key in Settings → Models.
  4. Leave Allow can't tell on to let the model abstain when the state doesn't say, then Run.

The answers appear under Results: each question's answer, how sure the model is, and the probability of every possible answer.

Save as a prompt

At the bottom of a task, Save as prompt saves its messages, model, tools and output format as a new prompt in the prompt registry. On a task from a prompt, the button is Save new version and adds a version to that prompt. Either way you see what changed, write a message, and can set labels such as production.

Across a dataset

The Playground runs one case at a time. To compare models over every row of a dataset, make a Compare models agent from the dataset's Label menu: each model answers every row that has an Expected, and the run reports how often each matched. See Label.

What it costs

Runs call your own provider keys and are billed by your provider; Decision tasks run on your Jev or Hartley key. Playground runs don't use Executions.

On this page