Search

Search IconIcon to open search

smolagents

Last updatedUpdated: by Jakub Žovák · 1 min read

Properties
created 13.03.2025, 10:13
modified 08.11.2025, 18:12
published Empty
topics Empty
authors Empty
ai-assisted No

A minimalistic framework by Hugging Face that implements agents using Code Actions as opposed to traditional JSON/text approach. Code actions require secure sandbox environment for the code execution. This environment is implemented by the framework ( Secure code execution).

smolagents-documentation:

smolagents is a library that enables you to run powerful agents in a few lines of code. It offers:

  • ✨ Simplicity: the logic for agents fits in ~thousand lines of code. We kept abstractions to their minimal shape above raw code!
  • 🌐 Support for any LLM
  • 🧑‍💻 First-class support for Code Agents, i.e. agents that write their actions in code (as opposed to “agents being used to write code”).
  • 🤗 Hub integrations: you can share and load Gradio Spaces as tools to/from the Hub, and more is to come!