Public Open Graph image captured during verification.
About the tool
Hugging Face's minimal library for code-writing agents
smolagents is a lightweight agent library whose core logic fits in roughly a thousand lines, centered on a CodeAgent that expresses actions as Python code rather than JSON tool calls. It supports sandboxed execution, open and proprietary models, and sharing tools via the Hugging Face Hub.