Blazor AI AssistView Example - Streaming Response
This sample demonstrates the streaming response update in the AI AssistView component.
- What are the main features of the AI AssistView component?
- What is Markdown and how is it used?
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. The BannerTemplate customizes the banner content, and AssistViewToolbar adds custom toolbar items like a right-aligned Refresh button. The PromptSuggestions provides AI prompt suggestions, and PromptRequested 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.