-
Notifications
You must be signed in to change notification settings - Fork 556
feat(chat): support prompt suggestions #6831
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
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7f789be:
|
| {message.parts.map(renderMessagePart)} | ||
| </div> | ||
|
|
||
| {suggestionsElement} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the future, it may be interesting to add the suggestion to the message.parts directly and style it as a built-in tool, but this is the way to go for now
| status === 'ready' && | ||
| message.role === 'assistant' && | ||
| index === messages.length - 1 | ||
| ? suggestionsElement | ||
| : undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I first thought that it may make sense to remove it in the connector if it's not last, but there are probably some UIs where you keep displaying all suggestions.
c1fa2e8 to
9af869e
Compare
Summary
FX-3596
Result
Screen.Recording.2025-12-17.at.11.01.21.mov