ByteByteGoFree Live Workshop

· 45 minutes · Free

How to Evaluate an AI Agent: A Step-by-Step Live Eval of Muse

In this live session, you’ll walk through an end-to-end eval of Muse on a refund task, from defining success to verifying what it actually did.

Manjeet Singh

Manjeet Singh

Sr. Director PM at Salesforce

THE EVAL LOOPTask + Initial StateDesign the EvalMuseGrade What It DidTest ReliabilityClose the LoopShip v1.4Code CheckLLM Judgepass@5pass^5runsoutputs5 trialsfailurespassregression tests1234

Session Outline

  1. Part 1

    Design the Eval

    • Why agent evals are harder (multi-turn, side effects, transcript vs. outcome)
    • Task spec (refund policy, initial state, success criteria)
    • Failure modes (wrong amount, policy violation, duplicate refund, false success, unauthorized action)
    • Balanced test sets (should-refund vs. should-not-refund cases)
    • Sandboxed environment with a clean state per trial
    Mind map of agent eval methods. Left: efficiency (turns, latency, token cost), outcome (state_check, unit tests, goal-state diff) and reliability (pass@k, pass^k, stress tests). Right: trajectory (tool_calls, arguments, step order), LLM judges (rubric, pairwise, with evidence) and human review (spot-checks, expert labels, calibration)
  2. Part 2

    Grade What It Actually Did

    • Code-based graders: end state vs. goal state (τ-bench style)
    • Trajectory evaluation (tool calls, arguments, preconditions, HITL approval)
    • LLM-as-a-judge with evidence (per-criterion rubrics, “Unknown” option, human calibration)
    • Human review (edge cases, judge spot-checks)
    • Hard gates for money vs. weighted scores for tone
    Real traffic becomes traces, which are reviewed into a golden dataset. Muse runs it, and its outputs are scored by a code check and by an LLM judge with a rubric
  3. Part 3

    Test Reliability and Robustness

    • Multiple trials: pass@k vs. pass^k (why refunds need pass^k)
    • Fault injection (payment API timeouts and errors)
    • Adversarial users (out-of-policy refund requests)
    • Prompt injection (hidden instructions in emails and web pages)
    The same refund task runs five times on Muse while a pushy user, a hidden instruction in an email and a payments timeout are injected. Four of five trials pass, so pass@5 passes and pass^5 fails
  4. Part 4

    Close the Loop

    • Live results: Muse’s pass rates by test case and grader
    • Error analysis (open coding, axial coding, agent fix vs. grader fix)
    • From capability evals to regression suites (CI on every model or prompt change)
    • Online evals on production traces (new failures become test cases)
    Two loops around one CI eval suite. Inner loop, minutes: failing evals go to error analysis, then a fix, then a rerun. Outer loop, days: passing evals ship v1.4, production traces feed online evals, and new failures join the golden dataset
  5. Part 5

    Live Q&A

    Q and A

Meet Your Instructor

Manjeet Singh

Manjeet Singh

Senior Director PM · Salesforce

Manjeet is a Senior Director of AI Product Management at Salesforce, where he leads products that make large-scale AI agents production-ready: agent evaluations, observability, and auto-optimization. He has over 25 years of experience as an engineer and AI product leader across startups and large enterprises.