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

feat: conversation.restart #123

Open
KnorpelSenf opened this issue Nov 9, 2024 · 0 comments
Open

feat: conversation.restart #123

KnorpelSenf opened this issue Nov 9, 2024 · 0 comments

Comments

@KnorpelSenf
Copy link
Member

It should be made easy to have a conversation that lives forever without accumulating an infinite amount of data.

It rarely happens that bots actually have logic that handles thousands of updates. Instead, most bots only need a handful of them before they reset and start over.

This can currently be done using loops or recursion, but that does not clear the replay logs. It can also be done using a checkpoint, but that is tedious because it requires the checkpoint object to be created and dragged along manually.

It would be useful to have

await conversation.restart()

which restarts the conversation.

It is yet to be decided how arguments should be handled.

  • Always use the original ones from the enter call
  • Only use the original ones from the enter call if they are not overridden by explicit arguments passed to the restart call
  • Always require arguments to the restart call
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

No branches or pull requests

1 participant