Class AssistPromptPart
Represents a discrete prompt fragment that can be composed into the final prompt.
Inheritance
Namespace: Syncfusion.Maui.AIAssistView
Assembly: Syncfusion.Maui.AIAssistView.dll
Syntax
public class AssistPromptPart : Object
Remarks
AssistPromptPart instances are added to the PromptParts collection and are automatically merged into the composed prompt when an AI request is sent. Each part has an Order property to control its position in the final prompt. Parts can be enabled or disabled using the IsEnabled property.
Constructors
AssistPromptPart()
Declaration
public AssistPromptPart()
Properties
Content
Gets or sets the content of this prompt part.
Declaration
public string Content { get; set; }
Property Value
| Type |
|---|
| System.String |
Remarks
The content is the actual text that will be included in the composed prompt. Null or empty content will be skipped during composition.
IsEnabled
Gets or sets a value indicating whether this prompt part should be included in the composed prompt.
Declaration
public bool IsEnabled { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Remarks
When set to false, this part will be excluded from composition even if it has content. The default value is true.
Order
Gets or sets the order in which this prompt part should appear in the composed prompt.
Declaration
public int Order { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Remarks
Prompt parts are sorted by this property in ascending order. Parts with the same order maintain their insertion order. The Order property only affects relative positioning of prompt parts; the overall composition order is System → Context → PromptParts → User.