diff --git a/blazor/ai-assistview/events.md b/blazor/ai-assistview/events.md index b4675d54be..b6ee399bc4 100644 --- a/blazor/ai-assistview/events.md +++ b/blazor/ai-assistview/events.md @@ -213,6 +213,39 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor. } ``` +## AttachmentRemoving + +The [AttachmentRemoving](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentRemoving) event is triggered when an attached file is being removed in the AI AssistView. + +```cshtml + +@using Syncfusion.Blazor.InteractiveChat +@using Syncfusion.Blazor.Inputs + +
+ +
+ +@code { + private void AttachmentRemoving(AttachmentRemovingEventArgs args) + { + // Your required action here + } + private AssistViewAttachmentSettings attachmentSettings = new AssistViewAttachmentSettings() + { + Enable = true, + SaveUrl = "https://blazor.syncfusion.com/services/production/api/FileUploader/Save", + RemoveUrl = "https://blazor.syncfusion.com/services/production/api/FileUploader/Remove" + }; + private async Task PromptRequest(AssistViewPromptRequestedEventArgs args) + { + await Task.Delay(1000); + var defaultResponse = "For real-time prompt processing, connect the AI AssistView component to your preferred AI service, such as OpenAI or Azure Cognitive Services. Ensure you obtain the necessary API credentials to authenticate and enable seamless integration."; + args.Response = defaultResponse; + } +} +``` + ## AttachmentClick The [AttachmentClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentClick) event is triggered when an attached file is clicked in the AI AssistView.