Doc: update memory export (#2519)

This commit is contained in:
Dev Khant
2025-04-09 17:34:16 +05:30
committed by GitHub
parent f95c4cbbe5
commit f4d8647264
5 changed files with 155 additions and 160 deletions

View File

@@ -448,7 +448,7 @@ class MemoryClient:
Returns:
Dict containing the exported data
"""
response = self.client.get("/v1/exports/", params=self._prepare_params(kwargs))
response = self.client.post("/v1/exports/get/", json=self._prepare_params(kwargs))
response.raise_for_status()
capture_client_event("client.get_memory_export", self, {"keys": list(kwargs.keys())})
return response.json()
@@ -930,7 +930,7 @@ class AsyncMemoryClient:
Returns:
Dict containing the exported data
"""
response = await self.async_client.get("/v1/exports/", params=self._prepare_params(kwargs))
response = await self.async_client.post("/v1/exports/get/", json=self._prepare_params(kwargs))
response.raise_for_status()
capture_client_event("async_client.get_memory_export", self.sync_client, {"keys": list(kwargs.keys())})
return response.json()