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.

sdk.configure(**kwargs)
Adjusts SDK-wide settings such as cache backend, session timeout, retry policy, and logging. configure() is synchronous and must be called before initialize() — once the SDK is initialized, re-configuration is rejected to prevent inconsistent runtime state. Any options not supplied keep their existing values.

Parameters

storage_path
str
Override the default cache storage path on disk.
cache_backend
str | None
Cache backend selection. Pass "sqlite" to enable on-disk caching, or None to disable it.
session_timeout_minutes
int
Session timeout in minutes. Accepted range is 51440.
timeouts
TimeoutConfig | dict
Per-operation timeout overrides. Pass either a TimeoutConfig instance or a plain dict with the fields you want to override.
retry_policy
RetryPolicy | dict | None
Retry policy for transient failures. Pass a RetryPolicy, a dict, or None to disable retries entirely.
log_level
str
Logging verbosity. One of "DEBUG", "INFO", "WARNING", "ERROR".
logger
logging.Logger
Custom logger instance to replace the SDK’s internal logger.

Returns

Returns None.

Example

from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")

# Configure BEFORE initialize().
sdk.configure(
    cache_backend="sqlite",
    session_timeout_minutes=60,
    log_level="INFO",
)

await sdk.initialize()

Raises

  • InvalidInputError — when configure() is called after initialize(), or when an option value falls outside its accepted range.
See Error Codes for the full SDK exception hierarchy.

See also