BaseAIToolbarItem.PromptAugmentation Property
Specifies additional instructions that augment the default prompt sent to the LLM.
Namespace: DevExpress.AIIntegration.Blazor.HtmlEditor
Assembly: DevExpress.AIIntegration.Blazor.HtmlEditor.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Blazor.HtmlEditor
Declaration
[Parameter]
public string PromptAugmentation { get; set; }
Property Value
| Type | Description |
|---|---|
| String | Additional instructions and context. |
Remarks
The DevExpress AI-powered extension for the HTML Editor offers pre-built prompts to process and transform 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 text summary in the form of a limerick:
@using DevExpress.AIIntegration.Blazor.HtmlEditor
<DxHtmlEditor @bind-Markup="Value">
<Extensions>
<SummarizeAIToolbarItem PromptAugmentation="Summarize the text as a humorous limerick." />
</Extensions>
</DxHtmlEditor>
@code {
public string Value { get; set; }
}
