跳转到内容
Agentic Workflowdocs
v0.9.0免费安装

使用应用 / observability

Evals

Test an agent on a set of prompts before you change it: build a dataset, choose how answers are scored, compare the agent with variants side by side, and rate answers yourself

此内容尚不支持你的语言。

In the app: sidebar › Observability › Evals. For one agent: open the agent, then its Evals tab under Observe.

Evals let you check an agent with the same prompts every time, so you know whether a change makes it better or worse before you keep it. You collect test prompts in a dataset. You choose how answers are scored with evaluators. An experiment then runs the agent and up to three variants of it on every prompt and puts the scores side by side.

flowchart LR
  T["Traces, Insights,<br/>your own prompts"] --> D["Dataset"]
  D --> E["Experiment<br/>A vs B, C, D"]
  E --> C["Comparison<br/>scores and regressions"]
  C -->|winner| A["Apply to agent<br/>(new version)"]
  C -->|worse| Edit["Keep editing"]
  class D awf-data
  class E awf-flow
  class C awf-ai
  class A awf-ok
  class Edit awf-warn

Applying a winner and going back to an earlier setup are covered in Agent versions. To score an agent’s real conversations as they happen, rather than test examples, see Online evals.

Observability › Evals: Datasets with Import and New dataset, and one dataset, Everyday inbox requests, for Inbox Triage, 8 examples from four sources (Hand-written, From traces, AI-generated, Imported), its last experiment and a baseline score of 0.91; then Experiments with New experiment and one experiment, Shorter drafts vs current, variants A and B, Done, best B 0.93. Observability › Evals: Datasets with Import and New dataset, and one dataset, Everyday inbox requests, for Inbox Triage, 8 examples from four sources (Hand-written, From traces, AI-generated, Imported), its last experiment and a baseline score of 0.91; then Experiments with New experiment and one experiment, Shorter drafts vs current, variants A and B, Done, best B 0.93.

截图中的编号区域:1. Datasets; 2. New dataset; 3. Experiments。

When you edited an agent and haven’t tested the change yet, a banner at the top offers to run it against the baseline. See Agent versions.

A dataset is a set of test prompts for one agent. Each prompt is an example: one message, as a user would type it, plus what you expect back.

The dataset Everyday inbox requests (Inbox Triage, 8 examples, 4 evaluators, baseline Shorter drafts vs current): Export and New experiment at the top; Examples with Add, From traces, Import CSV / JSON and Generate with AI, and a table of the 8 examples with their input, expected answer, expected tools and source; then the Evaluators heading, run on every experiment of this dataset, starting with Completeness (LLM judge). The dataset Everyday inbox requests (Inbox Triage, 8 examples, 4 evaluators, baseline Shorter drafts vs current): Export and New experiment at the top; Examples with Add, From traces, Import CSV / JSON and Generate with AI, and a table of the 8 examples with their input, expected answer, expected tools and source; then the Evaluators heading, run on every experiment of this dataset, starting with Completeness (LLM judge).

截图中的编号区域:1. The examples; 2. Add from traces; 3. Generate with AI; 4. Evaluators。

The header shows the agent (click it to change it), the number of examples and evaluators, and the baseline. Export saves the examples as JSON or CSV. Dataset actions › Delete dataset removes the dataset with its examples, evaluators, experiments and their runs; the traces stay.

Button What it does
Add Write one example by hand.
From traces Lists the last 200 runs of the dataset’s agent. Runs marked Not helpful or Failed are flagged, and runs already in the dataset are greyed out. Tick some and press Add N examples: each becomes an example with its input.
Import CSV / JSON Opens Import examples. Choose the file, then a New dataset or an existing one. Nothing is saved until you confirm, and skipped rows are listed with their line numbers.
Generate with AI Opens Generate examples (see below).

You can also add examples from elsewhere:

  • A trace: Add to dataset in the trace detail saves that turn as an example, in an existing dataset or a new one. See Traces.
  • An experiment: an expanded row of the comparison has Add to dataset too.
  • Insights: a category page has Create dataset, which turns its conversations into a dataset. See Insights.
