Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

Merge branch 'main' into bboynton97/44-update-events-handler-to-read-3rd-party-library-calls

Alex Reibman2478a1ee760b
diff --cc agentops/event.py
index 50edbfca,e33b76d6..8a01598c
--- a/agentops/event.py
+++ b/agentops/event.py
@@@ -67,16 -66,4 +68,17 @@@ class Event
self.prompt = prompt
self.end_timestamp = get_ISO_time()
self.init_timestamp = init_timestamp if init_timestamp else self.end_timestamp
- self.screenshot = screenshot
++ self.screenshot = screenshot
+
+ def __str__(self):
+ return str({
+ "event_type": self.event_type,
+ "params": self.params,
+ "returns": self.returns,
+ "action_type": self.action_type,
+ "result": self.result,
+ "model": self.model,
+ "prompt": self.prompt,
+ "tags": self.tags,
+ "init_timestamp": self.init_timestamp
- })
++ })