Skip to content

Commit e91f378

Browse files
Merge pull request #4857 from syncfusion-content/BLAZ-903622-blazorDoc
docs(903622): Added complete UG for the AI AssistView Component.
2 parents 8b09426 + 2952b4d commit e91f378

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

blazor/ai-assistview/custom-view.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You can use the `ViewTemplate` tag directive to add the view content of the mult
112112
@using Syncfusion.Blazor.InteractiveChat
113113
114114
<div class="aiassist-container" style="width: max(50%, 500px); margin: 30px auto;">
115-
<SfAIAssistView PromptRequested="@PromptRequest">
115+
<SfAIAssistView>
116116
<AssistViews>
117117
<AssistView Header="Prompt">
118118
<ViewTemplate>
@@ -128,14 +128,6 @@ You can use the `ViewTemplate` tag directive to add the view content of the mult
128128
</SfAIAssistView>
129129
</div>
130130
131-
@code {
132-
private async Task PromptRequest(AssistViewPromptRequestedEventArgs args)
133-
{
134-
await Task.Delay(1000);
135-
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.";
136-
args.Response = defaultResponse;
137-
}
138-
}
139131
<style>
140132
.view-container {
141133
margin: 20px auto;

0 commit comments

Comments
 (0)