-
Notifications
You must be signed in to change notification settings - Fork 44.5k
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
FEAT: Add Chat History File Functionality for Efficient Auto-GPT Resumption #2530
FEAT: Add Chat History File Functionality for Efficient Auto-GPT Resumption #2530
Conversation
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Tests
Will do |
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
Sorry, just wondering: is this now the de facto method of implementing workspace recovery/resumption ? |
Resumption is a much-wanted feature. Before reviewing further this PR would need rebasing though. @dreadful-dev would you be willing to take a shot at that? The merge conflicts are quite extensive so it might be more efficient to re-apply the changes to latest |
@Pwuts No problem at all, I'll get this branch in sync with master for review. Any recommendations for tests you'd like to see are also welcome. |
Thoughts for discussion:
That makes me wonder whether this feature can include:
Additional thoughts:
Tests could include
|
@dreadful-dev bump ;) |
Assumptions:
For this to work as originally intended, the N most recent items in the ChatSequence should be loaded from a history file without duplicate entries, and those should then be fed into the As far as I can tell, this would involve adding a flag around clearing the memory here so that previous memories in the index were not deleted unless a flag was present (or not present). The Forgive me if I've missed something or made incorrect assumptions, the codebase has evolved quite rapidly! I'm happy to resume work on this now that I've got my head around the updated codebase, given none of my assumptions are wildly incorrect. The one requirement is that the |
FTFY, and correct.
That
Yup, see #3536 and #4799. It's work-in-progress, and
The full message history is stored in In order to resume the program, I think loading something into Furthermore, I feel that we might be served with a graceful shutdown handler. It could save the program state (including at the very least the current message history), which can then be used later to resume operations. A less refined solution (saving on every cycle) could work, too.
I'm not sure why the |
Background
To improve the overall user experience, this PR focuses on adding the functionality to maintain a chat history file for Auto-GPT. This feature will enable Auto-GPT to resume work more efficiently when stopped, by allowing it to load, update, and clear the chat history file.
Changes
Documentation
The new functionality has been documented through in-code comments.
Test Plan
PR Quality Checklist