smolagents
Prerequisites
Installation
pip install interactiveai 'smolagents[telemetry]' opentelemetry-sdk opentelemetry-exporter-otlp openinference-instrumentation-smolagentsConfiguration
import os
# InteractiveAI credentials
# Obtain keys from Settings > API Keys in the dashboard
os.environ["INTERACTIVEAI_PUBLIC_KEY"] = "pk-ia-..."
os.environ["INTERACTIVEAI_SECRET_KEY"] = "sk-ia-..."
# Hugging Face token
os.environ["HF_TOKEN"] = "hf_..."Enabling Trace Capture
Running a smolagent
Enriching Traces with Context
Trace Visibility
Last updated
Was this helpful?

