-
Notifications
You must be signed in to change notification settings - Fork 663
✨AI Column: [Part 1] New properties (aiIntegration, prompt, mode) #31219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Raushen
merged 30 commits into
DevExpress:25_2
from
Raushen:New-AI-Column-Properrties-Part1
Oct 8, 2025
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
61fa2f5
AI Column type, sorting test
Raushen 899cf2b
Merge branch '25_2' of github.com:DevExpress/DevExtreme into AI-Colum…
Raushen 60c2661
Fix tests
Raushen 5251ddd
Update test handler
Raushen dc63e3b
Merge branch '25_2' of github.com:DevExpress/DevExtreme into AI-Colum…
Raushen bc882d9
Merge branch '25_2' of github.com:DevExpress/DevExtreme into AI-Colum…
Raushen a268cae
Merge branch '25_2' of github.com:DevExpress/DevExtreme into AI-Colum…
Raushen 638c59d
Add structure
Raushen ffbf698
Add methods
Raushen 9e65d90
Merge commit
Raushen 38dbb4b
Merge branch '25_2' of github.com:DevExpress/DevExtreme into AI-Colum…
Raushen 4543f14
Refactoring
Raushen dd4a44d
Add aiIntegration tests
Raushen ba73086
Prompt property
Raushen 202d34d
Handling data changing
Raushen 798b3e4
Async tests
Raushen 149ca7b
Manual mode test
Raushen dc00b82
Merge branch '25_2' of github.com:DevExpress/DevExtreme into New-AI-C…
Raushen 97a34ab
Remove playground file dx.ai-integration.js
Raushen c78d4ef
Remove playground file jquery AI Column Base.html
Raushen 9166c36
Remove playground file jquery calculateCellValue.html
Raushen 42163d0
Rollback
Raushen 03acfb0
Rollback
Raushen a54a763
Fix tests
Raushen 5ae838d
Update dx.all.d.ts
Raushen 56ebe9a
Error text fix
Raushen 03e3d20
Merge branch '25_2' of github.com:DevExpress/DevExtreme into New-AI-C…
Raushen 6de7eaf
Fix comments
Raushen f660cca
Rename GenerateColumn -> GenerateGridColumn
Raushen 378f570
.d.ts regeneration
Raushen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
packages/devextreme/js/__internal/core/ai_integration/commands/generateGridColumn.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import type { GenerateGridColumnCommandParams, GenerateGridColumnCommandResult } from '@js/common/ai-integration'; | ||
| import { BaseCommand } from '@ts/core/ai_integration/commands/base'; | ||
| import type { PromptData, PromptTemplateName } from '@ts/core/ai_integration/core/prompt_manager'; | ||
|
|
||
| export class GenerateGridColumnCommand extends BaseCommand< | ||
| GenerateGridColumnCommandParams, | ||
| GenerateGridColumnCommandResult | ||
| > { | ||
| protected getTemplateName(): PromptTemplateName { | ||
| return 'generateColumn'; | ||
| } | ||
|
|
||
| protected buildPromptData(params: GenerateGridColumnCommandParams): PromptData { | ||
| const dataDescription = this.generateDataDescription(params.data); | ||
| return { | ||
| user: { | ||
| text: params.text, | ||
| data: dataDescription, | ||
| }, | ||
| }; | ||
| } | ||
|
|
||
| protected parseResult(response: string): GenerateGridColumnCommandResult { | ||
| const result: GenerateGridColumnCommandResult = JSON.parse(response); | ||
| return result; | ||
| } | ||
|
|
||
| private generateDataDescription(data: Record<PropertyKey, unknown>): string { | ||
| const result = JSON.stringify(data); | ||
| return result; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[thoughts]
This API may become public, so I would ask TechWriters to help with the name. I would narrow down the meaning of this name to
generateDataGridColumn.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, adding a bit of specificity is beneficial. Let's rename this template to
generateGridColumn. This adds specificity while keeping the name relatively short and leaving the door open to using this template in the TreeList (if we ever decide to add AI columns to the TreeList).