ooai_persistence.graphsΒΆ

Helpers for wiring persistence bundles into LangGraph graphs.

Functions

bind_graph_with_persistence(graph, bundle)

Return a compiled graph copy that uses the provided persistence bundle.

compile_graph_with_persistence(graph, ...)

Compile a StateGraph with the provided persistence bundle.

open_graph(graph, settings, *[, registry])

Open async persistence and return a compiled or rebound graph.

open_sync_graph(graph, settings, *[, registry])

Open sync persistence and return a compiled or rebound graph.

Classes

PersistentGraph(graph, persistence)

A compiled graph plus the managed persistence resources it uses.