@blueking/chat-helper 0.0.12-beta.2 → 0.0.12-beta.21

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.
@@ -1,8 +1,9 @@
1
- import { MessageRole, MessageStatus } from '../message';
1
+ import { ApprovalInterruptTicketStatus, EventType, ResumeStatus, RunFinishedOutcomeType, type IResume } from '../event';
2
+ import { MessageRole, MessageStatus, UserOperation } from '../message';
2
3
  import type { IRequestConfig, ISSEProtocol } from '../http';
3
4
  import type { IMediatorModule } from '../mediator';
4
- import type { IMessageProperty, IUserMessage } from '../message/type';
5
- import type { IAgentInfo } from './type';
5
+ import type { IMessageProperty, IUserMessage, IUserOperationPayload } from '../message/type';
6
+ import type { IAgentInfo, ILlmItem, ILlmListQuery } from './type';
6
7
  /**
7
8
  * Agent 模块
8
9
  * @param options - 配置选项
@@ -69,8 +70,19 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
69
70
  content?: ({
70
71
  activityType: import("../message").ActivityType;
71
72
  content: {
73
+ artifacts: {
74
+ name: string;
75
+ outputId: string;
76
+ size: number;
77
+ type: string;
78
+ previewUrl?: string;
79
+ url?: string;
80
+ }[];
81
+ runId: string;
82
+ status: "complete" | "empty";
83
+ } | {
72
84
  nodes: Record<string, import("../event").IFlowAgentNode>;
73
- task_id: number;
85
+ task_id: string;
74
86
  task_name: string;
75
87
  task_outputs: string[];
76
88
  task_state: import("../event").FlowTaskState;
@@ -86,7 +98,33 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
86
98
  originFileUrl?: string;
87
99
  url: string;
88
100
  }[];
101
+ property?: {
102
+ [x: string]: unknown;
103
+ artifacts?: {
104
+ name: string;
105
+ outputId: string;
106
+ size: number;
107
+ type: string;
108
+ previewUrl?: string;
109
+ url?: string;
110
+ }[];
111
+ extra?: {
112
+ [x: string]: unknown;
113
+ cite?: string | {
114
+ data: {
115
+ key: string;
116
+ value: string;
117
+ }[];
118
+ title: string;
119
+ type: string;
120
+ };
121
+ command?: string;
122
+ context?: Array<Record<string, unknown>>;
123
+ resources?: Array<Record<string, unknown>>;
124
+ };
125
+ };
89
126
  role: MessageRole.Activity;
127
+ createdAt?: string;
90
128
  id?: string;
91
129
  messageId?: string;
92
130
  name?: string;
@@ -96,6 +134,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
96
134
  content?: string;
97
135
  property?: {
98
136
  [x: string]: unknown;
137
+ artifacts?: {
138
+ name: string;
139
+ outputId: string;
140
+ size: number;
141
+ type: string;
142
+ previewUrl?: string;
143
+ url?: string;
144
+ }[];
99
145
  extra?: {
100
146
  [x: string]: unknown;
101
147
  cite?: string | {
@@ -122,6 +168,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
122
168
  id: string;
123
169
  type: import("../message").MessageType.Function;
124
170
  }[];
171
+ createdAt?: string;
125
172
  id?: string;
126
173
  messageId?: string;
127
174
  name?: string;
@@ -130,6 +177,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
130
177
  } | {
131
178
  content: string;
132
179
  role: MessageRole.Developer;
180
+ createdAt?: string;
133
181
  id?: string;
134
182
  messageId?: string;
135
183
  name?: string;
@@ -138,6 +186,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
138
186
  } | {
139
187
  content: string;
140
188
  role: MessageRole.Guide;
189
+ createdAt?: string;
141
190
  id?: string;
142
191
  messageId?: string;
143
192
  name?: string;
@@ -146,6 +195,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
146
195
  } | {
147
196
  content: string;
148
197
  role: MessageRole.HiddenAssistant;
198
+ createdAt?: string;
149
199
  id?: string;
150
200
  messageId?: string;
151
201
  name?: string;
@@ -154,6 +204,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
154
204
  } | {
155
205
  content: string;
156
206
  role: MessageRole.HiddenGuide;
207
+ createdAt?: string;
157
208
  id?: string;
158
209
  messageId?: string;
159
210
  name?: string;
@@ -162,6 +213,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
162
213
  } | {
163
214
  content: string;
164
215
  role: MessageRole.Hidden;
216
+ createdAt?: string;
165
217
  id?: string;
166
218
  messageId?: string;
167
219
  name?: string;
@@ -170,6 +222,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
170
222
  } | {
171
223
  content: string;
172
224
  role: MessageRole.HiddenSystem;
225
+ createdAt?: string;
173
226
  id?: string;
174
227
  messageId?: string;
175
228
  name?: string;
@@ -178,6 +231,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
178
231
  } | {
179
232
  content: string;
180
233
  role: MessageRole.HiddenUser;
234
+ createdAt?: string;
181
235
  id?: string;
182
236
  messageId?: string;
183
237
  name?: string;
@@ -186,6 +240,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
186
240
  } | {
187
241
  content: string;
188
242
  role: MessageRole.Info;
243
+ createdAt?: string;
189
244
  id?: string;
190
245
  messageId?: string;
191
246
  name?: string;
@@ -194,6 +249,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
194
249
  } | {
195
250
  content: string;
196
251
  role: MessageRole.Pause;
252
+ createdAt?: string;
197
253
  id?: string;
198
254
  messageId?: string;
199
255
  name?: string;
@@ -202,6 +258,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
202
258
  } | {
203
259
  content: string;
204
260
  role: MessageRole.Placeholder;
261
+ createdAt?: string;
205
262
  id?: string;
206
263
  messageId?: string;
207
264
  name?: string;
@@ -211,6 +268,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
211
268
  content: string[];
212
269
  duration?: number;
213
270
  role: MessageRole.Reasoning;
271
+ createdAt?: string;
214
272
  id?: string;
215
273
  messageId?: string;
216
274
  name?: string;
@@ -219,6 +277,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
219
277
  } | {
220
278
  content: string;
221
279
  role: MessageRole.System;
280
+ createdAt?: string;
222
281
  id?: string;
223
282
  messageId?: string;
224
283
  name?: string;
@@ -227,6 +286,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
227
286
  } | {
228
287
  content: string;
229
288
  role: MessageRole.TemplateAssistant;
289
+ createdAt?: string;
230
290
  id?: string;
231
291
  messageId?: string;
232
292
  name?: string;
@@ -235,6 +295,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
235
295
  } | {
236
296
  content: string;
237
297
  role: MessageRole.TemplateGuide;
298
+ createdAt?: string;
238
299
  id?: string;
239
300
  messageId?: string;
240
301
  name?: string;
@@ -243,6 +304,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
243
304
  } | {
244
305
  content: string;
245
306
  role: MessageRole.TemplateHidden;
307
+ createdAt?: string;
246
308
  id?: string;
247
309
  messageId?: string;
248
310
  name?: string;
@@ -251,6 +313,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
251
313
  } | {
252
314
  content: string;
253
315
  role: MessageRole.TemplateSystem;
316
+ createdAt?: string;
254
317
  id?: string;
255
318
  messageId?: string;
256
319
  name?: string;
@@ -259,6 +322,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
259
322
  } | {
260
323
  content: string;
261
324
  role: MessageRole.TemplateUser;
325
+ createdAt?: string;
262
326
  id?: string;
263
327
  messageId?: string;
264
328
  name?: string;
@@ -270,6 +334,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
270
334
  error?: string;
271
335
  role: MessageRole.Tool;
272
336
  toolCallId: string;
337
+ createdAt?: string;
273
338
  id?: string;
274
339
  messageId?: string;
275
340
  name?: string;
@@ -289,6 +354,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
289
354
  })[];
290
355
  property?: {
291
356
  [x: string]: unknown;
357
+ artifacts?: {
358
+ name: string;
359
+ outputId: string;
360
+ size: number;
361
+ type: string;
362
+ previewUrl?: string;
363
+ url?: string;
364
+ }[];
292
365
  extra?: {
293
366
  [x: string]: unknown;
294
367
  cite?: string | {
@@ -305,6 +378,638 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
305
378
  };
306
379
  };
307
380
  role: MessageRole.User;
381
+ createdAt?: string;
382
+ id?: string;
383
+ messageId?: string;
384
+ name?: string;
385
+ sessionCode?: string;
386
+ status: MessageStatus;
387
+ } | {
388
+ content: {
389
+ result?: {
390
+ interruptId: string;
391
+ status: ResumeStatus;
392
+ payload?: {
393
+ answers: {
394
+ answer: {
395
+ description: string;
396
+ label: string;
397
+ }[];
398
+ multiSelect?: boolean;
399
+ question: string;
400
+ }[];
401
+ };
402
+ };
403
+ runId: number;
404
+ threadId: string;
405
+ type: EventType.RunFinished;
406
+ outcome?: {
407
+ type: RunFinishedOutcomeType.Success;
408
+ } | {
409
+ type: RunFinishedOutcomeType.Interrupt;
410
+ interrupts: ({
411
+ id: string;
412
+ reason: import("../event").InterruptReason.AIDevToolApproval;
413
+ message?: string;
414
+ toolCallId?: string;
415
+ responseSchema?: {
416
+ [x: string]: any;
417
+ id?: string | undefined;
418
+ $ref?: string | undefined;
419
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
420
+ title?: string | undefined;
421
+ description?: string | undefined;
422
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
423
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
424
+ length: number;
425
+ toString: () => string;
426
+ toLocaleString: {
427
+ (): string;
428
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
429
+ };
430
+ pop: () => import("json-schema").JSONSchema4Type;
431
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
432
+ concat: {
433
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
434
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
435
+ };
436
+ join: (separator?: string) => string;
437
+ reverse: () => import("json-schema").JSONSchema4Type[];
438
+ shift: () => import("json-schema").JSONSchema4Type;
439
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
440
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
441
+ splice: {
442
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
443
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
444
+ };
445
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
446
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
447
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
448
+ every: {
449
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
450
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
451
+ };
452
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
453
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
454
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
455
+ filter: {
456
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
457
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
458
+ };
459
+ reduce: {
460
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
461
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
462
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
463
+ };
464
+ reduceRight: {
465
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
466
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
467
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
468
+ };
469
+ find: {
470
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
471
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
472
+ };
473
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
474
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
475
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
476
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
477
+ keys: () => ArrayIterator<number>;
478
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
479
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
480
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
481
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
482
+ at: (index: number) => import("json-schema").JSONSchema4Type;
483
+ findLast: {
484
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
485
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
486
+ };
487
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
488
+ toReversed: () => import("json-schema").JSONSchema4Type[];
489
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
490
+ toSpliced: {
491
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
492
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
493
+ };
494
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
495
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
496
+ readonly [Symbol.unscopables]: {
497
+ [x: number]: boolean;
498
+ length?: boolean;
499
+ toString?: boolean;
500
+ toLocaleString?: boolean;
501
+ pop?: boolean;
502
+ push?: boolean;
503
+ concat?: boolean;
504
+ join?: boolean;
505
+ reverse?: boolean;
506
+ shift?: boolean;
507
+ slice?: boolean;
508
+ sort?: boolean;
509
+ splice?: boolean;
510
+ unshift?: boolean;
511
+ indexOf?: boolean;
512
+ lastIndexOf?: boolean;
513
+ every?: boolean;
514
+ some?: boolean;
515
+ forEach?: boolean;
516
+ map?: boolean;
517
+ filter?: boolean;
518
+ reduce?: boolean;
519
+ reduceRight?: boolean;
520
+ find?: boolean;
521
+ findIndex?: boolean;
522
+ fill?: boolean;
523
+ copyWithin?: boolean;
524
+ entries?: boolean;
525
+ keys?: boolean;
526
+ values?: boolean;
527
+ includes?: boolean;
528
+ flatMap?: boolean;
529
+ flat?: boolean;
530
+ at?: boolean;
531
+ findLast?: boolean;
532
+ findLastIndex?: boolean;
533
+ toReversed?: boolean;
534
+ toSorted?: boolean;
535
+ toSpliced?: boolean;
536
+ with?: boolean;
537
+ [Symbol.iterator]?: boolean;
538
+ readonly [Symbol.unscopables]?: boolean;
539
+ };
540
+ };
541
+ multipleOf?: number | undefined;
542
+ maximum?: number | undefined;
543
+ exclusiveMaximum?: boolean | undefined;
544
+ minimum?: number | undefined;
545
+ exclusiveMinimum?: boolean | undefined;
546
+ maxLength?: number | undefined;
547
+ minLength?: number | undefined;
548
+ pattern?: string | undefined;
549
+ additionalItems?: boolean | /*elided*/ any;
550
+ items?: /*elided*/ any | /*elided*/ any[];
551
+ maxItems?: number | undefined;
552
+ minItems?: number | undefined;
553
+ uniqueItems?: boolean | undefined;
554
+ maxProperties?: number | undefined;
555
+ minProperties?: number | undefined;
556
+ required?: boolean | string[] | undefined;
557
+ additionalProperties?: boolean | /*elided*/ any;
558
+ definitions?: {
559
+ [k: string]: import("json-schema").JSONSchema4;
560
+ } | undefined;
561
+ properties?: {
562
+ [k: string]: import("json-schema").JSONSchema4;
563
+ } | undefined;
564
+ patternProperties?: {
565
+ [k: string]: import("json-schema").JSONSchema4;
566
+ } | undefined;
567
+ dependencies?: {
568
+ [k: string]: import("json-schema").JSONSchema4 | string[];
569
+ } | undefined;
570
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
571
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
572
+ length: number;
573
+ toString: () => string;
574
+ toLocaleString: {
575
+ (): string;
576
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
577
+ };
578
+ pop: () => import("json-schema").JSONSchema4Type;
579
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
580
+ concat: {
581
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
582
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
583
+ };
584
+ join: (separator?: string) => string;
585
+ reverse: () => import("json-schema").JSONSchema4Type[];
586
+ shift: () => import("json-schema").JSONSchema4Type;
587
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
588
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
589
+ splice: {
590
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
591
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
592
+ };
593
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
594
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
595
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
596
+ every: {
597
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
598
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
599
+ };
600
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
601
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
602
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
603
+ filter: {
604
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
605
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
606
+ };
607
+ reduce: {
608
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
609
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
610
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
611
+ };
612
+ reduceRight: {
613
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
614
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
615
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
616
+ };
617
+ find: {
618
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
619
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
620
+ };
621
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
622
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
623
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
624
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
625
+ keys: () => ArrayIterator<number>;
626
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
627
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
628
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
629
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
630
+ at: (index: number) => import("json-schema").JSONSchema4Type;
631
+ findLast: {
632
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
633
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
634
+ };
635
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
636
+ toReversed: () => import("json-schema").JSONSchema4Type[];
637
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
638
+ toSpliced: {
639
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
640
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
641
+ };
642
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
643
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
644
+ readonly [Symbol.unscopables]: {
645
+ [x: number]: boolean;
646
+ length?: boolean;
647
+ toString?: boolean;
648
+ toLocaleString?: boolean;
649
+ pop?: boolean;
650
+ push?: boolean;
651
+ concat?: boolean;
652
+ join?: boolean;
653
+ reverse?: boolean;
654
+ shift?: boolean;
655
+ slice?: boolean;
656
+ sort?: boolean;
657
+ splice?: boolean;
658
+ unshift?: boolean;
659
+ indexOf?: boolean;
660
+ lastIndexOf?: boolean;
661
+ every?: boolean;
662
+ some?: boolean;
663
+ forEach?: boolean;
664
+ map?: boolean;
665
+ filter?: boolean;
666
+ reduce?: boolean;
667
+ reduceRight?: boolean;
668
+ find?: boolean;
669
+ findIndex?: boolean;
670
+ fill?: boolean;
671
+ copyWithin?: boolean;
672
+ entries?: boolean;
673
+ keys?: boolean;
674
+ values?: boolean;
675
+ includes?: boolean;
676
+ flatMap?: boolean;
677
+ flat?: boolean;
678
+ at?: boolean;
679
+ findLast?: boolean;
680
+ findLastIndex?: boolean;
681
+ toReversed?: boolean;
682
+ toSorted?: boolean;
683
+ toSpliced?: boolean;
684
+ with?: boolean;
685
+ [Symbol.iterator]?: boolean;
686
+ readonly [Symbol.unscopables]?: boolean;
687
+ };
688
+ })[];
689
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
690
+ allOf?: /*elided*/ any[];
691
+ anyOf?: /*elided*/ any[];
692
+ oneOf?: /*elided*/ any[];
693
+ not?: /*elided*/ any;
694
+ extends?: string | string[] | undefined;
695
+ format?: string | undefined;
696
+ };
697
+ expiresAt?: string;
698
+ metadata?: {
699
+ ticket: {
700
+ approvers: string[];
701
+ sn: string;
702
+ status: ApprovalInterruptTicketStatus;
703
+ submit_time: string;
704
+ title: string;
705
+ url: string;
706
+ };
707
+ };
708
+ } | {
709
+ id: string;
710
+ reason: import("../event").InterruptReason.UserQuestion;
711
+ message?: string;
712
+ toolCallId?: string;
713
+ responseSchema?: {
714
+ [x: string]: any;
715
+ id?: string | undefined;
716
+ $ref?: string | undefined;
717
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
718
+ title?: string | undefined;
719
+ description?: string | undefined;
720
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
721
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
722
+ length: number;
723
+ toString: () => string;
724
+ toLocaleString: {
725
+ (): string;
726
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
727
+ };
728
+ pop: () => import("json-schema").JSONSchema4Type;
729
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
730
+ concat: {
731
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
732
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
733
+ };
734
+ join: (separator?: string) => string;
735
+ reverse: () => import("json-schema").JSONSchema4Type[];
736
+ shift: () => import("json-schema").JSONSchema4Type;
737
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
738
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
739
+ splice: {
740
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
741
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
742
+ };
743
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
744
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
745
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
746
+ every: {
747
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
748
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
749
+ };
750
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
751
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
752
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
753
+ filter: {
754
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
755
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
756
+ };
757
+ reduce: {
758
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
759
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
760
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
761
+ };
762
+ reduceRight: {
763
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
764
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
765
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
766
+ };
767
+ find: {
768
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
769
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
770
+ };
771
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
772
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
773
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
774
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
775
+ keys: () => ArrayIterator<number>;
776
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
777
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
778
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
779
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
780
+ at: (index: number) => import("json-schema").JSONSchema4Type;
781
+ findLast: {
782
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
783
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
784
+ };
785
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
786
+ toReversed: () => import("json-schema").JSONSchema4Type[];
787
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
788
+ toSpliced: {
789
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
790
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
791
+ };
792
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
793
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
794
+ readonly [Symbol.unscopables]: {
795
+ [x: number]: boolean;
796
+ length?: boolean;
797
+ toString?: boolean;
798
+ toLocaleString?: boolean;
799
+ pop?: boolean;
800
+ push?: boolean;
801
+ concat?: boolean;
802
+ join?: boolean;
803
+ reverse?: boolean;
804
+ shift?: boolean;
805
+ slice?: boolean;
806
+ sort?: boolean;
807
+ splice?: boolean;
808
+ unshift?: boolean;
809
+ indexOf?: boolean;
810
+ lastIndexOf?: boolean;
811
+ every?: boolean;
812
+ some?: boolean;
813
+ forEach?: boolean;
814
+ map?: boolean;
815
+ filter?: boolean;
816
+ reduce?: boolean;
817
+ reduceRight?: boolean;
818
+ find?: boolean;
819
+ findIndex?: boolean;
820
+ fill?: boolean;
821
+ copyWithin?: boolean;
822
+ entries?: boolean;
823
+ keys?: boolean;
824
+ values?: boolean;
825
+ includes?: boolean;
826
+ flatMap?: boolean;
827
+ flat?: boolean;
828
+ at?: boolean;
829
+ findLast?: boolean;
830
+ findLastIndex?: boolean;
831
+ toReversed?: boolean;
832
+ toSorted?: boolean;
833
+ toSpliced?: boolean;
834
+ with?: boolean;
835
+ [Symbol.iterator]?: boolean;
836
+ readonly [Symbol.unscopables]?: boolean;
837
+ };
838
+ };
839
+ multipleOf?: number | undefined;
840
+ maximum?: number | undefined;
841
+ exclusiveMaximum?: boolean | undefined;
842
+ minimum?: number | undefined;
843
+ exclusiveMinimum?: boolean | undefined;
844
+ maxLength?: number | undefined;
845
+ minLength?: number | undefined;
846
+ pattern?: string | undefined;
847
+ additionalItems?: boolean | /*elided*/ any;
848
+ items?: /*elided*/ any | /*elided*/ any[];
849
+ maxItems?: number | undefined;
850
+ minItems?: number | undefined;
851
+ uniqueItems?: boolean | undefined;
852
+ maxProperties?: number | undefined;
853
+ minProperties?: number | undefined;
854
+ required?: boolean | string[] | undefined;
855
+ additionalProperties?: boolean | /*elided*/ any;
856
+ definitions?: {
857
+ [k: string]: import("json-schema").JSONSchema4;
858
+ } | undefined;
859
+ properties?: {
860
+ [k: string]: import("json-schema").JSONSchema4;
861
+ } | undefined;
862
+ patternProperties?: {
863
+ [k: string]: import("json-schema").JSONSchema4;
864
+ } | undefined;
865
+ dependencies?: {
866
+ [k: string]: import("json-schema").JSONSchema4 | string[];
867
+ } | undefined;
868
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
869
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
870
+ length: number;
871
+ toString: () => string;
872
+ toLocaleString: {
873
+ (): string;
874
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
875
+ };
876
+ pop: () => import("json-schema").JSONSchema4Type;
877
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
878
+ concat: {
879
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
880
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
881
+ };
882
+ join: (separator?: string) => string;
883
+ reverse: () => import("json-schema").JSONSchema4Type[];
884
+ shift: () => import("json-schema").JSONSchema4Type;
885
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
886
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
887
+ splice: {
888
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
889
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
890
+ };
891
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
892
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
893
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
894
+ every: {
895
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
896
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
897
+ };
898
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
899
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
900
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
901
+ filter: {
902
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
903
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
904
+ };
905
+ reduce: {
906
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
907
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
908
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
909
+ };
910
+ reduceRight: {
911
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
912
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
913
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
914
+ };
915
+ find: {
916
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
917
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
918
+ };
919
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
920
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
921
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
922
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
923
+ keys: () => ArrayIterator<number>;
924
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
925
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
926
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
927
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
928
+ at: (index: number) => import("json-schema").JSONSchema4Type;
929
+ findLast: {
930
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
931
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
932
+ };
933
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
934
+ toReversed: () => import("json-schema").JSONSchema4Type[];
935
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
936
+ toSpliced: {
937
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
938
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
939
+ };
940
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
941
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
942
+ readonly [Symbol.unscopables]: {
943
+ [x: number]: boolean;
944
+ length?: boolean;
945
+ toString?: boolean;
946
+ toLocaleString?: boolean;
947
+ pop?: boolean;
948
+ push?: boolean;
949
+ concat?: boolean;
950
+ join?: boolean;
951
+ reverse?: boolean;
952
+ shift?: boolean;
953
+ slice?: boolean;
954
+ sort?: boolean;
955
+ splice?: boolean;
956
+ unshift?: boolean;
957
+ indexOf?: boolean;
958
+ lastIndexOf?: boolean;
959
+ every?: boolean;
960
+ some?: boolean;
961
+ forEach?: boolean;
962
+ map?: boolean;
963
+ filter?: boolean;
964
+ reduce?: boolean;
965
+ reduceRight?: boolean;
966
+ find?: boolean;
967
+ findIndex?: boolean;
968
+ fill?: boolean;
969
+ copyWithin?: boolean;
970
+ entries?: boolean;
971
+ keys?: boolean;
972
+ values?: boolean;
973
+ includes?: boolean;
974
+ flatMap?: boolean;
975
+ flat?: boolean;
976
+ at?: boolean;
977
+ findLast?: boolean;
978
+ findLastIndex?: boolean;
979
+ toReversed?: boolean;
980
+ toSorted?: boolean;
981
+ toSpliced?: boolean;
982
+ with?: boolean;
983
+ [Symbol.iterator]?: boolean;
984
+ readonly [Symbol.unscopables]?: boolean;
985
+ };
986
+ })[];
987
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
988
+ allOf?: /*elided*/ any[];
989
+ anyOf?: /*elided*/ any[];
990
+ oneOf?: /*elided*/ any[];
991
+ not?: /*elided*/ any;
992
+ extends?: string | string[] | undefined;
993
+ format?: string | undefined;
994
+ };
995
+ expiresAt?: string;
996
+ metadata?: {
997
+ questions: {
998
+ header: string;
999
+ multiSelect?: boolean;
1000
+ options?: {
1001
+ description: string;
1002
+ label: string;
1003
+ }[];
1004
+ question: string;
1005
+ }[];
1006
+ };
1007
+ })[];
1008
+ };
1009
+ timestamp?: number;
1010
+ };
1011
+ role: MessageRole.Interrupt;
1012
+ createdAt?: string;
308
1013
  id?: string;
