Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesAI Agents: From Architecture to Production
Get started free

Online course, Applied

AI Agents Course: From the Agent Loop to Production

9 lessons in Python with the Anthropic SDK: working code, a hands-on task and a quiz in each.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

An agent trace: a run with model calls and a tool call on a time axisLesson 1, 30 minThe Agent Loop: Perception → Reasoning → Action
  • Intermediatelevel
  • 5 h 40 min9 lessons, 3 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Write an agent loop with an iteration limit and handle stop_reason correctly
  • Define tools with JSON Schema, handle parallel calls and errors from each tool
  • Pick memory for the job: dialogue history, vector search, past runs, procedures in the system prompt
  • Build an orchestrator with workers: one agent researches, another writes
  • Write an MCP server on MCP Python SDK v2 with read_file and list_directory tools and an allowed-path check, then connect it to Claude Desktop
  • Hand a task to another agent over A2A: agent card, task lifecycle, waiting for the result
  • Evaluate an agent by trajectory, by tool calls and with an LLM judge, and a RAG agent with Ragas metrics
  • Add guardrails: prompt injection checks on tool results, human approval for risky actions, a per-task budget
  • Trace model and tool calls with OpenTelemetry, retry on RateLimitError and report the cost of a task

What an AI agent is and what the course covers

An AI agent is a program where a language model works in a loop: it picks a tool, reads the result and decides the next step until the task is done. The course builds that loop in Python with the Anthropic SDK and adds memory, an orchestrator with workers, MCP and A2A, evaluation and production deployment. 9 lessons.

Pricing and what's free →
01
Free lesson

The Agent Loop: Perception → Reasoning → Action

The agent architecture loop of perception → reasoning → action → observation in code: the model decides whether to search, sees the result and answers, and the loop stops on stop_reason or an iteration limit. The task: build that agent with a mock search, a limit of 5 iterations and separate handling for the max_tokens and refusal stop reasons.

Open the lesson →

Lessons

Agent architecture → multi-agent systems and protocols → agents in production. The first two lessons are free.

Module 1 · 3 lessons · 1 h 45 min

AI Agent Architecture

How the agent loop works, how agents differ from chatbots, how LLMs make decisions through tool calling, and what memory patterns exist.

1The Agent Loop: Perception → Reasoning → Actionfree30 minBreaking down the perception → reasoning → action → observation cycle, how LLMs make decisions inside an agent, and why agents are fundamentally different from chatbots.2Tool Calling: Deep Divefree35 minDefining tools with JSON Schema, the full tool_call → tool_result cycle, error handling, and parallel tool calls.3Agent Memory Patterns40 minFour memory types — in-context, semantic (vector DB), episodic (past runs), procedural (instructions) — and criteria for choosing the right one.
Module 2 · 3 lessons · 2 h

Multi-Agent Systems

The orchestrator–worker pattern, MCP for tool connectivity, and A2A for agent-to-agent communication.

4Orchestrator–Worker Pattern40 minTask decomposition, routing to specialized workers, result aggregation. Python pseudocode using the Anthropic SDK.5Model Context Protocol (MCP)45 minWhat MCP is, why it exists, MCP servers vs clients, using existing MCP servers, and writing a minimal MCP server in Python.

Who it is for

  • Python developers moving from a chatbot to an agent with tools
  • Engineers who need to split a large task across several agents
  • Teams connecting their files, databases and APIs to a model through MCP
  • Anyone shipping an agent to users and owning its cost, failures and safety

How the lessons work

  1. A 30–40 minute lessonTheory with diagrams and working Python code with the Anthropic SDK, explained step by step.
  2. A hands-on task in every lessonFor example, write an MCP server with a path check, or add three guardrails to an agent and a test for prompt injection through a search result. Submit it and the AI reviews it (after sign-up).
  3. Ready-made prompt, mistakes and tipsA prompt for the lesson's task and the mistakes that break agents: a loop with no iteration limit, a failed tool call without is_error, an orchestrator that does the workers' job itself.
  4. 2-question quiz and AI tutorThe quiz checks the key points; the AI tutor answers questions on the lesson topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

Sources behind the course

The course topics follow Microsoft's open AI Agents for Beginners curriculum (MIT license, 18 lessons, samples on Microsoft Agent Framework and Microsoft Foundry, some of which need an Azure account). Academl is not affiliated with Microsoft, and our lessons use the Anthropic SDK.

Since December 2025 MCP has been developed in the Agentic AI Foundation under the Linux Foundation, and the current MCP spec revision is 2026-07-28, with Streamable HTTP for remote servers; A2A has been a Linux Foundation project since June 2025, and the current A2A spec is 1.0.

