Blazor AI AssistView Example - File Attachment Support
This sample demonstrates how users can attach files while interacting with the AI AssistView component. The component enables file uploads to enhance the context of conversations and responses.
In this example, 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 properties are specified to handle file uploads and deletions for attached files.
Additionally, the BannerTemplate customizes the banner message, and AssistViewToolbar adds custom toolbar items such as a right-aligned Refresh button. The PromptSuggestions property provides AI prompt suggestions, and the PromptRequested event handles prompt requests when triggered.