309
1014
  messageId?: string;
310
1015
  name?: string;
@@ -375,8 +1080,19 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
375
1080
  content?: ({
376
1081
  activityType: import("../message").ActivityType;
377
1082
  content: {
1083
+ artifacts: {
1084
+ name: string;
1085
+ outputId: string;
1086
+ size: number;
1087
+ type: string;
1088
+ previewUrl?: string;
1089
+ url?: string;
1090
+ }[];
1091
+ runId: string;
1092
+ status: "complete" | "empty";
1093
+ } | {
378
1094
  nodes: Record<string, import("../event").IFlowAgentNode>;
379
- task_id: number;
1095
+ task_id: string;
380
1096
  task_name: string;
381
1097
  task_outputs: string[];
382
1098
  task_state: import("../event").FlowTaskState;
@@ -392,7 +1108,33 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
392
1108
  originFileUrl?: string;
393
1109
  url: string;
394
1110
  }[];
1111
+ property?: {
1112
+ [x: string]: unknown;
1113
+ artifacts?: {
1114
+ name: string;
1115
+ outputId: string;
1116
+ size: number;
1117
+ type: string;
1118
+ previewUrl?: string;
1119
+ url?: string;
1120
+ }[];
1121
+ extra?: {
1122
+ [x: string]: unknown;
1123
+ cite?: string | {
1124
+ data: {
1125
+ key: string;
1126
+ value: string;
1127
+ }[];
1128
+ title: string;
1129
+ type: string;
1130
+ };
1131
+ command?: string;
1132
+ context?: Array<Record<string, unknown>>;
1133
+ resources?: Array<Record<string, unknown>>;
1134
+ };
1135
+ };
395
1136
  role: MessageRole.Activity;
1137
+ createdAt?: string;
396
1138
  id?: string;
397
1139
  messageId?: string;
398
1140
  name?: string;
@@ -402,6 +1144,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
402
1144
  content?: string;
403
1145
  property?: {
404
1146
  [x: string]: unknown;
1147
+ artifacts?: {
1148
+ name: string;
1149
+ outputId: string;
1150
+ size: number;
1151
+ type: string;
1152
+ previewUrl?: string;
1153
+ url?: string;
1154
+ }[];
405
1155
  extra?: {
406
1156
  [x: string]: unknown;
407
1157
  cite?: string | {
@@ -428,6 +1178,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
428
1178
  id: string;
429
1179
  type: import("../message").MessageType.Function;
430
1180
  }[];
1181
+ createdAt?: string;
431
1182
  id?: string;
432
1183
  messageId?: string;
433
1184
  name?: string;
@@ -436,6 +1187,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
436
1187
  } | {
437
1188
  content: string;
438
1189
  role: MessageRole.Developer;
1190
+ createdAt?: string;
439
1191
  id?: string;
440
1192
  messageId?: string;
441
1193
  name?: string;
@@ -444,6 +1196,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
444
1196
  } | {
445
1197
  content: string;
446
1198
  role: MessageRole.Guide;
1199
+ createdAt?: string;
447
1200
  id?: string;
448
1201
  messageId?: string;
449
1202
  name?: string;
@@ -452,6 +1205,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
452
1205
  } | {
453
1206
  content: string;
454
1207
  role: MessageRole.HiddenAssistant;
1208
+ createdAt?: string;
455
1209
  id?: string;
456
1210
  messageId?: string;
457
1211
  name?: string;
@@ -460,6 +1214,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
460
1214
  } | {
461
1215
  content: string;
462
1216
  role: MessageRole.HiddenGuide;
1217
+ createdAt?: string;
463
1218
  id?: string;
464
1219
  messageId?: string;
465
1220
  name?: string;
@@ -468,6 +1223,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
468
1223
  } | {
469
1224
  content: string;
470
1225
  role: MessageRole.Hidden;
1226
+ createdAt?: string;
471
1227
  id?: string;
472
1228
  messageId?: string;
473
1229
  name?: string;
@@ -476,6 +1232,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
476
1232
  } | {
477
1233
  content: string;
478
1234
  role: MessageRole.HiddenSystem;
1235
+ createdAt?: string;
479
1236
  id?: string;
480
1237
  messageId?: string;
481
1238
  name?: string;
@@ -484,6 +1241,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
484
1241
  } | {
485
1242
  content: string;
486
1243
  role: MessageRole.HiddenUser;
1244
+ createdAt?: string;
487
1245
  id?: string;
488
1246
  messageId?: string;
489
1247
  name?: string;
@@ -492,6 +1250,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
492
1250
  } | {
493
1251
  content: string;
494
1252
  role: MessageRole.Info;
1253
+ createdAt?: string;
495
1254
  id?: string;
496
1255
  messageId?: string;
497
1256
  name?: string;
@@ -500,6 +1259,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
500
1259
  } | {
501
1260
  content: string;
502
1261
  role: MessageRole.Pause;
1262
+ createdAt?: string;
503
1263
  id?: string;
504
1264
  messageId?: string;
505
1265
  name?: string;
@@ -508,6 +1268,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
508
1268
  } | {
509
1269
  content: string;
510
1270
  role: MessageRole.Placeholder;
1271
+ createdAt?: string;
511
1272
  id?: string;
512
1273
  messageId?: string;
513
1274
  name?: string;
@@ -517,6 +1278,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
517
1278
  content: string[];
518
1279
  duration?: number;
519
1280
  role: MessageRole.Reasoning;
1281
+ createdAt?: string;
520
1282
  id?: string;
521
1283
  messageId?: string;
522
1284
  name?: string;
@@ -525,6 +1287,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
525
1287
  } | {
526
1288
  content: string;
527
1289
  role: MessageRole.System;
1290
+ createdAt?: string;
528
1291
  id?: string;
529
1292
  messageId?: string;
530
1293
  name?: string;
@@ -533,6 +1296,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
533
1296
  } | {
534
1297
  content: string;
535
1298
  role: MessageRole.TemplateAssistant;
1299
+ createdAt?: string;
536
1300
  id?: string;
537
1301
  messageId?: string;
538
1302
  name?: string;
@@ -541,6 +1305,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
541
1305
  } | {
542
1306
  content: string;
543
1307
  role: MessageRole.TemplateGuide;
1308
+ createdAt?: string;
544
1309
  id?: string;
545
1310
  messageId?: string;
546
1311
  name?: string;
@@ -549,6 +1314,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
549
1314
  } | {
550
1315
  content: string;
551
1316
  role: MessageRole.TemplateHidden;
1317
+ createdAt?: string;
552
1318
  id?: string;
553
1319
  messageId?: string;
554
1320
  name?: string;
@@ -557,6 +1323,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
557
1323
  } | {
558
1324
  content: string;
559
1325
  role: MessageRole.TemplateSystem;
1326
+ createdAt?: string;
560
1327
  id?: string;
561
1328
  messageId?: string;
562
1329
  name?: string;
@@ -565,6 +1332,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
565
1332
  } | {
566
1333
  content: string;
567
1334
  role: MessageRole.TemplateUser;
1335
+ createdAt?: string;
568
1336
  id?: string;
569
1337
  messageId?: string;
570
1338
  name?: string;
@@ -576,6 +1344,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
576
1344
  error?: string;
577
1345
  role: MessageRole.Tool;
578
1346
  toolCallId: string;
1347
+ createdAt?: string;
579
1348
  id?: string;
580
1349
  messageId?: string;
581
1350
  name?: string;
@@ -595,6 +1364,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
595
1364
  })[];
596
1365
  property?: {
597
1366
  [x: string]: unknown;
1367
+ artifacts?: {
1368
+ name: string;
1369
+ outputId: string;
1370
+ size: number;
1371
+ type: string;
1372
+ previewUrl?: string;
1373
+ url?: string;
1374
+ }[];
598
1375
  extra?: {
599
1376
  [x: string]: unknown;
600
1377
  cite?: string | {
@@ -611,6 +1388,638 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
611
1388
  };
612
1389
  };
613
1390
  role: MessageRole.User;
1391
+ createdAt?: string;
1392
+ id?: string;
1393
+ messageId?: string;
1394
+ name?: string;
1395
+ sessionCode?: string;
1396
+ status: MessageStatus;
1397
+ } | {
1398
+ content: {
1399
+ result?: {
1400
+ interruptId: string;
1401
+ status: ResumeStatus;
1402
+ payload?: {
1403
+ answers: {
1404
+ answer: {
1405
+ description: string;
1406
+ label: string;
1407
+ }[];
1408
+ multiSelect?: boolean;
1409
+ question: string;
1410
+ }[];
1411
+ };
1412
+ };
1413
+ runId: number;
1414
+ threadId: string;
1415
+ type: EventType.RunFinished;
1416
+ outcome?: {
1417
+ type: RunFinishedOutcomeType.Success;
1418
+ } | {
1419
+ type: RunFinishedOutcomeType.Interrupt;
1420
+ interrupts: ({
1421
+ id: string;
1422
+ reason: import("../event").InterruptReason.AIDevToolApproval;
1423
+ message?: string;
1424
+ toolCallId?: string;
1425
+ responseSchema?: {
1426
+ [x: string]: any;
1427
+ id?: string | undefined;
1428
+ $ref?: string | undefined;
1429
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1430
+ title?: string | undefined;
1431
+ description?: string | undefined;
1432
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1433
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1434
+ length: number;
1435
+ toString: () => string;
1436
+ toLocaleString: {
1437
+ (): string;
1438
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1439
+ };
1440
+ pop: () => import("json-schema").JSONSchema4Type;
1441
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1442
+ concat: {
1443
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1444
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1445
+ };
1446
+ join: (separator?: string) => string;
1447
+ reverse: () => import("json-schema").JSONSchema4Type[];
1448
+ shift: () => import("json-schema").JSONSchema4Type;
1449
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1450
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1451
+ splice: {
1452
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1453
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1454
+ };
1455
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1456
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1457
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1458
+ every: {
1459
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1460
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1461
+ };
1462
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1463
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1464
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1465
+ filter: {
1466
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1467
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1468
+ };
1469
+ reduce: {
1470
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1471
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1472
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1473
+ };
1474
+ reduceRight: {
1475
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1476
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1477
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1478
+ };
1479
+ find: {
1480
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1481
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1482
+ };
1483
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1484
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1485
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1486
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1487
+ keys: () => ArrayIterator<number>;
1488
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1489
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1490
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1491
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1492
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1493
+ findLast: {
1494
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1495
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1496
+ };
1497
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1498
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1499
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1500
+ toSpliced: {
1501
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1502
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1503
+ };
1504
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1505
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1506
+ readonly [Symbol.unscopables]: {
1507
+ [x: number]: boolean;
1508
+ length?: boolean;
1509
+ toString?: boolean;
1510
+ toLocaleString?: boolean;
1511
+ pop?: boolean;
1512
+ push?: boolean;
1513
+ concat?: boolean;
1514
+ join?: boolean;
1515
+ reverse?: boolean;
1516
+ shift?: boolean;
1517
+ slice?: boolean;
1518
+ sort?: boolean;
1519
+ splice?: boolean;
1520
+ unshift?: boolean;
1521
+ indexOf?: boolean;
1522
+ lastIndexOf?: boolean;
1523
+ every?: boolean;
1524
+ some?: boolean;
1525
+ forEach?: boolean;
1526
+ map?: boolean;
1527
+ filter?: boolean;
1528
+ reduce?: boolean;
1529
+ reduceRight?: boolean;
1530
+ find?: boolean;
1531
+ findIndex?: boolean;
1532
+ fill?: boolean;
1533
+ copyWithin?: boolean;
1534
+ entries?: boolean;
1535
+ keys?: boolean;
1536
+ values?: boolean;
1537
+ includes?: boolean;
1538
+ flatMap?: boolean;
1539
+ flat?: boolean;
1540
+ at?: boolean;
1541
+ findLast?: boolean;
1542
+ findLastIndex?: boolean;
1543
+ toReversed?: boolean;
1544
+ toSorted?: boolean;
1545
+ toSpliced?: boolean;
1546
+ with?: boolean;
1547
+ [Symbol.iterator]?: boolean;
1548
+ readonly [Symbol.unscopables]?: boolean;
1549
+ };
1550
+ };
1551
+ multipleOf?: number | undefined;
1552
+ maximum?: number | undefined;
1553
+ exclusiveMaximum?: boolean | undefined;
1554
+ minimum?: number | undefined;
1555
+ exclusiveMinimum?: boolean | undefined;
1556
+ maxLength?: number | undefined;
1557
+ minLength?: number | undefined;
1558
+ pattern?: string | undefined;
1559
+ additionalItems?: boolean | /*elided*/ any;
1560
+ items?: /*elided*/ any | /*elided*/ any[];
1561
+ maxItems?: number | undefined;
1562
+ minItems?: number | undefined;
1563
+ uniqueItems?: boolean | undefined;
1564
+ maxProperties?: number | undefined;
1565
+ minProperties?: number | undefined;
1566
+ required?: boolean | string[] | undefined;
1567
+ additionalProperties?: boolean | /*elided*/ any;
1568
+ definitions?: {
1569
+ [k: string]: import("json-schema").JSONSchema4;
1570
+ } | undefined;
1571
+ properties?: {
1572
+ [k: string]: import("json-schema").JSONSchema4;
1573
+ } | undefined;
1574
+ patternProperties?: {
1575
+ [k: string]: import("json-schema").JSONSchema4;
1576
+ } | undefined;
1577
+ dependencies?: {
1578
+ [k: string]: import("json-schema").JSONSchema4 | string[];
1579
+ } | undefined;
1580
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
1581
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1582
+ length: number;
1583
+ toString: () => string;
1584
+ toLocaleString: {
1585
+ (): string;
1586
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1587
+ };
1588
+ pop: () => import("json-schema").JSONSchema4Type;
1589
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1590
+ concat: {
1591
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1592
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1593
+ };
1594
+ join: (separator?: string) => string;
1595
+ reverse: () => import("json-schema").JSONSchema4Type[];
1596
+ shift: () => import("json-schema").JSONSchema4Type;
1597
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1598
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1599
+ splice: {
1600
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1601
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1602
+ };
1603
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1604
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1605
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1606
+ every: {
1607
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1608
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1609
+ };
1610
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1611
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1612
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1613
+ filter: {
1614
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1615
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1616
+ };
1617
+ reduce: {
1618
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1619
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1620
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1621
+ };
1622
+ reduceRight: {
1623
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1624
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1625
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1626
+ };
1627
+ find: {
1628
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1629
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1630
+ };
1631
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1632
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1633
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1634
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1635
+ keys: () => ArrayIterator<number>;
1636
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1637
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1638
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1639
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1640
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1641
+ findLast: {
1642
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1643
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1644
+ };
1645
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1646
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1647
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1648
+ toSpliced: {
1649
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1650
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1651
+ };
1652
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1653
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1654
+ readonly [Symbol.unscopables]: {
1655
+ [x: number]: boolean;
1656
+ length?: boolean;
1657
+ toString?: boolean;
1658
+ toLocaleString?: boolean;
1659
+ pop?: boolean;
1660
+ push?: boolean;
1661
+ concat?: boolean;
1662
+ join?: boolean;
1663
+ reverse?: boolean;
1664
+ shift?: boolean;
1665
+ slice?: boolean;
1666
+ sort?: boolean;
1667
+ splice?: boolean;
1668
+ unshift?: boolean;
1669
+ indexOf?: boolean;
1670
+ lastIndexOf?: boolean;
1671
+ every?: boolean;
1672
+ some?: boolean;
1673
+ forEach?: boolean;
1674
+ map?: boolean;
1675
+ filter?: boolean;
1676
+ reduce?: boolean;
1677
+ reduceRight?: boolean;
1678
+ find?: boolean;
1679
+ findIndex?: boolean;
1680
+ fill?: boolean;
1681
+ copyWithin?: boolean;
1682
+ entries?: boolean;
1683
+ keys?: boolean;
1684
+ values?: boolean;
1685
+ includes?: boolean;
1686
+ flatMap?: boolean;
1687
+ flat?: boolean;
1688
+ at?: boolean;
1689
+ findLast?: boolean;
1690
+ findLastIndex?: boolean;
1691
+ toReversed?: boolean;
1692
+ toSorted?: boolean;
1693
+ toSpliced?: boolean;
1694
+ with?: boolean;
1695
+ [Symbol.iterator]?: boolean;
1696
+ readonly [Symbol.unscopables]?: boolean;
1697
+ };
1698
+ })[];
1699
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1700
+ allOf?: /*elided*/ any[];
1701
+ anyOf?: /*elided*/ any[];
1702
+ oneOf?: /*elided*/ any[];
1703
+ not?: /*elided*/ any;
1704
+ extends?: string | string[] | undefined;
1705
+ format?: string | undefined;
1706
+ };
1707
+ expiresAt?: string;
1708
+ metadata?: {
1709
+ ticket: {
1710
+ approvers: string[];
1711
+ sn: string;
1712
+ status: ApprovalInterruptTicketStatus;
1713
+ submit_time: string;
1714
+ title: string;
1715
+ url: string;
1716
+ };
1717
+ };
1718
+ } | {
1719
+ id: string;
1720
+ reason: import("../event").InterruptReason.UserQuestion;
1721
+ message?: string;
1722
+ toolCallId?: string;
1723
+ responseSchema?: {
1724
+ [x: string]: any;
1725
+ id?: string | undefined;
1726
+ $ref?: string | undefined;
1727
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1728
+ title?: string | undefined;
1729
+ description?: string | undefined;
1730
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1731
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1732
+ length: number;
1733
+ toString: () => string;
1734
+ toLocaleString: {
1735
+ (): string;
1736
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1737
+ };
1738
+ pop: () => import("json-schema").JSONSchema4Type;
1739
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1740
+ concat: {
1741
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1742
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1743
+ };
1744
+ join: (separator?: string) => string;
1745
+ reverse: () => import("json-schema").JSONSchema4Type[];
1746
+ shift: () => import("json-schema").JSONSchema4Type;
1747
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1748
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1749
+ splice: {
1750
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1751
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1752
+ };
1753
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1754
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1755
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1756
+ every: {
1757
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1758
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1759
+ };
1760
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1761
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1762
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1763
+ filter: {
1764
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1765
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1766
+ };
1767
+ reduce: {
1768
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1769
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1770
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1771
+ };
1772
+ reduceRight: {
1773
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1774
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1775
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1776
+ };
1777
+ find: {
1778
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1779
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1780
+ };
1781
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1782
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1783
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1784
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1785
+ keys: () => ArrayIterator<number>;
1786
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1787
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1788
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1789
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1790
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1791
+ findLast: {
1792
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1793
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1794
+ };
1795
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1796
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1797
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1798
+ toSpliced: {
1799
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1800
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1801
+ };
1802
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1803
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1804
+ readonly [Symbol.unscopables]: {
1805
+ [x: number]: boolean;
1806
+ length?: boolean;
1807
+ toString?: boolean;
1808
+ toLocaleString?: boolean;
1809
+ pop?: boolean;
1810
+ push?: boolean;
1811
+ concat?: boolean;
1812
+ join?: boolean;
1813
+ reverse?: boolean;
1814
+ shift?: boolean;
1815
+ slice?: boolean;
1816
+ sort?: boolean;
1817
+ splice?: boolean;
1818
+ unshift?: boolean;
1819
+ indexOf?: boolean;
1820
+ lastIndexOf?: boolean;
1821
+ every?: boolean;
1822
+ some?: boolean;
1823
+ forEach?: boolean;
1824
+ map?: boolean;
1825
+ filter?: boolean;
1826
+ reduce?: boolean;
1827
+ reduceRight?: boolean;
1828
+ find?: boolean;
1829
+ findIndex?: boolean;
1830
+ fill?: boolean;
1831
+ copyWithin?: boolean;
1832
+ entries?: boolean;
1833
+ keys?: boolean;
1834
+ values?: boolean;
1835
+ includes?: boolean;
1836
+ flatMap?: boolean;
1837
+ flat?: boolean;
1838
+ at?: boolean;
1839
+ findLast?: boolean;
1840
+ findLastIndex?: boolean;
1841
+ toReversed?: boolean;
1842
+ toSorted?: boolean;
1843
+ toSpliced?: boolean;
1844
+ with?: boolean;
1845
+ [Symbol.iterator]?: boolean;
1846
+ readonly [Symbol.unscopables]?: boolean;
1847
+ };
1848
+ };
1849
+ multipleOf?: number | undefined;
1850
+ maximum?: number | undefined;
1851
+ exclusiveMaximum?: boolean | undefined;
1852
+ minimum?: number | undefined;
1853
+ exclusiveMinimum?: boolean | undefined;
1854
+ maxLength?: number | undefined;
1855
+ minLength?: number | undefined;
1856
+ pattern?: string | undefined;
1857
+ additionalItems?: boolean | /*elided*/ any;
1858
+ items?: /*elided*/ any | /*elided*/ any[];
1859
+ maxItems?: number | undefined;
1860
+ minItems?: number | undefined;
1861
+ uniqueItems?: boolean | undefined;
1862
+ maxProperties?: number | undefined;
1863
+ minProperties?: number | undefined;
1864
+ required?: boolean | string[] | undefined;
1865
+ additionalProperties?: boolean | /*elided*/ any;
1866
+ definitions?: {
1867
+ [k: string]: import("json-schema").JSONSchema4;
1868
+ } | undefined;
1869
+ properties?: {
1870
+ [k: string]: import("json-schema").JSONSchema4;
1871
+ } | undefined;
1872
+ patternProperties?: {
1873
+ [k: string]: import("json-schema").JSONSchema4;
1874
+ } | undefined;
1875
+ dependencies?: {
1876
+ [k: string]: import("json-schema").JSONSchema4 | string[];
1877
+ } | undefined;
1878
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
1879
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1880
+ length: number;
1881
+ toString: () => string;
1882
+ toLocaleString: {
1883
+ (): string;
1884
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1885
+ };
1886
+ pop: () => import("json-schema").JSONSchema4Type;
1887
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1888
+ concat: {
1889
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1890
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1891
+ };
1892
+ join: (separator?: string) => string;
1893
+ reverse: () => import("json-schema").JSONSchema4Type[];
1894
+ shift: () => import("json-schema").JSONSchema4Type;
1895
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1896
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1897
+ splice: {
1898
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1899
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1900
+ };
1901
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1902
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1903
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1904
+ every: {
1905
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1906
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1907
+ };
1908
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1909
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1910
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1911
+ filter: {
1912
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1913
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1914
+ };
1915
+ reduce: {
1916
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1917
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1918
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1919
+ };
1920
+ reduceRight: {
1921
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1922
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1923
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1924
+ };
1925
+ find: {
1926
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1927
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1928
+ };
1929
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1930
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1931
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1932
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1933
+ keys: () => ArrayIterator<number>;
1934
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1935
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1936
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1937
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1938
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1939
+ findLast: {
1940
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1941
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1942
+ };
1943
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1944
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1945
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1946
+ toSpliced: {
1947
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1948
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1949
+ };
1950
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1951
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1952
+ readonly [Symbol.unscopables]: {
1953
+ [x: number]: boolean;
1954
+ length?: boolean;
1955
+ toString?: boolean;
1956
+ toLocaleString?: boolean;
1957
+ pop?: boolean;
1958
+ push?: boolean;
1959
+ concat?: boolean;
1960
+ join?: boolean;
1961
+ reverse?: boolean;
1962
+ shift?: boolean;
1963
+ slice?: boolean;
1964
+ sort?: boolean;
1965
+ splice?: boolean;
1966
+ unshift?: boolean;
1967
+ indexOf?: boolean;
1968
+ lastIndexOf?: boolean;
1969
+ every?: boolean;
1970
+ some?: boolean;
1971
+ forEach?: boolean;
1972
+ map?: boolean;
1973
+ filter?: boolean;
1974
+ reduce?: boolean;
1975
+ reduceRight?: boolean;
1976
+ find?: boolean;
1977
+ findIndex?: boolean;
1978
+ fill?: boolean;
1979
+ copyWithin?: boolean;
1980
+ entries?: boolean;
1981
+ keys?: boolean;
1982
+ values?: boolean;
1983
+ includes?: boolean;
1984
+ flatMap?: boolean;
1985
+ flat?: boolean;
1986
+ at?: boolean;
1987
+ findLast?: boolean;
1988
+ findLastIndex?: boolean;
1989
+ toReversed?: boolean;
1990
+ toSorted?: boolean;
1991
+ toSpliced?: boolean;
1992
+ with?: boolean;
1993
+ [Symbol.iterator]?: boolean;
1994
+ readonly [Symbol.unscopables]?: boolean;
1995
+ };
1996
+ })[];
1997
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1998
+ allOf?: /*elided*/ any[];
1999
+ anyOf?: /*elided*/ any[];
2000
+ oneOf?: /*elided*/ any[];
2001
+ not?: /*elided*/ any;
2002
+ extends?: string | string[] | undefined;
2003
+ format?: string | undefined;
2004
+ };
2005
+ expiresAt?: string;
2006
+ metadata?: {
2007
+ questions: {
2008
+ header: string;
2009
+ multiSelect?: boolean;
2010
+ options?: {
2011
+ description: string;
2012
+ label: string;
2013
+ }[];
2014
+ question: string;
2015
+ }[];
2016
+ };
2017
+ })[];
2018
+ };
2019
+ timestamp?: number;
2020
+ };
2021
+ role: MessageRole.Interrupt;
2022
+ createdAt?: string;
614
2023
  id?: string;
