Managing workflow evaluations

Workflow evaluations score agent traces by using evaluators to measure agent quality and compare agent versions.

The following table describes the key concepts for workflow evaluations:

Table 1. Key concepts for workflow evaluations
Term Description
Evaluation run One execution that applies one or more evaluators to a set of traces and records the results.
Evaluator A check that scores a trace or a session. An evaluator is either a Large Language Model (LLM) judge or a deterministic evaluator.
Test set A versioned collection of test cases, such as inputs and optional expected results, that you import and run an agent against.
Scorecard A summary of a run that includes the count of each verdict and the coverage of the evaluators.
Baseline A completed run that you pin as the reference for later comparisons.

Evaluations page overview

The following table describes the tabs on the Evaluations page:

Table 2. Tabs on the Evaluations page
Tab Description
Runs Review evaluation runs, start a run by using New run, and open Compare runs.
Test sets Review test sets and create a test set by using New test set.
Evaluators Review the platform and custom evaluators, create a new evaluator, and edit the pass policy of an LLM judge evaluator.

On the Runs tab, tiles show the number of runs, running runs, failed runs, and baselines. You can search runs, and you can filter by Agent, Env, and Status, and select Clear to remove active filters.

The Runs table displays the following details for each run:

  • Status
  • Start time
  • Source
  • Environment
  • Phase
  • Agent
  • Version
  • Deployment ID
  • Number of traces

The source of a run is Trace list for runs on selected traces, or Live traffic for runs that evaluate traces within a specified time window.

The action menu for a run provides the View scorecard, Compare to baseline, Set as baseline, Update baseline, and View in MLflow options. Set as baseline is available when no baseline exists, and Update baseline is available when a baseline already exists. Compare to baseline is available only when a baseline exists. View in MLflow is available only when the run has an MLflow evaluation link.

A run can have one of the following statuses:

Table 3. Run statuses
Status Meaning
queued The run is created and waiting for a worker.
running A worker is evaluating the traces.
completed The run is complete. A completed run can still report the TRACES_UNAVAILABLE informational code, which means that some traces were not available.
failed The run did not complete. A canceled run also displays the failed status with the JOB_CANCELLED error code.

Evaluation types

Agent Studio provides the following types of evaluators:

  • LLM judge evaluators use a language model to grade a response against a definition and a rubric. Agent Studio provides seven platform LLM judges, and you can create your own. For information on creating an LLM judge evaluator, see Creating an LLM judge evaluator.
  • Deterministic evaluators apply fixed checks, such as counting tool calls or validating output against a schema. Agent Studio provides five platform deterministic evaluators, and you can create your own. For instructions on creating a deterministic evaluator, see Creating a deterministic evaluator.

LLM judge evaluators require access to a judge model. The deployment can supply one through its model configuration, or you can select a registered LLM endpoint. If neither is available, the LLM judge runs fail with the JUDGE_MODEL_ACCESS_UNAVAILABLE error message. For more information on managing LLM endpoints, see Managing LLM endpoints.

Role-based access and permissions

Access depends on your role and the agent environment, as described in the following table:

Table 4. Evaluation access by role
Role Authoring evaluations Production evaluations Test sets
Admin All agents No access All test sets
Builder Own agents only No access Own test sets only
Observer No access All agents All test sets
User No access No access No access

Custom evaluators are private to the user who creates them. You see the platform evaluators and the custom evaluators that you created. Admins can see all custom evaluators. Only the owner or an Admin can change a custom evaluator. For more information, see User roles and capabilities.

Evaluations Workflow

To evaluate an agent workflow, complete the following steps:

  1. Create a test set or select the traces that you want to score. For information on creating a test set, see Creating a test set.
  2. Create a custom evaluator if the platform evaluators do not meet your requirements.
  3. Start a run. For information on starting a run, see Running an evaluation.
  4. Review the scorecard and pin a baseline. For information on viewing a scorecard and setting a baseline, see Viewing a scorecard and setting a baseline.
  5. Compare a subsequent run with the baseline. For information on comparing evaluation runs, see Comparing evaluation runs.