@roarkanalytics/sdk 2.25.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +8 -7
- package/client.js.map +1 -1
- package/client.mjs +8 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +7 -1
- package/resources/call.d.mts +32 -0
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +32 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/metric-collection-job.d.mts +12 -0
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +12 -0
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-policy.d.mts +6 -6
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +6 -6
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +38 -6
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +38 -6
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +114 -18
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +114 -18
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +26 -9
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +26 -9
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +31 -1
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +31 -1
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-scenario.d.mts +76 -7
- package/resources/simulation-scenario.d.mts.map +1 -1
- package/resources/simulation-scenario.d.ts +76 -7
- package/resources/simulation-scenario.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +11 -10
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/call.ts +35 -0
- package/src/resources/metric-collection-job.ts +15 -0
- package/src/resources/metric-policy.ts +6 -6
- package/src/resources/simulation-job.ts +94 -6
- package/src/resources/simulation-persona.ts +282 -18
- package/src/resources/simulation-run-plan-job.ts +65 -8
- package/src/resources/simulation-run-plan.ts +38 -1
- package/src/resources/simulation-scenario.ts +100 -7
- package/src/resources/webhook.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -105,7 +105,14 @@ export namespace SimulationPersonaCreateResponse {
|
|
|
105
105
|
| 'IT'
|
|
106
106
|
| 'ID'
|
|
107
107
|
| 'TH'
|
|
108
|
-
| 'JP'
|
|
108
|
+
| 'JP'
|
|
109
|
+
| 'NZ'
|
|
110
|
+
| 'PH'
|
|
111
|
+
| 'SG'
|
|
112
|
+
| 'MY'
|
|
113
|
+
| 'HK'
|
|
114
|
+
| 'TR'
|
|
115
|
+
| 'PT';
|
|
109
116
|
|
|
110
117
|
/**
|
|
111
118
|
* Background noise setting
|
|
@@ -123,7 +130,7 @@ export namespace SimulationPersonaCreateResponse {
|
|
|
123
130
|
/**
|
|
124
131
|
* Base emotional state of the persona
|
|
125
132
|
*/
|
|
126
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
133
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
127
134
|
|
|
128
135
|
/**
|
|
129
136
|
* How the persona confirms information
|
|
@@ -145,6 +152,26 @@ export namespace SimulationPersonaCreateResponse {
|
|
|
145
152
|
*/
|
|
146
153
|
hasDisfluencies: boolean;
|
|
147
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
157
|
+
*/
|
|
158
|
+
idleMessageMaxSpokenCount: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Whether the idle message counter resets when the agent speaks
|
|
162
|
+
*/
|
|
163
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
167
|
+
*/
|
|
168
|
+
idleMessages: Array<string>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Seconds of silence before the persona sends an idle message
|
|
172
|
+
*/
|
|
173
|
+
idleTimeoutSeconds: number;
|
|
174
|
+
|
|
148
175
|
/**
|
|
149
176
|
* How clearly the persona expresses their intentions
|
|
150
177
|
*/
|
|
@@ -153,7 +180,24 @@ export namespace SimulationPersonaCreateResponse {
|
|
|
153
180
|
/**
|
|
154
181
|
* Primary language ISO 639-1 code for the persona
|
|
155
182
|
*/
|
|
156
|
-
language:
|
|
183
|
+
language:
|
|
184
|
+
| 'EN'
|
|
185
|
+
| 'ES'
|
|
186
|
+
| 'DE'
|
|
187
|
+
| 'HI'
|
|
188
|
+
| 'FR'
|
|
189
|
+
| 'NL'
|
|
190
|
+
| 'AR'
|
|
191
|
+
| 'EL'
|
|
192
|
+
| 'IT'
|
|
193
|
+
| 'ID'
|
|
194
|
+
| 'TH'
|
|
195
|
+
| 'JA'
|
|
196
|
+
| 'TL'
|
|
197
|
+
| 'MS'
|
|
198
|
+
| 'ZH'
|
|
199
|
+
| 'TR'
|
|
200
|
+
| 'PT';
|
|
157
201
|
|
|
158
202
|
/**
|
|
159
203
|
* How reliable the persona's memory is
|
|
@@ -238,7 +282,14 @@ export namespace SimulationPersonaUpdateResponse {
|
|
|
238
282
|
| 'IT'
|
|
239
283
|
| 'ID'
|
|
240
284
|
| 'TH'
|
|
241
|
-
| 'JP'
|
|
285
|
+
| 'JP'
|
|
286
|
+
| 'NZ'
|
|
287
|
+
| 'PH'
|
|
288
|
+
| 'SG'
|
|
289
|
+
| 'MY'
|
|
290
|
+
| 'HK'
|
|
291
|
+
| 'TR'
|
|
292
|
+
| 'PT';
|
|
242
293
|
|
|
243
294
|
/**
|
|
244
295
|
* Background noise setting
|
|
@@ -256,7 +307,7 @@ export namespace SimulationPersonaUpdateResponse {
|
|
|
256
307
|
/**
|
|
257
308
|
* Base emotional state of the persona
|
|
258
309
|
*/
|
|
259
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
310
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
260
311
|
|
|
261
312
|
/**
|
|
262
313
|
* How the persona confirms information
|
|
@@ -278,6 +329,26 @@ export namespace SimulationPersonaUpdateResponse {
|
|
|
278
329
|
*/
|
|
279
330
|
hasDisfluencies: boolean;
|
|
280
331
|
|
|
332
|
+
/**
|
|
333
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
334
|
+
*/
|
|
335
|
+
idleMessageMaxSpokenCount: number;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Whether the idle message counter resets when the agent speaks
|
|
339
|
+
*/
|
|
340
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
344
|
+
*/
|
|
345
|
+
idleMessages: Array<string>;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Seconds of silence before the persona sends an idle message
|
|
349
|
+
*/
|
|
350
|
+
idleTimeoutSeconds: number;
|
|
351
|
+
|
|
281
352
|
/**
|
|
282
353
|
* How clearly the persona expresses their intentions
|
|
283
354
|
*/
|
|
@@ -286,7 +357,24 @@ export namespace SimulationPersonaUpdateResponse {
|
|
|
286
357
|
/**
|
|
287
358
|
* Primary language ISO 639-1 code for the persona
|
|
288
359
|
*/
|
|
289
|
-
language:
|
|
360
|
+
language:
|
|
361
|
+
| 'EN'
|
|
362
|
+
| 'ES'
|
|
363
|
+
| 'DE'
|
|
364
|
+
| 'HI'
|
|
365
|
+
| 'FR'
|
|
366
|
+
| 'NL'
|
|
367
|
+
| 'AR'
|
|
368
|
+
| 'EL'
|
|
369
|
+
| 'IT'
|
|
370
|
+
| 'ID'
|
|
371
|
+
| 'TH'
|
|
372
|
+
| 'JA'
|
|
373
|
+
| 'TL'
|
|
374
|
+
| 'MS'
|
|
375
|
+
| 'ZH'
|
|
376
|
+
| 'TR'
|
|
377
|
+
| 'PT';
|
|
290
378
|
|
|
291
379
|
/**
|
|
292
380
|
* How reliable the persona's memory is
|
|
@@ -373,7 +461,14 @@ export namespace SimulationPersonaListResponse {
|
|
|
373
461
|
| 'IT'
|
|
374
462
|
| 'ID'
|
|
375
463
|
| 'TH'
|
|
376
|
-
| 'JP'
|
|
464
|
+
| 'JP'
|
|
465
|
+
| 'NZ'
|
|
466
|
+
| 'PH'
|
|
467
|
+
| 'SG'
|
|
468
|
+
| 'MY'
|
|
469
|
+
| 'HK'
|
|
470
|
+
| 'TR'
|
|
471
|
+
| 'PT';
|
|
377
472
|
|
|
378
473
|
/**
|
|
379
474
|
* Background noise setting
|
|
@@ -391,7 +486,7 @@ export namespace SimulationPersonaListResponse {
|
|
|
391
486
|
/**
|
|
392
487
|
* Base emotional state of the persona
|
|
393
488
|
*/
|
|
394
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
489
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
395
490
|
|
|
396
491
|
/**
|
|
397
492
|
* How the persona confirms information
|
|
@@ -413,6 +508,26 @@ export namespace SimulationPersonaListResponse {
|
|
|
413
508
|
*/
|
|
414
509
|
hasDisfluencies: boolean;
|
|
415
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
513
|
+
*/
|
|
514
|
+
idleMessageMaxSpokenCount: number;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Whether the idle message counter resets when the agent speaks
|
|
518
|
+
*/
|
|
519
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
523
|
+
*/
|
|
524
|
+
idleMessages: Array<string>;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Seconds of silence before the persona sends an idle message
|
|
528
|
+
*/
|
|
529
|
+
idleTimeoutSeconds: number;
|
|
530
|
+
|
|
416
531
|
/**
|
|
417
532
|
* How clearly the persona expresses their intentions
|
|
418
533
|
*/
|
|
@@ -421,7 +536,24 @@ export namespace SimulationPersonaListResponse {
|
|
|
421
536
|
/**
|
|
422
537
|
* Primary language ISO 639-1 code for the persona
|
|
423
538
|
*/
|
|
424
|
-
language:
|
|
539
|
+
language:
|
|
540
|
+
| 'EN'
|
|
541
|
+
| 'ES'
|
|
542
|
+
| 'DE'
|
|
543
|
+
| 'HI'
|
|
544
|
+
| 'FR'
|
|
545
|
+
| 'NL'
|
|
546
|
+
| 'AR'
|
|
547
|
+
| 'EL'
|
|
548
|
+
| 'IT'
|
|
549
|
+
| 'ID'
|
|
550
|
+
| 'TH'
|
|
551
|
+
| 'JA'
|
|
552
|
+
| 'TL'
|
|
553
|
+
| 'MS'
|
|
554
|
+
| 'ZH'
|
|
555
|
+
| 'TR'
|
|
556
|
+
| 'PT';
|
|
425
557
|
|
|
426
558
|
/**
|
|
427
559
|
* How reliable the persona's memory is
|
|
@@ -523,7 +655,14 @@ export namespace SimulationPersonaGetByIDResponse {
|
|
|
523
655
|
| 'IT'
|
|
524
656
|
| 'ID'
|
|
525
657
|
| 'TH'
|
|
526
|
-
| 'JP'
|
|
658
|
+
| 'JP'
|
|
659
|
+
| 'NZ'
|
|
660
|
+
| 'PH'
|
|
661
|
+
| 'SG'
|
|
662
|
+
| 'MY'
|
|
663
|
+
| 'HK'
|
|
664
|
+
| 'TR'
|
|
665
|
+
| 'PT';
|
|
527
666
|
|
|
528
667
|
/**
|
|
529
668
|
* Background noise setting
|
|
@@ -541,7 +680,7 @@ export namespace SimulationPersonaGetByIDResponse {
|
|
|
541
680
|
/**
|
|
542
681
|
* Base emotional state of the persona
|
|
543
682
|
*/
|
|
544
|
-
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
683
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
545
684
|
|
|
546
685
|
/**
|
|
547
686
|
* How the persona confirms information
|
|
@@ -563,6 +702,26 @@ export namespace SimulationPersonaGetByIDResponse {
|
|
|
563
702
|
*/
|
|
564
703
|
hasDisfluencies: boolean;
|
|
565
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
707
|
+
*/
|
|
708
|
+
idleMessageMaxSpokenCount: number;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Whether the idle message counter resets when the agent speaks
|
|
712
|
+
*/
|
|
713
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
717
|
+
*/
|
|
718
|
+
idleMessages: Array<string>;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Seconds of silence before the persona sends an idle message
|
|
722
|
+
*/
|
|
723
|
+
idleTimeoutSeconds: number;
|
|
724
|
+
|
|
566
725
|
/**
|
|
567
726
|
* How clearly the persona expresses their intentions
|
|
568
727
|
*/
|
|
@@ -571,7 +730,24 @@ export namespace SimulationPersonaGetByIDResponse {
|
|
|
571
730
|
/**
|
|
572
731
|
* Primary language ISO 639-1 code for the persona
|
|
573
732
|
*/
|
|
574
|
-
language:
|
|
733
|
+
language:
|
|
734
|
+
| 'EN'
|
|
735
|
+
| 'ES'
|
|
736
|
+
| 'DE'
|
|
737
|
+
| 'HI'
|
|
738
|
+
| 'FR'
|
|
739
|
+
| 'NL'
|
|
740
|
+
| 'AR'
|
|
741
|
+
| 'EL'
|
|
742
|
+
| 'IT'
|
|
743
|
+
| 'ID'
|
|
744
|
+
| 'TH'
|
|
745
|
+
| 'JA'
|
|
746
|
+
| 'TL'
|
|
747
|
+
| 'MS'
|
|
748
|
+
| 'ZH'
|
|
749
|
+
| 'TR'
|
|
750
|
+
| 'PT';
|
|
575
751
|
|
|
576
752
|
/**
|
|
577
753
|
* How reliable the persona's memory is
|
|
@@ -646,7 +822,14 @@ export interface SimulationPersonaCreateParams {
|
|
|
646
822
|
| 'IT'
|
|
647
823
|
| 'ID'
|
|
648
824
|
| 'TH'
|
|
649
|
-
| 'JP'
|
|
825
|
+
| 'JP'
|
|
826
|
+
| 'NZ'
|
|
827
|
+
| 'PH'
|
|
828
|
+
| 'SG'
|
|
829
|
+
| 'MY'
|
|
830
|
+
| 'HK'
|
|
831
|
+
| 'TR'
|
|
832
|
+
| 'PT';
|
|
650
833
|
|
|
651
834
|
/**
|
|
652
835
|
* Gender of the persona
|
|
@@ -656,7 +839,24 @@ export interface SimulationPersonaCreateParams {
|
|
|
656
839
|
/**
|
|
657
840
|
* Primary language ISO 639-1 code for the persona
|
|
658
841
|
*/
|
|
659
|
-
language:
|
|
842
|
+
language:
|
|
843
|
+
| 'EN'
|
|
844
|
+
| 'ES'
|
|
845
|
+
| 'DE'
|
|
846
|
+
| 'HI'
|
|
847
|
+
| 'FR'
|
|
848
|
+
| 'NL'
|
|
849
|
+
| 'AR'
|
|
850
|
+
| 'EL'
|
|
851
|
+
| 'IT'
|
|
852
|
+
| 'ID'
|
|
853
|
+
| 'TH'
|
|
854
|
+
| 'JA'
|
|
855
|
+
| 'TL'
|
|
856
|
+
| 'MS'
|
|
857
|
+
| 'ZH'
|
|
858
|
+
| 'TR'
|
|
859
|
+
| 'PT';
|
|
660
860
|
|
|
661
861
|
/**
|
|
662
862
|
* The name the agent will identify as during conversations
|
|
@@ -684,7 +884,7 @@ export interface SimulationPersonaCreateParams {
|
|
|
684
884
|
/**
|
|
685
885
|
* Base emotional state of the persona
|
|
686
886
|
*/
|
|
687
|
-
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
887
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
688
888
|
|
|
689
889
|
/**
|
|
690
890
|
* How the persona confirms information
|
|
@@ -701,6 +901,26 @@ export interface SimulationPersonaCreateParams {
|
|
|
701
901
|
*/
|
|
702
902
|
hasDisfluencies?: boolean;
|
|
703
903
|
|
|
904
|
+
/**
|
|
905
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
906
|
+
*/
|
|
907
|
+
idleMessageMaxSpokenCount?: number;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Whether the idle message counter resets when the agent speaks
|
|
911
|
+
*/
|
|
912
|
+
idleMessageResetCountOnUserSpeechEnabled?: boolean;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
916
|
+
*/
|
|
917
|
+
idleMessages?: Array<string>;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Seconds of silence before the persona sends an idle message
|
|
921
|
+
*/
|
|
922
|
+
idleTimeoutSeconds?: number;
|
|
923
|
+
|
|
704
924
|
/**
|
|
705
925
|
* How clearly the persona expresses their intentions
|
|
706
926
|
*/
|
|
@@ -758,7 +978,14 @@ export interface SimulationPersonaUpdateParams {
|
|
|
758
978
|
| 'IT'
|
|
759
979
|
| 'ID'
|
|
760
980
|
| 'TH'
|
|
761
|
-
| 'JP'
|
|
981
|
+
| 'JP'
|
|
982
|
+
| 'NZ'
|
|
983
|
+
| 'PH'
|
|
984
|
+
| 'SG'
|
|
985
|
+
| 'MY'
|
|
986
|
+
| 'HK'
|
|
987
|
+
| 'TR'
|
|
988
|
+
| 'PT';
|
|
762
989
|
|
|
763
990
|
/**
|
|
764
991
|
* Background noise setting
|
|
@@ -781,7 +1008,7 @@ export interface SimulationPersonaUpdateParams {
|
|
|
781
1008
|
/**
|
|
782
1009
|
* Base emotional state of the persona
|
|
783
1010
|
*/
|
|
784
|
-
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
1011
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
|
|
785
1012
|
|
|
786
1013
|
/**
|
|
787
1014
|
* How the persona confirms information
|
|
@@ -803,6 +1030,26 @@ export interface SimulationPersonaUpdateParams {
|
|
|
803
1030
|
*/
|
|
804
1031
|
hasDisfluencies?: boolean;
|
|
805
1032
|
|
|
1033
|
+
/**
|
|
1034
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
1035
|
+
*/
|
|
1036
|
+
idleMessageMaxSpokenCount?: number;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Whether the idle message counter resets when the agent speaks
|
|
1040
|
+
*/
|
|
1041
|
+
idleMessageResetCountOnUserSpeechEnabled?: boolean;
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
1045
|
+
*/
|
|
1046
|
+
idleMessages?: Array<string>;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Seconds of silence before the persona sends an idle message
|
|
1050
|
+
*/
|
|
1051
|
+
idleTimeoutSeconds?: number;
|
|
1052
|
+
|
|
806
1053
|
/**
|
|
807
1054
|
* How clearly the persona expresses their intentions
|
|
808
1055
|
*/
|
|
@@ -811,7 +1058,24 @@ export interface SimulationPersonaUpdateParams {
|
|
|
811
1058
|
/**
|
|
812
1059
|
* Primary language ISO 639-1 code for the persona
|
|
813
1060
|
*/
|
|
814
|
-
language?:
|
|
1061
|
+
language?:
|
|
1062
|
+
| 'EN'
|
|
1063
|
+
| 'ES'
|
|
1064
|
+
| 'DE'
|
|
1065
|
+
| 'HI'
|
|
1066
|
+
| 'FR'
|
|
1067
|
+
| 'NL'
|
|
1068
|
+
| 'AR'
|
|
1069
|
+
| 'EL'
|
|
1070
|
+
| 'IT'
|
|
1071
|
+
| 'ID'
|
|
1072
|
+
| 'TH'
|
|
1073
|
+
| 'JA'
|
|
1074
|
+
| 'TL'
|
|
1075
|
+
| 'MS'
|
|
1076
|
+
| 'ZH'
|
|
1077
|
+
| 'TR'
|
|
1078
|
+
| 'PT';
|
|
815
1079
|
|
|
816
1080
|
/**
|
|
817
1081
|
* How reliable the persona's memory is
|
|
@@ -97,7 +97,8 @@ export namespace SimulationRunPlanJobListResponse {
|
|
|
97
97
|
| 'FAILED'
|
|
98
98
|
| 'TIMED_OUT'
|
|
99
99
|
| 'CANCELLED'
|
|
100
|
-
| 'CANCELLING'
|
|
100
|
+
| 'CANCELLING'
|
|
101
|
+
| 'ENDING_SIMULATIONS';
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* How the job was triggered (SCHEDULED, USER_TRIGGERED_FROM_UI,
|
|
@@ -179,7 +180,8 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
179
180
|
| 'FAILED'
|
|
180
181
|
| 'TIMED_OUT'
|
|
181
182
|
| 'CANCELLED'
|
|
182
|
-
| 'CANCELLING'
|
|
183
|
+
| 'CANCELLING'
|
|
184
|
+
| 'ENDING_SIMULATIONS';
|
|
183
185
|
|
|
184
186
|
/**
|
|
185
187
|
* When the job ended
|
|
@@ -213,6 +215,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
213
215
|
| 'CONNECTING'
|
|
214
216
|
| 'WAITING_FOR_OUTBOUND_CALL'
|
|
215
217
|
| 'SIMULATING'
|
|
218
|
+
| 'ENDING'
|
|
216
219
|
| 'ANALYZING'
|
|
217
220
|
| 'EVALUATING'
|
|
218
221
|
| 'COLLECTING_METRICS'
|
|
@@ -315,7 +318,14 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
315
318
|
| 'IT'
|
|
316
319
|
| 'ID'
|
|
317
320
|
| 'TH'
|
|
318
|
-
| 'JP'
|
|
321
|
+
| 'JP'
|
|
322
|
+
| 'NZ'
|
|
323
|
+
| 'PH'
|
|
324
|
+
| 'SG'
|
|
325
|
+
| 'MY'
|
|
326
|
+
| 'HK'
|
|
327
|
+
| 'TR'
|
|
328
|
+
| 'PT';
|
|
319
329
|
|
|
320
330
|
/**
|
|
321
331
|
* Background noise setting
|
|
@@ -333,7 +343,14 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
333
343
|
/**
|
|
334
344
|
* Base emotional state of the persona
|
|
335
345
|
*/
|
|
336
|
-
baseEmotion:
|
|
346
|
+
baseEmotion:
|
|
347
|
+
| 'NEUTRAL'
|
|
348
|
+
| 'CHEERFUL'
|
|
349
|
+
| 'CONFUSED'
|
|
350
|
+
| 'FRUSTRATED'
|
|
351
|
+
| 'SKEPTICAL'
|
|
352
|
+
| 'RUSHED'
|
|
353
|
+
| 'DISTRACTED';
|
|
337
354
|
|
|
338
355
|
/**
|
|
339
356
|
* How the persona confirms information
|
|
@@ -355,6 +372,26 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
355
372
|
*/
|
|
356
373
|
hasDisfluencies: boolean;
|
|
357
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Maximum number of idle messages the persona will send before giving up
|
|
377
|
+
*/
|
|
378
|
+
idleMessageMaxSpokenCount: number;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Whether the idle message counter resets when the agent speaks
|
|
382
|
+
*/
|
|
383
|
+
idleMessageResetCountOnUserSpeechEnabled: boolean;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Messages the persona will say when the agent goes silent during a call
|
|
387
|
+
*/
|
|
388
|
+
idleMessages: Array<string>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Seconds of silence before the persona sends an idle message
|
|
392
|
+
*/
|
|
393
|
+
idleTimeoutSeconds: number;
|
|
394
|
+
|
|
358
395
|
/**
|
|
359
396
|
* How clearly the persona expresses their intentions
|
|
360
397
|
*/
|
|
@@ -363,7 +400,24 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
363
400
|
/**
|
|
364
401
|
* Primary language ISO 639-1 code for the persona
|
|
365
402
|
*/
|
|
366
|
-
language:
|
|
403
|
+
language:
|
|
404
|
+
| 'EN'
|
|
405
|
+
| 'ES'
|
|
406
|
+
| 'DE'
|
|
407
|
+
| 'HI'
|
|
408
|
+
| 'FR'
|
|
409
|
+
| 'NL'
|
|
410
|
+
| 'AR'
|
|
411
|
+
| 'EL'
|
|
412
|
+
| 'IT'
|
|
413
|
+
| 'ID'
|
|
414
|
+
| 'TH'
|
|
415
|
+
| 'JA'
|
|
416
|
+
| 'TL'
|
|
417
|
+
| 'MS'
|
|
418
|
+
| 'ZH'
|
|
419
|
+
| 'TR'
|
|
420
|
+
| 'PT';
|
|
367
421
|
|
|
368
422
|
/**
|
|
369
423
|
* How reliable the persona's memory is
|
|
@@ -475,7 +529,8 @@ export namespace SimulationRunPlanJobStartResponse {
|
|
|
475
529
|
| 'FAILED'
|
|
476
530
|
| 'TIMED_OUT'
|
|
477
531
|
| 'CANCELLED'
|
|
478
|
-
| 'CANCELLING'
|
|
532
|
+
| 'CANCELLING'
|
|
533
|
+
| 'ENDING_SIMULATIONS';
|
|
479
534
|
}
|
|
480
535
|
}
|
|
481
536
|
|
|
@@ -508,7 +563,8 @@ export interface SimulationRunPlanJobListParams {
|
|
|
508
563
|
|
|
509
564
|
/**
|
|
510
565
|
* Filter by plan job status (PENDING, CREATING_SNAPSHOTS, CREATING_SIMULATIONS,
|
|
511
|
-
* RUNNING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT,
|
|
566
|
+
* RUNNING_SIMULATIONS, ENDING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT,
|
|
567
|
+
* CANCELLED, CANCELLING)
|
|
512
568
|
*/
|
|
513
569
|
status?:
|
|
514
570
|
| 'PENDING'
|
|
@@ -520,7 +576,8 @@ export interface SimulationRunPlanJobListParams {
|
|
|
520
576
|
| 'FAILED'
|
|
521
577
|
| 'TIMED_OUT'
|
|
522
578
|
| 'CANCELLED'
|
|
523
|
-
| 'CANCELLING'
|
|
579
|
+
| 'CANCELLING'
|
|
580
|
+
| 'ENDING_SIMULATIONS';
|
|
524
581
|
}
|
|
525
582
|
|
|
526
583
|
export interface SimulationRunPlanJobStartParams {
|
|
@@ -158,6 +158,12 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
158
158
|
*/
|
|
159
159
|
endCallPhrases: Array<string>;
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
163
|
+
* against these conditions. Empty array means disabled.
|
|
164
|
+
*/
|
|
165
|
+
endCallReasons: Array<string>;
|
|
166
|
+
|
|
161
167
|
/**
|
|
162
168
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
163
169
|
*/
|
|
@@ -278,7 +284,8 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
278
284
|
| 'FAILED'
|
|
279
285
|
| 'TIMED_OUT'
|
|
280
286
|
| 'CANCELLED'
|
|
281
|
-
| 'CANCELLING'
|
|
287
|
+
| 'CANCELLING'
|
|
288
|
+
| 'ENDING_SIMULATIONS';
|
|
282
289
|
}
|
|
283
290
|
}
|
|
284
291
|
}
|
|
@@ -320,6 +327,12 @@ export namespace SimulationRunPlanUpdateResponse {
|
|
|
320
327
|
*/
|
|
321
328
|
endCallPhrases: Array<string>;
|
|
322
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
332
|
+
* against these conditions. Empty array means disabled.
|
|
333
|
+
*/
|
|
334
|
+
endCallReasons: Array<string>;
|
|
335
|
+
|
|
323
336
|
/**
|
|
324
337
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
325
338
|
*/
|
|
@@ -448,6 +461,12 @@ export namespace SimulationRunPlanListResponse {
|
|
|
448
461
|
*/
|
|
449
462
|
endCallPhrases: Array<string>;
|
|
450
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
466
|
+
* against these conditions. Empty array means disabled.
|
|
467
|
+
*/
|
|
468
|
+
endCallReasons: Array<string>;
|
|
469
|
+
|
|
451
470
|
/**
|
|
452
471
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
453
472
|
*/
|
|
@@ -604,6 +623,12 @@ export namespace SimulationRunPlanGetByIDResponse {
|
|
|
604
623
|
*/
|
|
605
624
|
endCallPhrases: Array<string>;
|
|
606
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
628
|
+
* against these conditions. Empty array means disabled.
|
|
629
|
+
*/
|
|
630
|
+
endCallReasons: Array<string>;
|
|
631
|
+
|
|
607
632
|
/**
|
|
608
633
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
609
634
|
*/
|
|
@@ -745,6 +770,12 @@ export interface SimulationRunPlanCreateParams {
|
|
|
745
770
|
*/
|
|
746
771
|
endCallPhrases?: Array<string>;
|
|
747
772
|
|
|
773
|
+
/**
|
|
774
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
775
|
+
* against these conditions. Empty array disables the feature.
|
|
776
|
+
*/
|
|
777
|
+
endCallReasons?: Array<string>;
|
|
778
|
+
|
|
748
779
|
/**
|
|
749
780
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
750
781
|
*/
|
|
@@ -815,6 +846,12 @@ export interface SimulationRunPlanUpdateParams {
|
|
|
815
846
|
*/
|
|
816
847
|
endCallPhrases?: Array<string>;
|
|
817
848
|
|
|
849
|
+
/**
|
|
850
|
+
* Semantic conditions that trigger end of call. The LLM evaluates the conversation
|
|
851
|
+
* against these conditions. Empty array disables the feature.
|
|
852
|
+
*/
|
|
853
|
+
endCallReasons?: Array<string>;
|
|
854
|
+
|
|
818
855
|
/**
|
|
819
856
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
820
857
|
*/
|