This sample demonstrates the streaming response update in the AI AssistView
component.
In this example, the AI AssistView
component dynamically updates responses in a streaming manner using the addPromptResponse
method, while the scrollToBottom
method ensures automatic scrolling. The bannerTemplate
allows customization of the banner content, and toolbarSettings
enables custom toolbar items, including a right-aligned Refresh button. Additionally, promptSuggestions
offers AI-generated prompt suggestions, while promptRequest
processes prompt requests when triggered.
This implementation provides an interactive AI chat experience with real-time streaming updates, enhanced by Markdown-to-HTML conversion using the Marked
plugin.