Hugging Face: Agents - Guided tour
TUTORIALExplore how smolagents connects language models to tools. Compare code-generating agents with structured tool-calling agents, then learn how to run and customize an agent for a practical task.
10 tutorials and learning guides
Explore how smolagents connects language models to tools. Compare code-generating agents with structured tool-calling agents, then learn how to run and customize an agent for a practical task.
Learn why model-generated code needs an execution boundary. This guide explains the risks of running an agent in your own environment and presents safer execution options to consider before giving agents access to important files or services.
Build a documentation question-answering agent that indexes source pages, retrieves relevant passages and delegates analysis. The guide explains retrieval patterns and includes an end-to-end example with document splitting, embeddings, a vector store and cited answers.
Create a small weather server with callable forecast and alert tools. The tutorial introduces MCP capabilities, environment setup, host connection and transport-aware logging so application logs do not corrupt the protocol.
Start with Ollama's installation and first-request walkthrough. The guide distinguishes local execution from cloud requests and shows how applications connect. Choose the local path when you want to run a downloaded model without a cloud API key.
Turn free-form model responses into schema-constrained application data. Follow examples using JSON Schema and typed SDK helpers, learn supported schema constraints and account for refusals or incomplete outputs in your application logic.
Create a repeatable evaluation instead of judging a model from one answer. Start with sample prompts, providers and test cases, run the comparison and inspect results through the local web interface.
Build a simple weather log with a schedule trigger, a data request, message formatting and table storage. The example introduces how information moves between nodes without requiring coding experience or an external weather API account.
Review how self-hosted n8n sends telemetry and how to opt out through configuration. The guide distinguishes diagnostic events, version notifications and broader server isolation, helping operators avoid assuming that self-hosting automatically means no outbound communication.
Move from a Python inference script to an online model server. This practical introduction covers installation, batched generation and client requests to a vLLM endpoint, with links to hardware-specific installation guidance.