-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
I added a "/retry" command to retry for getting another answer. #188
Conversation
46d0ec8
to
1c8d3d2
Compare
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.
this LGTM (see comment)
Could you also update |
Also thanks for this PR, /retry seems will be a useful function to have |
Well, I am not even a Python programmer (more the Go person) and I just skimmed over the implementation. I guess that checking that one pops up to and including the last user message is fine. I would need to figure out how to do that :) |
I decided to check out how to make a better implementation for '/retry'. I think I got it. But need your review. |
808780d
to
9ae8fb3
Compare
I would love to make something like "/retry Yes, " or "/retry No, " where the string is being added as the start of the assistant reply to further shape the results. But I am unsure if that is possible with the current design. I guess one would need to extend the function calls with something like "prepend" for the agent? |
81d5fd2
to
77a5a51
Compare
I updated the README and formatted the code. I hope this fits now. |
77a5a51
to
9774725
Compare
I added the update for the |
1e19b6b
to
1e99942
Compare
- Implemented to pop messages until hitting the last user message. Then extracting the users last message and sending it again. This will also work with state files and after manually popping messages. - Updated the README to include /retry - Update the README for "pop" with parameter and changed default to 3 as this will pop "function/assistant/user" which is the usual turn around.
1e99942
to
54bb596
Compare
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.
Same FYI as the other PR @oderwat , but just know that this will not modify the persistence manager, only the state inside the agent messages list.
Otherwise, LGTM
Thank you for the contribution! /retry, /rethink, and /rewrite are all really cool commands that I'm sure many others will find very useful, thank you for adding them and opening PRs to contribute back into the main repo. |
* I added a "/retry" command to retry for getting another answer. - Implemented to pop messages until hitting the last user message. Then extracting the users last message and sending it again. This will also work with state files and after manually popping messages. - Updated the README to include /retry - Update the README for "pop" with parameter and changed default to 3 as this will pop "function/assistant/user" which is the usual turn around. * disclaimer --------- Co-authored-by: Charles Packer <[email protected]>
I added a "/retry" command to retry for getting another answer.