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

Gracefully catch errors when running agent.step() #216

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

vivi
Copy link
Contributor

@vivi vivi commented Oct 31, 2023

We don't want exceptions from agent.step() to cause the CLI to exit and irrevocably lose conversation history.

  • Asks user if they want to retry upon failed step()
  • If user answers no, they are sent back to providing user input
image

@vivi vivi requested a review from cpacker October 31, 2023 08:33
@vivi
Copy link
Contributor Author

vivi commented Oct 31, 2023

Addresses #197.

Copy link
Collaborator

@cpacker cpacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

memgpt/main.py Outdated Show resolved Hide resolved
memgpt/main.py Outdated Show resolved Hide resolved
@cpacker cpacker merged commit 4e6af2f into main Oct 31, 2023
1 check passed
@vivi vivi deleted the catch-step-errors branch October 31, 2023 20:33
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
* Gracefully catch errors when running agent.step()

* Modify retry message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants