@gooddata/sdk-backend-spi 10.15.0-alpha.9 → 10.16.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/sdk-backend-spi.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { CatalogItemType } from '@gooddata/sdk-model';
|
|
|
14
14
|
import { DataValue } from '@gooddata/sdk-model';
|
|
15
15
|
import { DimensionGenerator } from '@gooddata/sdk-model';
|
|
16
16
|
import { FilterContextItem } from '@gooddata/sdk-model';
|
|
17
|
+
import { GenAIChatInteractionUserFeedback } from '@gooddata/sdk-model';
|
|
17
18
|
import { GenAIObjectType } from '@gooddata/sdk-model';
|
|
18
19
|
import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
|
|
19
20
|
import { IAccessGrantee } from '@gooddata/sdk-model';
|
|
@@ -1096,6 +1097,10 @@ export declare interface IChatThread {
|
|
|
1096
1097
|
* Reset the chat thread history.
|
|
1097
1098
|
*/
|
|
1098
1099
|
reset(): Promise<void>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Save user feedback for the interaction.
|
|
1102
|
+
*/
|
|
1103
|
+
saveUserFeedback(interactionId: number, feedback: GenAIChatInteractionUserFeedback): Promise<void>;
|
|
1099
1104
|
/**
|
|
1100
1105
|
* Add a user message to the chat thread.
|
|
1101
1106
|
*/
|
|
@@ -1134,6 +1139,10 @@ export declare interface IChatThreadQuery {
|
|
|
1134
1139
|
query(options?: {
|
|
1135
1140
|
signal?: AbortSignal;
|
|
1136
1141
|
}): Promise<IGenAIChatEvaluation>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Execute the chat thread and stream the results.
|
|
1144
|
+
*/
|
|
1145
|
+
stream(): ReadableStream<IGenAIChatEvaluation>;
|
|
1137
1146
|
}
|
|
1138
1147
|
|
|
1139
1148
|
/**
|
|
@@ -2218,11 +2227,12 @@ export declare interface IForecastView {
|
|
|
2218
2227
|
* @beta
|
|
2219
2228
|
*/
|
|
2220
2229
|
export declare interface IGenAIChatEvaluation {
|
|
2221
|
-
routing
|
|
2230
|
+
routing?: IGenAIChatRouting;
|
|
2222
2231
|
textResponse?: string;
|
|
2223
2232
|
foundObjects?: IGenAIFoundObjects;
|
|
2224
2233
|
createdVisualizations?: IGenAICreatedVisualizations;
|
|
2225
2234
|
chatHistoryThreadId?: string;
|
|
2235
|
+
chatHistoryInteractionId?: number;
|
|
2226
2236
|
}
|
|
2227
2237
|
|
|
2228
2238
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenAIObjectType, IGenAIUserContext, ISemanticSearchRelationship, ISemanticSearchResultItem, IGenAIChatInteraction, IGenAIChatRouting, IGenAIFoundObjects, IGenAICreatedVisualizations } from "@gooddata/sdk-model";
|
|
1
|
+
import { GenAIObjectType, IGenAIUserContext, ISemanticSearchRelationship, ISemanticSearchResultItem, IGenAIChatInteraction, IGenAIChatRouting, IGenAIFoundObjects, IGenAICreatedVisualizations, GenAIChatInteractionUserFeedback } from "@gooddata/sdk-model";
|
|
2
2
|
/**
|
|
3
3
|
* GenAI-powered features.
|
|
4
4
|
* @beta
|
|
@@ -68,6 +68,10 @@ export interface IChatThread {
|
|
|
68
68
|
* Reset the chat thread history.
|
|
69
69
|
*/
|
|
70
70
|
reset(): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Save user feedback for the interaction.
|
|
73
|
+
*/
|
|
74
|
+
saveUserFeedback(interactionId: number, feedback: GenAIChatInteractionUserFeedback): Promise<void>;
|
|
71
75
|
/**
|
|
72
76
|
* Add a user message to the chat thread.
|
|
73
77
|
*/
|
|
@@ -104,16 +108,21 @@ export interface IChatThreadQuery {
|
|
|
104
108
|
query(options?: {
|
|
105
109
|
signal?: AbortSignal;
|
|
106
110
|
}): Promise<IGenAIChatEvaluation>;
|
|
111
|
+
/**
|
|
112
|
+
* Execute the chat thread and stream the results.
|
|
113
|
+
*/
|
|
114
|
+
stream(): ReadableStream<IGenAIChatEvaluation>;
|
|
107
115
|
}
|
|
108
116
|
/**
|
|
109
117
|
* GenAI chat evaluation result.
|
|
110
118
|
* @beta
|
|
111
119
|
*/
|
|
112
120
|
export interface IGenAIChatEvaluation {
|
|
113
|
-
routing
|
|
121
|
+
routing?: IGenAIChatRouting;
|
|
114
122
|
textResponse?: string;
|
|
115
123
|
foundObjects?: IGenAIFoundObjects;
|
|
116
124
|
createdVisualizations?: IGenAICreatedVisualizations;
|
|
117
125
|
chatHistoryThreadId?: string;
|
|
126
|
+
chatHistoryInteractionId?: number;
|
|
118
127
|
}
|
|
119
128
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/genAI/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/genAI/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,sBAAsB,IAAI,oBAAoB,CAAC;IAE/C;;OAEG;IACH,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;OAEG;IACH,aAAa,IAAI,WAAW,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,CAAC;IAErD;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,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EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACzE;;OAEG;IACH,MAAM,IAAI,cAAc,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,qBAAqB,CAAC,EAAE,2BAA2B,CAAC;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-backend-spi",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.16.0-alpha.1",
|
|
4
4
|
"author": "GoodData",
|
|
5
5
|
"description": "GoodData Backend SPI abstraction interfaces",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
25
|
"ts-invariant": "^0.7.5",
|
|
26
26
|
"tslib": "^2.5.0",
|
|
27
|
-
"@gooddata/sdk-model": "10.
|
|
27
|
+
"@gooddata/sdk-model": "10.16.0-alpha.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gooddata/eslint-config": "^4.1.0",
|