AGENT PROFILES

smolagents

Hugging Face · Agent builders

Builds lightweight Python agents that execute actions as code or use structured tool calls.

Typical tasks

Availability in Europe
Added to the catalog on Builds lightweight Python agents that execute actions as code or use structured tool calls.Details
01

What it does

5 features

smolagents · Programmable agent framework

Product and access

Independent agent framework with its own execution loop.

Core features

5 Funktionen aus Anbieterquellen · abgeglichen am 16.11.2026. Verfügbarkeit und Grenzen stehen direkt darunter.

  • CodeAgent and ToolCallingAgent

    CodeAgent uses Python actions; ToolCallingAgent uses structured calls.

    Source 2
  • Sandbox execution

    Generated code can run in documented sandbox backends.

    Source 2
  • Hub and MCP tools

    Tools from MCP, LangChain or Hub Spaces can be connected.

    Source 2
  • Connect models flexibly

    Inference Providers, API adapters and local models through Transformers or Ollama are documented.

    Source 2
  • Inspect agent steps

    AgentMemory and replay expose planning, tool actions, observations and errors from a run.

    Source 2

Usable AI models

Open choice

Hugging Face Inference Providers, OpenAI/Anthropic APIs and LiteLLM; local models through Transformers or Ollama.

Model families named

  • OpenAI (GPT)
  • Anthropic (Claude)
  • Other models can be connected freely
Model choice
You choose
Your own API key
Yes
Router or custom endpoint
Yes
Local models
Yes

The rating covers the generally available main access. Partly documented · Sources accessed on

smolagents · Product · smolagents · Repository

02

Does it fit my task?

2 practical tasks · 3 requirements and limits

A good fit if …

  • you want to integrate agents into a custom application and operate them yourself
  • you can deliberately review results and permissions
  • you want to explore Python code agents and their individual execution steps

Less suitable if …

  • you seek a fully managed service without development effort
  • you want to execute generated code without configuring sandboxing and tools yourself

Editorial assessment based on provider documentation. Not a product test.

Practical tasks

Editorial examples based on documented features. No product tests performed.

01

Embed a knowledge agent in a custom app

Your input
Documents, defined read tools and model access.
Possible result
A custom application answers questions through a configured agent loop.
What to check
Test sources, user isolation and tool interfaces.
02

Build a business process with approval

Your input
Process steps, APIs and a mandatory approval policy.
Possible result
An agent performs preparatory steps; the custom application controls approval.
What to check
Verify failure paths, resumption and permissions using realistic cases.
EDITORIAL EXAMPLE

Embed a knowledge agent in a custom app

Your possible prompt

Design a process for new requests: capture information, sort it by topic, and create a proposed response. Plan an approval step before external actions.

Adjust the task, data and permissions.

Requirements and limits

  • Requirement

    Setup and access

    Install the SDK, configure model access and tools, and set up persistence and operations.

    Source 2
  • Limitation

    Requirements and limits

    Development, permissions and operations are the responsibility of the custom application. Documented components must be combined and verified for the use case.

    Source 1
  • Limitation

    Constrain code execution

    CodeAgent generates and executes Python. Configure sandboxing, allowed imports and accessible tools for the specific deployment.

    Source 2
03

Can I use it?

With requirements

Europe & regional availability

Access and data processing must be assessed separately.

Reviewed scope: smolagents · Access and processing
Reviewed on:

  • With requirements

    Access and regional conditions

    The source code or documented download is publicly available. Model providers, external connections and hosting have their own regional and privacy conditions. Uniform EU data residency is unspecified within the checked scope.

    Region, reason and source

    Region covered: EU/EEA, United Kingdom and Switzerland

    Documented reason: The configured deployment and terms of connected services determine the applicable conditions.

    Official source · huggingface.co · Official source · github.com

Europe and regulation explained

Accounts & permissions

Based on provider documentation. Permissions depend on the account, integration and organization policies. Review the permissions actually requested before use.

Configuration covered: smolagents · Accounts and permissions

Sources reviewed:

Show all 3 points
  • Documented with conditions

    Account used

    Model and service access is assigned within the custom application.

    Evidence · Evidence
  • Documented with conditions

    Admin approval

    Configure tool permissions and human approvals for the task; verify coverage for each tool.

    Evidence
  • Documented with conditions

    Data access & team sharing

    Custom functions, provider adapters and documented MCP/API connections.

    Evidence
04

Memory and conversation continuity

0 of 6 criteria documented

AgentMemory holds planning, actions, observations and errors. Replay and programmable steps permit inspection and changes; durable persistence is defined by the application.

smolagents · documented product scope

Sources accessed:

Documentation by criterion

StoragePartly documented

Storage and scope

AgentMemory holds planning, actions, observations and errors. Replay and programmable steps permit inspection and changes; durable persistence is defined by the application.

SelectionPartly documented

Selection and timing

Planning, actions, results and errors are recorded as steps in AgentMemory.

Edit & deletePartly documented

Inspect, edit and delete

The application can read and edit memory.steps and the system prompt; callbacks can remove older content.

Access boundariesPartly documented

Agent and channel boundaries

Memory belongs to each agent object; configure shared cross-team persistence yourself.

RetrievalPartly documented

Retrieval

Execution uses recorded steps; replay makes the previous run inspectable.

New conversationsPartly documented

Session reset and compaction

Continuation and trimming are programmable; the checked tutorial does not configure a durable memory service.

05

Cost and effort

1 plan · Prices as of 16 November 2026

Prices and included usage

Pricing checked

SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

PlanPriceIncluded
SDK / SourceSDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

Documented product scope; verify external services and their billing separately.

Price source

Setup

Install the SDK, configure model access and tools, and set up persistence and operations.

Operation & oversight

Based on public provider documentation. Assessments are editorial inferences from the stated properties. Actual time requirements and reliability have not been measured.

Deployment covered: smolagents · Documented execution scope

Sources reviewed:

Editorial assessment

Editorial operational assessment; reliable resumption depends on configuration and executed tools.

Show all 6 points
  • Documented with conditions

    Files and working state

    AgentMemory holds planning, actions, observations and errors. Replay and programmable steps permit inspection and changes; durable persistence is defined by the application.

    Evidence
  • Documented with conditions

    Sign-ins

    Install the SDK, configure model access and tools, and set up persistence and operations.

    Evidence
  • Documented with conditions

    Starting further runs

    The custom application or an external scheduler starts further runs.

    Evidence
  • Documented with conditions

    Human intervention

    Integrate approvals, cancellation and questions into the custom interface and tool logic.

    Evidence
  • Documented with conditions

    Detecting errors

    Evaluate tool errors and execution results; use product-specific logs and traces for review.

    Evidence
  • Documented with conditions

    Resuming after failures

    Stored context supports further work. Verify automatic retries of failed actions and side effects separately.

    Evidence
06

Evidence and open questions

3 sources · 0 open points

Sources and evidence

Official sources checked. Features are provider claims; examples and suitability are editorial. Independent product testing is pending.

Editorial team: Michael Meierhoff · sources reviewed on . Provider information is not independent evidence of performance.

Read profile as Markdown

How we assess the sources

Provider

Hugging Face develops smolagents in its official organization and documents it within its model and developer ecosystem. Repository on 2026-11-16: 30,397 stars, 3,220 forks; license identifier Apache-2.0; last push 2026-11-15.

Operator
Hugging Face
Organization
Software project and provider
Provider sourcesSource 1 Source 2 Reviewed
Changes to this profile 1
  • Builds lightweight Python agents that execute actions as code or use structured tool calls.

These notes describe editorial changes. Source and pricing review dates appear in their respective sections.