Skip to content

Allow interrupting response generation in AIConversation #6388

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

Open
2 tasks
development-nextios opened this issue Feb 28, 2025 · 1 comment
Open
2 tasks
Labels
feature-request Request a new feature

Comments

@development-nextios
Copy link

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Other

Please describe your feature-request in detail.

Currently, when using AI Kit's AIConversation component in Amplify, there is no native way to stop the chatbot from generating a response while it is still responding. At least from studying the documentation, I did not find any mention of this functionality. This limits the user's interactivity, who has to wait until the response is finished to interact again.

I would like to request the implementation of a mechanism that allows the user to stop the bot from responding in real time. This functionality would improve the user experience by giving more control over the conversation, especially in long responses.

Please describe a solution you'd like.

Add a method or property to the AIConversation component that allows the response to be interrupted. This could be done, for example, through a stopResponse() function that the developer could call to cancel the response in progress.

Another approach would be to allow a user-controlled state to be passed, such as isInterrupted, which could be dynamically updated to stop the response when necessary.

We love contributors! Is this something you'd be interested in working on?

  • 👋 I may be able to implement this feature request.
  • ⚠️ This feature might incur a breaking change.
@development-nextios development-nextios added the feature-request Request a new feature label Feb 28, 2025
@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify UI maintainer labels Feb 28, 2025
@joon-won
Copy link
Member

Hey @development-nextios thanks for making this feature request. Our team will look into this issue and see what we can do.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify UI maintainer label Feb 28, 2025
@joon-won joon-won removed the pending-triage Issue is pending triage label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants