TranslateBehavior(Type, Nullable<Single>, String, TextRetrievalMode, IEnumerable<LanguageInfo>) Constructor
Initializes a new instance of the TranslateBehavior class with specified settings.
Namespace: DevExpress.AIIntegration.WinForms
Assembly: DevExpress.AIIntegration.WinForms.v25.2.dll
NuGet Package: DevExpress.AIIntegration.WinForms
Declaration
public TranslateBehavior(
Type behaviorSourceType,
float? temperature = null,
string promptAugmentation = "",
TextRetrievalMode textRetrievalMode = TextRetrievalMode.Default,
IEnumerable<LanguageInfo> languages = null
)
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. |
| languages | IEnumerable<DevExpress.AIIntegration.WinForms.LanguageInfo> | null | The collection of target languages for text translation. This value is assigned to the Languages property. |