Blazor AI AssistView Example - File Attachment Support
This sample demonstrates how users can attach files while interacting with the AI AssistView. The component enables file uploads to enhance the context of conversations and responses.
In this example, the file attachments are configured using the AttachmentSettings property.
The Enable option within AttachmentSettings is set to true to allow file attachments.
The SaveUrl and RemoveUrl are specified to handle file uploads for the attached files.
Additionally, the BannerTemplate customizes the banner message, and AssistViewToolbar adds custom toolbar items, such as a right-aligned Refresh button.
The PromptSuggestions provides AI prompt suggestions, and PromptRequested handles prompt requests when triggered.