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

remove massive docstring

reibscf4e55f9acbc
diff --git a/agentops/event.py b/agentops/event.py
index ad17465b..bd7f8cbb 100644
--- a/agentops/event.py
+++ b/agentops/event.py
@@ -12,37 +12,6 @@ from pydantic import Field
class Event:
"""
Represents a discrete event to be recorded.
-
- Args:
- event_type (str): Type of the event, e.g., "API Call". Required.
- params (Optional[Dict[str, Any]], optional): The parameters passed to the operation.
- returns (str, optional): The output of the operation.
- result (str, optional): Result of the operation, e.g., "Success", "Fail", "Indeterminate". Defaults to "Indeterminate".
- action_type (str, optional): Type of action of the event e.g. 'action', 'llm', 'api', 'screenshot'. Defaults to 'action'.
- model (Models, optional): The model used during the event if an LLM is used (i.e. GPT-4).
- For models, see the types available in the Models enum.
- If a model is set but an action_type is not, the action_type will be coerced to 'llm'.
- Defaults to None.
- prompt (str, optional): The input prompt for an LLM call when an LLM is being used. Defaults to None.
- tags (List[str], optional): Tags that can be used for grouping or sorting later. e.g. ["my_tag"]. Defaults to None.
- init_timestamp (str, optional): The timestamp for when the event was initiated, as a string in ISO 8601 format.
- Defaults to the end timestamp.
- end_timestamp (str, optional): The timestamp for when the event ended, as a string in ISO 8601 format.
- screenshot (str, optional): A screenshot of the webpage at the time of the event. Base64 string or URL. Defaults to None.
-
- Attributes:
- event_type (str): Type of the event.
- params (Optional[Dict[str, Any]], optional): The parameters passed to the operation.
- returns (str, optional): The output of the operation.
- result (Result): Result of the operation as Enum Result.
- action_type (str): Type of action of the event.
- model (Models, optional): The model used during the event.
- prompt (str, optional): The input prompt for an LLM call.
- tags (List[str], optional): Tags associated with the event.
- end_timestamp (str): The timestamp for when the event ended, as a string in ISO 8601 format.
- init_timestamp (str): The timestamp for when the event was initiated, as a string in ISO 8601 format.
- prompt_tokens (int, optional): The number of tokens in the prompt if the event is an LLM call
- completion_tokens (int, optional): The number of tokens in the completion if the event is an LLM call
"""
def __init__(self, event_type: str,