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
The "state" concept in `pydantic-graph` provides an optional way to access and mutate an object (often a `dataclass` or Pydantic model) as nodes run in a graph. If you think of Graphs as a production line, then your state is the engine being passed along the line and built up by each node as the graph is run.
199
199
200
-
In the future, we intend to extend `pydantic-graph`to provide state persistence with the state recorded after each node is run, see [#695](https://github.com/pydantic/pydantic-ai/issues/695).
200
+
`pydantic-graph`provides state persistence, with the state recorded after each node is run. (See [State Persistence](#state-persistence).)
201
201
202
202
Here's an example of a graph which represents a vending machine where the user may insert coins and select a product to purchase.
0 commit comments