615
2024
  messageId?: string;
616
2025
  name?: string;
@@ -624,13 +2033,80 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
624
2033
  }>;
625
2034
  isInfoLoading: import("vue").Ref<boolean, boolean>;
626
2035
  isChatting: import("vue").Ref<boolean, boolean>;
627
- chat: (userInput: IUserMessage["content"], sessionCode: string, url?: string, config?: IRequestConfig, property?: IMessageProperty) => Promise<void>;
2036
+ models: import("vue").Ref<{
2037
+ base_model?: string;
2038
+ description?: string;
2039
+ disabled?: boolean;
2040
+ icon?: string;
2041
+ id: number;
2042
+ llm_code: string;
2043
+ llm_name: string;
2044
+ llm_type: string;
2045
+ max_token_size: number;
2046
+ property: {
2047
+ agent_type?: string;
2048
+ default?: boolean;
2049
+ is_self_host?: boolean;
2050
+ max_model_len?: number;
2051
+ support_summary?: boolean;
2052
+ support_thinking?: boolean;
2053
+ support_thinking_quick?: boolean;
2054
+ support_tools?: boolean;
2055
+ support_vision?: boolean;
2056
+ support_window?: boolean;
2057
+ };
2058
+ space_auth_mode: string;
2059
+ tag_names?: string[];
2060
+ user_auth_mode: string;
2061
+ }[], ILlmItem[] | {
2062
+ base_model?: string;
2063
+ description?: string;
2064
+ disabled?: boolean;
2065
+ icon?: string;
2066
+ id: number;
2067
+ llm_code: string;
2068
+ llm_name: string;
2069
+ llm_type: string;
2070
+ max_token_size: number;
2071
+ property: {
2072
+ agent_type?: string;
2073
+ default?: boolean;
2074
+ is_self_host?: boolean;
2075
+ max_model_len?: number;
2076
+ support_summary?: boolean;
2077
+ support_thinking?: boolean;
2078
+ support_thinking_quick?: boolean;
2079
+ support_tools?: boolean;
2080
+ support_vision?: boolean;
2081
+ support_window?: boolean;
2082
+ };
2083
+ space_auth_mode: string;
2084
+ tag_names?: string[];
2085
+ user_auth_mode: string;
2086
+ }[]>;
2087
+ isModelsLoading: import("vue").Ref<boolean, boolean>;
2088
+ chat: (userInput: IUserMessage["content"], sessionCode: string, url?: string, config?: IRequestConfig, property?: IMessageProperty, model?: string) => Promise<void>;
628
2089
  handleRole: (data: IAgentInfo, sessionCode: string) => void;
