@spaciv/sdk 0.1.17 → 0.1.18
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/README.md +2 -2
- package/dist/apis/AssistantApi.d.ts +16 -16
- package/dist/apis/AssistantApi.js +8 -8
- package/dist/apis/ScenariosApi.d.ts +4 -4
- package/dist/apis/ScenariosApi.js +2 -2
- package/dist/esm/apis/AssistantApi.d.ts +16 -16
- package/dist/esm/apis/AssistantApi.js +8 -8
- package/dist/esm/apis/ScenariosApi.d.ts +4 -4
- package/dist/esm/apis/ScenariosApi.js +2 -2
- package/dist/esm/models/AssistantChatPollBody.d.ts +12 -0
- package/dist/esm/models/AssistantChatPollBody.js +8 -0
- package/dist/esm/models/AssistantChatPollMessage.d.ts +6 -0
- package/dist/esm/models/AssistantChatPollMessage.js +4 -0
- package/dist/esm/models/AssistantTranscriptBody.d.ts +18 -0
- package/dist/esm/models/AssistantTranscriptBody.js +12 -0
- package/dist/models/AssistantChatPollBody.d.ts +12 -0
- package/dist/models/AssistantChatPollBody.js +8 -0
- package/dist/models/AssistantChatPollMessage.d.ts +6 -0
- package/dist/models/AssistantChatPollMessage.js +4 -0
- package/dist/models/AssistantTranscriptBody.d.ts +18 -0
- package/dist/models/AssistantTranscriptBody.js +12 -0
- package/package.json +1 -1
- package/src/apis/AssistantApi.ts +16 -16
- package/src/apis/ScenariosApi.ts +4 -4
- package/src/models/AssistantChatPollBody.ts +18 -0
- package/src/models/AssistantChatPollMessage.ts +9 -0
- package/src/models/AssistantTranscriptBody.ts +27 -0
|
@@ -27,12 +27,30 @@ import {
|
|
|
27
27
|
* @interface AssistantTranscriptBody
|
|
28
28
|
*/
|
|
29
29
|
export interface AssistantTranscriptBody {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssistantTranscriptBody
|
|
34
|
+
*/
|
|
35
|
+
conversationId: string;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {Array<AssistantTranscriptMessage>}
|
|
33
39
|
* @memberof AssistantTranscriptBody
|
|
34
40
|
*/
|
|
35
41
|
messages: Array<AssistantTranscriptMessage>;
|
|
42
|
+
/**
|
|
43
|
+
* For a subsession, the id of the run_subsession tool call that started it. Empty for a conversation the user started.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AssistantTranscriptBody
|
|
46
|
+
*/
|
|
47
|
+
parentToolCallId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The transcript of each subsession the assistant started, in the order it started them. A subsession's messages are not part of messages: the tool message answering its run_subsession call holds only its reply. A subsession is never compacted and starts none of its own, so its summary fields and its own subsessions are empty.
|
|
50
|
+
* @type {Array<AssistantTranscriptBody>}
|
|
51
|
+
* @memberof AssistantTranscriptBody
|
|
52
|
+
*/
|
|
53
|
+
subsessions: Array<AssistantTranscriptBody>;
|
|
36
54
|
/**
|
|
37
55
|
* What the assistant is told of the messages it no longer replays, once the conversation has been compacted. Empty until then.
|
|
38
56
|
* @type {string}
|
|
@@ -51,7 +69,10 @@ export interface AssistantTranscriptBody {
|
|
|
51
69
|
* Check if a given object implements the AssistantTranscriptBody interface.
|
|
52
70
|
*/
|
|
53
71
|
export function instanceOfAssistantTranscriptBody(value: object): value is AssistantTranscriptBody {
|
|
72
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined) return false;
|
|
54
73
|
if (!('messages' in value) || value['messages'] === undefined) return false;
|
|
74
|
+
if (!('parentToolCallId' in value) || value['parentToolCallId'] === undefined) return false;
|
|
75
|
+
if (!('subsessions' in value) || value['subsessions'] === undefined) return false;
|
|
55
76
|
if (!('summary' in value) || value['summary'] === undefined) return false;
|
|
56
77
|
if (!('summaryUpTo' in value) || value['summaryUpTo'] === undefined) return false;
|
|
57
78
|
return true;
|
|
@@ -67,7 +88,10 @@ export function AssistantTranscriptBodyFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
67
88
|
}
|
|
68
89
|
return {
|
|
69
90
|
|
|
91
|
+
'conversationId': json['conversationId'],
|
|
70
92
|
'messages': ((json['messages'] as Array<any>).map(AssistantTranscriptMessageFromJSON)),
|
|
93
|
+
'parentToolCallId': json['parentToolCallId'],
|
|
94
|
+
'subsessions': ((json['subsessions'] as Array<any>).map(AssistantTranscriptBodyFromJSON)),
|
|
71
95
|
'summary': json['summary'],
|
|
72
96
|
'summaryUpTo': json['summaryUpTo'],
|
|
73
97
|
};
|
|
@@ -84,7 +108,10 @@ export function AssistantTranscriptBodyToJSONTyped(value?: AssistantTranscriptBo
|
|
|
84
108
|
|
|
85
109
|
return {
|
|
86
110
|
|
|
111
|
+
'conversationId': value['conversationId'],
|
|
87
112
|
'messages': ((value['messages'] as Array<any>).map(AssistantTranscriptMessageToJSON)),
|
|
113
|
+
'parentToolCallId': value['parentToolCallId'],
|
|
114
|
+
'subsessions': ((value['subsessions'] as Array<any>).map(AssistantTranscriptBodyToJSON)),
|
|
88
115
|
'summary': value['summary'],
|
|
89
116
|
'summaryUpTo': value['summaryUpTo'],
|
|
90
117
|
};
|