DeepYardDeepYard
s

smolagents

Lightweight agent framework by HuggingFace — minimal code, maximum control

Open SourceFree
Install
pip install smolagents

About

smolagents is Hugging Face's minimalist agent framework that prioritizes simplicity and transparency over abstraction. At its core are CodeAgent, which writes and executes Python code as actions rather than relying on JSON tool calls, and ToolCallingAgent for traditional function-calling workflows. The framework is model-agnostic and integrates natively with the Hugging Face Hub, Transformers, and Inference API. Its small surface area makes it easy to audit, extend, and debug — ideal for researchers and practitioners who want full visibility into agent behavior without fighting a complex framework.

Details

Languagepython
Patternscode-agent, tool-calling, agent, multi-step
Installpip install smolagents

Tags

lightweighthuggingfacecode-agenttool-callingresearchpython