Install
pip install smolagentsThe smallest complete agent framework. A CodeAgent writes Python to accomplish tasks; a ToolCallingAgent uses JSON tool-calling. The entire core is ~1,000 lines — readable, hackable, and a great first step into agents.
Install
pip install smolagentsVersion
v1.24.0 · January 2026 · Python 3.10+
Best for
Learning, prototyping, simple automation, code-first workflows.
from smolagents import CodeAgent, tool
@tooldef add_numbers(a: int, b: int) -> int: """Add two numbers together.""" return a + b
agent = CodeAgent(tools=[add_numbers])result = agent.run("What is 15 + 27?")print(result)Ready? Start Zero → Hero Step 1 →
| Date | Version | Changes |
|---|---|---|
| 2026-04-21 | 1.24.0 | Index redesigned with Zero → Hero + Jump-to-topic grid. |
| January 16, 2026 | 1.24.0 | Expanded model providers; tool call perf; multi-agent patterns. |
| November 2025 | 1.23.0 | Initial documented version. |