Class PromptItemTemplateContext
Provides context information for rendering a prompt item template within the SfAIAssistView component.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class PromptItemTemplateContext
Remarks
The PromptItemTemplateContext supplies:
- The prompt text via Prompt.
- The toolbar items to display via ToolbarItems.
- Any files attached to the prompt via AttachedFiles.
- The zero-based index of this prompt via Index.
PromptItemTemplate to customize how each prompt is rendered.
Constructors
PromptItemTemplateContext()
Declaration
public PromptItemTemplateContext()
Properties
AttachedFiles
Gets or sets the list of files associated with this prompt context in the SfAIAssistView component.
Declaration
public List<FileInfo> AttachedFiles { get; set; }
Property Value
| Type | Description |
|---|---|
| List<FileInfo> | A list of FileInfo instances representing the files attached to the prompt within this template context. |
Remarks
This property provides file details for the template context, essential for displaying file information or handling file-specific logic within the prompt.
Index
Gets the index of the prompt item in the SfAIAssistView component.
Declaration
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The index of the prompt item. The default is |
Remarks
This property specifies the index for the prompt item in the AssistViewPrompt in the SfAIAssistView component.
Prompt
Gets the text of the prompt in the SfAIAssistView component.
Declaration
public string Prompt { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The text of the prompt. The default is |
Remarks
This property specifies the text for the AssistViewPrompt in the SfAIAssistView component.
ToolbarItems
Gets the collection of toolbar items for the prompt in the SfAIAssistView component.
Declaration
public List<AssistViewToolbarItem> ToolbarItems { get; set; }
Property Value
| Type | Description |
|---|---|
| List<AssistViewToolbarItem> | A list of AssistViewToolbarItem representing the toolbar items for the prompt. The default is |
Remarks
This property holds the collection of toolbar items for the prompt of the AssistViewPrompt component.