Blazor AI AssistView Example - Streaming Response
- What are the main features of the AI AssistView component?
- What is Markdown and how is it used?
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 UpdateResponseAsync method, while the ScrollToBottomAsync method ensures automatic scrolling to the latest content.
The BannerTemplate customizes the banner content, and the AssistViewToolbar adds custom toolbar items like a right-aligned Refresh button. The PromptSuggestions property provides AI prompt suggestions, and the PromptRequested event handles prompt requests when triggered.
This implementation provides an interactive chat experience with real-time streaming updates, enhanced by Markdown-to-HTML conversion using the Markdig library.