AgentOps and AG2 (Formerly AutoGen) teamed up to make monitoring AG2 agents dead simple. AG2 has comprehensive documentation available as well as a great quickstart.
Make sure to call agentops.init before calling any openai, cohere, crew, etc models.
Copy
import agentopsagentops.init(<INSERT YOUR API KEY HERE>)...# MUST END SESSION at end of program (e.g. main.py)agentops.end_session("Success") # Success|Fail|Indeterminate
Set your API key as an .env variable for easy access.