Field What to put in it
Input The prompt, as the user would type it. Required.
Expected answer (optional) What a good answer says or does. Only judges see it; the agent never does.
Expected tools (optional) The tools the agent should call, for example gmail.search. Press Enter after each one.
Must contain (optional) Words or codes the answer must include, for example an invoice number.
Must not contain (optional) Words the answer must never include, for example “Sent”.
Split (optional) A group name, such as core or edge cases.
  1. Press Generate with AI. Based on tells you what the model reads: the agent’s instructions, skills and rules, plus the existing examples so it doesn’t repeat them.
  2. Pick chips under Focus on: Edge cases, Should refuse, Ambiguous asks, Multi-tool, Other languages.
  3. Choose How many (5, 10 or 20) and the Model: the agent’s own, or one on this device.
  4. Press Generate. Untick the suggestions you don’t want. More adds another batch without duplicates.
  5. Press Add N examples. Nothing is saved before this.

The suggestions are written by a model, so read them before you keep them.

A new dataset starts with four evaluators: Completeness, Expected tools called, Must contain and Must not contain. Press Add evaluator to add more. Pick a Kind:

Kind What it checks
Pre-built judge A model grades the answer with a ready-made template: Tool selection, Tool invocation, Tool response handling, Completeness, Correctness (against the expected answer), Faithfulness, Conciseness, Refusal, User friction, PII and Toxicity.
Your rubric Write the Criteria in plain words, for example Friendly and short. Signed “Marie — Ops”. The judge scores every answer against it, from 0 to 1.
Code check A fixed rule, no model needed: Must contain, Must not contain, Exact match, Valid JSON, Regex, JSON schema, Expected tools called, Latency (at most N seconds) or Tokens (at most N tokens). Better when the score is sets whether a pass is good or bad.

There is a fourth kind, Human: your own ratings. You don’t add it by hand; AWFlow creates it (“You: helpful”) the first time you review an experiment.

Every score runs from 0 to 1. A check that doesn’t apply to an example (a Must contain on an example with no such words) gives no score, and a judge that fails gives no score either. Neither counts as 0.

The same evaluators can also score live conversations, except the ones that need an expected answer (Correctness, Exact match, Must contain, Must not contain, Expected tools called). See Online evals.

When an agent has online evals, its Evals tab shows an Online evals card. Its link 2 low scores → Add to dataset (with your count) lists the conversations that scored low in the last 7 days, worst first, and adds the ones you keep to a dataset, with their input. Run an experiment on them to check that your next change fixes them.

An experiment runs the agent (A, the baseline) and one to three variants (B, C, D) on every example of a dataset, then scores each answer.

New experiment: 1 · Agent and dataset with Inbox Triage on Everyday inbox requests (8); 2 · Variants, a table with A Baseline and B Shorter drafts side by side (Model, Role, Instructions, Temperature, and Skills, rules, memory with Vary these too), and + Variant; 3 · Scoring with the evaluators Completeness, Expected tools called, Must contain and Must not contain checked, the Judge model and Runs per example. Cancel and Run 16 runs are at the top right. New experiment: 1 · Agent and dataset with Inbox Triage on Everyday inbox requests (8); 2 · Variants, a table with A Baseline and B Shorter drafts side by side (Model, Role, Instructions, Temperature, and Skills, rules, memory with Vary these too), and + Variant; 3 · Scoring with the evaluators Completeness, Expected tools called, Must contain and Must not contain checked, the Judge model and Runs per example. Cancel and Run 16 runs are at the top right.

截图中的编号区域:1. Dataset; 2. Variants to compare; 3. Evaluators; 4. Run。

By default a variant can change the Model (cloud or on this device), Role, Instructions and Temperature. Vary these too adds Skills, Rules, Memory and Knowledge. Choosing a different Rules preset resets its per-action settings, as it does in the agent builder.

Under Actions in this experiment you see every tool of the agent:

  • Read-only, runs for real: tools that only read (search, browse, knowledge search) run normally.
  • Dry run: every tool that changes something (send, submit, write), and every tool AWFlow can’t classify, such as MCP tools and workflow tools, returns a simulated result. Nothing is sent.
  • Run for real: switch it on for a tool you trust in this experiment. That tool then runs normally.

Browser control is not available in experiments, because a live tab can’t be replayed the same way twice. Approvals are answered “deny”.

  • Judge model: one model grades every variant, so they are compared fairly. By default it is the agent’s model.
  • Runs per example: 1, or 3 to see how much the answers vary.
  • Estimate: the number of runs and judge calls, the tokens they may use, and how long on-device variants may take. If the estimate goes over the agent’s token budget, Run asks you to confirm first.

The experiment page opens and shows the progress per variant. It runs in that tab: Keep this tab open while it runs. Cloud variants run four prompts at a time; a variant on this device runs one prompt at a time and finishes last.

