PromptToExpressionBehavior.RetryAttemptCount Property
Gets or sets the number of subsequent attempts to generate a valid expression using the AI service after the initial failure. This is a dependency property.
Namespace: DevExpress.AIIntegration.Wpf
Assembly: DevExpress.AIIntegration.Wpf.v26.1.dll
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Int32 | 0 | The number of additional attempts to generate a valid expression using the AI service after the initial failure. |
Remarks
The following example sets the RetryAttemptCount property to 3, so the AI serivce makes three additional attempts to generate a valid expression if the initial result is invalid:
<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="True" />
</dxmvvm:Interaction.Behaviors>
</dxg:GridControl>
</ThemedWindow>
Refer to the following help topic for additional information: Prompt to Expression.
See Also