diff --git a/libs/checkpoint-postgres/langgraph/store/postgres/base.py b/libs/checkpoint-postgres/langgraph/store/postgres/base.py index 2fc455ea2..0d1cdc8dc 100644 --- a/libs/checkpoint-postgres/langgraph/store/postgres/base.py +++ b/libs/checkpoint-postgres/langgraph/store/postgres/base.py @@ -151,6 +151,7 @@ class PoolConfig(TypedDict, total=False): """Connection pool settings for PostgreSQL connections. Controls connection lifecycle and resource utilization: + - Small pools (1-5) suit low-concurrency workloads - Larger pools handle concurrent requests but consume more resources - Setting max_size prevents resource exhaustion under load @@ -166,6 +167,7 @@ class PoolConfig(TypedDict, total=False): """Additional connection arguments passed to each connection in the pool. Default kwargs set automatically: + - autocommit: True - prepare_threshold: 0 - row_factory: dict_row @@ -656,7 +658,8 @@ class PostgresStore(BaseStore, BasePostgresStore[_pg_internal.Conn]): item = store.get(("users", "123"), "prefs") ``` - Or using the convenient from_conn_string helper: + Or using the convenient `from_conn_string` helper: + ```python from langgraph.store.postgres import PostgresStore diff --git a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py b/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py index c3c94c561..ab167b1e6 100644 --- a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py +++ b/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py @@ -722,7 +722,8 @@ class SqliteStore(BaseSqliteStore, BaseStore): item = store.get(("users", "123"), "prefs") ``` - Or using the convenient from_conn_string helper: + Or using the convenient `from_conn_string` helper: + ```python from langgraph.store.sqlite import SqliteStore