BaseAIContextMenuItem.PromptAugmentation Property
Specifies additional instructions that augment the default prompt sent to the LLM.
Namespace: DevExpress.AIIntegration.Blazor.RichEdit
Assembly: DevExpress.AIIntegration.Blazor.RichEdit.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Blazor.RichEdit
Declaration
[Parameter]
public string PromptAugmentation { get; set; }
Property Value
| Type | Description |
|---|---|
| String | Additional instructions and context. |
Remarks
The DevExpress AI-powered extension for the Rich Text Editor offers pre-built prompts to process and transform selected text. While these prompts are optimized for generic texts, specialized content may require more granular guidance and context.
Use the PromptAugmentation property to augment the default prompt with additional instructions that enhance the relevance and accuracy of the AI response.
The following code snippet instructs the AI to generate a summary of selected text in the form of a limerick:
@using DevExpress.AIIntegration.Blazor.RichEdit
@using DevExpress.Blazor.RichEdit
<DxRichEdit>
<Extensions>
<SummarizeAIContextMenuItem PromptAugmentation="Summarize the text as a humorous limerick." />
</Extensions>
</DxRichEdit>
