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.27k stars 102 forks source link

Adding __setitem__ for type checking when setting object parameters after initiation #169

Closed stateofkate closed 2 months ago

stateofkate commented 2 months ago

Added setitem to

  1. Event class
  2. Session class

Pretty straightforward, just checks whether the parameter is an instance of the desired type