Academy / Generative AI Engineering

Path 3 · Course 2 · For developers and technical teams

AI Agents & Agentic Workflows

Design agents that plan, use tools and take actions: workflows vs agents, tool use and MCP, the five workflow patterns, the agent loop, guardrails and human approval, and evaluating and operating agents — with Python you can run and edit on the page.

By · Last updated

6 modulesAbout 5 hoursKnowledge check per moduleFinal assessment & certificateBasic Python

0 of 6 modules complete

Modules

  1. 1

    What makes an AI agent

    Workflows vs agents, the augmented LLM, when (not) to use agents, and the autonomy spectrum, the difference shown in runnable code, and what autonomy costs in tokens.

    40 min
  2. 2

    Tool use and the Model Context Protocol

    How function calling works, defining tools, a full round of tool use in Python, designing good tools, and MCP, validating arguments, choosing between tools, how A2A complements MCP, and tool poisoning.

    50 min
  3. 3

    Workflow patterns

    Prompt chaining, routing, parallelisation, orchestrator–workers and evaluator–optimiser — with code for routing and evaluator–optimiser, plus a code gate, majority voting and a test set for the router.

    45 min
  4. 4

    Building an agent loop

    A bounded agent loop in Python, state and memory, managing context, planning, multi-agent systems, skills and frameworks, plus watching the context grow, clearing old tool results and context engineering.

    50 min
  5. 5

    Guardrails and human-in-the-loop

    Agent failure modes, guardrails by design, approval gates in code, escalation, failure handling and prompt injection, with a live injection attack, two defences against it, action tiers and deny-by-default.

    45 min
  6. 6

    Evaluating and operating agents

    Agent metrics, building evaluations with mock tools, trajectory grading, repeated runs, observability, staged roll-out and governance, comparing guarded and unguarded agents on one test set, cost per task, and turning incidents into tests.

    45 min

Frequently asked questions

What is an AI agent?

An AI agent is a system where a language model decides which steps to take and which tools to use, in a loop, to complete a task. In a workflow, by contrast, the steps are fixed in code. Module 1: What makes an AI agent →

What is the Model Context Protocol (MCP)?

MCP is an open standard for connecting AI applications to tools and data sources. A tool exposed through an MCP server can be used by any compatible AI app. Module 2: Tool use and the Model Context Protocol →

When should I use an agent instead of a workflow?

Use the simplest thing that works. Fixed workflows are cheaper, faster and more predictable; agents are worth it only for open-ended tasks where the steps can't be known in advance. Module 1: What makes an AI agent →

How do you keep AI agents safe?

Limit their tools and permissions, add approval gates for risky actions, cap the number of steps, plan for failures and escalation, and defend against prompt injection. Module 5: Guardrails and human-in-the-loop →

How do you evaluate an AI agent?

Test with mock tools, grade both the final result and the path the agent took, run each case several times because results vary, and monitor agents closely after a staged roll-out. Module 6: Evaluating and operating agents →