Skip to content

Commit

Permalink
refactor(event): update ActionEvent constructor for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
teocns committed Nov 27, 2024
1 parent 6158dbf commit 0d5e676
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agentops/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ class ActionEvent(Event):
logs: Optional[Union[str, Sequence[Any]]] = None
screenshot: Optional[str] = None

def __init__(self, action_type: Optional[str] = None, **kwargs):
super().__init__(event_type=EventType.ACTION.value, **kwargs)
self.action_type = action_type


@dataclass
class LLMEvent(Event):
Expand Down

0 comments on commit 0d5e676

Please sign in to comment.