Smolagents
Trace Smolagents workflows with Respan.
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
What is Smolagents?
Smolagents is HuggingFace’s lightweight agent framework that lets you build agents with code-based actions. It focuses on simplicity and supports both code agents and tool-calling agents.
Setup
View your trace
Open the Traces page to see your Smolagents workflow with planning steps, code execution, and tool calls.
What gets traced
All Smolagents operations are auto-instrumented:
- Agent planning and reasoning steps
- Code generation and execution
- Tool calls and results
- LLM calls with model, tokens, and input/output
- Multi-step task execution
Traces appear in the Traces dashboard.
Learn more
- OpenTelemetry integration - How Respan processes OTel spans
- Respan Python SDK - Full SDK reference