Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesAI Agents & Tool Use
Get started free

Online course, Engineering

AI Agents & Tool Use: from the First Function Call to an Agent in Production

16 lessons in 4 modules, about 9 hours: Python code, a task and a 4-question 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.

The agent loop: reason, act, observeLesson 1, 25 minWhat tool use is
  • Advancedlevel
  • 8 h 55 min16 lessons, 4 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Define tools in JSON Schema: enum, required and a description of when the model should call the tool
  • Run the full tool use loop in Claude: tool_use and tool_result blocks, parallel calls, errors via is_error
  • Run the loop in the OpenAI Responses API: function_call items, a function_call_output reply with call_id, assembling arguments from a stream, and the same step in Chat Completions
  • Design one-action tools and return errors with a hint field so the agent can fix itself
  • Write a ReAct loop without a framework, with three stop conditions and a repeat detector
  • Build plan-and-execute: a plan with depends_on, a step graph, parallel execution and at most 3 replans
  • Build hybrid memory: a window of recent messages, a summary of older ones and a semantic layer in a vector store
  • Build an MCP server on FastMCP (called MCPServer in MCP Python SDK v2) with a tool and a resource and connect it to Claude Desktop
  • Build an orchestrator with subagents and assemble agents in LangChain, AutoGen and CrewAI
  • Put an approval gate on risky tools, trace the agent in Langfuse or LangSmith and store its state in Postgres

What the AI agents and tool use course covers

The course builds an agent layer by layer: tool definitions in JSON Schema, the full tool use loop in Claude and OpenAI, ReAct without a framework with stop conditions, plan-and-execute, memory, your own MCP server, an orchestrator with subagents, LangChain, AutoGen and CrewAI, then human approval, tracing, prompt injection defense and deployment. 16 lessons in Python.

Pricing and what's free →
01
Free lesson

What tool use is

The model returns a tool name and arguments; your code runs the function and passes the result back into the conversation. In the task you define get_weather, search_docs and send_email in JSON Schema, write when the model should call each one, and mark the required fields. The Claude docs recommend descriptions of 3–4 sentences or more, longer than the 1–2 the task asks for.

Open the lesson →

Lessons

Tool use fundamentals → agent architectures: ReAct, planning, memory, MCP → multi-agent systems and frameworks → production: human-in-the-loop, observability, security, deployment. The first two lessons are free.

Module 1 · 4 lessons · 2 h

Tool Use Fundamentals

What tool use is, how the model decides to call a tool vs answer directly, the tool schema, and the differences between Claude, OpenAI and Gemini.

1What tool use isfree25 minTool use lets the model call your functions instead of hallucinating an answer. We cover JSON Schema, the call loop, and Claude / OpenAI / Gemini differences.2Function calling in Claudefree30 minThe full tool_use loop in Claude: tool_use and tool_result blocks, parallel calls, and forced tool selection via tool_choice.3Function calling in OpenAI35 minOpenAI's tools array, tool_calls and tool_choice, parallel calls in GPT-4o, and working with tools during streaming.4Designing good tools30 minSingle responsibility, clear descriptions, typed parameters, the 'tool vs system-prompt knowledge' boundary, and tool error handling.
Module 2 · 4 lessons · 2 h 20 min

Agent Architectures

ReAct, planning, memory, and the MCP protocol — the foundational patterns for building a single agent.

5The ReAct pattern from scratch35 minImplement the Reason–Act–Observe loop without a framework: thought, action, observation, stopping conditions, max iterations, and tool failure handling.

Who it is for

  • Python developers connecting their own functions, APIs and databases to an LLM and building agents that are not tied to one provider
  • Teams choosing between their own agent loop and frameworks such as LangChain or CrewAI
  • Anyone taking an agent to production: approval for risky actions, tracing, cost tracking, deployment
  • Teams whose agent reads email, web pages or documents and has to withstand prompt injection

