
smolagentsHugging Face-ის მინიმალისტური Python ბიბლიოთეკა AI აგენტების შესაქმნელად რამდენიმე ხაზით
მიმოხილვა
ძირითადი ფუნქციები
- CodeAgent, რომელიც Python-ში წერს და ასრულებს დავალებების შესასრულებლად
- Hugging Face, OpenAI, Anthropic და ლოკალური მოდელების მხარდაჭერა
- E2B და Docker ბექენდებით იზოლირებული კოდის შესრულება
- Hub, LangChain და პირადი Python ფუნქციებთან ინტეგრაცია
- ToolCallingAgent-ის შენახვა ტრადიციული JSON-სტილის ინსტრუმენტების გამოყენებისთვის
- მსუბუქი, მინიმალური დამოკიდებულების დიზაინი
ფასები
- მოდელი
- Free
- კატეგორია
- AI აგენტების ფრეიმვორკები
- შეფასება
- 5.0 / 5 (4)
გამოყენების შემთხვევები
შექმენით კოდზე დაფუძნებული AI აგენტები სწრაფად
დეველოპერები შექმნიან აგენტებს, რომლებიც ამონახებენ და ასრულებენ დავალებებს Python კოდის შესრულებით, LLM გაფართოების გამოყენების შემთხვევებში, JSON ტულის გამოყენების შედარებით.
გაუშვით აგენტები ნებისმიერ LLM პროვაიდერთან
შექმენით აგენტები Hugging Face Hub მოდელებით, ლოკალური შესაძლებლობების OpenAI და Anthropic API-თან გამოყენების გარეშე ფრეიმვორკის ცვლილებისა.
უსაფრთხოდ შესრულებული კოდი
E2B და Docker-ის გამოყენება იზოლირებულ გარემოში აგენტის მიერ გენერირებული Python კოდის შესრულებისთვის, ავტომატური შესრულების დროს უსაფრთხოების რისკების შემცირება.
ინტეგრირებული არსებული ინსტრუმენტების ეკოსისტემები
კომბინირებულია პირადი Python ფუნქციები Hub Spaces და LangChain ინსტრუმენტებთან აგენტების შესაძლებლობების გასაფართოებლად, შენარჩუნებულია მინიმალური კოდის ბაზა.
დადებითი და უარყოფითი
დადებითი
- ძალიან პატარა, კითხვადი კოდის ბაზა, რომელიც ადვილად განსაზღვრული
- კოდზე დაფუძნებული ქმედებები ხარჯს მცირევს და ზრდის აგენტის გამოხატულებას
- მუშაობს მრავალ LLM პროვაიდერებთან და ლოკალურ მოდელებთან
- E2B ან Docker-ის საშუალებით იზოლირებული შესრულება უსაფრთხო კოდის სრული შესაძლებლობისთვის
- უფასო და სრულიად ღია წყარო
უარყოფითი
- მოითხოვს Python ცოდნას ეფექტურად გამოყენებისთვის
- ნაკლები შენახული ინტეგრაცია, ვიდრე უფრო დიდ აგენტ ფრეიმვორკებში
- კოდის შესრულება შემოაქვს უსაფრთხოების შესახებ შემდგომ განხილვა
- ნაკლებად შესაფერისია რთულ მრავალაგენტიანი ორკესტრაციისთვის ამოცანების გადაწყვეტისთვის
შეფასებები
საშუალო 4 შეფასებიდან.
შედი ანგარიშზე შეფასების დასატოვებლად.
Use it every day
Honestly didn't expect to like it this much. Tool integration with Hub, LangChain, and custom Python functions is exactly what I needed, and code-based actions reduce steps and boost agent expressiveness. I do wish requires Python knowledge to use effectively, but I reach for it almost every day now and it just clicks.
Does the job
Pretty happy overall. Tool integration with Hub, LangChain, and custom Python functions just works and very small, readable codebase that is easy to extend. Code execution introduces security considerations to manage can be annoying, but no dealbreakers — I'd recommend it to a friend without hesitating.
Does the job
Pretty happy overall. Sandboxed code execution with E2B and Docker backends just works and sandboxed execution via E2B or Docker for safer code running. but no dealbreakers — I'd recommend it to a friend without hesitating.
Skeptical, then convinced
I went in skeptical — most tools in this space overpromise. It actually delivers on codeAgent that writes and executes Python to solve tasks, and code-based actions reduce steps and boost agent expressiveness caught me off guard. still, I'd recommend giving it a real trial.
კითხვები
How strong are open models for agentic workflows?
We've created CodeAgent instances with some leading models, and compared them on this benchmark that gathers questions from a few different benchmarks to propose a varied blend of challenges. Find the benchmarking code here for more detail on the agentic setup used, and see a comparison of using LLMs code agents compared to vanilla (spoilers: code agents works better). This comparison shows that open-source models can now take on the best closed models!
Asked by Diego Fernández · Feb 16, 2026
How smol is this library?
We strived to keep abstractions to a strict minimum: the main code in agents.py has <1,000 lines of code. Still, we implement several types of agents: CodeAgent writes its actions as Python code snippets, and the more classic ToolCallingAgent leverages built-in tool calling methods. We also have multi-agent hierarchies, import from tool collections, remote code execution, vision models... By the way, why use a framework at all? Well, because a big part of this stuff is non-trivial. For instance, the code agent has to keep a consistent format for code throughout its system prompt, its parser, the execution. So our framework handles this complexity for you. But of course we still encourage you to hack into the source code and use only the bits that you need, to the exclusion of everything else!
Asked by Ludovic Girard · Nov 27, 2025
How do Code agents work?
Our CodeAgent works mostly like classical ReAct agents - the exception being that the LLM engine writes its actions as Python code snippets. Actions are now Python code snippets. Hence, tool calls will be performed as Python function calls. For instance, here is how the agent can perform web search over several websites in one single action: Writing actions as code snippets is demonstrated to work better than the current industry practice of letting the LLM output a dictionary of the tools it wants to call: uses 30% fewer steps (thus 30% fewer LLM calls) and reaches higher performance on difficult benchmarks. Head to our high-level intro to agents to learn more on that. Since code execution can be a serious security concern (arbitrary code execution!), you should run agent code in a sandbox. We support several options: E2B, Blaxel, Modal — managed cloud sandboxes, simplest to set up Docker — self-hosted container isolation The built-in LocalPythonExecutor is not a security sandbox. It applies some restrictions but can be bypassed and must not be used as a security boundary. Alongside CodeAgent, we also provide the standard ToolCallingAgent which writes actions as JSON/text blobs. You can pick whichever style best suits your use case.
Asked by Greta Nowak · Oct 31, 2025
დასვი კითხვა
AI აგენტების ფრეიმვორკები-ის ალტერნატივები
Mini LLM Flow
AI აგენტების ფრეიმვორკები
მინიმალისტური 100-ხაზიანი LLM ფრეიმვორკი თვითპროგრამირებადი აგენტის ნაკადების შესაქმნელად
upsonicAI
AI აგენტების ფრეიმვორკები
ღია წყაროს აგენტების ფრამვერკი საჭიროებრივ საპროექტო პროფესიულ თანამშრომლებსა და სართულო აი აგენტების მშენებლობისთვის
AI-Powered RAG Workflow for n8n
AI აგენტების ფრეიმვორკები
თავარჯით საკითხი და განსაკუთრებით კონკრეტულ დოკუმენტებში ვიტაქსართ Google Drive-ის ფაილების შესახებ n8n.
ControlFlow
AI აგენტების ფრეიმვორკები
Python‑ის ჩარჩო, რომელიც აგებულია დავალებაზე ორიენტირებულ AI სამუშაო ნაკადების შექმნისთვის.
roboneo art
AI აგენტების ფრეიმვორკები
მანქანური ვიზუალიზაციის სისტემა, რომელიც ტექსტურ სათავაკედ ქის მხელდაღურ სურათებად სწრაფად ვერტება.
Agent Genesis
AI აგენტების ფრეიმვორკები
ღია წყარო, ყველანითა დაწვრილმასული კოდის ნაწყვეტები ასინქრონულ აგენტებს სწრაფად იყენებს.
Eclat Institute
AI აგენტების ფრეიმვორკები
IP და JC საგანმანათლებლო πρόγραμμα, რომელიც ორიენტირებულია მუდმივი საგნის მასტერის შექმნაზე
Remove Watermark
AI აგენტების ფრეიმვორკები
თავისუფალი აი საშუალება ფოტოებზე ავტომატურად მარკის ავტორის და ლოგოების საბაზრო განარიცხვა.
Trending now
AdCrier
სარბალთანმთავრობითი მოქმედებები და ჟურნალისტიკა
სპონსორული პასუხები, დახმარება ერთ კილაბად მონაცემთა მოცულობით.
Reducto AI
AI აგენტის განვითარების პლატფორმები
დოკუმენტების ინტელექტუალური API, რომელიც პარსინგს, გაყოფას, OCR-ს და სტრუქტურიზებულ მონაცემთა ექსტრაქციას კომპლექსურ პდფ-ებში, სლაიდებში და ელექტრონულ ცხრილებში ახდენს.
Biology AI
საგანმანამარე აი
ზუსტი ჰომვორვის დახმარება სრული ახსნა-განმარტებით
Pin AI
სამუშაო პროცესების ავტომატიზაცია
Agentic AI რეკრუტერი, რომელიც ავტომატურად იპოვება, სკრინავს და მიმართავს კანდიდატებს, რათა დასაქმების პროცესი სწრაფდეს.












