langgraph_agent_toolkit.core.memory.base module

class langgraph_agent_toolkit.core.memory.base.BaseMemoryBackend[source][source]

Bases: ABC

Base class for memory backends.

abstractmethod validate_config()[source][source]

Validate required configuration.

Returns:

True when configuration is valid.

Raises:

ValueError – If required configuration is missing.

Return type:

bool

abstractmethod get_checkpoint_saver()[source][source]

Get the checkpoint saver for this memory backend.

Returns:

Configured checkpoint saver.

Return type:

AbstractAsyncContextManager[T]

abstractmethod get_memory_store()[source][source]

Get the memory store for this memory backend.

Returns:

Configured memory store.

Return type:

AbstractAsyncContextManager[T]