Hugging Face smolagents
smolagents is a lightweight Python library that enables running powerful AI agents, particularly those that 'think in code' (CodeAgents). It supports various LLMs, including local models and those from major providers, and is modality-agnostic, handling text, vision, and audio inputs. This library is for developers who need secure execution in sandboxed environments and desire an agent that generates Python code snippets for its actions rather than just JSON or text. Its simplicity and focus on code-based reasoning offer a direct way to implement advanced agent behaviors with minimal abstraction.
This library focuses on transparent, code-generating agents that can be run securely in isolated environments, offering fine-grained control over agent actions.
Barebones library for code-thinking agents
Learn one new AI thing every day.
Daily Deck sends you seven plain-English cards like this every morning. Free.
Start free