agents-course Documentation

This repository contains the Hugging Face Agents Course.

RAW Doc

Technical Documentation: huggingface/agents-course

ℹ️ Provenance: Multi-Tier Ingestion · CodeWiki Reference

Overview (`README.md`)

[The Hugging Face Agents Course](https://hf.co/learn/agents-course)

If you like the course, don't hesitate to ⭐ star this repository. This helps us to make the course more visible 🤗.

Content

The course is divided into 4 units. These will take you from the basics of agents to a final assignment with a benchmark.

Sign up here (it's free) 👉 https://bit.ly/hf-learn-agents

You can access the course here 👉 https://hf.co/learn/agents-course

Unit Topic Description
0 Welcome to the Course Welcome, guidelines, necessary tools, and course overview.
1 Introduction to Agents Definition of agents, LLMs, model family tree, and special tokens.
1 Bonus Fine-tuning an LLM for Function-calling Learn how to fine-tune an LLM for Function-Calling
2 Frameworks for AI Agents Overview of smolagents, LangGraph and LlamaIndex.
2.1 The Smolagents Framework Learn how to build effective agents using the smolagents library, a lightweight framework for creating capable AI agents.
2.2 The LlamaIndex Framework Learn how to build LLM-powered agents over your data using indexes and workflows using the LlamaIndex toolkit.
2.3 The LangGraph Framework Learn how to build production-ready applications using the LangGraph framework giving you control tools over the flow of your agent.
2 Bonus Observability and Evaluation Learn how to trace and evaluate your agents.
3 Use Case for Agentic RAG Learn how to use Agentic RAG to help agents respond to different use cases using various frameworks.
4 Final Project - Create, Test and Certify Your Agent Automated evaluation of agents and leaderboard with student results.
3 Bonus Agents in Games with Pokemon Explore the exciting intersection of AI Agents and games.

Prerequisites

  • Basic knowledge of Python
  • Basic knowledge of LLMs

Contribution Guidelines

If you want to contribute to this course, you're welcome to do so. Feel free to open an issue or join the discussion in the Discord. For specific contributions, here are some guidelines:

Small typo and grammar fixes

If you find a small typo or grammar mistake, please fix it yourself and submit a pull request. This is very helpful for students.

New unit

If you want to add a new unit, please create an issue in the repository, describe the unit, and why it should be added. We will discuss it and if it's a good addition, we can collaborate on it.

Citing the project

To cite this repository in publications:

bibtex
@misc{agents-course,
  author = {Burtenshaw, Ben and Thomas, Joffrey and Simonini, Thomas and Paniego, Sergio},
  title = {The Hugging Face Agents Course},
  year = {2025},
  howpublished = {\url{https://github.com/huggingface/agents-course}},
  note = {GitHub repository},
}

Overview (`units/en/unit1/README.md`)

Table of Contents

You can access Unit 1 on hf.co/learn 👉 here


Overview (`units/es/unit1/README.md`)

Tabla de Contenidos

Puedes acceder a la Unidad 1 en hf.co/learn 👉 aquí


Overview (`units/fr/unit1/README.md`)

Table des matières

Vous pouvez accéder à l'Unité 1 sur hf.co/learn 👉 ici


Overview (`units/ko/unit1/README.md`)

컨텐츠 목록

👉 여기에서 Unit1을 접속하실 수 있습니다.


Overview (`units/ru-RU/unit1/README.md`)

Table of Contents

You can access Unit 1 on hf.co/learn 👉 here


Overview (`units/zh-CN/unit1/README.md`)

目录

您可以在 hf.co/learn 上访问第 1 单元 👉 此处


Overview (`units/en/unit2/llama-index/README.md`)

Table of Contents

This LlamaIndex frame outline is part of unit 2 of the course. You can access the unit 2 about LlamaIndex on hf.co/learn 👉 here

Title Description
Introduction Introduction to LlamaIndex
LlamaHub LlamaHub: a registry of integrations, agents and tools
Components Components: the building blocks of workflows
Tools Tools: how to build tools in LlamaIndex
Quiz 1 Quiz 1
Agents Agents: how to build agents in LlamaIndex
Workflows Workflows: a sequence of steps, events made of components that are executed in order
Quiz 2 Quiz 2
Conclusion Conclusion

Overview (`units/es/unit2/llama-index/README.md`)

Índice de Contenidos

Este marco de trabajo de LlamaIndex es parte de la unidad 2 del curso. Puedes acceder a la unidad 2 sobre LlamaIndex en hf.co/learn aquí

Título Descripción
Introducción Introducción a LlamaIndex
LlamaHub LlamaHub: un registro de integraciones, agentes y herramientas
Componentes Componentes: los bloques de construcción de workflows
Herramientas Herramientas: cómo construir herramientas en LlamaIndex
Cuestionario 1 Cuestionario 1
Agentes Agentes: cómo construir agentes en LlamaIndex
Flujos de Trabajo Flujos de Trabajo: una secuencia de pasos, eventos compuestos por componentes que se ejecutan en orden
Cuestionario 2 Cuestionario 2
Conclusión Conclusión

Overview (`units/fr/unit2/llama-index/README.md`)

Table des matières

Ce plan de chapitre LlamaIndex fait partie de l'unité 2 du cours. Vous pouvez accéder à l'unité 2 sur LlamaIndex sur hf.co/learn 👉 ici

Titre Description
Introduction Introduction à LlamaIndex
LlamaHub LlamaHub : un registre d'intégrations, d'agents et de tools
Components Components : les blocs de construction des workflows
Tools Tools : comment construire des tools dans LlamaIndex
Quiz 1 Quiz 1
Agents Agents : comment construire des agents dans LlamaIndex
Workflows Workflows : une séquence d'étapes, d'événements composés de components qui sont exécutés dans l'ordre
Quiz 2 Quiz 2
Conclusion Conclusion

Overview (`units/ko/unit2/llama-index/README.md`)

목차

이 LlamaIndex 프레임 개요는 강의 2단원의 일부입니다. hf.co/learn에서 LlamaIndex에 대한 2단원에 접근할 수 있습니다 👉 여기

제목 설명
소개 LlamaIndex 소개
LlamaHub LlamaHub: 통합, 에이전트, 툴의 레지스트리
구성 요소 구성 요소: 워크플로우의 빌딩 블록
툴 툴: LlamaIndex에서 툴을 구축하는 방법
퀴즈 1 퀴즈 1
에이전트 에이전트: LlamaIndex에서 에이전트를 구축하는 방법
워크플로우 워크플로우: 순서대로 실행되는 구성 요소로 만들어진 단계, 이벤트의 시퀀스
퀴즈 2 퀴즈 2
결론 결론

Overview (`units/zh-CN/unit2/llama-index/README.md`)

目录

此 LlamaIndex 框架大纲是课程第 2 单元的一部分。您可以在 hf.co/learn 上访问有关 LlamaIndex 的第 2 单元 👉 这里

标题 描述
介绍 LlamaIndex 简介
LlamaHub LlamaHub:集成、智能体和工具注册表
组件 组件:工作流的构件
工具 工具:如何在 LlamaIndex 中构建工具
测验 1 测验 1
智能体 智能体:如何在 LlamaIndex 中建立智能体
工作流 工作流:由按顺序执行的组件组成的一系列步骤和事件
测验 2 测验 2
结论 结论

--- METRICS ---