-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State persistence #695
Comments
I think we should add a distributed K-V store (Redis) in the initial release of this feature because for apps that have a distributed backend it would benefit from a centralized mechanism to store the state. After your ABC, I can add the redis implementation. |
It might also be rad to also have an event driven version with tiered storage support from memory -> disk -> object storage. I can take a crack when the abc is available also. |
Maybe you can take into consideration delegating state to sub graphs (where a node is another graph) that way the entire graph execution could be stored in a single state but also scoped per subgraph. It complicates things a bit but sub graphs make much sense when it comes to complex agents execution (e..g, a main graph with a sub graph such "communication manager" that have multiple agents such "slack" and "gmail") |
How would this work? We would pass a "connection or cursor" down to Since we already have So, at least for v1, I would say that it should be the developer's reponsability to persist the given dump. This is straightfoward. |
Following #528, we really need a way to store state after each node is run.
We should provide:
In future we'll probably want to provide a postgres implementation, but I think that can come later when we're more confident of the schema.
This also relates to other database access and persistence:
The text was updated successfully, but these errors were encountered: