Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Agent framework - verified

smolagents (Hugging Face): features, install and latest version

smolagents (Hugging Face) is an AI agent framework maintained by Hugging Face. As its docs describe it: smolagents is an open-source Python library from Hugging Face for building and running agents in a few lines of code, with first-class support for CodeAgent, which writes its actions as Python code, alongside a conventional ToolCallingAgent. It supports Python. License: Apache-2.0. Latest release: Python package smolagents 1.26.0 (May 29, 2026).

Homepage - Source on GitHub - License

Languages
1
Latest Python
1.26.0
Released
2026-05-29
Features documented
6 of 10

Install

Copied verbatim from the page linked under each command.

Python

Terminal
pip install smolagents

Source: huggingface.co/docs/smolagents/installation

Quickstart

The first example from the official docs, unchanged. It may need an API key for the model provider it calls.

Python
from smolagents import CodeAgent, InferenceClientModel

# Initialize a model (using Hugging Face Inference API)
model = InferenceClientModel()  # Uses a default model

# Create an agent with no tools
agent = CodeAgent(tools=[], model=model)

# Run the agent with a task
result = agent.run("Calculate the sum of numbers from 1 to 10")
print(result)

Source: huggingface.co/docs/smolagents/index

Features

What the smolagents (Hugging Face) docs say it supports. Not stated means the docs do not say either way.

smolagents (Hugging Face) documented features, each with its source
FeatureValueSource
MCPYeshuggingface.co/docs/smolagents/index
Multi-agentYeshuggingface.co/docs/smolagents/guided_tour
Durable executionNot statedDocs do not say
Human in the loopYeshuggingface.co/docs/smolagents/examples/plan_customization
StreamingYeshuggingface.co/docs/smolagents/reference/agents
Structured outputNot statedDocs do not say
TracingYeshuggingface.co/docs/smolagents/tutorials/inspect_runs
MemoryNot statedDocs do not say
EvalsNot statedDocs do not say
Model-agnosticYeshuggingface.co/docs/smolagents/index
LanguagesPythonSee sources below
LicenseApache-2.0github.com/huggingface/smolagents/blob/main/LICENSE
Latest Python releasesmolagents 1.26.0May 29, 2026pypi.org/project/smolagents

Compare smolagents (Hugging Face)

FAQ

Does smolagents (Hugging Face) support MCP?

Yes, per https://huggingface.co/docs/smolagents/index

Which languages does smolagents (Hugging Face) support?

Python. Published packages: smolagents (Python).

How do I install smolagents (Hugging Face)?

For Python: "pip install smolagents", as shown at https://huggingface.co/docs/smolagents/installation. This page lists 1 install command, each copied from the linked source.

What is the latest version of smolagents (Hugging Face)?

As of October 18, 2026: Python package smolagents 1.26.0 (May 29, 2026), https://pypi.org/project/smolagents/.

What license is smolagents (Hugging Face) released under?

Apache-2.0. The license is at https://github.com/huggingface/smolagents/blob/main/LICENSE.

Does smolagents (Hugging Face) support durable execution?

Its official docs, read on October 18, 2026, do not say.

Does smolagents (Hugging Face) support human-in-the-loop?

Yes, per https://huggingface.co/docs/smolagents/examples/plan_customization

Is smolagents (Hugging Face) model-agnostic?

Yes, per https://huggingface.co/docs/smolagents/index

Which features does smolagents (Hugging Face) document?

6 of the 10 tracked here: MCP, Multi-agent, Human in the loop, Streaming, Tracing and Model-agnostic. Not stated in its docs: Durable execution, Structured output, Memory and Evals.

Sources

Last verified from the pages below.

Newsletter

Agent frameworks, every week

One email per week. Framework releases, new agent tooling and what they mean for what you build.