Example of Streaming Response in ASP.NET MVC AI AssistView Control
This sample demonstrates the streaming response update in the AI AssistView
control.
- What are the main features of the AI AssistView component?
- What is Markdown and how is it used?
In this example, the AI AssistView
control 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.