Class PromptSuggestionItemTemplateContext
Provides context information for rendering a prompt suggestion item within the SfAIAssistView component.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class PromptSuggestionItemTemplateContext
Remarks
- Index – The zero-based position of this suggestion in the list.
- PromptSuggestion – The suggestion text to display.
PromptSuggestionItemTemplate to customize how each suggestion is rendered.
Constructors
PromptSuggestionItemTemplateContext()
Declaration
public PromptSuggestionItemTemplateContext()
Properties
Index
Gets the index of the prompt suggestion item in the SfAIAssistView component.
Declaration
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The index of the prompt suggestion item. The default is |
Remarks
This property specifies the index for the prompt suggestion item in the AssistViewPrompt in the SfAIAssistView component.
PromptSuggestion
Gets or sets the prompt suggestion in the SfAIAssistView component.
Declaration
public string PromptSuggestion { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the prompt suggestion. The default is null. |
Remarks
This property contains the suggestion that can be used as prompt in the SfAIAssistView component.