jQuery/JS 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 an AIProvider object that specifies AI service settings. Pass the created AIIntegration object to components where you want to activate AI capabilities.
You need to link AIIntegration source.
index.js
index.html
- const aiIntegration = new DevExpress.aiIntegration.AIIntegration(provider);
- $("#htmlEditor").dxHtmlEditor({
- // ...
- aiIntegration,
- });
- <head>
- <!-- ... -->
- <script type="text/javascript" src="../artifacts/js/dx.ai-integration.js" charset="utf-8"></script>
- <!-- or if using CDN -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/devextreme-dist/25.1.15/js/dx.ai-integration.js"></script>
- </head>