Skip to main content
All terms
Frameworks & Tools

smolagents

A lightweight Hugging Face library for building agents that act through code.

Definition

smolagents is a lightweight agent framework from Hugging Face. It keeps the core abstraction small, letting a language model plan and act by writing and running code rather than emitting rigid tool-call formats. The minimal design makes it straightforward to give a model access to tools and loop it toward a goal with little boilerplate.