Hugging Face smolagents
How to use the SmolagentsInstrumentor to trace smolagents by Hugging Face
smolagents is a minimalist AI agent framework developed by Hugging Face, designed to simplify the creation and deployment of powerful agents with just a few lines of code. It focuses on simplicity and efficiency, making it easy for developers to leverage large language models (LLMs) for various applications.
Install
Setup
Add your HF_TOKEN
as an environment variable:
Next, register a tracer provider to send traces to the Arize platform.
Finally, use the smolagents autoinstrumentor to automatically track and visualize every step and call made by your agent.
Create & Run an Agent
Observe
Now that you have tracing setup, all invocations and steps of your Agent will be sent to the Arize platform for observability and evaluation.
Last updated
Was this helpful?