← All courses

AI Agents: From Fundamentals to Certification (Hugging Face AI Agents Course)

Developers and data specialists who want to build applications powered by LLM agents. ML engineers exploring agentic frameworks (smolagents, LlamaIndex, LangGraph). Technical specialists preparing for projects involving RAG, tool calling, and agent evaluation.

Log in to start →

Course preview

What you will learn

Explore the full curriculum before you enrol. Lessons unlock after purchase or free enrolment.

01

Introduction and What an Agent Is

Topics covered

  • Understand the definition of an AI agent and the spectrum of "agency" (from a simple processor to multi-agent systems).
  • Understand how LLMs work: tokens, special tokens, chat templates.
  • Master the agent's Thought → Action → Observation loop and the ReAct approach.
1 lesson10 questions~25 min
02

The smolagents Framework

Topics covered

  • Understand the philosophy of smolagents: minimalism, a code-first approach, integration with the Hugging Face Hub.
  • Master the two agent types: `CodeAgent` (actions are Python code) and `ToolCallingAgent` (actions are JSON).
  • Learn to create tools via the `@tool` decorator and the `Tool` subclass, and to connect tools from the Hub, Spaces, LangChain, and MCP servers.
1 lesson10 questions~25 min
03

The LlamaIndex Framework

Topics covered

  • Understand how LlamaIndex is organized: components, tools, agents, and workflows; the role of LlamaHub.
  • Master the full RAG pipeline: loading documents → indexing → storing → querying → evaluation.
  • Learn to create four types of tools: FunctionTool, QueryEngineTool, Toolspecs, Utility Tools.
1 lesson10 questions~25 min
04

The LangGraph Framework

Topics covered

  • Understand when LangGraph is needed: the "control vs. freedom" trade-off and how it differs from LangChain.
  • Master the building blocks: State (TypedDict), Nodes, Edges (direct and conditional), StateGraph, START/END.
  • Build a first graph — an email classifier with conditional routing.
1 lesson10 questions~25 min
05

Practical Case Study: Agentic RAG

Topics covered

  • Understand how agentic RAG differs from classic RAG: the agent itself chooses the tool and answering strategy.
  • Build a BM25-based retriever tool over a dataset of guests.
  • Create helper tools: web search, weather (a dummy API), Hugging Face Hub statistics.
1 lesson10 questions~25 min
06

Final Project and the GAIA Benchmark

Topics covered

  • Understand what the GAIA benchmark is: its design principles, difficulty levels, and the "human vs. AI" gap.
  • Understand the final assignment's format: 20 Level 1 questions, the submission API, the leaderboard, the 30% threshold.
  • Design and build your own agent for solving GAIA tasks.
1 lesson10 questions~25 min
07

Bonus Units

Topics covered

  • Understand function calling as a learned model capability, and fine-tune a model with LoRA (bonus 1).
  • Master agent observability and evaluation: traces, metrics, offline/online evaluation, LLM-as-a-Judge (bonus 2).
  • Understand how an agent differs from an "LLM in a game," and build an agent for Pokémon battles (bonus 3).
1 lesson10 questions~25 min
08

Final Exam

Final exam
35 questions~60 min