629
- resendMessage: (messageId: string, sessionCode: string, newContent?: IUserMessage["content"], url?: string, config?: IRequestConfig) => Promise<void>;
630
- resumeStreamingChat: (sessionCode: string, url?: string, config?: IRequestConfig) => void;
2090
+ resendMessage: (messageId: string, sessionCode: string, newContent?: IUserMessage["content"], url?: string, config?: IRequestConfig, model?: string) => Promise<void>;
2091
+ resumeStreamingChat: (sessionCode: string, url?: string, config?: IRequestConfig, model?: string) => void;
631
2092
  abortChat: () => void;
632
2093
  stopChat: (sessionCode: string) => Promise<void>;
633
2094
  getAgentInfo: () => Promise<void>;
2095
+ getLlms: (params?: ILlmListQuery, config?: IRequestConfig) => Promise<ILlmItem[]>;
634
2096
  reset: (protocol: ISSEProtocol) => void;
2097
+ pollResumeSession: (sessionCode: string, model?: string) => void;
2098
+ clearLongPollTimer: () => void;
2099
+ userOperationStreamRequest: (sessionCode: string, operation: UserOperation, payload: IUserOperationPayload, config?: IRequestConfig, model?: string) => Promise<void>;
2100
+ streamRequest: ({ sessionCode, model, url, config, resume, input, lastMessageId, isReconnect, }: {
2101
+ sessionCode: string;
2102
+ model?: string;
2103
+ url?: string;
2104
+ config?: IRequestConfig;
2105
+ resume?: IResume;
2106
+ input?: string;
2107
+ lastMessageId?: string;
2108
+ /** 内部静默重连,不重置重连计数 */
2109
+ isReconnect?: boolean;
2110
+ }) => Promise<void>;
635
2111
  };
636
2112
  export type IAgentModule = ReturnType<typeof useAgent>;