Skip to content
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

add support for pause/resume/replay #14

Closed
bsorrentino opened this issue Aug 7, 2024 · 4 comments
Closed

add support for pause/resume/replay #14

bsorrentino opened this issue Aug 7, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@bsorrentino
Copy link
Owner

bsorrentino commented Aug 7, 2024

Implements pause / (eventually update state) / resume / replay of workflow

take a look

@bsorrentino bsorrentino added the enhancement New feature or request label Aug 7, 2024
@bsorrentino bsorrentino self-assigned this Aug 7, 2024
@bsorrentino bsorrentino changed the title add support for breakpoints add support for pause/resume and breakpoints Aug 25, 2024
@bsorrentino bsorrentino changed the title add support for pause/resume and breakpoints add support for pause/resume/replay Aug 25, 2024
bsorrentino added a commit that referenced this issue Aug 26, 2024
bsorrentino added a commit that referenced this issue Aug 26, 2024
- getState
- getStateHistory
- updateState
- update streaming processing to support graph resume

work on #14
bsorrentino added a commit that referenced this issue Aug 26, 2024
bsorrentino added a commit that referenced this issue Aug 31, 2024
@hide212131
Copy link

Thank you for developing such a wonderful library; I really appreciate it and support your work. I have a question about trying to implement Human-In-the-Loop. How should I use the RunnableConfig returned by CompiledGraph#updateState? In the original LangGraph, according to this, it seems there is no return value from update_state and it is updated via nextNode("step_3").

@bsorrentino
Copy link
Owner Author

bsorrentino commented Sep 4, 2024

Thank you for developing such a wonderful library; I really appreciate it and support your work. I have a question about trying to implement Human-In-the-Loop. How should I use the RunnableConfig returned by CompiledGraph#updateState? In the original LangGraph, according to this, it seems there is no return value from update_state and it is updated via nextNode("step_3").

Hi @hide212131, I'm working on documentation to clarify your question. However a quick answer is that the CompiledGrah.updateState() return a RunnableConfig that you should provide to next CompiledGraph run

bsorrentino added a commit that referenced this issue Sep 5, 2024
- check resume startpoint
- refine state cloning
- improve unit test

work on #14
@bsorrentino
Copy link
Owner Author

bsorrentino commented Sep 5, 2024

Hi @hide212131 the documentation is available here

It works on last 1.0-beta4

@hide212131
Copy link

@bsorrentino Thank you for the documentation. It will be a great reference for future development! I have a few more things I'd like to clarify, so I've raised an issue here.
#25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants