Skip to content

Backend support for cancellation#35

Open
willcrichton wants to merge 2 commits into06-select-afrom
06-select-b
Open

Backend support for cancellation#35
willcrichton wants to merge 2 commits into06-select-afrom
06-select-b

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