You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Async context manager that yields a Store whose backend matches the
91
91
configured checkpointer.
92
92
93
93
Reads from the same ``checkpointer`` section of *config.yaml* used by
94
94
:func:`deerflow.runtime.checkpointer.async_provider.make_checkpointer` so
95
95
that both singletons always use the same persistence technology::
96
96
97
-
async with make_store() as store:
97
+
async with make_store(app_config) as store:
98
98
app.state.store = store
99
99
100
100
Yields an :class:`~langgraph.store.memory.InMemoryStore` when no
101
101
``checkpointer`` section is configured (emits a WARNING in that case).
102
102
"""
103
-
config=get_app_config()
103
+
ifapp_configisNone:
104
+
app_config=get_app_config()
104
105
105
-
ifconfig.checkpointerisNone:
106
+
ifapp_config.checkpointerisNone:
106
107
fromlanggraph.store.memoryimportInMemoryStore
107
108
108
109
logger.warning("No 'checkpointer' section in config.yaml — using InMemoryStore for the store. Thread list will be lost on server restart. Configure a sqlite or postgres backend for persistence.")
0 commit comments