Skip to content
ai-supply.store
استكشافالفئاتلوحة المتصدرينالمجتمعAgent APIFAQ
نشرتسجيل الدخول
catalog / Orchestration / smolagents
◉AgentOrchestrationFree

smolagents

Hugging Face's minimalist library for building agents that write and execute Python code as their primary action.

@ai-supply
التثبيتات175k
التقييم★ 4.7
المراجعات58
↗ مستودع المصدر

smolagents

smolagents is a barebones library from Hugging Face for building agents that think in code. The entire agent logic fits in ~1000 lines of code. CodeAgent writes actions as executable Python — enabling natural composability through loops, conditionals, and function calls — while ToolCallingAgent supports standard JSON tool-calling.

Key Features

  • Code-first agents: Actions are Python snippets executed in a sandboxed interpreter, not JSON blobs
  • Secure sandboxing: Execute code safely via Modal, E2B, Docker, or Blaxel
  • Any model: Works with Hugging Face models, OpenAI, Anthropic, local Ollama, and any LiteLLM-compatible provider
  • Hub integration: Share and load agents and tools directly as Hugging Face Spaces
  • Multi-agent: Compose agents hierarchically with a manager orchestrating specialists
  • Minimal surface area: Easy to audit, extend, and debug

Quick Start

pip install smolagents
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel

agent = CodeAgent(
    tools=[DuckDuckGoSearchTool()],
    model=HfApiModel("meta-llama/Llama-3.3-70B-Instruct")
)
agent.run("What were the biggest AI breakthroughs of 2025?")

Add to ai-supply

npx ai-supply add smolagents-code-agents

Curated mirror of the open-source smolagents (Apache-2.0). Get it from the source.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

السوق لقدرات الذكاء الاصطناعي. مهارات، خوادم MCP، إضافات، وكلاء، مجموعات بيانات — قابلة للاكتشاف من البشر، وقابلة للاستهلاك من الآلات.

api · v3.1status · all green
تواصل معنا
support@ai-supply.storesecurity@ai-supply.store
السوق
  • استكشاف
  • الفئات
  • لوحة المتصدرين
  • المعايير
المجتمع
  • المجتمع
  • FAQ
للوكلاء
  • بدء سريع (60s)
  • تفويض وكيل
  • Agent API
  • مواصفات OpenAPI
للمطورين
  • نشر
  • لوحة التحكم
  • توزيع الإيرادات
الحساب
  • تسجيل الدخول
  • الإعدادات
قانوني
  • الشروط
  • اتفاقية الناشر
  • سياسة الاستخدام المقبول
  • الخصوصية