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

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,6 +98,31 @@ 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;
90
127
  id?: string;
91
128
  messageId?: string;
@@ -96,6 +133,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
96
133
  content?: string;
97
134
  property?: {
98
135
  [x: string]: unknown;
136
+ artifacts?: {
137
+ name: string;
138
+ outputId: string;
139
+ size: number;
140
+ type: string;
141
+ previewUrl?: string;
142
+ url?: string;
143
+ }[];
99
144
  extra?: {
100
145
  [x: string]: unknown;
101
146
  cite?: string | {
@@ -289,6 +334,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
289
334
  })[];
290
335
  property?: {
291
336
  [x: string]: unknown;
337
+ artifacts?: {
338
+ name: string;
339
+ outputId: string;
340
+ size: number;
341
+ type: string;
342
+ previewUrl?: string;
343
+ url?: string;
344
+ }[];
292
345
  extra?: {
293
346
  [x: string]: unknown;
294
347
  cite?: string | {
@@ -310,6 +363,636 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
310
363
  name?: string;
311
364
  sessionCode?: string;
312
365
  status: MessageStatus;
366
+ } | {
367
+ content: {
368
+ result?: {
369
+ interruptId: string;
370
+ status: ResumeStatus;
371
+ payload?: {
372
+ answers: {
373
+ answer: {
374
+ description: string;
375
+ label: string;
376
+ }[];
377
+ multiSelect?: boolean;
378
+ question: string;
379
+ }[];
380
+ };
381
+ };
382
+ runId: number;
383
+ threadId: string;
384
+ type: EventType.RunFinished;
385
+ outcome?: {
386
+ type: RunFinishedOutcomeType.Success;
387
+ } | {
388
+ type: RunFinishedOutcomeType.Interrupt;
389
+ interrupts: ({
390
+ id: string;
391
+ reason: import("../event").InterruptReason.AIDevToolApproval;
392
+ message?: string;
393
+ toolCallId?: string;
394
+ responseSchema?: {
395
+ [x: string]: any;
396
+ id?: string | undefined;
397
+ $ref?: string | undefined;
398
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
399
+ title?: string | undefined;
400
+ description?: string | undefined;
401
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
402
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
403
+ length: number;
404
+ toString: () => string;
405
+ toLocaleString: {
406
+ (): string;
407
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
408
+ };
409
+ pop: () => import("json-schema").JSONSchema4Type;
410
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
411
+ concat: {
412
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
413
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
414
+ };
415
+ join: (separator?: string) => string;
416
+ reverse: () => import("json-schema").JSONSchema4Type[];
417
+ shift: () => import("json-schema").JSONSchema4Type;
418
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
419
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
420
+ splice: {
421
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
422
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
423
+ };
424
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
425
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
426
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
427
+ every: {
428
+ <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[];
429
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
430
+ };
431
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
432
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
433
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
434
+ filter: {
435
+ <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[];
436
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
437
+ };
438
+ reduce: {
439
+ (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;
440
+ (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;
441
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
442
+ };
443
+ reduceRight: {
444
+ (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;
445
+ (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;
446
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
447
+ };
448
+ find: {
449
+ <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;
450
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
451
+ };
452
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
453
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
454
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
455
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
456
+ keys: () => ArrayIterator<number>;
457
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
458
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
459
+ 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[];
460
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
461
+ at: (index: number) => import("json-schema").JSONSchema4Type;
462
+ findLast: {
463
+ <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;
464
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
465
+ };
466
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
467
+ toReversed: () => import("json-schema").JSONSchema4Type[];
468
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
469
+ toSpliced: {
470
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
471
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
472
+ };
473
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
474
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
475
+ readonly [Symbol.unscopables]: {
476
+ [x: number]: boolean;
477
+ length?: boolean;
478
+ toString?: boolean;
479
+ toLocaleString?: boolean;
480
+ pop?: boolean;
481
+ push?: boolean;
482
+ concat?: boolean;
483
+ join?: boolean;
484
+ reverse?: boolean;
485
+ shift?: boolean;
486
+ slice?: boolean;
487
+ sort?: boolean;
488
+ splice?: boolean;
489
+ unshift?: boolean;
490
+ indexOf?: boolean;
491
+ lastIndexOf?: boolean;
492
+ every?: boolean;
493
+ some?: boolean;
494
+ forEach?: boolean;
495
+ map?: boolean;
496
+ filter?: boolean;
497
+ reduce?: boolean;
498
+ reduceRight?: boolean;
499
+ find?: boolean;
500
+ findIndex?: boolean;
501
+ fill?: boolean;
502
+ copyWithin?: boolean;
503
+ entries?: boolean;
504
+ keys?: boolean;
505
+ values?: boolean;
506
+ includes?: boolean;
507
+ flatMap?: boolean;
508
+ flat?: boolean;
509
+ at?: boolean;
510
+ findLast?: boolean;
511
+ findLastIndex?: boolean;
512
+ toReversed?: boolean;
513
+ toSorted?: boolean;
514
+ toSpliced?: boolean;
515
+ with?: boolean;
516
+ [Symbol.iterator]?: boolean;
517
+ readonly [Symbol.unscopables]?: boolean;
518
+ };
519
+ };
520
+ multipleOf?: number | undefined;
521
+ maximum?: number | undefined;
522
+ exclusiveMaximum?: boolean | undefined;
523
+ minimum?: number | undefined;
524
+ exclusiveMinimum?: boolean | undefined;
525
+ maxLength?: number | undefined;
526
+ minLength?: number | undefined;
527
+ pattern?: string | undefined;
528
+ additionalItems?: boolean | /*elided*/ any;
529
+ items?: /*elided*/ any | /*elided*/ any[];
530
+ maxItems?: number | undefined;
531
+ minItems?: number | undefined;
532
+ uniqueItems?: boolean | undefined;
533
+ maxProperties?: number | undefined;
534
+ minProperties?: number | undefined;
535
+ required?: boolean | string[] | undefined;
536
+ additionalProperties?: boolean | /*elided*/ any;
537
+ definitions?: {
538
+ [k: string]: import("json-schema").JSONSchema4;
539
+ } | undefined;
540
+ properties?: {
541
+ [k: string]: import("json-schema").JSONSchema4;
542
+ } | undefined;
543
+ patternProperties?: {
544
+ [k: string]: import("json-schema").JSONSchema4;
545
+ } | undefined;
546
+ dependencies?: {
547
+ [k: string]: import("json-schema").JSONSchema4 | string[];
548
+ } | undefined;
549
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
550
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
551
+ length: number;
552
+ toString: () => string;
553
+ toLocaleString: {
554
+ (): string;
555
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
556
+ };
557
+ pop: () => import("json-schema").JSONSchema4Type;
558
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
559
+ concat: {
560
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
561
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
562
+ };
563
+ join: (separator?: string) => string;
564
+ reverse: () => import("json-schema").JSONSchema4Type[];
565
+ shift: () => import("json-schema").JSONSchema4Type;
566
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
567
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
568
+ splice: {
569
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
570
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
571
+ };
572
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
573
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
574
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
575
+ every: {
576
+ <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[];
577
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
578
+ };
579
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
580
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
581
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
582
+ filter: {
583
+ <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[];
584
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
585
+ };
586
+ reduce: {
587
+ (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;
588
+ (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;
589
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
590
+ };
591
+ reduceRight: {
592
+ (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;
593
+ (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;
594
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
595
+ };
596
+ find: {
597
+ <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;
598
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
599
+ };
600
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
601
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
602
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
603
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
604
+ keys: () => ArrayIterator<number>;
605
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
606
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
607
+ 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[];
608
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
609
+ at: (index: number) => import("json-schema").JSONSchema4Type;
610
+ findLast: {
611
+ <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;
612
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
613
+ };
614
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
615
+ toReversed: () => import("json-schema").JSONSchema4Type[];
616
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
617
+ toSpliced: {
618
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
619
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
620
+ };
621
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
622
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
623
+ readonly [Symbol.unscopables]: {
624
+ [x: number]: boolean;
625
+ length?: boolean;
626
+ toString?: boolean;
627
+ toLocaleString?: boolean;
628
+ pop?: boolean;
629
+ push?: boolean;
630
+ concat?: boolean;
631
+ join?: boolean;
632
+ reverse?: boolean;
633
+ shift?: boolean;
634
+ slice?: boolean;
635
+ sort?: boolean;
636
+ splice?: boolean;
637
+ unshift?: boolean;
638
+ indexOf?: boolean;
639
+ lastIndexOf?: boolean;
640
+ every?: boolean;
641
+ some?: boolean;
642
+ forEach?: boolean;
643
+ map?: boolean;
644
+ filter?: boolean;
645
+ reduce?: boolean;
646
+ reduceRight?: boolean;
647
+ find?: boolean;
648
+ findIndex?: boolean;
649
+ fill?: boolean;
650
+ copyWithin?: boolean;
651
+ entries?: boolean;
652
+ keys?: boolean;
653
+ values?: boolean;
654
+ includes?: boolean;
655
+ flatMap?: boolean;
656
+ flat?: boolean;
657
+ at?: boolean;
658
+ findLast?: boolean;
659
+ findLastIndex?: boolean;
660
+ toReversed?: boolean;
661
+ toSorted?: boolean;
662
+ toSpliced?: boolean;
663
+ with?: boolean;
664
+ [Symbol.iterator]?: boolean;
665
+ readonly [Symbol.unscopables]?: boolean;
666
+ };
667
+ })[];
668
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
669
+ allOf?: /*elided*/ any[];
670
+ anyOf?: /*elided*/ any[];
671
+ oneOf?: /*elided*/ any[];
672
+ not?: /*elided*/ any;
673
+ extends?: string | string[] | undefined;
674
+ format?: string | undefined;
675
+ };
676
+ expiresAt?: string;
677
+ metadata?: {
678
+ ticket: {
679
+ approvers: string[];
680
+ sn: string;
681
+ status: ApprovalInterruptTicketStatus;
682
+ submit_time: string;
683
+ title: string;
684
+ url: string;
685
+ };
686
+ };
687
+ } | {
688
+ id: string;
689
+ reason: import("../event").InterruptReason.UserQuestion;
690
+ message?: string;
691
+ toolCallId?: string;
692
+ responseSchema?: {
693
+ [x: string]: any;
694
+ id?: string | undefined;
695
+ $ref?: string | undefined;
696
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
697
+ title?: string | undefined;
698
+ description?: string | undefined;
699
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
700
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
701
+ length: number;
702
+ toString: () => string;
703
+ toLocaleString: {
704
+ (): string;
705
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
706
+ };
707
+ pop: () => import("json-schema").JSONSchema4Type;
708
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
709
+ concat: {
710
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
711
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
712
+ };
713
+ join: (separator?: string) => string;
714
+ reverse: () => import("json-schema").JSONSchema4Type[];
715
+ shift: () => import("json-schema").JSONSchema4Type;
716
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
717
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
718
+ splice: {
719
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
720
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
721
+ };
722
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
723
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
724
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
725
+ every: {
726
+ <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[];
727
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
728
+ };
729
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
730
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
731
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
732
+ filter: {
733
+ <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[];
734
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
735
+ };
736
+ reduce: {
737
+ (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;
738
+ (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;
739
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
740
+ };
741
+ reduceRight: {
742
+ (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;
743
+ (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;
744
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
745
+ };
746
+ find: {
747
+ <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;
748
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
749
+ };
750
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
751
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
752
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
753
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
754
+ keys: () => ArrayIterator<number>;
755
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
756
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
757
+ 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[];
758
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
759
+ at: (index: number) => import("json-schema").JSONSchema4Type;
760
+ findLast: {
761
+ <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;
762
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
763
+ };
764
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
765
+ toReversed: () => import("json-schema").JSONSchema4Type[];
766
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
767
+ toSpliced: {
768
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
769
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
770
+ };
771
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
772
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
773
+ readonly [Symbol.unscopables]: {
774
+ [x: number]: boolean;
775
+ length?: boolean;
776
+ toString?: boolean;
777
+ toLocaleString?: boolean;
778
+ pop?: boolean;
779
+ push?: boolean;
780
+ concat?: boolean;
781
+ join?: boolean;
782
+ reverse?: boolean;
783
+ shift?: boolean;
784
+ slice?: boolean;
785
+ sort?: boolean;
786
+ splice?: boolean;
787
+ unshift?: boolean;
788
+ indexOf?: boolean;
789
+ lastIndexOf?: boolean;
790
+ every?: boolean;
791
+ some?: boolean;
792
+ forEach?: boolean;
793
+ map?: boolean;
794
+ filter?: boolean;
795
+ reduce?: boolean;
796
+ reduceRight?: boolean;
797
+ find?: boolean;
798
+ findIndex?: boolean;
799
+ fill?: boolean;
800
+ copyWithin?: boolean;
801
+ entries?: boolean;
802
+ keys?: boolean;
803
+ values?: boolean;
804
+ includes?: boolean;
805
+ flatMap?: boolean;
806
+ flat?: boolean;
807
+ at?: boolean;
808
+ findLast?: boolean;
809
+ findLastIndex?: boolean;
810
+ toReversed?: boolean;
811
+ toSorted?: boolean;
812
+ toSpliced?: boolean;
813
+ with?: boolean;
814
+ [Symbol.iterator]?: boolean;
815
+ readonly [Symbol.unscopables]?: boolean;
816
+ };
817
+ };
818
+ multipleOf?: number | undefined;
819
+ maximum?: number | undefined;
820
+ exclusiveMaximum?: boolean | undefined;
821
+ minimum?: number | undefined;
822
+ exclusiveMinimum?: boolean | undefined;
823
+ maxLength?: number | undefined;
824
+ minLength?: number | undefined;
825
+ pattern?: string | undefined;
826
+ additionalItems?: boolean | /*elided*/ any;
827
+ items?: /*elided*/ any | /*elided*/ any[];
828
+ maxItems?: number | undefined;
829
+ minItems?: number | undefined;
830
+ uniqueItems?: boolean | undefined;
831
+ maxProperties?: number | undefined;
832
+ minProperties?: number | undefined;
833
+ required?: boolean | string[] | undefined;
834
+ additionalProperties?: boolean | /*elided*/ any;
835
+ definitions?: {
836
+ [k: string]: import("json-schema").JSONSchema4;
837
+ } | undefined;
838
+ properties?: {
839
+ [k: string]: import("json-schema").JSONSchema4;
840
+ } | undefined;
841
+ patternProperties?: {
842
+ [k: string]: import("json-schema").JSONSchema4;
843
+ } | undefined;
844
+ dependencies?: {
845
+ [k: string]: import("json-schema").JSONSchema4 | string[];
846
+ } | undefined;
847
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
848
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
849
+ length: number;
850
+ toString: () => string;
851
+ toLocaleString: {
852
+ (): string;
853
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
854
+ };
855
+ pop: () => import("json-schema").JSONSchema4Type;
856
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
857
+ concat: {
858
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
859
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
860
+ };
861
+ join: (separator?: string) => string;
862
+ reverse: () => import("json-schema").JSONSchema4Type[];
863
+ shift: () => import("json-schema").JSONSchema4Type;
864
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
865
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
866
+ splice: {
867
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
868
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
869
+ };
870
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
871
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
872
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
873
+ every: {
874
+ <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[];
875
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
876
+ };
877
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
878
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
879
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
880
+ filter: {
881
+ <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[];
882
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
883
+ };
884
+ reduce: {
885
+ (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;
886
+ (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;
887
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
888
+ };
889
+ reduceRight: {
890
+ (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;
891
+ (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;
892
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
893
+ };
894
+ find: {
895
+ <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;
896
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
897
+ };
898
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
899
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
900
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
901
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
902
+ keys: () => ArrayIterator<number>;
903
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
904
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
905
+ 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[];
906
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
907
+ at: (index: number) => import("json-schema").JSONSchema4Type;
908
+ findLast: {
909
+ <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;
910
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
911
+ };
912
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
913
+ toReversed: () => import("json-schema").JSONSchema4Type[];
914
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
915
+ toSpliced: {
916
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
917
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
918
+ };
919
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
920
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
921
+ readonly [Symbol.unscopables]: {
922
+ [x: number]: boolean;
923
+ length?: boolean;
924
+ toString?: boolean;
925
+ toLocaleString?: boolean;
926
+ pop?: boolean;
927
+ push?: boolean;
928
+ concat?: boolean;
929
+ join?: boolean;
930
+ reverse?: boolean;
931
+ shift?: boolean;
932
+ slice?: boolean;
933
+ sort?: boolean;
934
+ splice?: boolean;
935
+ unshift?: boolean;
936
+ indexOf?: boolean;
937
+ lastIndexOf?: boolean;
938
+ every?: boolean;
939
+ some?: boolean;
940
+ forEach?: boolean;
941
+ map?: boolean;
942
+ filter?: boolean;
943
+ reduce?: boolean;
944
+ reduceRight?: boolean;
945
+ find?: boolean;
946
+ findIndex?: boolean;
947
+ fill?: boolean;
948
+ copyWithin?: boolean;
949
+ entries?: boolean;
950
+ keys?: boolean;
951
+ values?: boolean;
952
+ includes?: boolean;
953
+ flatMap?: boolean;
954
+ flat?: boolean;
955
+ at?: boolean;
956
+ findLast?: boolean;
957
+ findLastIndex?: boolean;
958
+ toReversed?: boolean;
959
+ toSorted?: boolean;
960
+ toSpliced?: boolean;
961
+ with?: boolean;
962
+ [Symbol.iterator]?: boolean;
963
+ readonly [Symbol.unscopables]?: boolean;
964
+ };
965
+ })[];
966
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
967
+ allOf?: /*elided*/ any[];
968
+ anyOf?: /*elided*/ any[];
969
+ oneOf?: /*elided*/ any[];
970
+ not?: /*elided*/ any;
971
+ extends?: string | string[] | undefined;
972
+ format?: string | undefined;
973
+ };
974
+ expiresAt?: string;
975
+ metadata?: {
976
+ questions: {
977
+ header: string;
978
+ multiSelect?: boolean;
979
+ options?: {
980
+ description: string;
981
+ label: string;
982
+ }[];
983
+ question: string;
984
+ }[];
985
+ };
986
+ })[];
987
+ };
988
+ timestamp?: number;
989
+ };
990
+ role: MessageRole.Interrupt;
991
+ id?: string;
992
+ messageId?: string;
993
+ name?: string;
994
+ sessionCode?: string;
995
+ status: MessageStatus;
313
996
  })[];
314
997
  supportUpload?: {
315
998
  vision: boolean;
@@ -375,8 +1058,19 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
375
1058
  content?: ({
376
1059
  activityType: import("../message").ActivityType;
377
1060
  content: {
1061
+ artifacts: {
1062
+ name: string;
1063
+ outputId: string;
1064
+ size: number;
1065
+ type: string;
1066
+ previewUrl?: string;
1067
+ url?: string;
1068
+ }[];
1069
+ runId: string;
1070
+ status: "complete" | "empty";
1071
+ } | {
378
1072
  nodes: Record<string, import("../event").IFlowAgentNode>;
379
- task_id: number;
1073
+ task_id: string;
380
1074
  task_name: string;
381
1075
  task_outputs: string[];
382
1076
  task_state: import("../event").FlowTaskState;
@@ -392,6 +1086,31 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
392
1086
  originFileUrl?: string;
393
1087
  url: string;
394
1088
  }[];
1089
+ property?: {
1090
+ [x: string]: unknown;
1091
+ artifacts?: {
1092
+ name: string;
1093
+ outputId: string;
1094
+ size: number;
1095
+ type: string;
1096
+ previewUrl?: string;
1097
+ url?: string;
1098
+ }[];
1099
+ extra?: {
1100
+ [x: string]: unknown;
1101
+ cite?: string | {
1102
+ data: {
1103
+ key: string;
1104
+ value: string;
1105
+ }[];
1106
+ title: string;
1107
+ type: string;
1108
+ };
1109
+ command?: string;
1110
+ context?: Array<Record<string, unknown>>;
1111
+ resources?: Array<Record<string, unknown>>;
1112
+ };
1113
+ };
395
1114
  role: MessageRole.Activity;
396
1115
  id?: string;
397
1116
  messageId?: string;
@@ -402,6 +1121,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
402
1121
  content?: string;
403
1122
  property?: {
404
1123
  [x: string]: unknown;
1124
+ artifacts?: {
1125
+ name: string;
1126
+ outputId: string;
1127
+ size: number;
1128
+ type: string;
1129
+ previewUrl?: string;
1130
+ url?: string;
1131
+ }[];
405
1132
  extra?: {
406
1133
  [x: string]: unknown;
407
1134
  cite?: string | {
@@ -595,6 +1322,14 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
595
1322
  })[];
596
1323
  property?: {
597
1324
  [x: string]: unknown;
1325
+ artifacts?: {
1326
+ name: string;
1327
+ outputId: string;
1328
+ size: number;
1329
+ type: string;
1330
+ previewUrl?: string;
1331
+ url?: string;
1332
+ }[];
598
1333
  extra?: {
599
1334
  [x: string]: unknown;
600
1335
  cite?: string | {
@@ -616,6 +1351,636 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
616
1351
  name?: string;
617
1352
  sessionCode?: string;
618
1353
  status: MessageStatus;
1354
+ } | {
1355
+ content: {
1356
+ result?: {
1357
+ interruptId: string;
1358
+ status: ResumeStatus;
1359
+ payload?: {
1360
+ answers: {
1361
+ answer: {
1362
+ description: string;
1363
+ label: string;
1364
+ }[];
1365
+ multiSelect?: boolean;
1366
+ question: string;
1367
+ }[];
1368
+ };
1369
+ };
1370
+ runId: number;
1371
+ threadId: string;
1372
+ type: EventType.RunFinished;
1373
+ outcome?: {
1374
+ type: RunFinishedOutcomeType.Success;
1375
+ } | {
1376
+ type: RunFinishedOutcomeType.Interrupt;
1377
+ interrupts: ({
1378
+ id: string;
1379
+ reason: import("../event").InterruptReason.AIDevToolApproval;
1380
+ message?: string;
1381
+ toolCallId?: string;
1382
+ responseSchema?: {
1383
+ [x: string]: any;
1384
+ id?: string | undefined;
1385
+ $ref?: string | undefined;
1386
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1387
+ title?: string | undefined;
1388
+ description?: string | undefined;
1389
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1390
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1391
+ length: number;
1392
+ toString: () => string;
1393
+ toLocaleString: {
1394
+ (): string;
1395
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1396
+ };
1397
+ pop: () => import("json-schema").JSONSchema4Type;
1398
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1399
+ concat: {
1400
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1401
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1402
+ };
1403
+ join: (separator?: string) => string;
1404
+ reverse: () => import("json-schema").JSONSchema4Type[];
1405
+ shift: () => import("json-schema").JSONSchema4Type;
1406
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1407
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1408
+ splice: {
1409
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1410
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1411
+ };
1412
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1413
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1414
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1415
+ every: {
1416
+ <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[];
1417
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1418
+ };
1419
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1420
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1421
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1422
+ filter: {
1423
+ <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[];
1424
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1425
+ };
1426
+ reduce: {
1427
+ (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;
1428
+ (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;
1429
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1430
+ };
1431
+ reduceRight: {
1432
+ (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;
1433
+ (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;
1434
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1435
+ };
1436
+ find: {
1437
+ <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;
1438
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1439
+ };
1440
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1441
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1442
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1443
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1444
+ keys: () => ArrayIterator<number>;
1445
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1446
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1447
+ 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[];
1448
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1449
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1450
+ findLast: {
1451
+ <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;
1452
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1453
+ };
1454
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1455
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1456
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1457
+ toSpliced: {
1458
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1459
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1460
+ };
1461
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1462
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1463
+ readonly [Symbol.unscopables]: {
1464
+ [x: number]: boolean;
1465
+ length?: boolean;
1466
+ toString?: boolean;
1467
+ toLocaleString?: boolean;
1468
+ pop?: boolean;
1469
+ push?: boolean;
1470
+ concat?: boolean;
1471
+ join?: boolean;
1472
+ reverse?: boolean;
1473
+ shift?: boolean;
1474
+ slice?: boolean;
1475
+ sort?: boolean;
1476
+ splice?: boolean;
1477
+ unshift?: boolean;
1478
+ indexOf?: boolean;
1479
+ lastIndexOf?: boolean;
1480
+ every?: boolean;
1481
+ some?: boolean;
1482
+ forEach?: boolean;
1483
+ map?: boolean;
1484
+ filter?: boolean;
1485
+ reduce?: boolean;
1486
+ reduceRight?: boolean;
1487
+ find?: boolean;
1488
+ findIndex?: boolean;
1489
+ fill?: boolean;
1490
+ copyWithin?: boolean;
1491
+ entries?: boolean;
1492
+ keys?: boolean;
1493
+ values?: boolean;
1494
+ includes?: boolean;
1495
+ flatMap?: boolean;
1496
+ flat?: boolean;
1497
+ at?: boolean;
1498
+ findLast?: boolean;
1499
+ findLastIndex?: boolean;
1500
+ toReversed?: boolean;
1501
+ toSorted?: boolean;
1502
+ toSpliced?: boolean;
1503
+ with?: boolean;
1504
+ [Symbol.iterator]?: boolean;
1505
+ readonly [Symbol.unscopables]?: boolean;
1506
+ };
1507
+ };
1508
+ multipleOf?: number | undefined;
1509
+ maximum?: number | undefined;
1510
+ exclusiveMaximum?: boolean | undefined;
1511
+ minimum?: number | undefined;
1512
+ exclusiveMinimum?: boolean | undefined;
1513
+ maxLength?: number | undefined;
1514
+ minLength?: number | undefined;
1515
+ pattern?: string | undefined;
1516
+ additionalItems?: boolean | /*elided*/ any;
1517
+ items?: /*elided*/ any | /*elided*/ any[];
1518
+ maxItems?: number | undefined;
1519
+ minItems?: number | undefined;
1520
+ uniqueItems?: boolean | undefined;
1521
+ maxProperties?: number | undefined;
1522
+ minProperties?: number | undefined;
1523
+ required?: boolean | string[] | undefined;
1524
+ additionalProperties?: boolean | /*elided*/ any;
1525
+ definitions?: {
1526
+ [k: string]: import("json-schema").JSONSchema4;
1527
+ } | undefined;
1528
+ properties?: {
1529
+ [k: string]: import("json-schema").JSONSchema4;
1530
+ } | undefined;
1531
+ patternProperties?: {
1532
+ [k: string]: import("json-schema").JSONSchema4;
1533
+ } | undefined;
1534
+ dependencies?: {
1535
+ [k: string]: import("json-schema").JSONSchema4 | string[];
1536
+ } | undefined;
1537
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
1538
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1539
+ length: number;
1540
+ toString: () => string;
1541
+ toLocaleString: {
1542
+ (): string;
1543
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1544
+ };
1545
+ pop: () => import("json-schema").JSONSchema4Type;
1546
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1547
+ concat: {
1548
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1549
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1550
+ };
1551
+ join: (separator?: string) => string;
1552
+ reverse: () => import("json-schema").JSONSchema4Type[];
1553
+ shift: () => import("json-schema").JSONSchema4Type;
1554
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1555
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1556
+ splice: {
1557
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1558
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1559
+ };
1560
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1561
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1562
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1563
+ every: {
1564
+ <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[];
1565
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1566
+ };
1567
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1568
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1569
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1570
+ filter: {
1571
+ <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[];
1572
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1573
+ };
1574
+ reduce: {
1575
+ (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;
1576
+ (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;
1577
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1578
+ };
1579
+ reduceRight: {
1580
+ (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;
1581
+ (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;
1582
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1583
+ };
1584
+ find: {
1585
+ <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;
1586
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1587
+ };
1588
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1589
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1590
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1591
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1592
+ keys: () => ArrayIterator<number>;
1593
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1594
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1595
+ 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[];
1596
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1597
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1598
+ findLast: {
1599
+ <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;
1600
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1601
+ };
1602
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1603
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1604
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1605
+ toSpliced: {
1606
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1607
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1608
+ };
1609
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1610
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1611
+ readonly [Symbol.unscopables]: {
1612
+ [x: number]: boolean;
1613
+ length?: boolean;
1614
+ toString?: boolean;
1615
+ toLocaleString?: boolean;
1616
+ pop?: boolean;
1617
+ push?: boolean;
1618
+ concat?: boolean;
1619
+ join?: boolean;
1620
+ reverse?: boolean;
1621
+ shift?: boolean;
1622
+ slice?: boolean;
1623
+ sort?: boolean;
1624
+ splice?: boolean;
1625
+ unshift?: boolean;
1626
+ indexOf?: boolean;
1627
+ lastIndexOf?: boolean;
1628
+ every?: boolean;
1629
+ some?: boolean;
1630
+ forEach?: boolean;
1631
+ map?: boolean;
1632
+ filter?: boolean;
1633
+ reduce?: boolean;
1634
+ reduceRight?: boolean;
1635
+ find?: boolean;
1636
+ findIndex?: boolean;
1637
+ fill?: boolean;
1638
+ copyWithin?: boolean;
1639
+ entries?: boolean;
1640
+ keys?: boolean;
1641
+ values?: boolean;
1642
+ includes?: boolean;
1643
+ flatMap?: boolean;
1644
+ flat?: boolean;
1645
+ at?: boolean;
1646
+ findLast?: boolean;
1647
+ findLastIndex?: boolean;
1648
+ toReversed?: boolean;
1649
+ toSorted?: boolean;
1650
+ toSpliced?: boolean;
1651
+ with?: boolean;
1652
+ [Symbol.iterator]?: boolean;
1653
+ readonly [Symbol.unscopables]?: boolean;
1654
+ };
1655
+ })[];
1656
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1657
+ allOf?: /*elided*/ any[];
1658
+ anyOf?: /*elided*/ any[];
1659
+ oneOf?: /*elided*/ any[];
1660
+ not?: /*elided*/ any;
1661
+ extends?: string | string[] | undefined;
1662
+ format?: string | undefined;
1663
+ };
1664
+ expiresAt?: string;
1665
+ metadata?: {
1666
+ ticket: {
1667
+ approvers: string[];
1668
+ sn: string;
1669
+ status: ApprovalInterruptTicketStatus;
1670
+ submit_time: string;
1671
+ title: string;
1672
+ url: string;
1673
+ };
1674
+ };
1675
+ } | {
1676
+ id: string;
1677
+ reason: import("../event").InterruptReason.UserQuestion;
1678
+ message?: string;
1679
+ toolCallId?: string;
1680
+ responseSchema?: {
1681
+ [x: string]: any;
1682
+ id?: string | undefined;
1683
+ $ref?: string | undefined;
1684
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1685
+ title?: string | undefined;
1686
+ description?: string | undefined;
1687
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1688
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1689
+ length: number;
1690
+ toString: () => string;
1691
+ toLocaleString: {
1692
+ (): string;
1693
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1694
+ };
1695
+ pop: () => import("json-schema").JSONSchema4Type;
1696
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1697
+ concat: {
1698
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1699
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1700
+ };
1701
+ join: (separator?: string) => string;
1702
+ reverse: () => import("json-schema").JSONSchema4Type[];
1703
+ shift: () => import("json-schema").JSONSchema4Type;
1704
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1705
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1706
+ splice: {
1707
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1708
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1709
+ };
1710
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1711
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1712
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1713
+ every: {
1714
+ <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[];
1715
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1716
+ };
1717
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1718
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1719
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1720
+ filter: {
1721
+ <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[];
1722
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1723
+ };
1724
+ reduce: {
1725
+ (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;
1726
+ (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;
1727
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1728
+ };
1729
+ reduceRight: {
1730
+ (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;
1731
+ (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;
1732
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1733
+ };
1734
+ find: {
1735
+ <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;
1736
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1737
+ };
1738
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1739
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1740
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1741
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1742
+ keys: () => ArrayIterator<number>;
1743
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1744
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1745
+ 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[];
1746
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1747
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1748
+ findLast: {
1749
+ <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;
1750
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1751
+ };
1752
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1753
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1754
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1755
+ toSpliced: {
1756
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1757
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1758
+ };
1759
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1760
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1761
+ readonly [Symbol.unscopables]: {
1762
+ [x: number]: boolean;
1763
+ length?: boolean;
1764
+ toString?: boolean;
1765
+ toLocaleString?: boolean;
1766
+ pop?: boolean;
1767
+ push?: boolean;
1768
+ concat?: boolean;
1769
+ join?: boolean;
1770
+ reverse?: boolean;
1771
+ shift?: boolean;
1772
+ slice?: boolean;
1773
+ sort?: boolean;
1774
+ splice?: boolean;
1775
+ unshift?: boolean;
1776
+ indexOf?: boolean;
1777
+ lastIndexOf?: boolean;
1778
+ every?: boolean;
1779
+ some?: boolean;
1780
+ forEach?: boolean;
1781
+ map?: boolean;
1782
+ filter?: boolean;
1783
+ reduce?: boolean;
1784
+ reduceRight?: boolean;
1785
+ find?: boolean;
1786
+ findIndex?: boolean;
1787
+ fill?: boolean;
1788
+ copyWithin?: boolean;
1789
+ entries?: boolean;
1790
+ keys?: boolean;
1791
+ values?: boolean;
1792
+ includes?: boolean;
1793
+ flatMap?: boolean;
1794
+ flat?: boolean;
1795
+ at?: boolean;
1796
+ findLast?: boolean;
1797
+ findLastIndex?: boolean;
1798
+ toReversed?: boolean;
1799
+ toSorted?: boolean;
1800
+ toSpliced?: boolean;
1801
+ with?: boolean;
1802
+ [Symbol.iterator]?: boolean;
1803
+ readonly [Symbol.unscopables]?: boolean;
1804
+ };
1805
+ };
1806
+ multipleOf?: number | undefined;
1807
+ maximum?: number | undefined;
1808
+ exclusiveMaximum?: boolean | undefined;
1809
+ minimum?: number | undefined;
1810
+ exclusiveMinimum?: boolean | undefined;
1811
+ maxLength?: number | undefined;
1812
+ minLength?: number | undefined;
1813
+ pattern?: string | undefined;
1814
+ additionalItems?: boolean | /*elided*/ any;
1815
+ items?: /*elided*/ any | /*elided*/ any[];
1816
+ maxItems?: number | undefined;
1817
+ minItems?: number | undefined;
1818
+ uniqueItems?: boolean | undefined;
1819
+ maxProperties?: number | undefined;
1820
+ minProperties?: number | undefined;
1821
+ required?: boolean | string[] | undefined;
1822
+ additionalProperties?: boolean | /*elided*/ any;
1823
+ definitions?: {
1824
+ [k: string]: import("json-schema").JSONSchema4;
1825
+ } | undefined;
1826
+ properties?: {
1827
+ [k: string]: import("json-schema").JSONSchema4;
1828
+ } | undefined;
1829
+ patternProperties?: {
1830
+ [k: string]: import("json-schema").JSONSchema4;
1831
+ } | undefined;
1832
+ dependencies?: {
1833
+ [k: string]: import("json-schema").JSONSchema4 | string[];
1834
+ } | undefined;
1835
+ enum?: (string | number | boolean | import("json-schema").JSONSchema4Object | {
1836
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1837
+ length: number;
1838
+ toString: () => string;
1839
+ toLocaleString: {
1840
+ (): string;
1841
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1842
+ };
1843
+ pop: () => import("json-schema").JSONSchema4Type;
1844
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1845
+ concat: {
1846
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1847
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1848
+ };
1849
+ join: (separator?: string) => string;
1850
+ reverse: () => import("json-schema").JSONSchema4Type[];
1851
+ shift: () => import("json-schema").JSONSchema4Type;
1852
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1853
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1854
+ splice: {
1855
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1856
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1857
+ };
1858
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1859
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1860
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1861
+ every: {
1862
+ <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[];
1863
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1864
+ };
1865
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1866
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1867
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1868
+ filter: {
1869
+ <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[];
1870
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1871
+ };
1872
+ reduce: {
1873
+ (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;
1874
+ (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;
1875
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1876
+ };
1877
+ reduceRight: {
1878
+ (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;
1879
+ (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;
1880
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1881
+ };
1882
+ find: {
1883
+ <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;
1884
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1885
+ };
1886
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1887
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1888
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1889
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1890
+ keys: () => ArrayIterator<number>;
1891
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1892
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1893
+ 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[];
1894
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1895
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1896
+ findLast: {
1897
+ <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;
1898
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1899
+ };
1900
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1901
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1902
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1903
+ toSpliced: {
1904
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1905
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1906
+ };
1907
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1908
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1909
+ readonly [Symbol.unscopables]: {
1910
+ [x: number]: boolean;
1911
+ length?: boolean;
1912
+ toString?: boolean;
1913
+ toLocaleString?: boolean;
1914
+ pop?: boolean;
1915
+ push?: boolean;
1916
+ concat?: boolean;
1917
+ join?: boolean;
1918
+ reverse?: boolean;
1919
+ shift?: boolean;
1920
+ slice?: boolean;
1921
+ sort?: boolean;
1922
+ splice?: boolean;
1923
+ unshift?: boolean;
1924
+ indexOf?: boolean;
1925
+ lastIndexOf?: boolean;
1926
+ every?: boolean;
1927
+ some?: boolean;
1928
+ forEach?: boolean;
1929
+ map?: boolean;
1930
+ filter?: boolean;
1931
+ reduce?: boolean;
1932
+ reduceRight?: boolean;
1933
+ find?: boolean;
1934
+ findIndex?: boolean;
1935
+ fill?: boolean;
1936
+ copyWithin?: boolean;
1937
+ entries?: boolean;
1938
+ keys?: boolean;
1939
+ values?: boolean;
1940
+ includes?: boolean;
1941
+ flatMap?: boolean;
1942
+ flat?: boolean;
1943
+ at?: boolean;
1944
+ findLast?: boolean;
1945
+ findLastIndex?: boolean;
1946
+ toReversed?: boolean;
1947
+ toSorted?: boolean;
1948
+ toSpliced?: boolean;
1949
+ with?: boolean;
1950
+ [Symbol.iterator]?: boolean;
1951
+ readonly [Symbol.unscopables]?: boolean;
1952
+ };
1953
+ })[];
1954
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1955
+ allOf?: /*elided*/ any[];
1956
+ anyOf?: /*elided*/ any[];
1957
+ oneOf?: /*elided*/ any[];
1958
+ not?: /*elided*/ any;
1959
+ extends?: string | string[] | undefined;
1960
+ format?: string | undefined;
1961
+ };
1962
+ expiresAt?: string;
1963
+ metadata?: {
1964
+ questions: {
1965
+ header: string;
1966
+ multiSelect?: boolean;
1967
+ options?: {
1968
+ description: string;
1969
+ label: string;
1970
+ }[];
1971
+ question: string;
1972
+ }[];
1973
+ };
1974
+ })[];
1975
+ };
1976
+ timestamp?: number;
1977
+ };
1978
+ role: MessageRole.Interrupt;
1979
+ id?: string;
1980
+ messageId?: string;
1981
+ name?: string;
1982
+ sessionCode?: string;
1983
+ status: MessageStatus;
619
1984
  })[];
620
1985
  supportUpload?: {
621
1986
  vision: boolean;
@@ -624,13 +1989,80 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
624
1989
  }>;
625
1990
  isInfoLoading: import("vue").Ref<boolean, boolean>;
626
1991
  isChatting: import("vue").Ref<boolean, boolean>;
627
- chat: (userInput: IUserMessage["content"], sessionCode: string, url?: string, config?: IRequestConfig, property?: IMessageProperty) => Promise<void>;
1992
+ models: import("vue").Ref<{
1993
+ base_model?: string;
1994
+ description?: string;
1995
+ disabled?: boolean;
1996
+ icon?: string;
1997
+ id: number;
1998
+ llm_code: string;
1999
+ llm_name: string;
2000
+ llm_type: string;
2001
+ max_token_size: number;
2002
+ property: {
2003
+ agent_type?: string;
2004
+ default?: boolean;
2005
+ is_self_host?: boolean;
2006
+ max_model_len?: number;
2007
+ support_summary?: boolean;
2008
+ support_thinking?: boolean;
2009
+ support_thinking_quick?: boolean;
2010
+ support_tools?: boolean;
2011
+ support_vision?: boolean;
2012
+ support_window?: boolean;
2013
+ };
2014
+ space_auth_mode: string;
2015
+ tag_names?: string[];
2016
+ user_auth_mode: string;
2017
+ }[], ILlmItem[] | {
2018
+ base_model?: string;
2019
+ description?: string;
2020
+ disabled?: boolean;
2021
+ icon?: string;
2022
+ id: number;
2023
+ llm_code: string;
2024
+ llm_name: string;
2025
+ llm_type: string;
2026
+ max_token_size: number;
2027
+ property: {
2028
+ agent_type?: string;
2029
+ default?: boolean;
2030
+ is_self_host?: boolean;
2031
+ max_model_len?: number;
2032
+ support_summary?: boolean;
2033
+ support_thinking?: boolean;
2034
+ support_thinking_quick?: boolean;
2035
+ support_tools?: boolean;
2036
+ support_vision?: boolean;
2037
+ support_window?: boolean;
2038
+ };
2039
+ space_auth_mode: string;
2040
+ tag_names?: string[];
2041
+ user_auth_mode: string;
2042
+ }[]>;
2043
+ isModelsLoading: import("vue").Ref<boolean, boolean>;
2044
+ chat: (userInput: IUserMessage["content"], sessionCode: string, url?: string, config?: IRequestConfig, property?: IMessageProperty, model?: string) => Promise<void>;
628
2045
  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;
2046
+ resendMessage: (messageId: string, sessionCode: string, newContent?: IUserMessage["content"], url?: string, config?: IRequestConfig, model?: string) => Promise<void>;
2047
+ resumeStreamingChat: (sessionCode: string, url?: string, config?: IRequestConfig, model?: string) => void;
631
2048
  abortChat: () => void;
632
2049
  stopChat: (sessionCode: string) => Promise<void>;
633
2050
  getAgentInfo: () => Promise<void>;
2051
+ getLlms: (params?: ILlmListQuery, config?: IRequestConfig) => Promise<ILlmItem[]>;
634
2052
  reset: (protocol: ISSEProtocol) => void;
2053
+ pollResumeSession: (sessionCode: string, model?: string) => void;
2054
+ clearLongPollTimer: () => void;
2055
+ userOperationStreamRequest: (sessionCode: string, operation: UserOperation, payload: IUserOperationPayload, config?: IRequestConfig, model?: string) => Promise<void>;
2056
+ streamRequest: ({ sessionCode, model, url, config, resume, input, lastMessageId, isReconnect, }: {
2057
+ sessionCode: string;
2058
+ model?: string;
2059
+ url?: string;
2060
+ config?: IRequestConfig;
2061
+ resume?: IResume;
2062
+ input?: string;
2063
+ lastMessageId?: string;
2064
+ /** 内部静默重连,不重置重连计数 */
2065
+ isReconnect?: boolean;
2066
+ }) => Promise<void>;
635
2067
  };
636
2068
  export type IAgentModule = ReturnType<typeof useAgent>;