If the tab closes, the experiment shows Interrupted. Press Resume to run only what’s missing, or Stop to end it. Cancel stops a running experiment; the runs that finished keep their scores.

The finished experiment Shorter drafts vs current (Done), with Review A vs B and Apply B to agent: the variants A Current and B Shorter drafts; Scores per evaluator, 0 to 1, compared with baseline A (B is higher on Completeness and Expected tools called, lower on Must contain); Latency P50 and Tokens per run; then Examples with the filters All 8, Worse than baseline · 1, Outputs differ · 8 and Run failed · 0, and a row per example with both outputs and their scores. The finished experiment Shorter drafts vs current (Done), with Review A vs B and Apply B to agent: the variants A Current and B Shorter drafts; Scores per evaluator, 0 to 1, compared with baseline A (B is higher on Completeness and Expected tools called, lower on Must contain); Latency P50 and Tokens per run; then Examples with the filters All 8, Worse than baseline · 1, Outputs differ · 8 and Run failed · 0, and a row per example with both outputs and their scores.

截图中的编号区域:1. Scores, A vs B; 2. One example, both answers; 3. Apply the winner to the agent。

Below the scores, Latency P50 and Tokens per run compare the variants. Filter the examples with Worse than baseline, Outputs differ or Run failed. In an expanded row you can Edit expected answer or Add to dataset.

More actions › Pin as baseline makes this experiment’s A the dataset’s baseline: the score other experiments and the hub compare with.

Apply appears once the experiment is done or cancelled, and only when the agent is one of yours; Aria can’t be changed this way. What it does, and how to undo it, is in Agent versions.

Scores from a model are a guide. For the answers that matter, press Review A vs B on the experiment page and judge them yourself.

Review · Shorter drafts vs current, 0 / 8 rated: Pairwise A vs B, labels hidden and shuffled; Which is better? or Rate one at a time; the input of example 1 with its expected answer; Answer 1 and Answer 2 side by side; the buttons Answer 1 is better (1), Tie (T), Answer 2 is better (2) and Skip (S); and a Why? box. Review · Shorter drafts vs current, 0 / 8 rated: Pairwise A vs B, labels hidden and shuffled; Which is better? or Rate one at a time; the input of example 1 with its expected answer; Answer 1 and Answer 2 side by side; the buttons Answer 1 is better (1), Tie (T), Answer 2 is better (2) and Skip (S); and a Why? box.

截图中的编号区域:1. The two answers; 2. Your pick。

Key Which is better? Rate one at a time
1 Answer 1 is better Good
T Tie —
2 Answer 2 is better Bad
S Skip Skip
  • Which is better? compares two variants. With more than two, a Pair menu picks which two.
  • Rate one at a time shows one answer, label hidden, and you rate it Good or Bad.
  • The keys don’t fire while you type in Why? or while a dialog is open.
  • The review picks up at the first answer you haven’t rated. At the end, Review the skipped ones brings back what you skipped.
  • Your ratings are saved under the human evaluator (“You: helpful”) and show in the comparison with the other scores.
  • Experiments stay out of your numbers. Their runs appear in Traces, but never in Monitor charts or alerts unless a chart asks for them.
  • Tokens still count. Experiment and judge tokens count toward the agent’s budget, but a budget never pauses an experiment.
  • No side effects on your agent. Experiment runs don’t learn memory, don’t save a chat and don’t write an Activity entry.
  • The baseline is pinned. An experiment runs on the agent’s latest saved version, so editing the agent while it runs doesn’t change the remaining runs.
  • Import limits: CSV or JSON, up to 5 MB and 1,000 examples, inputs up to 8,000 characters. Longer inputs are skipped, never cut. In CSV, the columns are input, expected, expected_tools, must_contain, must_not_contain and split; separate list items with |.
  • Regex checks refuse patterns longer than 300 characters, backreferences and nested repeats, and look at the first 5,000 characters of the answer.
  • A judge reads untrusted text. The judge prompt fences the input and output and warns the judge when the output tries to steer its grade.
  • Example texts are illustrative. The names, prompts and scores in the screenshots are sample data.
  • Agent versions: drafts, Apply, roll back and “Always re-run on change”.
  • Online evals: score a sample of real conversations as they happen.
  • Traces: find a conversation and add it to a dataset.
  • Insights: turn a category of conversations into a dataset.
  • Fix with Aria: a proposed fix becomes a draft you test here.
  • Alerts & budgets: the token budget experiments count toward.
  • Agents: build and edit the agent you test.
询问 Aria