Skip to main content
All docs
V25.2
  • ReportPromptToExpressionBehavior(Type, Int32, Nullable<Single>, String) Constructor

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

    Namespace: DevExpress.AIIntegration.WinForms.Reporting

    Assembly: DevExpress.AIIntegration.WinForms.Reporting.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.WinForms.Reporting

    Declaration

    public ReportPromptToExpressionBehavior(
        Type behaviorSourceType,
        int retryAttemptCount = 3,
        float? temperature = null,
        string promptAugmentation = ""
    )

    Parameters

    Name Type Description
    behaviorSourceType Type

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

    Optional Parameters

    Name Type Default Description
    retryAttemptCount Int32 3

    The number of additional attempts the AI makes to regenerate an expression if the previous result is invalid. This value is assigned to the RetryAttemptCount property.

    temperature Nullable<Single> null

    The balance between creativity and consistency in AI responses. A number between 0 and 1 (or 0 and 2) depending on the AI behavior and model. This value is assigned to the Temperature property.

    promptAugmentation String String.Empty

    Additional instructions to each user prompt. This value is assigned to the PromptAugmentation property.

    Remarks

    See the following help topic for additional information: Generate Expressions from Prompts (WinForms Report Designer).

    See Also