React Common Types - AIIntegration

A class that activates AI services in DevExpress UI components.

import { AIIntegration } from "devextreme/common/ai-integration"

This object's constructor accepts two parameters:

Pass the created AIIntegration object to components where you want to activate AI capabilities.

App.tsx
  • import { AIIntegration } from 'devextreme-react/common/ai-integration';
  • const aiIntegration = new AIIntegration(provider);
  •  
  • const App = () => {
  • return (
  • <HtmlEditor aiIntegration={aiIntegration} />
  • );
  • }