Example of Streaming Response in ASP.NET Core AI AssistView Control

AI AssistView
Streaming Response

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?
Stop Responding

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.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab