Skip to content

Commit 992367b

Browse files
Merge pull request #6666 from syncfusion-content/982891-Blazor-UG-Updation-3
982891: Updated the Blazor UG contents for Ai Assistview
2 parents e0a1e58 + a489c47 commit 992367b

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

blazor/ai-assistview/custom-view.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ documentation: ug
1111

1212
## Adding custom views
1313

14-
The Blazor AI AssistView allows you to add different views available for user interaction.
14+
The Blazor AI AssistView supports multiple views for user interaction, including the built-in AssistView and customizable CustomView types.
1515

1616
#### Setting view type
1717

18-
You can set the type of view by using the [AssistView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html) and [CustomView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.CustomView.html) tag directive.
18+
Set the view type by using the [AssistView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html) and [CustomView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.CustomView.html) tag directives.
1919

2020
```cshtml
2121
@@ -49,7 +49,7 @@ You can set the type of view by using the [AssistView](https://help.syncfusion.c
4949

5050
### Setting name
5151

52-
You can use the [Header](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_Header) property to specifies the header name of the `Assist` or `Custom` views in the AI AssistView.
52+
Use the [Header](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_Header) property to specify the header text for the `AssistView` or `CustomView` in the AI AssistView.
5353

5454
```cshtml
5555
@@ -83,7 +83,7 @@ You can use the [Header](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor
8383

8484
### Setting iconCss
8585

86-
You can customize the view icons by using the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_IconCss) property. By default the `e-assistview-icon` class is added as built-in header icon for the AI AssistView.
86+
Customize the view icon by using the [IconCss](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_IconCss) property. By default, the `e-assistview-icon` class is added as the built-in header icon for the AI AssistView.
8787

8888
```cshtml
8989
@@ -117,7 +117,7 @@ You can customize the view icons by using the [IconCss](https://help.syncfusion.
117117

118118
### Setting view template
119119

120-
You can use the [ViewTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_ViewTemplate) tag directive to add the view content of the multiple views added in the AI AssistView.
120+
Use the [ViewTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_ViewTemplate) tag directive to define the content template for each view added to the AI AssistView.
121121

122122
```cshtml
123123
@@ -154,7 +154,7 @@ You can use the [ViewTemplate](https://help.syncfusion.com/cr/blazor/Syncfusion.
154154

155155
#### Show or hide clear button
156156

157-
You can use the [ShowClearButton](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_ShowClearButton) property using the `AssistView` tag directive to show or hide the clear button. By default, its value is `false`, when the clear button is clicked, the prompt text entered will be cleared.
157+
Use the [ShowClearButton](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.AssistView.html#Syncfusion_Blazor_InteractiveChat_AssistView_ShowClearButton) property on the `AssistView` tag to show or hide the clear button. The default value is `false`. When enabled and clicked, it clears the prompt text entered in the input area.
158158

159159
```cshtml
160160
@@ -183,7 +183,7 @@ You can use the [ShowClearButton](https://help.syncfusion.com/cr/blazor/Syncfusi
183183

184184
## Setting active view
185185

186-
You can use the [ActiveView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_ActiveView) property set the active view in the AI AssistView. By default, the value is `0`.
186+
Use the [ActiveView](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_ActiveView) property to set the initially active view in the AI AssistView. By default, the value is `0`.
187187

188188
```cshtml
189189

blazor/ai-assistview/events.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This section describes the AI AssistView events that will be triggered when appr
1313

1414
## Created
1515

16-
The AI AssistView component triggers the [Created](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Created) event when the component rendering is completed.
16+
The AI AssistView component triggers the [Created](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Created) event after the component has completed its initial rendering.
1717

1818
```cshtml
1919
@using Syncfusion.Blazor.InteractiveChat
@@ -38,7 +38,7 @@ The AI AssistView component triggers the [Created](https://help.syncfusion.com/c
3838

3939
## PromptRequested
4040

41-
The [PromptRequested](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptRequested) event is triggered when the prompt request is made in the AI AssistView component.
41+
The [PromptRequested](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptRequested) event is triggered when a prompt is submitted in the AI AssistView component.
4242

4343
```cshtml
4444
@using Syncfusion.Blazor.InteractiveChat
@@ -59,7 +59,7 @@ The [PromptRequested](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.In
5959

6060
## PromptChanged
6161

62-
The [PromptChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptChanged) event is triggered when the prompt text is changed in the AI AssistView component.
62+
The [PromptChanged](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_PromptChanged) event is triggered when the prompt text changes in the AI AssistView component.
6363

6464
```cshtml
6565
@using Syncfusion.Blazor.InteractiveChat
@@ -117,7 +117,7 @@ The [AttachmentUploadStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Bla
117117

118118
## AttachmentUploadSuccess
119119

120-
The [AttachmentUploadSuccess](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentUploadSuccess) event is triggered when the attached file is successfully uploaded in the AI AssistView.
120+
The [AttachmentUploadSuccess](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentUploadSuccess) event is triggered when an attached file is successfully uploaded in the AI AssistView.
121121

122122
```cshtml
123123
@@ -150,7 +150,7 @@ The [AttachmentUploadSuccess](https://help.syncfusion.com/cr/blazor/Syncfusion.B
150150

151151
## AttachmentUploadFailed
152152

153-
The [AttachmentUploadFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentUploadFailed) event is triggered when the attached file upload fails in the AI AssistView.
153+
The [AttachmentUploadFailed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_AttachmentUploadFailed) event is triggered when an attached file upload fails in the AI AssistView.
154154

155155
```cshtml
156156
@@ -212,4 +212,4 @@ The [AttachmentRemoved](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.
212212
args.Response = defaultResponse;
213213
}
214214
}
215-
```
215+
```

blazor/ai-assistview/file-attachments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ documentation: ug
99

1010
# Attachments in Blazor AI AssistView component
1111

12-
The `Attachment` support in AI AssistView specifies user to include file attachments along with their prompts in the AI AssistView. This enhances the interaction by allowing users to provide additional context through files. You can enable and customize this feature and its behavior using the `AttachmentSettings` configuration.
12+
`Attachment` support in the AI AssistView allows users to include files with their prompts, providing additional context to improve responses. Configure this behavior using the `AttachmentSettings` property, which controls enabling, allowed file types, size limits, and the server endpoints used for upload and removal.
1313

14-
You can use the `AttachmentSettings` property to configure the attachments in the AI AssistView.
14+
The `AttachmentSettings` property can be used to configure attachments in the AI AssistView component.
1515

1616
### Enabling attachment
1717

@@ -71,7 +71,7 @@ You can use the `SaveUrl` and `RemoveUrl` property to add the save and remove th
7171

7272
### Setting file type
7373

74-
You can use the `AllowedFileTypes` property to upload the specific file types in the attachment.
74+
Use the AllowedFileTypes property to restrict uploads to specific file extensions. Provide one or more extensions (for example, ".png" or ".png,.jpg,.pdf").
7575

7676
```cshtml
7777
@using Syncfusion.Blazor.InteractiveChat
@@ -100,7 +100,7 @@ You can use the `AllowedFileTypes` property to upload the specific file types in
100100

101101
### Setting file size
102102

103-
You can use the `MaxFileSize` property to allow the maximum file size of the upload file in the AI AssistView. By default, its value is `2000000` bytes.
103+
Use the MaxFileSize property to define the maximum allowed upload size in bytes. By default, the value is 2000000 bytes (approximately 2 MB).
104104

105105
```cshtml
106106
@using Syncfusion.Blazor.InteractiveChat

0 commit comments

Comments
 (0)