smolagents
This library is the simplest framework out there to build powerful agents! By the way, wtf are “agents”? We provide our definition in this page, whe’re you’ll also find tips for when to use them or not (spoilers: you’ll often be better off without agents).
This library 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: it supports models hosted on the Hub loaded in their transformers
version or through our inference API, but also models from OpenAI, Anthropic… it’s really easy to power an agent with 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”), read more here.
🤗 Hub integrations: you can share and load tools to/from the Hub, and more is to come!
Learn the basics and become familiar with using Agents. Start here if you are using Agents for the first time!
Practical guides to help you achieve a specific goal: create an agent to generate and test SQL queries!
High-level explanations for building a better understanding of important topics.
Horizontal tutorials that cover important aspects of building agents.