# smolagents Python Library

**Canonical:** https://apis.io/apis/smolagents/smolagents-python-library/  
**Provider:** smolagents — https://apis.io/providers/smolagents/  
**Base URL:** https://huggingface.co  
**Documentation:** https://huggingface.co/docs/smolagents/en/index

smolagents Python Library is published by [smolagents](https://apis.io/providers/smolagents/) on the [APIs.io](https://apis.io/) network. Tagged areas include Agents, Python, Code Agents, Tool Calling, and Multi-Agent. The published artifact set on APIs.io includes API documentation, an API reference, and a GitHub repository.

The core smolagents Python library providing CodeAgent and ToolCallingAgent classes for building AI agents that write Python code or structured JSON to call tools and orchestrate multi-agent systems. Integrates with Hugging Face Hub Inference Providers, LiteLLM, Transformers, Azure OpenAI, Amazon Bedrock, and local models via Ollama.

## Machine-readable artifacts (6)

- **Documentation** — https://huggingface.co/docs/smolagents/en/index
- **GuidedTour** — https://huggingface.co/docs/smolagents/en/guided_tour
- **APIReference** — https://huggingface.co/docs/smolagents/reference/agents
- **PyPI** — https://pypi.org/project/smolagents/
- **GitHubRepository** — https://github.com/huggingface/smolagents
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/smolagents/refs/heads/main/apis.yml

## Tags

Agents, Python, Code Agents, Tool Calling, Multi-Agent

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/smolagents/smolagents-python-library/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/smolagents/.
