Skip to main content
All docs
V26.1
  • PromptToExpressionBehavior.AugmentWithFunctionInfo Property

    Gets or sets whether to inject information about supported functions and operators into each user prompt. This is a dependency property.

    Namespace: DevExpress.AIIntegration.Wpf

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

    Declaration

    public bool AugmentWithFunctionInfo { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to inject supported functions and operators into each user prompt; otherwise, false.

    Remarks

    Injection of a complete list of available functions and operators into a prompt increases output accuracy but generates about 4000 additional tokens per request. You can set the AugmentWithFunctionInfo property to false to significantly reduce the number of generated tokens for simple requests.

    <ThemedWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                  xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
                  xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm">
        <dxg:GridControl ItemsSource="{Binding Employees}">
            <dxmvvm:Interaction.Behaviors>
                <dxai:PromptToExpressionBehavior
                    RetryAttemptCount="3"
                    Temperature="0.3"
                    AugmentWithFunctionInfo="False" />
            </dxmvvm:Interaction.Behaviors>
        </dxg:GridControl>
    </ThemedWindow>
    

    Refer to the following help topic for additional information: Prompt to Expression.

    See Also