Captura del repositorio oficial de smolagents. Fuente <a href="https://github.com/huggingface/smolagents">GitHub</a>.
Hugging Face’s smolagents enables agents to express actions as code. This makes it possible to combine calculations and tools while inspecting what an agent attempts to execute.
Getting started and checking results
Prepare a small table of public data and a function with a known result. Expose only that function to the agent and inspect its generated code. Add an invalid input and check how it explains the error and limits retries.
Licenses, resources and costs
The repository documents sandboxed execution options. The chosen sandbox determines which files and connections are available. The library uses Apache 2.0, while models and execution services may charge separately. Evaluate a reproducible task before granting access to work information.
Primary source reviewed on November 18, 2026. Official smolagents repository.
