AgentOps tracks calls from smolagents via LiteLLM currently.
Copy
import agentopsfrom smolagents import LiteLLMModelagentops.init(<INSERT YOUR API KEY HERE>)model = LiteLLMModel(<model_name>)# Your code here...agentops.end_session('Success')
Set your API key as an .env variable for easy access.