langgraph_agent_toolkit.core.memory.postgres module
- class langgraph_agent_toolkit.core.memory.postgres.PostgresMemoryBackend[source][source]
Bases:
BaseMemoryBackendPostgreSQL memory backend.
- validate_config()[source][source]
Validate that all required PostgreSQL configuration is present.
- Return type:
bool
- static get_connection_string()[source][source]
Build the PostgreSQL connection string from settings.
- Return type:
str
- get_saver()[source]
Yield a PostgreSQL saver in an asynchronous context.
- Yields:
AsyncPostgresSaver – Database saver.
- Return type:
AsyncGenerator[CoordinatedPostgresSaver, None]
- get_store()[source]
Yield a PostgreSQL store in an asynchronous context.
- Yields:
AsyncPostgresStore – Database store.
- Return type:
AsyncGenerator[CoordinatedPostgresStore, None]
- get_checkpoint_saver()[source][source]
Initialize and return a PostgreSQL saver.
- Return type:
AbstractAsyncContextManager[CoordinatedPostgresSaver]
- get_memory_store()[source][source]
Initialize and return a PostgreSQL store.
- Return type:
AbstractAsyncContextManager[CoordinatedPostgresStore]