(self, messages: Union[str, List[Dict[str, str]]], **kwargs)
| 715 | |
| 716 | @api_error_handler |
| 717 | async def add(self, messages: Union[str, List[Dict[str, str]]], **kwargs) -> Dict[str, Any]: |
| 718 | kwargs = self.sync_client._prepare_params(kwargs) |
| 719 | payload = self.sync_client._prepare_payload(messages, kwargs) |
| 720 | response = await self.async_client.post("/v1/memories/", json=payload) |
| 721 | response.raise_for_status() |
| 722 | if "metadata" in kwargs: |
| 723 | del kwargs["metadata"] |
| 724 | capture_client_event("async_client.add", self.sync_client, {"keys": list(kwargs.keys())}) |
| 725 | return response.json() |
| 726 | |
| 727 | @api_error_handler |
| 728 | async def get(self, memory_id: str) -> Dict[str, Any]: |
nothing calls this directly
no test coverage detected