@alicloud/cs20151215 7.2.6 → 7.3.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.
@@ -0,0 +1,263 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class InvokeAgentResponseBodyOutcomeInterrupts extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 2026-11-04T00:00:00Z
9
+ */
10
+ expiresAt?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * i-1
17
+ */
18
+ id?: string;
19
+ /**
20
+ * @example
21
+ * 是否执行?
22
+ */
23
+ message?: string;
24
+ /**
25
+ * @example
26
+ * {}
27
+ */
28
+ metadata?: { [key: string]: any };
29
+ /**
30
+ * @remarks
31
+ * This parameter is required.
32
+ *
33
+ * @example
34
+ * tool_call_approve
35
+ */
36
+ reason?: string;
37
+ /**
38
+ * @example
39
+ * {"type":"object","properties":{"decision":{"type":"string","enum":["yes","no"]}},"required":["decision"]}
40
+ */
41
+ responseSchema?: { [key: string]: any };
42
+ /**
43
+ * @example
44
+ * call-1
45
+ */
46
+ toolCallId?: string;
47
+ static names(): { [key: string]: string } {
48
+ return {
49
+ expiresAt: 'expiresAt',
50
+ id: 'id',
51
+ message: 'message',
52
+ metadata: 'metadata',
53
+ reason: 'reason',
54
+ responseSchema: 'responseSchema',
55
+ toolCallId: 'toolCallId',
56
+ };
57
+ }
58
+
59
+ static types(): { [key: string]: any } {
60
+ return {
61
+ expiresAt: 'string',
62
+ id: 'string',
63
+ message: 'string',
64
+ metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
65
+ reason: 'string',
66
+ responseSchema: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
67
+ toolCallId: 'string',
68
+ };
69
+ }
70
+
71
+ validate() {
72
+ if(this.metadata) {
73
+ $dara.Model.validateMap(this.metadata);
74
+ }
75
+ if(this.responseSchema) {
76
+ $dara.Model.validateMap(this.responseSchema);
77
+ }
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
86
+ export class InvokeAgentResponseBodyOutcome extends $dara.Model {
87
+ /**
88
+ * @example
89
+ * [{"id":"i-1","reason":"tool_call_approve","toolCallId":"call-1"}]
90
+ */
91
+ interrupts?: InvokeAgentResponseBodyOutcomeInterrupts[];
92
+ /**
93
+ * @remarks
94
+ * This parameter is required.
95
+ *
96
+ * @example
97
+ * interrupt
98
+ */
99
+ type?: string;
100
+ static names(): { [key: string]: string } {
101
+ return {
102
+ interrupts: 'interrupts',
103
+ type: 'type',
104
+ };
105
+ }
106
+
107
+ static types(): { [key: string]: any } {
108
+ return {
109
+ interrupts: { 'type': 'array', 'itemType': InvokeAgentResponseBodyOutcomeInterrupts },
110
+ type: 'string',
111
+ };
112
+ }
113
+
114
+ validate() {
115
+ if(Array.isArray(this.interrupts)) {
116
+ $dara.Model.validateArray(this.interrupts);
117
+ }
118
+ super.validate();
119
+ }
120
+
121
+ constructor(map?: { [key: string]: any }) {
122
+ super(map);
123
+ }
124
+ }
125
+
126
+ export class InvokeAgentResponseBody extends $dara.Model {
127
+ /**
128
+ * @example
129
+ * InternalError
130
+ */
131
+ code?: string;
132
+ /**
133
+ * @example
134
+ * done
135
+ */
136
+ content?: string;
137
+ /**
138
+ * @example
139
+ * 你好
140
+ */
141
+ delta?: string;
142
+ /**
143
+ * @example
144
+ * 请求失败
145
+ */
146
+ message?: string;
147
+ /**
148
+ * @example
149
+ * m-1
150
+ */
151
+ messageId?: string;
152
+ /**
153
+ * @example
154
+ * analysis_result
155
+ */
156
+ name?: string;
157
+ /**
158
+ * @example
159
+ * {"type":"success"}
160
+ */
161
+ outcome?: InvokeAgentResponseBodyOutcome;
162
+ /**
163
+ * @example
164
+ * m-1
165
+ */
166
+ parentMessageId?: string;
167
+ /**
168
+ * @example
169
+ * assistant
170
+ */
171
+ role?: string;
172
+ /**
173
+ * @example
174
+ * r-1
175
+ */
176
+ runId?: string;
177
+ /**
178
+ * @example
179
+ * {"sessionId":"abcdef0123456789abcdef0123456789","requestId":"req-1"}
180
+ */
181
+ snapshot?: any;
182
+ /**
183
+ * @example
184
+ * abcdef0123456789abcdef0123456789
185
+ */
186
+ threadId?: string;
187
+ /**
188
+ * @example
189
+ * call-1
190
+ */
191
+ toolCallId?: string;
192
+ /**
193
+ * @example
194
+ * example_tool
195
+ */
196
+ toolCallName?: string;
197
+ /**
198
+ * @remarks
199
+ * This parameter is required.
200
+ *
201
+ * @example
202
+ * RUN_STARTED
203
+ */
204
+ type?: string;
205
+ /**
206
+ * @example
207
+ * {"reference":null,"actions":[],"messageId":null}
208
+ */
209
+ value?: any;
210
+ static names(): { [key: string]: string } {
211
+ return {
212
+ code: 'code',
213
+ content: 'content',
214
+ delta: 'delta',
215
+ message: 'message',
216
+ messageId: 'messageId',
217
+ name: 'name',
218
+ outcome: 'outcome',
219
+ parentMessageId: 'parentMessageId',
220
+ role: 'role',
221
+ runId: 'runId',
222
+ snapshot: 'snapshot',
223
+ threadId: 'threadId',
224
+ toolCallId: 'toolCallId',
225
+ toolCallName: 'toolCallName',
226
+ type: 'type',
227
+ value: 'value',
228
+ };
229
+ }
230
+
231
+ static types(): { [key: string]: any } {
232
+ return {
233
+ code: 'string',
234
+ content: 'string',
235
+ delta: 'string',
236
+ message: 'string',
237
+ messageId: 'string',
238
+ name: 'string',
239
+ outcome: InvokeAgentResponseBodyOutcome,
240
+ parentMessageId: 'string',
241
+ role: 'string',
242
+ runId: 'string',
243
+ snapshot: 'any',
244
+ threadId: 'string',
245
+ toolCallId: 'string',
246
+ toolCallName: 'string',
247
+ type: 'string',
248
+ value: 'any',
249
+ };
250
+ }
251
+
252
+ validate() {
253
+ if(this.outcome && typeof (this.outcome as any).validate === 'function') {
254
+ (this.outcome as any).validate();
255
+ }
256
+ super.validate();
257
+ }
258
+
259
+ constructor(map?: { [key: string]: any }) {
260
+ super(map);
261
+ }
262
+ }
263
+
@@ -207,6 +207,15 @@ export { InstallNodePoolComponentsRequestComponentsConfigEnvs } from './InstallN
207
207
  export { InstallNodePoolComponentsRequestComponentsConfig } from './InstallNodePoolComponentsRequest';
208
208
  export { InstallNodePoolComponentsRequestComponents } from './InstallNodePoolComponentsRequest';
209
209
  export { InstallNodePoolComponentsRequestRollingPolicy } from './InstallNodePoolComponentsRequest';
210
+ export { InvokeAgentRequestContext } from './InvokeAgentRequest';
211
+ export { InvokeAgentRequestForwardedProps } from './InvokeAgentRequest';
212
+ export { InvokeAgentRequestMessagesToolCallsFunction } from './InvokeAgentRequest';
213
+ export { InvokeAgentRequestMessagesToolCalls } from './InvokeAgentRequest';
214
+ export { InvokeAgentRequestMessages } from './InvokeAgentRequest';
215
+ export { InvokeAgentRequestResume } from './InvokeAgentRequest';
216
+ export { InvokeAgentRequestTools } from './InvokeAgentRequest';
217
+ export { InvokeAgentResponseBodyOutcomeInterrupts } from './InvokeAgentResponseBody';
218
+ export { InvokeAgentResponseBodyOutcome } from './InvokeAgentResponseBody';
210
219
  export { ListAddonsResponseBodyAddons } from './ListAddonsResponseBody';
211
220
  export { ListAutoRepairPoliciesResponseBodyItemsRulesIncidents } from './ListAutoRepairPoliciesResponseBody';
212
221
  export { ListAutoRepairPoliciesResponseBodyItemsRulesRepairProcedureInterventionApprovedLabel } from './ListAutoRepairPoliciesResponseBody';
@@ -512,6 +521,9 @@ export { InstallClusterAddonsResponse } from './InstallClusterAddonsResponse';
512
521
  export { InstallNodePoolComponentsRequest } from './InstallNodePoolComponentsRequest';
513
522
  export { InstallNodePoolComponentsResponseBody } from './InstallNodePoolComponentsResponseBody';
514
523
  export { InstallNodePoolComponentsResponse } from './InstallNodePoolComponentsResponse';
524
+ export { InvokeAgentRequest } from './InvokeAgentRequest';
525
+ export { InvokeAgentResponseBody } from './InvokeAgentResponseBody';
526
+ export { InvokeAgentResponse } from './InvokeAgentResponse';
515
527
  export { ListAddonsRequest } from './ListAddonsRequest';
516
528
  export { ListAddonsResponseBody } from './ListAddonsResponseBody';
517
529
  export { ListAddonsResponse } from './ListAddonsResponse';