mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Porting back AI formula backend
Summary: This is a backend part for the formula AI. Test Plan: New tests Reviewers: paulfitz Reviewed By: paulfitz Subscribers: cyprien Differential Revision: https://phab.getgrist.com/D3786
This commit is contained in:
@@ -318,6 +318,11 @@ export interface ActiveDocAPI {
|
||||
*/
|
||||
getFormulaError(tableId: string, colId: string, rowId: number): Promise<CellValue>;
|
||||
|
||||
/**
|
||||
* Generates a formula code based on the AI suggestions, it also modifies the column and sets it type to a formula.
|
||||
*/
|
||||
getAssistance(tableId: string, colId: string, description: string): Promise<void>;
|
||||
|
||||
/**
|
||||
* Fetch content at a url.
|
||||
*/
|
||||
|
||||
11
app/common/AssistancePrompts.ts
Normal file
11
app/common/AssistancePrompts.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {DocAction} from 'app/common/DocActions';
|
||||
|
||||
export interface Prompt {
|
||||
tableId: string;
|
||||
colId: string
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface Suggestion {
|
||||
suggestedActions: DocAction[];
|
||||
}
|
||||
Reference in New Issue
Block a user