AI Agents Evaluation Testing

Agent Test Scenario Prompt

Build the test set an agent has to pass — scenarios across the happy path, edges, and adversarial inputs, each paired with the expected behavior to grade against.

Overview

You can't tell whether an agent behaves until you've defined what behaving looks like across more than the demo. This prompt generates a test scenario set: normal cases, edge cases, ambiguous inputs, and adversarial attempts — each with the expected behavior (the right answer, the right refusal, the right escalation) so every run produces a pass/fail, not a vibe.

How to use this resource

  1. Define what behaving looks like

    Note what the agent should do across the happy path, the edges, and adversarial inputs. Each scenario needs an expected behavior to grade against.

  2. Open this resource in Test Case Prompt Generator

    Load the prompt into Test Case Prompt Generator and fill in the agent job. It generates the scenario set, each paired with the expected behavior, so every run produces a pass or fail.

  3. Review the generated scenarios

    Read the normal, edge, ambiguous, and adversarial cases and confirm each expected behavior matches what a correct agent would do.

  4. Run the set and feed back the gaps

    Run the agent against the scenarios, then use the failures to refine its prompt or instructions and re-test.

Why This Works

  • Expected behavior per scenario turns evaluation into pass/fail, not opinion
  • Adversarial and out-of-scope cases test what demos never do
  • Covering 'should ask, not guess' captures a behavior teams forget to test

Best for

  • Any agent heading toward production
  • Teams evaluating on a demo instead of a test set
  • Agents where wrong behavior is costly

Not for

  • Scoring the results — use the Agent Evaluation Scorecard
  • Building tests for deterministic code — use a unit test prompt

Use cases

  • Building the evaluation set for a new agent
  • Generating adversarial and edge-case tests
  • Defining expected behavior so runs can be graded

FAQ

How do the OUT OF SCOPE, ADVERSARIAL, and MISSING INFO scenario categories differ?

They test three separate failure surfaces. OUT OF SCOPE covers requests the agent should decline or hand off (and how); ADVERSARIAL covers prompt-injection, jailbreak, and manipulation it must resist; MISSING INFO covers cases where it should ask a clarifying question rather than guess. A refusal, a resisted attack, and a clarifying question are different correct behaviors, so keep them in distinct groups.

Why does every scenario need an EXPECTED BEHAVIOR field instead of just the input?

Without a stated correct outcome, an agent run gives you a vibe, not a result. The template pairs each input with the expected behavior — the right answer, refusal, escalation, or clarifying question — so each run produces a graded pass or fail. The RULES also require it be objective enough that two graders would agree, which is what makes the set usable as an eval.

Can the Test Case Prompt Generator run my agent against these scenarios and score it?

It only builds the scenario set — happy-path, edge, out-of-scope, adversarial, missing-info, and known-failure cases, each carrying an expected behavior. You run your agent against them in ChatGPT, Claude, or wherever the agent lives, then mark each scenario pass or fail yourself. Generating the cases and grading a run are separate steps; this prompt does the first, not the second.

Which KNOWN FAILURE MODES should I supply before generating the set?

Category 6 is agent-specific, so the generator can't invent your history — feed it anything that has broken before: a tool call it hallucinated, a hand-off it skipped, a jailbreak that slipped through, a format it mangled. List these in the INPUT alongside what the agent does and what 'correct' means, so the scenario set locks in a regression test for each one.

More resources from Test Case Prompt Generator

Resources that pair well

Related tools

Projects that use this resource

Workflows that use this resource

Guides for this resource

Tip: Save time by exploring related resources and tools that integrate with this resource.