@memberjunction/skip-types 2.15.2 → 2.16.0
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/dist/types.d.ts +136 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +26 -1
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -61,6 +61,35 @@ export declare class SkipSubProcessResponse {
|
|
|
61
61
|
htmlReport: string | null;
|
|
62
62
|
errorMessage: string | null;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Defines the shape of the conversations that can be passed back and forth with the Skip API Server - primarily used for the learning cycle process
|
|
66
|
+
*/
|
|
67
|
+
export declare class SkipConversation {
|
|
68
|
+
/**
|
|
69
|
+
* The unique identifier for the conversation
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The user-friendly name for the conversation
|
|
74
|
+
*/
|
|
75
|
+
name: string;
|
|
76
|
+
/**
|
|
77
|
+
* Optional, more detailed description of the conversation
|
|
78
|
+
*/
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Array of messages that make up the conversation in chronological order, showing the earliest messages first and the more recents messages last
|
|
82
|
+
*/
|
|
83
|
+
messages: SkipMessage[];
|
|
84
|
+
/**
|
|
85
|
+
* When the conversation was created
|
|
86
|
+
*/
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
/**
|
|
89
|
+
* The date the conversation header record was last updated - this is NOT the same as the most recent conversation detail, for that interrogate the conversation details
|
|
90
|
+
*/
|
|
91
|
+
updatedAt: Date;
|
|
92
|
+
}
|
|
64
93
|
/**
|
|
65
94
|
* Defines the shape of the individual message that makes up the messages array that is passed back and
|
|
66
95
|
* forth with the Skip API Server
|
|
@@ -78,6 +107,41 @@ export declare class SkipMessage {
|
|
|
78
107
|
* The conversation detail ID for the message, used to track the message
|
|
79
108
|
*/
|
|
80
109
|
conversationDetailID: string;
|
|
110
|
+
/**
|
|
111
|
+
* If the message reflects an error message the information is provided here
|
|
112
|
+
*/
|
|
113
|
+
error?: string;
|
|
114
|
+
/**
|
|
115
|
+
* hiddenToUser - this is true if a message is only for internal system puprose and not shown to a user
|
|
116
|
+
*/
|
|
117
|
+
hiddenToUser?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Rating scale between 1 and 10, 1 reflecting the lowest rating and 10 reflecting the highest rating from the user in terms of their satisfaction with the response
|
|
120
|
+
*/
|
|
121
|
+
userRating?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Optional, text feedback from the user reflecting their satisfaction with the response. Of course the subsequent messages can contain this, but this is an element that the UI will
|
|
124
|
+
* surface that allows a user to specifically provide feedback on each message.
|
|
125
|
+
*/
|
|
126
|
+
userFeedback?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Optional, this text is from Skip during the generation of a particular response and represents the step-wise reasoning Skip went through to get to a particular response. This information along with the preceding messages, User Rating and User Feedback can
|
|
129
|
+
* be very helpful during a learning cycle to build notes and other artifacts that can train Skip to learn more about the user/organization's preferences and the context of the conversation.
|
|
130
|
+
*/
|
|
131
|
+
reflectionInsights?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Optional, this text contains an AI generated summary of the prior messages in the conversation going back in time through the last such summary. This allows "compression" of a longer conversation to preserve space in a context window, improve performance and simplify
|
|
134
|
+
* inference.
|
|
135
|
+
*/
|
|
136
|
+
summaryOfEarlierConveration?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The date and time the message was created
|
|
139
|
+
*/
|
|
140
|
+
createdAt?: Date;
|
|
141
|
+
/**
|
|
142
|
+
* The date and time the message was last updated
|
|
143
|
+
*/
|
|
144
|
+
updatedAt?: Date;
|
|
81
145
|
}
|
|
82
146
|
/**
|
|
83
147
|
* For each Skip API Analysis result, it is possible for Skip to provide a set of tableDataColumns that describe the data that is being returned in this shape.
|
|
@@ -257,6 +321,39 @@ export declare class SkipAPIRequest {
|
|
|
257
321
|
* NOTE: This is not where you put in the bearer token for the Skip API server itself, that goes in the header of the request
|
|
258
322
|
*/
|
|
259
323
|
apiKeys: SkipAPIRequestAPIKey[];
|
|
324
|
+
/**
|
|
325
|
+
* Optional notes that can be passed to Skip for additional context
|
|
326
|
+
*/
|
|
327
|
+
notes?: SkipAPIAgentNote[];
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Defines the shape of an individual Agent note that is stored in MJ that can be passed to Skip for additional context.
|
|
331
|
+
*/
|
|
332
|
+
export declare class SkipAPIAgentNote {
|
|
333
|
+
/**
|
|
334
|
+
* Unique identifier for the note
|
|
335
|
+
*/
|
|
336
|
+
id: string;
|
|
337
|
+
/**
|
|
338
|
+
* Unique type id (UUID) for the note type
|
|
339
|
+
*/
|
|
340
|
+
typeId: string;
|
|
341
|
+
/**
|
|
342
|
+
* Text name for the note type
|
|
343
|
+
*/
|
|
344
|
+
type: string;
|
|
345
|
+
/**
|
|
346
|
+
* Date/Time the note was initially created
|
|
347
|
+
*/
|
|
348
|
+
createdAt: Date;
|
|
349
|
+
/**
|
|
350
|
+
* Date/Time the note was last updated
|
|
351
|
+
*/
|
|
352
|
+
updatedAt: Date;
|
|
353
|
+
/**
|
|
354
|
+
* The text of the note
|
|
355
|
+
*/
|
|
356
|
+
note: string;
|
|
260
357
|
}
|
|
261
358
|
export declare class SkipAPIRunScriptRequest extends SkipAPIRequest {
|
|
262
359
|
/**
|
|
@@ -421,4 +518,43 @@ export declare class SkipDataRequest {
|
|
|
421
518
|
*/
|
|
422
519
|
description?: string;
|
|
423
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* API Request shape to ask the /learn end point to learn from conversation history and pass back "notes" that can be stored in the database for future requests
|
|
523
|
+
*/
|
|
524
|
+
export declare class SkipAPILearningCycleRequest {
|
|
525
|
+
/**
|
|
526
|
+
* An array of conversations that have taken place since the last learning cycle
|
|
527
|
+
*/
|
|
528
|
+
newConversations: SkipConversation[];
|
|
529
|
+
/**
|
|
530
|
+
* An array of notes that have been generated by the Skip API server during the learning cycle process in the past
|
|
531
|
+
*/
|
|
532
|
+
notes: SkipAPIAgentNote[];
|
|
533
|
+
/**
|
|
534
|
+
* Optional, the date/time of the last learning cycle performed on this dataset
|
|
535
|
+
*/
|
|
536
|
+
lastLearningCycleDate: Date;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* API Response shape to ask the /learn end point to learn from conversation history and pass back "notes", an array of notes are provided that should be stored in the database
|
|
540
|
+
* to then be passed into future Skip API requests for analysis/etc.
|
|
541
|
+
*/
|
|
542
|
+
export declare class SkipAPILearningCycleResponse {
|
|
543
|
+
/**
|
|
544
|
+
* Indicates if the learning cycle was successful or not
|
|
545
|
+
*/
|
|
546
|
+
success: boolean;
|
|
547
|
+
/**
|
|
548
|
+
* If the learning cycle was not successful, this property will contain an error message that describes the reason for the failure
|
|
549
|
+
*/
|
|
550
|
+
error?: string;
|
|
551
|
+
/**
|
|
552
|
+
* The number of milliseconds that have elapsed since the learning cycle process started
|
|
553
|
+
*/
|
|
554
|
+
elapsedTime: number;
|
|
555
|
+
/**
|
|
556
|
+
* The notes that were generated by the Skip API server during the learning cycle process
|
|
557
|
+
*/
|
|
558
|
+
notes: SkipAPIAgentNote[];
|
|
559
|
+
}
|
|
424
560
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;GAEG;AACH,qBAAa,eAAe;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,cAAc,EAAE,MA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CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIChatWithRecordResponse = exports.SkipAPIAnalysisDrillDown = exports.SkipAPIAnalysisDrillDownFilter = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRunScriptRequest = exports.SkipAPIRequest = exports.SkipAPIRequestAPIKey = exports.SkipQueryFieldInfo = exports.SkipQueryInfo = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipEntityFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
|
|
3
|
+
exports.SkipAPILearningCycleResponse = exports.SkipAPILearningCycleRequest = exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIChatWithRecordResponse = exports.SkipAPIAnalysisDrillDown = exports.SkipAPIAnalysisDrillDownFilter = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRunScriptRequest = exports.SkipAPIAgentNote = exports.SkipAPIRequest = exports.SkipAPIRequestAPIKey = exports.SkipQueryFieldInfo = exports.SkipQueryInfo = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipEntityFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipConversation = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* This type defines the shape of data that is passed back from the MJ API server to callers, typically the MJ Explorer UI
|
|
6
6
|
*/
|
|
@@ -15,6 +15,12 @@ exports.MJAPISkipResult = MJAPISkipResult;
|
|
|
15
15
|
class SkipSubProcessResponse {
|
|
16
16
|
}
|
|
17
17
|
exports.SkipSubProcessResponse = SkipSubProcessResponse;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the shape of the conversations that can be passed back and forth with the Skip API Server - primarily used for the learning cycle process
|
|
20
|
+
*/
|
|
21
|
+
class SkipConversation {
|
|
22
|
+
}
|
|
23
|
+
exports.SkipConversation = SkipConversation;
|
|
18
24
|
/**
|
|
19
25
|
* Defines the shape of the individual message that makes up the messages array that is passed back and
|
|
20
26
|
* forth with the Skip API Server
|
|
@@ -74,6 +80,12 @@ exports.SkipAPIRequestAPIKey = SkipAPIRequestAPIKey;
|
|
|
74
80
|
class SkipAPIRequest {
|
|
75
81
|
}
|
|
76
82
|
exports.SkipAPIRequest = SkipAPIRequest;
|
|
83
|
+
/**
|
|
84
|
+
* Defines the shape of an individual Agent note that is stored in MJ that can be passed to Skip for additional context.
|
|
85
|
+
*/
|
|
86
|
+
class SkipAPIAgentNote {
|
|
87
|
+
}
|
|
88
|
+
exports.SkipAPIAgentNote = SkipAPIAgentNote;
|
|
77
89
|
class SkipAPIRunScriptRequest extends SkipAPIRequest {
|
|
78
90
|
}
|
|
79
91
|
exports.SkipAPIRunScriptRequest = SkipAPIRunScriptRequest;
|
|
@@ -149,4 +161,17 @@ exports.SkipDataRequestType = {
|
|
|
149
161
|
class SkipDataRequest {
|
|
150
162
|
}
|
|
151
163
|
exports.SkipDataRequest = SkipDataRequest;
|
|
164
|
+
/**
|
|
165
|
+
* API Request shape to ask the /learn end point to learn from conversation history and pass back "notes" that can be stored in the database for future requests
|
|
166
|
+
*/
|
|
167
|
+
class SkipAPILearningCycleRequest {
|
|
168
|
+
}
|
|
169
|
+
exports.SkipAPILearningCycleRequest = SkipAPILearningCycleRequest;
|
|
170
|
+
/**
|
|
171
|
+
* API Response shape to ask the /learn end point to learn from conversation history and pass back "notes", an array of notes are provided that should be stored in the database
|
|
172
|
+
* to then be passed into future Skip API requests for analysis/etc.
|
|
173
|
+
*/
|
|
174
|
+
class SkipAPILearningCycleResponse {
|
|
175
|
+
}
|
|
176
|
+
exports.SkipAPILearningCycleResponse = SkipAPILearningCycleResponse;
|
|
152
177
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,eAAe;CAgD3B;AAhDD,0CAgDC;AAGD;;;;GAIG;AACH,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AAGD;;;GAGG;AACH,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,eAAe;CAgD3B;AAhDD,0CAgDC;AAGD;;;;GAIG;AACH,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AAGD;;GAEG;AACH,MAAa,gBAAgB;CA4B5B;AA5BD,4CA4BC;AAGD;;;GAGG;AACH,MAAa,WAAW;CAuDvB;AAvDD,kCAuDC;AAID;;GAEG;AACH,MAAa,cAAc;CAK1B;AALD,wCAKC;AAGD;;;;;;;;;GASG;AACU,QAAA,gBAAgB,GAAG;IAC5B,eAAe,EAAE,iBAAiB;IAClC,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,oBAAoB;CAClC,CAAC;AAGX,MAAa,mBAAmB;CA4B/B;AA5BD,kDA4BC;AAED,MAAa,0BAA0B;CAatC;AAbD,gEAaC;AAED,MAAa,cAAc;IAA3B;QAMI,WAAM,GAAyB,EAAE,CAAC;QAClC,oBAAe,GAAiC,EAAE,CAAC;IACvD,CAAC;CAAA;A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"name": "@memberjunction/skip-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "MemberJunction: Skip AI Assistant - Types that are used between the MJAPI and the Skip API as well as the UI within MemberJunction Explorer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/core-entities": "2.
|
|
23
|
-
"@memberjunction/data-context": "2.
|
|
22
|
+
"@memberjunction/core-entities": "2.16.0",
|
|
23
|
+
"@memberjunction/data-context": "2.16.0"
|
|
24
24
|
}
|
|
25
25
|
}
|