The agent loop lesson uses claude-opus-5-5, which Anthropic's docs suggest as the starting point for new projects ($4 input and $20 output per million tokens). The other lessons' examples use claude-opus-4-5 and claude-haiku-4-5: as of November 9, 2026 both still work in the API as legacy models, and Opus 4.5 retires no sooner than November 24, 2026. Check token prices in the budget examples against Anthropic's pricing: Opus 4.5 is $5 input and $25 output, Haiku 4.5 is $1 and $5 per million tokens.

  • Microsoft — AI Agents for Beginners on GitHub
  • Anthropic — Building effective agents
  • Claude API — tool use
  • Model Context Protocol — documentation
  • A2A — protocol specification
  • Claude API — pricing
  • Claude API — model status and retirement dates

What's free and what it costs

  • The first two lessons, the agent loop and tool calling, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 9 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • Claude API calls run on your own key and are billed by Anthropic at its rates.

AI agents course: questions

Is this the official Microsoft course?+

Academl built this course on the topics of Microsoft's open AI Agents for Beginners curriculum; Microsoft is not involved. The original is free on GitHub under the MIT license: 18 lessons with samples on Microsoft Agent Framework and Microsoft Foundry. Ours has 9 lessons with Python code on the Anthropic SDK and an AI-reviewed task in each lesson.

What is the agent loop (perception, reasoning, action)?+

Each iteration has four steps. Perception: the agent receives the request, earlier tool results and memory. Reasoning: the model decides to answer, call a tool or stop. Action: your code runs the tool. Observation: the result goes back into the context and the loop repeats. It ends on stop_reason end_turn or when the iteration limit is hit; the max_tokens and refusal stop reasons also end the loop.

How is MCP different from A2A?+

MCP connects tools and data to a model: files, databases, external APIs. A2A connects agents to each other: an agent publishes an agent card with its skills, and another agent finds it and hands it a task. MCP has been developed in the Agentic AI Foundation since December 2025; A2A has been a Linux Foundation project since June 2025. Each protocol gets its own lesson.

When do you need a multi-agent system?+

When one agent has dozens of tools: the context bloats, the model mixes up roles and debugging gets hard. The orchestrator–worker pattern splits duties: the orchestrator breaks the task down and gathers results, and each worker has a narrow role. Simple subtasks go to a fast, cheap model and hard ones to a stronger model.

How do you evaluate an AI agent?+

On three levels: the trajectory (the right path and number of steps), tool use (the right tools with sensible arguments) and the final answer, checked by an LLM judge. For agents that search documents, add Ragas metrics: faithfulness, answer relevancy, context precision. The lesson task uses 10 test questions with reference answers and a summary report.

The course in short

level
Intermediate
For whom
For developers
Task
AI agents
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Intermediate

MCP, tools, and integrations

MCP course: why the protocol exists, which servers to install first, when to build your own and when a plain tool call is enough.

1 h 25 min, 4 lessonsCertificate
Intermediate, Claude

Tool Use in Claude: Based on Anthropic Materials

Learn Claude tool use (function calling) in Python: JSON Schema tools, tool_result, tool_choice, structured outputs, a 4-tool support chatbot.

2 h 45 min, 6 lessonsCertificate
Advanced

AI Agents & Tool Use

16 Python lessons: function calling in Claude and OpenAI, ReAct from scratch, planning, memory, MCP, LangChain and CrewAI, human-in-the-loop, security, deploy.

8 h 55 min, 16 lessonsCertificate
Advanced

OpenAI Agents & Orchestration

5 Python lessons: handoffs, a coding agent on the Agents SDK, reasoning models with function calling, 4 agents with Structured Outputs. Updated for 2026.

2 h 35 min, 5 lessonsCertificate

Keep going

AI Agents fundamentals →MCP, tools, and integrations →Tool use in Claude: function calling in Python →OpenAI Agents & Orchestration →Prompt Evaluations: LLM evals with promptfoo →AI Agents (Advanced) track →

Start with the agent loop

The first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
6
Agent-to-Agent (A2A) Protocol
35 min
The Linux Foundation open protocol for agent-to-agent communication (A2A 1.0): agent cards, authentication, task lifecycle, MCP vs A2A, and when to use which.
Module 3 · 3 lessons · 1 h 55 min

Agents in Production

Evaluating agent quality, defending against attacks and controlling costs, observability, and monitored deployment.

7Evaluating Agents40 minTrajectory eval, tool-use eval, final output eval, LLM-as-judge. The ragas framework and custom evaluators.8Agent Guardrails35 minPrompt injection defense, output validation, human-in-the-loop gates, cost budgets.9Production Deployment40 minObservability (traces, spans), retry/fallback logic, cost management, monitoring dashboards.
Certificate
Your name
for the course
AI Agents: From Architecture to Production
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
What experience do I need?+

Solid Python and experience calling an API with a key. If you have not used the Claude API yet, start with “Anthropic API Fundamentals”, and “Tool Use in Claude” covers tool calling in depth.

How long is the course and is there a certificate?+

9 lessons of 30–40 minutes, about 6 hours in total. There is no schedule and progress is saved. After all lessons you get a certificate with a unique verification code.

How much does the course cost?+

The first two lessons are always free. Signing up gives 7 days of full access with no card. Pro opens every lesson in the catalog for $9 a month or $79 a year. Claude API usage is billed by Anthropic separately.