GuideAdvanced

Agents In Production

This guide takes the Reservo agent already built in the Agent Fundamentals and Tool Calling Guide — its capstone (M8) is the literal starting point — and runs it in production. It doesn't build an agent or teach it to handle a one-off error (that already exists); it instruments it, measures it, and gates it so it survives real traffic. It covers observability with structured logging of every loop step and a deterministic `trace_id` that correlates an entire run; measuring cost per run with an honest token estimate (`len(text) // 4`) and `claude-sonnet-5`'s cited list pricing; measuring latency per tool and total using an explicitly declared latency model — never the real clock, with explicit honesty about that limitation; a regression eval harness that checks form, deterministically, as a CI-style gate before a change (never a semantic judgment or LLM-as-judge); handling failures at scale with modeled backoff and a per-tool circuit breaker that persists across runs, including Claude's own API 429; and versioning the system prompt/tools/schemas with a rollout that compares the new version against the old one under the same gate before deciding GO/NO-GO. All the operations engineering actually runs on Python 3.14; the LLM call remains a concept, as throughout the rest of the ecosystem.

64
lessons
8
modules
English · Spanish
available in
Yes
certificate
Free
access
NIEVA

Outcomes

What you'll be able to do

  • Distinguish building an agent (already solved in another guide) from operating one: observing, measuring, gating, hardening failures, and versioning
  • Instrument an agent with structured logging per loop step (turn, tool called, arguments, result) and a deterministic `trace_id` that correlates a complete run
  • Measure cost per run with an honest token estimate and a fixed, cited `claude-sonnet-5` price, broken down by tool call
  • Measure latency per tool and total using a latency model declared in data — never the real clock — and compute percentiles (p50/p95) over a batch of runs
  • Build a form-based regression eval harness: a literal comparison against a fixed expected value (tool chosen, output schema, cost/latency thresholds), acting as a deterministic PASS/FAIL gate before a deployment
  • Handle failures at scale with modeled backoff retries and a per-tool circuit breaker (`CLOSED`/`OPEN`/`HALF_OPEN`) whose state persists across runs, including handling Claude's own API 429
  • Version the system prompt, the tool set, and its schemas as auditable artifacts, with a changelog documenting what changed per version
  • Decide a GO/NO-GO rollout by running the same regression, cost, and latency gate against the old and new versions before promoting one
  • Produce the real operational artifacts of a run: the structured log, the metrics summary, the regression report, and the version changelog
  • Precisely recognize the boundary with infrastructure SRE, semantic quality evaluation, cost optimization, and generic resilience patterns, and know which guide to reach for each

Before you start

What you need to bring

It's for you if...

  • Developers who've already built an agent (with the Agent Fundamentals and Tool Calling Guide or another path) and need to take it to production responsibly
  • Backend or platform engineers who need observability, cost, and latency for an LLM-based system without relying on an observability vendor
  • Teams that need a regression gate before every prompt or tool change, without building a full semantic evaluation framework
  • Anyone preparing for roles or interviews that assess the ability to operate AI agents in production, not just build them

Requirements and materials

  • Agent Fundamentals and Tool Calling Guide completed (or equivalent: the agent loop, `tool_use`/`tool_result`, basic error handling)
  • Basic Python: `dataclasses`, `enum`, exception handling
  • Python 3.14 installed with its standard library; no API key or internet connection required

Content

The syllabus, module by module

Open any of them to see its lessons.

Common questions

What people usually ask

Start whenever you like

Reviews

What students say

These reviews are from enrolled students who completed at least 50% of the course. We moderate reviews only on content grounds (spam, offensive language, personal data), never for being critical or negative.

No approved reviews yet.

Be the first to share your experience!