Ticket T1285771
Visible to All Users

Manipulate AI prompts (RichTextEdit)

created 6 days ago

Hi!

I'm using the AI features for my RichTextEdit (managed by the behaviourManager).
Also, I am using some Localization-assemblies (DevExpress Localization Service) to translate the context menu.

I want to manipulate the prompts which are getting sent by the AI-features. I already tried to do that by implementing a custom AIIntegrationLocalizer and assigning it to the AIIntegrationLocalizer.Active. But when I do that, my Localization-assemblies are not getting applied anymore.

Also, I don't want to edit the prompt with the DevExpress Localization Service, because I want to do that dynamically (for example enrich the prompt with other contents out of my application)

Is there any other way to manipulte the prompts?

Thanks in advance!

Answers approved by DevExpress Support

created 3 days ago

Hi Niklas,

You can create a custom extension based on a built-in AI-powered extension and register it so that our AI-powered behaviors retrieve your extension instead of the default one. A custom extension allows you to supply a custom prompt for the AI model. Refer to the following help topic for more details: Customize DevExpress AI-powered Extensions.

See also: AI MainDemo — Code Examples — Attach Behavior — Configure AIExtensions composition.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.