Class PromptComposingEventArgs
Provides data for the PromptComposing event.
Inherited Members
Namespace: Syncfusion.Maui.AIAssistView
Assembly: Syncfusion.Maui.AIAssistView.dll
Syntax
public class PromptComposingEventArgs : EventArgs
Remarks
The PromptComposing event is raised before an AI request is sent, allowing developers to inspect the fully composed prompt and the enabled prompt parts that compose it. The properties in this event args are read-only to prevent accidental modifications.
Properties
ComposedPrompt
Gets the fully composed prompt string.
Declaration
public string ComposedPrompt { get; }
Property Value
| Type |
|---|
| string |
Remarks
This is the final prompt that will be sent to the AI backend. It includes all enabled system prompts, context prompts, prompt parts, and the user input combined with newline delimiters.
Parts
Gets a read-only list of the enabled prompt parts in composition order.
Declaration
public IList<AssistPromptPart> Parts { get; }
Property Value
| Type |
|---|
| IList<AssistPromptPart> |
Remarks
This list contains all prompt parts from PromptParts that were enabled (IsEnabled = true) and sorted by their Order property. Disabled parts are excluded.