Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Evaluate AI Agents: Tool-Use, Multi-Turn, Safety, CI
New

Evaluate AI Agents: Tool-Use, Multi-Turn, Safety, CI

Build an eval suite for a tool-using agent in Python and a PR gate that fails when a prompt change makes it worse.
Last updated 11/2026
English

What you'll learn

  • Why agent evals differ from model evals, and what to grade in a trace.
  • Check tool calls: schema validity, right tool and arguments, required, forbidden and ordered steps.
  • Build a golden task set from real traces and grade with state checks before an LLM judge.
  • Calibrate an LLM judge against human labels.
  • Test multi-turn behaviour with scripts, a user simulator and injected tool faults.
  • Test for prompt injection through tool output, permission violations and over-refusal.
  • Measure flakiness with repeats and pass at k, and set a regression threshold.
  • Run a PR gate that fails a bad prompt change and passes the fix.

Course content

7 sections • 51 lectures • 2h 3m total length
  • 1.1 What you will build and how to run the labs2:51
  • 1.2 The agent under test: tools, loop, traces2:49
  • 1.3 Why agent evals differ from LLM evals2:43

Requirements

  • Python and pytest basics.
  • Python 3 on any laptop. No GPU and no paid API key. A local model through Ollama is optional.

Description

This course contains the use of artificial intelligence. The narration is a synthetic voice; every output on screen comes from code you can run yourself.

51 short lectures, about 124 minutes, one working project. You get a small tool-using support agent, recorded traces of it, and an eval suite you build lecture by lecture in plain Python and pytest. Every lecture shows the code and the real terminal output, and each section has a download with the code and a check script that prints a pass or a fail.

Sections: how agent evals differ from model evals; tool-call schema, argument and trajectory checks; golden task sets from traces, state graders and a calibrated LLM judge; scripted multi-turn conversations, a user simulator, fault injection; prompt injection through tool output, permission violations, refusal and over-refusal; repeats and pass at k, thresholds and a regression gate, drift, and a final project where the PR gate fails a bad prompt change and passes the fix; plus a capstone section: a full suite runner, turning an incident into a test, paired A/B comparison, and plugging in your own agent.

What this course does not cover: RAG evaluation and generic LLM-as-judge basics (see the AI Evals course), hosted eval platforms, or fine-tuning. Everything runs offline from recorded traces; a local model is optional. No paid API key is needed.

Who this course is for:

  • Developers and AI engineers who ship an LLM agent that calls tools and want tests for it.
  • Engineers who already know basic LLM evals and want agent-specific checks.
  • Not for complete programming beginners.