React Common Types - AIIntegrationOptions

Specifies optional AI service configuration.

import { AIIntegration_Options } from "devextreme/common/ai-integration"
Type:

Object

lang

Specifies the AI response language.

Type:

String

Configure this property to pass language information to the AI service in a system prompt. You can use language codes such as ISO 639 and IETF BCP 47, or plain language names (for instance, "English").

App.tsx
  • import { AIIntegration } from 'devextreme-react/common/ai-integration';
  •  
  • const aiIntegration = new AIIntegration({
  • sendRequest: ({ prompt }) => {
  • // ...
  • },
  • }, {
  • lang: 'en-EN',
  • });
NOTE
To limit the use of AI resources, specify a single language.