---
title: "smolagents: mga feature, bersyon at quickstart · DotsAgent"
description: "smolagents ng Hugging Face: lisensya, pinakabagong bersyon, suporta sa MCP, durable runs, pag-apruba ng tao, tracing at evals, pati quickstart na puwedeng kopyahin."
url: https://dotsagent.io/fil/frameworks/smolagents
---

Framework · Hugging Face

# Pangkalahatang-ideya ng smolagents

Maliit na Python library ng Hugging Face na may humigit-kumulang isang libong linya. Isinusulat ng CodeAgent ang mga aksyon nito bilang Python code, na tumatakbo sa mga sandbox gaya ng Modal, E2B o Docker. Puwedeng ibahagi sa Hub ang mga agent at tool.

**Pinakamainam para sa:**  Pag-aaral at pananaliksik, lalo na para sa mga agent na kumikilos sa pamamagitan ng pagsulat ng code.

## Mahahalagang detalye

- **Tagapangasiwa**: Hugging Face
- **Mga wika**: Python
- **Lisensya**: Apache-2.0
- **Pinakabagong bersyon**: `1.26.0` · Mayo 29, 2026
- **Repository**: [huggingface/smolagents](https://github.com/huggingface/smolagents) · 29,617 star
- **Hosted na opsyon**: Wala

## Quickstart

I-install ang package, itakda ang mga credential, pagkatapos ay patakbuhin ang pinakasimpleng agent mula sa opisyal na dokumentasyon. Ang mga Model ID ay ang ginagamit sa dokumentasyon at maaaring hindi naka-enable sa account mo.

`I-install`

```
pip install 'smolagents[toolkit]'
```

Kailangan ng HF token for Inference API

`Python`

```
from smolagents import CodeAgent, InferenceClientModel

# Initialize a model (using Hugging Face Inference API)
model = InferenceClientModel()  # Uses a default model

# Create an agent with no tools
agent = CodeAgent(tools=[], model=model)

# Run the agent with a task
result = agent.run("Calculate the sum of numbers from 1 to 10")
print(result)
```

[Pinagmulan ng quickstart](https://huggingface.co/docs/smolagents/index)

## Mga feature

| Anumang model | — | HF Inference Providers, LiteLLM, lokal na Transformers at Ollama |
| --- | --- | --- |
| MCP client | — | Mga tool mula sa anumang MCP server, LangChain o Hub Spaces |
| MCP server | — | — |
| Multi-agent | — | Kayang mag-orchestrate ng mga agent ng iba pang agent |
| Durable na mga run | — | — |
| Pag-apruba ng tao | — | — |
| Tracing | — | — |
| Evals | — | — |

## Mga kamakailang pagbabago

- Walang release sa PyPI mula noong 1.26.0 noong 29 May 2026, pero nakatanggap pa rin ng mga commit ang repo noong huling bahagi ng Setyembre 2026.

## Mga alternatibo sa parehong wika

- [OpenAI Agents SDK](https://dotsagent.io/fil/frameworks/openai-agents-python)

- [Claude Agent SDK](https://dotsagent.io/fil/frameworks/claude-agent-sdk)

- [Google ADK](https://dotsagent.io/fil/frameworks/google-adk)

- [Microsoft Agent Framework](https://dotsagent.io/fil/frameworks/microsoft-agent-framework)

- [LangGraph](https://dotsagent.io/fil/frameworks/langgraph)

- [CrewAI](https://dotsagent.io/fil/frameworks/crewai)

## Mga pinagmulan

1. [huggingface.co](https://huggingface.co/docs/smolagents/index)/docs/smolagents/index
2. [pypi.org](https://pypi.org/pypi/smolagents/json)/pypi/smolagents/json
3. [api.github.com](https://api.github.com/repos/huggingface/smolagents)/repos/huggingface/smolagents

Independent na sanggunian para sa mga gumagawa ng AI agent. Hindi kami kaanib ng alinman sa mga vendor na nakalista rito.

© 2026 DotsAgent · Sinuri ang mga detalye noong Oktubre 1, 2026
