Skip to main content
All docs
V26.1
  • ExpandBehavior(Type, Nullable<Single>, String, TextRetrievalMode) Constructor

    Initializes a new instance of the ExpandBehavior class with specified settings.

    Namespace: DevExpress.AIIntegration.WinForms

    Assembly: DevExpress.AIIntegration.WinForms.v26.1.dll

    Declaration

    public ExpandBehavior(
        Type behaviorSourceType,
        float? temperature = null,
        string promptAugmentation = "",
        TextRetrievalMode textRetrievalMode = TextRetrievalMode.Default
    )

    Parameters

    Name Type Description
    behaviorSourceType Type

    The type of target control to which the behavior is attached.

    Optional Parameters

    Name Type Default Description
    temperature Nullable<Single> null

    A number between 0 and 1 (or 0 and 2) depending on the AI behavior and model.

    promptAugmentation String String.Empty

    Additional instructions that modify the prompt before processing. This value is assigned to the PromptAugmentation property.

    textRetrievalMode TextRetrievalMode Default

    A value that specifies what text the AI-powered ​​extension should send in the request (the selected fragment or the entire text if no selection is made). This value is assigned to the TextRetrievalMode property.

    See Also