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

Backend support for cancellation #35

Open
wants to merge 2 commits into
base: 06-select-a
Choose a base branch
from
Open

Conversation

willcrichton
Copy link
Contributor

@willcrichton willcrichton commented Aug 23, 2024

Reference solution for cancellation. Key changes:

  • Messages are split into MessagesRequest and MessagesResponse, an enum
  • The chatbot thread now responds with Option<Vec<String>> to represent cancellation
  • The chatbot thread selects between query_chat and a cancellation channel
  • The /cancel route sends a message on the cancellation channel
  • The /chat route handles the case of cancellation

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

Successfully merging this pull request may close these issues.

1 participant