- class langgraph_agent_toolkit.core.memory.postgres.PostgresMemoryBackend[source][source]
Bases:
BaseMemoryBackend
PostgreSQL implementation of memory backend.
- validate_config()[source][source]
Validate that all required PostgreSQL configuration is present.
- Return type:
- static get_connection_string()[source][source]
Build and return the PostgreSQL connection string from settings.
- Return type:
- get_saver()[source][source]
Asynchronous context manager for acquiring a PostgreSQL saver.
- Yields:
AsyncPostgresSaver – The database saver instance
- Return type:
AsyncGenerator[AsyncPostgresSaver, None]
- get_store()[source][source]
Asynchronous context manager for acquiring a PostgreSQL store.
- Yields:
AsyncPostgresStore – The database store instance
- Return type:
AsyncGenerator[AsyncPostgresStore, None]
- get_checkpoint_saver()[source][source]
Initialize and return a PostgreSQL saver instance.
- Return type:
AbstractAsyncContextManager[AsyncPostgresSaver]
- get_memory_store()[source][source]
Initialize and return a PostgreSQL store instance.
- Return type:
AbstractAsyncContextManager[AsyncPostgresStore]