Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Ship Reliable AI Agents: LLM Evals, CI Gates and Monitoring
New

Ship Reliable AI Agents: LLM Evals, CI Gates and Monitoring

Hands-on evals for RAG and tool-calling agents in Python: datasets, LLM-as-judge, regression tests, production alerts
Created byBen Wallbaum
Last updated 11/2026
English
GermanEnglish

What you'll learn

  • Instrument an LLM app or agent with OpenTelemetry so each run leaves a trace of model, tool and retrieval calls, with message content off by default
  • Run error analysis on traces (open, then axial coding) and turn the failure taxonomy into a binary-labelled eval dataset
  • Write pytest code checks, each with pass and fail examples, before using an LLM judge, and carry them into a framework if your team uses one
  • Build a binary LLM judge, validate it against human labels with TPR, TNR and Cohen's kappa, and measure what each judge run costs
  • Evaluate a RAG pipeline by scoring retrieval (precision@k, recall@k, MRR) and generation (faithfulness) separately
  • Evaluate a tool-calling agent: grade the outcome first, check tools and arguments loosely, and measure reliability with pass^k
  • Gate pull requests on the eval suite in GitHub Actions: thresholds sized to standard error, resampling not temperature 0, and a no-key path for forks
  • Monitor an agent in production by sampling traces, scoring them online, and alerting on score, cost and latency regressions

Course content

10 sections • 32 lectures • 2h 7m total length
  • Your agent passed its tests. Then it gave a wrong answer3:05

    Say what an eval is made of (a dataset, a grader and a threshold), the order to grade in, and how the course's loop from traces to monitoring fits together.

  • Set up the companion repo (no API key needed)3:31

    Install the companion repo, confirm it runs in replay mode without an API key, ask the agent its first question, and know the conventions the whole course follows.

  • Your first eval in five minutes4:23

    Write and run a first eval in pytest (six cases, one code check, a pass-everything threshold), read its score with n and the standard error, fix the failure, and test the check itself with a passing and a failing example per rule.

  • Quiz: your first eval

Requirements

  • Comfortable Python: functions, classes and virtual environments
  • Basic pytest, and Git (a GitHub account is optional, only to run the CI workflows on your own copy)
  • You have called at least one LLM API before. No ML math, and no API key needed to follow along

Description

This course contains the use of artificial intelligence.
Your agent's pull request is green. Every unit test passes. That afternoon, a customer asks about a refund, and the bot explains a refund policy your company doesn't have.

Unit tests check that your code runs. They don't check that an answer is right. This course teaches the loop that does: traces, error analysis, a labelled dataset, graders, a CI gate, and monitoring of live traffic, built in plain Python and pytest on a small support agent you run on your own machine.

How it works

  • Watch. Each lecture is short and animated: traces unfold span by span, failure categories take shape from your notes, thresholds are drawn against their error bars

  • Run it. You get the companion repository as a zip with its full git history, one starting branch per section. Everything runs in replay mode against recorded responses, so you need no API key and spend nothing on tokens.

  • Practise. Every section ends with a short quiz and a practice exercise in the repo, with a check command that tells you when you've got it right.

What you'll work on

  • Traces: instrument an agent with OpenTelemetry so every run leaves a record of its model calls, tool calls and retrievals, and keep user data out of them.

  • Error analysis: read traces, write notes, group them into a failure taxonomy and turn it into a pass or fail labelled dataset.

  • Code checks first: write pytest checks with passing and failing examples before reaching for an LLM judge.

  • LLM judges you can trust: write a binary judge, validate it against human labels with TPR, TNR and Cohen's kappa, and measure what each run costs.

  • RAG: score retrieval (precision, recall, MRR) and generation (faithfulness) separately.

  • Tool-calling agents: grade the final outcome first, check tool choice and arguments loosely, and measure reliability with pass^k

  • CI gates: block pull requests on an eval suite in GitHub Actions, with thresholds sized to the suite's standard error, resampling instead of temperature 0, and a path that works without a key for fork pull requests.

  • Monitoring: sample and score live traces, and alert on score, cost and latency regressions, with hard limits per run.

  • Frameworks as adapters: port the suite to DeepEval and promptfoo and see why every version is pinned.

Compact. About two hours of video in ten sections. The practice exercises are where you spend the extra time.

Sourced. Facts, numbers and tool behaviour come from published sources, named on screen. The support agent's responses in the repo are authored fixtures, labelled as such, so every failure you study is deliberate and the same as in the lectures.

As-of note. Reflects the rules, standards and tool versions as of 2026-10-30. General information, not legal or professional advice; no guarantee of completeness or accuracy. Check the official sources before acting.

Who this course is for:

  • Software and ML engineers shipping LLM features or agents who can't yet tell whether a change made things better or worse
  • SDETs and QA engineers moving into AI testing who want a method to bring to their team, not another tool tour
  • Tech leads who need a release bar for AI features that they can defend