smolagents

smolagents is a library that allows you to create an agent that processes by generating Python code with a code base of about 1,000 lines. Thanks to its model and vehicle independent structure, it can integrate with different LLM providers, LangChain vehicles, and MCP servers. For code execution operations, Blaxel supports secure sandbox environments such as E2B, Modal, or Docker.

SM

huggingface · AI Communities & Swarms

STARS30.2K
FORKS3.2K
COMMITS1.0K
CONTRIBUTORS204
VERSIONv1.9.2
UPDATED2 days ago
PythonCode AgentMcp UyumluSandboxApache-2.0
What can it do?
  • By generating Python code, you develop an agent that processes text, visual, video, or audio data.
  • By importing vehicles and agents through the Hugging Face Hub, you include them in your projects.
  • Thanks to LiteLLM integration, you use different language models based on local or cloud in the agent structure.
Heads up
  • • High number of open issues (1,023)
User reviews
  • • NeutralGitHub Issue

    Repeatedly getting "Error in code parsing: Your code snippet is invalid"

    “I repeatedly get this error when using the Codeagent: ```Error in code parsing: The code blob is invalid, because the regex pattern ```(?:py|python)?\n(.*?)\n``` was not found in code_blob ... ``` I have tried to emphasize proper code block formatting in the agent.run()…”

Verified against README · Oct 26, 2026 · source

My note

More in: AI Communities & Swarms