alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class PromptComposingEventArgs

    Provides data for the PromptComposing event.

    Inheritance
    object
    EventArgs
    PromptComposingEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved