AgentOps-AI / agentops

Python SDK for agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks like CrewAI, Langchain, and Autogen
https://agentops.ai
MIT License
1.18k stars 93 forks source link

agentops functions dont work without first calling init #255

Closed bboynton97 closed 3 weeks ago

bboynton97 commented 3 weeks ago

This PR adds a state to init.py for tracking whether or not the SDK has been initialized. If it has not been initialized, most functions will not be used.

Fixes an issue where partners are getting logs that there is no active session when they have not called init.