
Explore the theory of AI agents and gain hands-on experience building one with the small agents framework from Huggingface, contrasting AI agents with traditional LLMs.
Understand large language models and their limitations, then see how AI agents extend LLMs with tools like web search to interact with environments and achieve goals.
An AI agent fuses a language model brain with a tool-enabled body to act toward a goal, where the brain reasons and routes and the body uses tools.
This lecture contrasts AI agent workflows and real agents, explaining how developers shape workflows from prompt chaining to control flow, while real agents act autonomously with environment feedback.
Use workflows for critical situations with defined structures. Use agents when outcomes are unpredictable and require creativity or accommodate diverse user requirements.
Explore multi-agent systems built from specialized agents with dedicated prompts and tool sets. The manager agent delegates tasks to web and coding agents and compares parallel, sequential, and competitive modes.
Compare popular frameworks for small agents, such as CRI, Autogen, Lang, Chain, Landgraf, and LlamaIndex, and apply Anthropic's guidance on when to use agents and prompt chaining.
smolagents offers a lightweight library to build agents with a language model and tools, featuring a code-first Python approach, built-in tooling, and gradio-based visualization.
Create your first agent with smolagents by initializing a uv-powered Python project, adding dependencies, and running main.py. Authenticate to hugging face with an access token stored as hf_token.
Observe how a multi-step agent builds a plan, uses web research and Python code to execute action steps, and logs results in the terminal for transparency.
Compare code-based actions and json tool calls in multi-step agents, and learn why code agent actions offer better composability, handling of complex objects, and generality.
Build a weather agent with a custom tool to fetch Tokyo weather data from sample data, import matplotlib for bar chart visualization, and execute Python code safely in a sandbox.
Explore how the code agent executes Python code locally and in secure cloud sandboxes for production deployment, with a default safe import list and optional additional imports for trusted libraries.
Learn to add a gradio-based user interface to a smolagents weather agent, launch the UI, access the local URL, and interact through prompts with console log details.
Publish your smolagents to the Hugging Face hub spaces, test them with a Gradio UI, and push or grab agents and tools from the hub.
Build a multi-agent system that orchestrates web search, content analysis, and final market reports via a manager delegating to a web search agent and an analyst.
Monitor ai agents in production with opentelemetry and Langfuse, exploring traces and spans for visibility. Learn local setup with docker and instrument the agent to diagnose latency and model usage.
Learn to set up and use MCP servers locally with small agents, discover servers via Smithery, configure environments and API keys, and inspect tools with the inspector.
Explore ai agents with small agents, from large language model limits to brain and body architecture, workflows, multi-agent systems, weather and code agents with tool calling.
What you'll learn:
Build AI agents that interact with external systems and tools
Understand the architecture of modern AI agent systems
Implement single agents and multi-agent collaboration patterns
Create custom tools for your AI agents
Add user interfaces with GradioUI
Deploy agents to Hugging Face Spaces
Set up monitoring with OpenTelemetry and LangFuse
Course Description:
Move beyond basic chatbots and build AI systems that take real actions in the world.
This course takes you from AI agent theory to implementation using the smolagents framework. You'll learn to build systems that search the web, process data, execute code, and collaborate with other agents.
We begin with theory, explaining the differences between traditional LLMs and AI agents, agent architecture, and when to use workflows versus agents. You'll understand the spectrum from developer-controlled flows to autonomous agents.
Then we dive into hands-on development. You'll build your first agent, create custom tools, implement user interfaces, and deploy to Hugging Face Spaces. The course concludes with multi-agent systems and monitoring techniques.
By the end, you'll have the knowledge and skills to design, build, and deploy AI agent systems for various applications.
Requirements:
Basic Python programming knowledge
Familiarity with LLM concepts
No prior experience with AI agents required
Who this course is for:
Software developers adding AI capabilities to applications
Machine learning engineers expanding beyond traditional models
AI enthusiasts building interactive systems
Professionals automating complex workflows
Students and researchers exploring AI applications