-
We can access the state of the graph inside each of the Nodes such as like this:
But I want to access the state here:
Where is the state saved inside of the graph? I debugged the app and looked into the object itself and couldnt find it. I know I can use persistence and in MemoryCheckpointer - but I am afraid it will take up too much space in memory (and thus my Azure Functions will be too expensive). I wan to just access the state vai the object app 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@Sulomus you can use |
Beta Was this translation helpful? Give feedback.
-
Hi, I'd suggest using stream_mode="values". That way each of the chunks yielded in for loop will be the state at that time, and a new chunk will be emitted any time it changes. |
Beta Was this translation helpful? Give feedback.
Hi, I'd suggest using stream_mode="values". That way each of the chunks yielded in for loop will be the state at that time, and a new chunk will be emitted any time it changes.