How the lessons work

  1. A 25–35 minute lessonA walkthrough with Python code: tools, the agent loop, frameworks and production plumbing.
  2. A hands-on task in every lessonFor example, build an approval gate that pauses the agent in an awaiting_approval state and resumes after a human decides, or a ReAct loop that stops after three identical tool failures. AI checks your solution and explains the result (after sign-up).
  3. Ready-made prompt and common mistakesA prompt for the lesson task and the mistakes that break agents: a function error returned as plain text without is_error, arguments read as a dict instead of a JSON string, a loop with no iteration limit, the whole history on every step, code execution without Docker, web text treated as instructions.
  4. 4-question quiz and AI tutorThe quiz checks the lesson; the AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a 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

What changed since the lessons were written

The course was published in May 2026. Some example models are outdated: Anthropic retires claude-sonnet-4-5 on Nov 30, 2026 (replacement: claude-sonnet-5-5), and OpenAI shuts down gpt-4o, still used in the AutoGen lesson, on Jan 14, 2027 (replacement: gpt-6-luna). On Nov 9, 2026 the OpenAI function calling lesson was rewritten for the Responses API on gpt-6-luna.

On Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Fable 5.1, forced tool choice (tool_choice of type any or tool) returns a 400 error. The lesson tip "tool_choice: tool as a strict JSON extractor" and the forced-tool plan in the planning lesson are replaced on these models with auto plus strict: true on the tool definition, or with structured outputs; Claude Haiku 5.5 still accepts forced tool use.

The Claude docs call a detailed tool description the most important factor in tool performance and recommend at least 3–4 sentences. OpenAI recommends the Responses API for new projects and always enabling strict; GPT-6 Astra, GPT-6.1 Sol and GPT-6.1 Terra call tools only through Responses.

Microsoft has archived AutoGen: no more fixes, including security fixes, and Microsoft points new projects to Microsoft Agent Framework 1.0 with a migration guide. In LangChain 1.x, AgentExecutor and create_tool_calling_agent moved to the langchain-classic package, and LangChain suggests create_agent for new agents.

Since December 2025 MCP has been developed in the Agentic AI Foundation under the Linux Foundation, and the current spec revision is 2026-07-28; the lesson's stdio connection to Claude Desktop still works. MCP Python SDK v2 renamed FastMCP to MCPServer and removed the mcp.server.fastmcp import, so the lesson's code needs the v1 line (mcp<2), which still gets critical fixes. Anthropic's docs moved to platform.claude.com.

  • Claude — defining tools and tool_choice
  • Claude — strict tool use
  • OpenAI — Function calling
  • Model Context Protocol — specification
  • AutoGen — README on the archive
  • Microsoft Agent Framework

What's free and what it costs

  • The first two lessons, what tool use is and function calling in Claude, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 16 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.
  • Anthropic and OpenAI API calls from the examples run on your own keys and are billed by the providers at their rates.

AI agents course: questions

What is tool use (function calling)?+

A way to give the model your functions. You define tools in JSON Schema, the model replies with a tool name and arguments, your code runs the function and returns the result, and the model writes its answer with it. That is how an agent gets fresh data and acts in other systems. For knowledge the model already has, a tool only adds an extra request.

My own agent loop or a framework?+

The course shows both. A ReAct loop without a framework is transparent and easy to debug. LangChain assembles an agent faster with tracing in LangSmith, and CrewAI suits role pipelines like research → write → review. The lesson uses AutoGen for agents that write and run code, but Microsoft has archived it and points new projects to Microsoft Agent Framework.

When do I need multiple agents?+

Per the lesson, several agents pay off when subtasks need different tools and prompts, when a subagent must digest a large volume and return a summary, or when subtasks are independent and can run in parallel. A linear, uniform task is cheaper and more reliable with one agent. Budget up front: N subagents means roughly N calls plus the orchestrator and the aggregator.

How do I protect an agent from prompt injection?+

The security lesson stacks several layers: an "untrusted data" marker in the prompt lowers the risk but does not remove it; risky tools such as sending email or deleting run only after human approval; code runs in a Docker sandbox; a hard cap on actions per run; narrowly scoped keys and a read-only database replica.

