Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt

Use this file to discover all available pages before exploring further.

await sdk.shutdown()
Performs an orderly teardown: emits a final telemetry event, stops the telemetry collector, closes the underlying transports, and releases the cache handle. Call shutdown() during process exit (or on hot-reload teardown in long-running services) to ensure pending telemetry is flushed and resources are not leaked. After shutdown(), the same SDK instance is no longer usable — create a new instance if you need to reconnect.

Parameters

This method takes no parameters.

Returns

Returns None.

Example

from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")
await sdk.initialize()

try:
    ctx = await sdk.fetch(user_id="user-456")
    # ... use ctx ...
finally:
    await sdk.shutdown()

Raises

No method-specific exceptions; see Error Codes for the general SDK exception hierarchy.

See also