PromptToExpressionBehavior(Type, Int32, Nullable<Single>, String, Boolean) Constructor
Initializes a new instance of the PromptToExpressionBehavior class with specified settings.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v26.1.dll
Declaration
public PromptToExpressionBehavior(
Type behaviorSourceType,
int retryAttemptCount = 3,
float? temperature = null,
string promptAugmentation = "",
bool augmentWithFunctionInfo = true
)
Parameters
| Name | Type | Description |
|---|---|---|
| behaviorSourceType | Type | The type of 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 | 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. This value is assigned to the PromptAugmentation property. |
| augmentWithFunctionInfo | Boolean | True | Injects supported functions and operators into each user prompt. This value is assigned to the AugmentWithFunctionInfo property. |