How do I get guaranteed valid JSON from an agent?+

Set strict: true on the tool definition: both Claude and OpenAI then keep the arguments to the schema. Forced tool_choice on Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Fable 5.1 returns a 400 error, so there you use auto with strict, or structured outputs. In OpenAI, tool_choice: required makes the model call at least one tool.

The course in short

level
Advanced
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
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
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
Intermediate

AI Agents: From Architecture to Production

9 lessons on AI agents in Python with the Anthropic SDK: the agent loop, tool calling, memory, orchestrator–worker, MCP, A2A, evals, guardrails, deployment.

5 h 40 min, 9 lessonsCertificate

Keep going

AI Agents fundamentals — if the topic is new →Tool Use in Claude: a Python course on function calling →MCP, tools, and integrations →OpenAI Agents & Orchestration: handoffs and the Agents SDK →n8n AI Automations: agents without code →Lesson: pip install anthropic and your first Claude request →Claude Opus 5.5 for agents: pricing and how to test it →

Define the first three tools for your agent

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
Plan-and-Execute and task decomposition
35 min
The plan-and-execute pattern: task breakdown, a dependency graph, replanning on failures, and structured output for the plan.
7Agent memory35 minIn-context memory and history management, external memory via a vector store, episodic vs semantic memory, and summarization.
8Model Context Protocol (MCP)35 minWhat MCP is, the client/server architecture, Claude Desktop + MCP servers, a simple MCP server, and tools / resources / prompts.
Module 3 · 4 lessons · 2 h 25 min

Multi-Agent Systems

Orchestrator + subagents and three popular frameworks: LangChain, AutoGen, CrewAI.

9Orchestrator and subagents35 minThe orchestrator + subagents pattern, when multiple agents are justified, task routing, and result aggregation.10Agents in LangChain40 minAgentExecutor, create_tool_calling_agent, custom tools via @tool, and LangSmith tracing for agents.11AutoGen: ConversableAgent and GroupChat35 minConversableAgent, AssistantAgent and UserProxyAgent, GroupChat and nested chats, a code-execution agent.12CrewAI: Crew, Agent, Task, Process35 minCrewAI role-based agents, Task with expected output, sequential vs hierarchical process, and passing context between tasks.
Module 4 · 4 lessons · 2 h 10 min

Production Agents

Human-in-the-loop, observability, security, and deploying agents to production.

13Human-in-the-loop30 minWhen to pause for human approval, interrupt patterns, approval gates, and asynchronous agent workflows.14Agent observability30 minLangSmith and Langfuse, tracing tool calls, per-agent cost tracking, debugging failed calls, and replay.15Agent security35 minPrompt injection in tool inputs, tool result poisoning, sandboxed code execution, rate limiting agent actions, and scope limitation.16Deploying agents35 minStateless vs stateful agents, state persistence (Redis, Postgres), long-running and webhook agents, deploying on Modal and Fly.io.
Certificate
Your name
for the course
AI Agents & Tool Use
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
  • LangChain v1 — migration guide
  • MCP Python SDK — migration to v2
  • How is this different from the other agent courses?+

    AI Agents fundamentals explains the concepts in an hour. Tool Use in Claude covers tools in Claude only, from Anthropic's notebooks; OpenAI Agents & Orchestration covers the Agents SDK; the MCP course covers just the protocol. This one is 16 provider-neutral lessons: from a tool schema to frameworks, security and deployment.

    What experience do I need?+

    The course is advanced: solid Python, working with APIs and JSON, an Anthropic or OpenAI key for the examples, and Docker for the code-execution lessons. If you have never called a model from code, start with the Getting started lesson in Anthropic API Fundamentals.

    How long is the course and what does it cost?+

    16 lessons, 535 minutes in total, with a certificate with a verification code after all lessons. The first two lessons are always free, sign-up gives 7 days of full access with no card, then Pro is $9 a month or $79 a year. Model API calls are billed by the providers separately.