Back to Devexpress

RequestOptions.PromptAugmentation Property

corelibraries-devexpress-dot-aiintegration-dot-extensions-dot-requestoptions.md

latest1.9 KB
Original Source

RequestOptions.PromptAugmentation Property

Gets or sets additional instructions that modify the prompt before processing.

Namespace : DevExpress.AIIntegration.Extensions

Assembly : DevExpress.AIIntegration.v25.2.dll

NuGet Package : DevExpress.AIIntegration

Declaration

csharp
public string PromptAugmentation { get; set; }
vb
Public Property PromptAugmentation As String

Property Value

TypeDescription
String

Additional instructions.

|

Remarks

The following code snippet uses the AI-powered extension to shorten originalText and obtain the result in English, regardless of the language used in the original text:

csharp
string originalText = "Alice fing an sich zu langweilen; sie saß schon lange...";
ShortenRequest request = new ShortenRequest(originalText);
// Specify the context
request.Options.Context = "Alice's Adventures in Wonderland";
// Specify additional instructions
request.Options.PromptAugmentation = "Always translate the result into English.";
var response = await defaultAIExtensionsContainer.ShortenAsync(request);

See Also

Context

RequestOptions Class

RequestOptions Members

DevExpress.AIIntegration.Extensions Namespace