You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/items.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -430,10 +430,10 @@ The `SfAIAssistView` control includes a built-in event called [CardTapped](https
430
430
431
431
## Show error response
432
432
433
-
The `SfAIAssistView` allows to display error responses by setting the text to the `ErrorMessage`, ensuring clear notification when an error occurs during AI interactions.
433
+
The `SfAIAssistView` allows to display error responses by setting the error text to the `AssistItem.ErrorMessage` property, ensuring clear notification when an error occurs during AI interactions.
Text = "Active Listening – Fully focusing and responding to the speaker with attention and empathy. Passive Listening – Hearing without reacting or engaging with the speaker. Empathetic Listening – Understanding the speaker’s emotions and feelings deeply.",
465
+
IsRequested = false,
466
+
};
467
+
this.AssistItems.Add(responseItem);
468
+
}
469
+
catch (Exception ex)
461
470
{
462
-
ErrorMessage = "An error occured. Either the engine you requested does not exist or there was another issue processing your request.",
463
-
IsRequested = false,
464
-
};
465
-
466
-
this.AssistItems.Add(responseItem);
471
+
AssistItem errorItem = new AssistItem()
472
+
{
473
+
ErrorMessage = "An error occurred. Either the engine you requested does not exist or there was another issue processing your request.",
0 commit comments