Skip to content

Commit

Permalink
capture event
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant committed Nov 28, 2024
1 parent f138b43 commit 6eaf41d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mem0/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def batch_update(self, memories: List[Dict[str, Any]]) -> Dict[str, Any]:
"""Batch update memories."""
response = self.client.put("/v1/batch/", json={"memories": memories})
response.raise_for_status()

capture_client_event("client.batch_update", self)
return response.json()

@api_error_handler
Expand All @@ -333,6 +335,8 @@ def batch_delete(self, memories: List[Dict[str, Any]]) -> Dict[str, Any]:
json={"memories": memories}
)
response.raise_for_status()

capture_client_event("client.batch_delete", self)
return response.json()

def chat(self):
Expand Down

0 comments on commit 6eaf41d

Please sign in to comment.