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, where 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 Inference providers: Cerebras, Cohere, Fal, Fireworks, Hyperbolic, Nebius, Novita, Replicate, SambaNova, Together, etc. It also supports 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 Gradio Spaces as tools to/from the Hub, and more is to come! Learn the
smolagents · Hugging Face smolagents documentation smolagents smolagents 🏡 View all docs AWS Trainium & Inferentia Accelerate Argilla AutoTrain Bitsandbytes CLI Chat UI Dataset viewer Datasets Deploying on AWS Diffusers Distilabel Evaluate Google Cloud Google TPUs Gradio Hub Hub Python Library Huggingface.js Inference Endpoints (dedicated) Inference Providers Kernels LeRobot Leaderboards Lighteval Microsoft Azure OpenEnv Optimum PEFT Reachy Mini Safetensors Sentence Transformers TRL Tasks Text Embeddings Inference Text Generation Inference Tokenizers Trackio Transformers Transformers.js Xet s
saved by
related reading
- What are agents? 🤔 · Hugging Facehuggingface.co
- Introducing smolagents: simple agents that write actions in code.huggingface.co
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- Building Effective AI Agents \ Anthropicanthropic.com
- GitHub - smol-ai/developer: the first library to let you embed a developer agent in your own app!github.com
- Building Effective AI Agents \ Anthropicanthropic.com
- Hugging Face – The AI community building the future.huggingface.co
- GitHub - Eigenwise/atomic-agents: Building AI agents, atomically · GitHubgithub.com
- Llama 2 · Hugging Facehuggingface.co
- LangChain: the open agent platform to own your intelligencelangchain.com
- GitHub - deepset-ai/haystack: Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.github.com
- Ampampcode.com