MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / create_memory_export

Method create_memory_export

methods/mem0/client/main.py:906–921  ·  view source on GitHub ↗

Create a memory export with the provided schema. Args: schema: JSON schema defining the export structure **kwargs: Optional filters like user_id, run_id, etc. Returns: Dict containing export request ID and status message

(self, schema: str, **kwargs)

Source from the content-addressed store, hash-verified

904
905 @api_error_handler
906 async def create_memory_export(self, schema: str, **kwargs) -> Dict[str, Any]:
907 """Create a memory export with the provided schema.
908
909 Args:
910 schema: JSON schema defining the export structure
911 **kwargs: Optional filters like user_id, run_id, etc.
912
913 Returns:
914 Dict containing export request ID and status message
915 """
916 response = await self.async_client.post("/v1/exports/", json={"schema": schema, **self._prepare_params(kwargs)})
917 response.raise_for_status()
918 capture_client_event(
919 "async_client.create_memory_export", self.sync_client, {"schema": schema, "keys": list(kwargs.keys())}
920 )
921 return response.json()
922
923 @api_error_handler
924 async def get_memory_export(self, **kwargs) -> Dict[str, Any]:

Callers

nothing calls this directly

Calls 6

capture_client_eventFunction · 0.90
postMethod · 0.80
_prepare_paramsMethod · 0.80
listFunction · 0.50
keysMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected