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

Method create_memory_export

methods/mem0/client/main.py:426–439  ·  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

424
425 @api_error_handler
426 def create_memory_export(self, schema: str, **kwargs) -> Dict[str, Any]:
427 """Create a memory export with the provided schema.
428
429 Args:
430 schema: JSON schema defining the export structure
431 **kwargs: Optional filters like user_id, run_id, etc.
432
433 Returns:
434 Dict containing export request ID and status message
435 """
436 response = self.client.post("/v1/exports/", json={"schema": schema, **self._prepare_params(kwargs)})
437 response.raise_for_status()
438 capture_client_event("client.create_memory_export", self, {"schema": schema, "keys": list(kwargs.keys())})
439 return response.json()
440
441 @api_error_handler
442 def get_memory_export(self, **kwargs) -> Dict[str, Any]:

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected