@roarkanalytics/sdk 2.9.1 → 2.10.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 +30 -0
- package/package.json +1 -1
- package/resources/evaluation.d.ts +12 -10
- package/resources/evaluation.d.ts.map +1 -1
- package/resources/persona.d.ts +105 -119
- package/resources/persona.d.ts.map +1 -1
- package/resources/persona.js +5 -31
- package/resources/persona.js.map +1 -1
- package/resources/persona.mjs +5 -31
- package/resources/persona.mjs.map +1 -1
- package/resources/simulation.d.ts +99 -64
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +3 -2
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +3 -2
- package/resources/simulation.mjs.map +1 -1
- package/src/resources/evaluation.ts +26 -8
- package/src/resources/persona.ts +156 -114
- package/src/resources/simulation.ts +121 -64
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/persona.ts
CHANGED
|
@@ -12,17 +12,9 @@ export class Persona extends APIResource {
|
|
|
12
12
|
* ```ts
|
|
13
13
|
* const persona = await client.persona.create({
|
|
14
14
|
* accent: 'US',
|
|
15
|
-
* backgroundNoise: 'NONE',
|
|
16
|
-
* baseEmotion: 'NEUTRAL',
|
|
17
|
-
* confirmationStyle: 'EXPLICIT',
|
|
18
15
|
* gender: 'MALE',
|
|
19
|
-
* hasDisfluencies: false,
|
|
20
|
-
* intentClarity: 'CLEAR',
|
|
21
16
|
* language: 'EN',
|
|
22
|
-
*
|
|
23
|
-
* name: 'Alex Morgan',
|
|
24
|
-
* speechClarity: 'CLEAR',
|
|
25
|
-
* speechPace: 'NORMAL',
|
|
17
|
+
* name: 'name',
|
|
26
18
|
* });
|
|
27
19
|
* ```
|
|
28
20
|
*/
|
|
@@ -35,27 +27,23 @@ export class Persona extends APIResource {
|
|
|
35
27
|
*
|
|
36
28
|
* @example
|
|
37
29
|
* ```ts
|
|
38
|
-
* const persona = await client.persona.update('personaId'
|
|
39
|
-
* accent: 'US',
|
|
40
|
-
* backgroundNoise: 'NONE',
|
|
41
|
-
* baseEmotion: 'NEUTRAL',
|
|
42
|
-
* confirmationStyle: 'EXPLICIT',
|
|
43
|
-
* gender: 'MALE',
|
|
44
|
-
* hasDisfluencies: false,
|
|
45
|
-
* intentClarity: 'CLEAR',
|
|
46
|
-
* language: 'EN',
|
|
47
|
-
* memoryReliability: 'HIGH',
|
|
48
|
-
* name: 'Alex Morgan',
|
|
49
|
-
* speechClarity: 'CLEAR',
|
|
50
|
-
* speechPace: 'NORMAL',
|
|
51
|
-
* });
|
|
30
|
+
* const persona = await client.persona.update('personaId');
|
|
52
31
|
* ```
|
|
53
32
|
*/
|
|
54
33
|
update(
|
|
55
34
|
personaId: string,
|
|
56
|
-
body
|
|
35
|
+
body?: PersonaUpdateParams,
|
|
36
|
+
options?: Core.RequestOptions,
|
|
37
|
+
): Core.APIPromise<PersonaUpdateResponse>;
|
|
38
|
+
update(personaId: string, options?: Core.RequestOptions): Core.APIPromise<PersonaUpdateResponse>;
|
|
39
|
+
update(
|
|
40
|
+
personaId: string,
|
|
41
|
+
body: PersonaUpdateParams | Core.RequestOptions = {},
|
|
57
42
|
options?: Core.RequestOptions,
|
|
58
43
|
): Core.APIPromise<PersonaUpdateResponse> {
|
|
44
|
+
if (isRequestOptions(body)) {
|
|
45
|
+
return this.update(personaId, {}, body);
|
|
46
|
+
}
|
|
59
47
|
return this._client.put(`/v1/persona/${personaId}`, { body, ...options });
|
|
60
48
|
}
|
|
61
49
|
|
|
@@ -107,14 +95,23 @@ export namespace PersonaCreateResponse {
|
|
|
107
95
|
id: string;
|
|
108
96
|
|
|
109
97
|
/**
|
|
110
|
-
* Accent of the persona
|
|
98
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
99
|
+
* optional variants
|
|
111
100
|
*/
|
|
112
101
|
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
113
102
|
|
|
114
103
|
/**
|
|
115
104
|
* Background noise setting
|
|
116
105
|
*/
|
|
117
|
-
backgroundNoise:
|
|
106
|
+
backgroundNoise:
|
|
107
|
+
| 'NONE'
|
|
108
|
+
| 'AIRPORT'
|
|
109
|
+
| 'CHILDREN_PLAYING'
|
|
110
|
+
| 'CITY'
|
|
111
|
+
| 'COFFEE_SHOP'
|
|
112
|
+
| 'DRIVING'
|
|
113
|
+
| 'OFFICE'
|
|
114
|
+
| 'THUNDERSTORM';
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* Base emotional state of the persona
|
|
@@ -147,7 +144,7 @@ export namespace PersonaCreateResponse {
|
|
|
147
144
|
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
148
145
|
|
|
149
146
|
/**
|
|
150
|
-
* Primary language for the persona
|
|
147
|
+
* Primary language ISO 639-1 code for the persona
|
|
151
148
|
*/
|
|
152
149
|
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
153
150
|
|
|
@@ -161,6 +158,11 @@ export namespace PersonaCreateResponse {
|
|
|
161
158
|
*/
|
|
162
159
|
name: string;
|
|
163
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Additional custom properties about the persona
|
|
163
|
+
*/
|
|
164
|
+
properties: { [key: string]: unknown };
|
|
165
|
+
|
|
164
166
|
/**
|
|
165
167
|
* Speech clarity of the persona
|
|
166
168
|
*/
|
|
@@ -182,12 +184,7 @@ export namespace PersonaCreateResponse {
|
|
|
182
184
|
backstoryPrompt?: string | null;
|
|
183
185
|
|
|
184
186
|
/**
|
|
185
|
-
*
|
|
186
|
-
*/
|
|
187
|
-
properties?: { [key: string]: unknown };
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Secondary language for code-switching (e.g., Hinglish, Spanglish)
|
|
187
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
191
188
|
*/
|
|
192
189
|
secondaryLanguage?: 'EN' | null;
|
|
193
190
|
}
|
|
@@ -205,14 +202,23 @@ export namespace PersonaUpdateResponse {
|
|
|
205
202
|
id: string;
|
|
206
203
|
|
|
207
204
|
/**
|
|
208
|
-
* Accent of the persona
|
|
205
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
206
|
+
* optional variants
|
|
209
207
|
*/
|
|
210
208
|
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
211
209
|
|
|
212
210
|
/**
|
|
213
211
|
* Background noise setting
|
|
214
212
|
*/
|
|
215
|
-
backgroundNoise:
|
|
213
|
+
backgroundNoise:
|
|
214
|
+
| 'NONE'
|
|
215
|
+
| 'AIRPORT'
|
|
216
|
+
| 'CHILDREN_PLAYING'
|
|
217
|
+
| 'CITY'
|
|
218
|
+
| 'COFFEE_SHOP'
|
|
219
|
+
| 'DRIVING'
|
|
220
|
+
| 'OFFICE'
|
|
221
|
+
| 'THUNDERSTORM';
|
|
216
222
|
|
|
217
223
|
/**
|
|
218
224
|
* Base emotional state of the persona
|
|
@@ -245,7 +251,7 @@ export namespace PersonaUpdateResponse {
|
|
|
245
251
|
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
246
252
|
|
|
247
253
|
/**
|
|
248
|
-
* Primary language for the persona
|
|
254
|
+
* Primary language ISO 639-1 code for the persona
|
|
249
255
|
*/
|
|
250
256
|
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
251
257
|
|
|
@@ -259,6 +265,11 @@ export namespace PersonaUpdateResponse {
|
|
|
259
265
|
*/
|
|
260
266
|
name: string;
|
|
261
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Additional custom properties about the persona
|
|
270
|
+
*/
|
|
271
|
+
properties: { [key: string]: unknown };
|
|
272
|
+
|
|
262
273
|
/**
|
|
263
274
|
* Speech clarity of the persona
|
|
264
275
|
*/
|
|
@@ -280,12 +291,7 @@ export namespace PersonaUpdateResponse {
|
|
|
280
291
|
backstoryPrompt?: string | null;
|
|
281
292
|
|
|
282
293
|
/**
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
285
|
-
properties?: { [key: string]: unknown };
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Secondary language for code-switching (e.g., Hinglish, Spanglish)
|
|
294
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
289
295
|
*/
|
|
290
296
|
secondaryLanguage?: 'EN' | null;
|
|
291
297
|
}
|
|
@@ -305,14 +311,23 @@ export namespace PersonaFindAllResponse {
|
|
|
305
311
|
id: string;
|
|
306
312
|
|
|
307
313
|
/**
|
|
308
|
-
* Accent of the persona
|
|
314
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
315
|
+
* optional variants
|
|
309
316
|
*/
|
|
310
317
|
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
311
318
|
|
|
312
319
|
/**
|
|
313
320
|
* Background noise setting
|
|
314
321
|
*/
|
|
315
|
-
backgroundNoise:
|
|
322
|
+
backgroundNoise:
|
|
323
|
+
| 'NONE'
|
|
324
|
+
| 'AIRPORT'
|
|
325
|
+
| 'CHILDREN_PLAYING'
|
|
326
|
+
| 'CITY'
|
|
327
|
+
| 'COFFEE_SHOP'
|
|
328
|
+
| 'DRIVING'
|
|
329
|
+
| 'OFFICE'
|
|
330
|
+
| 'THUNDERSTORM';
|
|
316
331
|
|
|
317
332
|
/**
|
|
318
333
|
* Base emotional state of the persona
|
|
@@ -345,7 +360,7 @@ export namespace PersonaFindAllResponse {
|
|
|
345
360
|
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
346
361
|
|
|
347
362
|
/**
|
|
348
|
-
* Primary language for the persona
|
|
363
|
+
* Primary language ISO 639-1 code for the persona
|
|
349
364
|
*/
|
|
350
365
|
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
351
366
|
|
|
@@ -359,6 +374,11 @@ export namespace PersonaFindAllResponse {
|
|
|
359
374
|
*/
|
|
360
375
|
name: string;
|
|
361
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Additional custom properties about the persona
|
|
379
|
+
*/
|
|
380
|
+
properties: { [key: string]: unknown };
|
|
381
|
+
|
|
362
382
|
/**
|
|
363
383
|
* Speech clarity of the persona
|
|
364
384
|
*/
|
|
@@ -380,12 +400,7 @@ export namespace PersonaFindAllResponse {
|
|
|
380
400
|
backstoryPrompt?: string | null;
|
|
381
401
|
|
|
382
402
|
/**
|
|
383
|
-
*
|
|
384
|
-
*/
|
|
385
|
-
properties?: { [key: string]: unknown };
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Secondary language for code-switching (e.g., Hinglish, Spanglish)
|
|
403
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
389
404
|
*/
|
|
390
405
|
secondaryLanguage?: 'EN' | null;
|
|
391
406
|
}
|
|
@@ -420,14 +435,23 @@ export namespace PersonaGetByIDResponse {
|
|
|
420
435
|
id: string;
|
|
421
436
|
|
|
422
437
|
/**
|
|
423
|
-
* Accent of the persona
|
|
438
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
439
|
+
* optional variants
|
|
424
440
|
*/
|
|
425
441
|
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
426
442
|
|
|
427
443
|
/**
|
|
428
444
|
* Background noise setting
|
|
429
445
|
*/
|
|
430
|
-
backgroundNoise:
|
|
446
|
+
backgroundNoise:
|
|
447
|
+
| 'NONE'
|
|
448
|
+
| 'AIRPORT'
|
|
449
|
+
| 'CHILDREN_PLAYING'
|
|
450
|
+
| 'CITY'
|
|
451
|
+
| 'COFFEE_SHOP'
|
|
452
|
+
| 'DRIVING'
|
|
453
|
+
| 'OFFICE'
|
|
454
|
+
| 'THUNDERSTORM';
|
|
431
455
|
|
|
432
456
|
/**
|
|
433
457
|
* Base emotional state of the persona
|
|
@@ -460,7 +484,7 @@ export namespace PersonaGetByIDResponse {
|
|
|
460
484
|
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
461
485
|
|
|
462
486
|
/**
|
|
463
|
-
* Primary language for the persona
|
|
487
|
+
* Primary language ISO 639-1 code for the persona
|
|
464
488
|
*/
|
|
465
489
|
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
466
490
|
|
|
@@ -474,6 +498,11 @@ export namespace PersonaGetByIDResponse {
|
|
|
474
498
|
*/
|
|
475
499
|
name: string;
|
|
476
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Additional custom properties about the persona
|
|
503
|
+
*/
|
|
504
|
+
properties: { [key: string]: unknown };
|
|
505
|
+
|
|
477
506
|
/**
|
|
478
507
|
* Speech clarity of the persona
|
|
479
508
|
*/
|
|
@@ -495,12 +524,7 @@ export namespace PersonaGetByIDResponse {
|
|
|
495
524
|
backstoryPrompt?: string | null;
|
|
496
525
|
|
|
497
526
|
/**
|
|
498
|
-
*
|
|
499
|
-
*/
|
|
500
|
-
properties?: { [key: string]: unknown };
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Secondary language for code-switching (e.g., Hinglish, Spanglish)
|
|
527
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
504
528
|
*/
|
|
505
529
|
secondaryLanguage?: 'EN' | null;
|
|
506
530
|
}
|
|
@@ -508,156 +532,174 @@ export namespace PersonaGetByIDResponse {
|
|
|
508
532
|
|
|
509
533
|
export interface PersonaCreateParams {
|
|
510
534
|
/**
|
|
511
|
-
* Accent of the persona
|
|
535
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
536
|
+
* optional variants
|
|
512
537
|
*/
|
|
513
538
|
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
514
539
|
|
|
515
540
|
/**
|
|
516
|
-
*
|
|
541
|
+
* Gender of the persona
|
|
517
542
|
*/
|
|
518
|
-
|
|
543
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
519
544
|
|
|
520
545
|
/**
|
|
521
|
-
*
|
|
546
|
+
* Primary language ISO 639-1 code for the persona
|
|
522
547
|
*/
|
|
523
|
-
|
|
548
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
524
549
|
|
|
525
550
|
/**
|
|
526
|
-
*
|
|
551
|
+
* The name the agent will identify as during conversations
|
|
527
552
|
*/
|
|
528
|
-
|
|
553
|
+
name: string;
|
|
529
554
|
|
|
530
555
|
/**
|
|
531
|
-
*
|
|
556
|
+
* Background noise setting
|
|
532
557
|
*/
|
|
533
|
-
|
|
558
|
+
backgroundNoise?:
|
|
559
|
+
| 'NONE'
|
|
560
|
+
| 'AIRPORT'
|
|
561
|
+
| 'CHILDREN_PLAYING'
|
|
562
|
+
| 'CITY'
|
|
563
|
+
| 'COFFEE_SHOP'
|
|
564
|
+
| 'DRIVING'
|
|
565
|
+
| 'OFFICE'
|
|
566
|
+
| 'THUNDERSTORM';
|
|
534
567
|
|
|
535
568
|
/**
|
|
536
|
-
*
|
|
569
|
+
* Background story and behavioral patterns for the persona
|
|
537
570
|
*/
|
|
538
|
-
|
|
571
|
+
backstoryPrompt?: string | null;
|
|
539
572
|
|
|
540
573
|
/**
|
|
541
|
-
*
|
|
574
|
+
* Base emotional state of the persona
|
|
542
575
|
*/
|
|
543
|
-
|
|
576
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
544
577
|
|
|
545
578
|
/**
|
|
546
|
-
*
|
|
579
|
+
* How the persona confirms information
|
|
547
580
|
*/
|
|
548
|
-
|
|
581
|
+
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
549
582
|
|
|
550
583
|
/**
|
|
551
|
-
*
|
|
584
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
552
585
|
*/
|
|
553
|
-
|
|
586
|
+
hasDisfluencies?: boolean;
|
|
554
587
|
|
|
555
588
|
/**
|
|
556
|
-
*
|
|
589
|
+
* How clearly the persona expresses their intentions
|
|
557
590
|
*/
|
|
558
|
-
|
|
591
|
+
intentClarity?: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
559
592
|
|
|
560
593
|
/**
|
|
561
|
-
*
|
|
594
|
+
* How reliable the persona's memory is
|
|
562
595
|
*/
|
|
563
|
-
|
|
596
|
+
memoryReliability?: 'HIGH' | 'LOW';
|
|
564
597
|
|
|
565
598
|
/**
|
|
566
|
-
*
|
|
599
|
+
* Additional custom properties about the persona
|
|
567
600
|
*/
|
|
568
|
-
|
|
601
|
+
properties?: { [key: string]: unknown };
|
|
569
602
|
|
|
570
603
|
/**
|
|
571
|
-
*
|
|
604
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
572
605
|
*/
|
|
573
|
-
|
|
606
|
+
secondaryLanguage?: 'EN' | null;
|
|
574
607
|
|
|
575
608
|
/**
|
|
576
|
-
*
|
|
609
|
+
* Speech clarity of the persona
|
|
577
610
|
*/
|
|
578
|
-
|
|
611
|
+
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
579
612
|
|
|
580
613
|
/**
|
|
581
|
-
*
|
|
614
|
+
* Speech pace of the persona
|
|
582
615
|
*/
|
|
583
|
-
|
|
616
|
+
speechPace?: 'SLOW' | 'NORMAL' | 'FAST';
|
|
584
617
|
}
|
|
585
618
|
|
|
586
619
|
export interface PersonaUpdateParams {
|
|
587
620
|
/**
|
|
588
|
-
* Accent of the persona
|
|
621
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
622
|
+
* optional variants
|
|
589
623
|
*/
|
|
590
|
-
accent
|
|
624
|
+
accent?: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
591
625
|
|
|
592
626
|
/**
|
|
593
627
|
* Background noise setting
|
|
594
628
|
*/
|
|
595
|
-
backgroundNoise
|
|
629
|
+
backgroundNoise?:
|
|
630
|
+
| 'NONE'
|
|
631
|
+
| 'AIRPORT'
|
|
632
|
+
| 'CHILDREN_PLAYING'
|
|
633
|
+
| 'CITY'
|
|
634
|
+
| 'COFFEE_SHOP'
|
|
635
|
+
| 'DRIVING'
|
|
636
|
+
| 'OFFICE'
|
|
637
|
+
| 'THUNDERSTORM';
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Background story and behavioral patterns for the persona
|
|
641
|
+
*/
|
|
642
|
+
backstoryPrompt?: string | null;
|
|
596
643
|
|
|
597
644
|
/**
|
|
598
645
|
* Base emotional state of the persona
|
|
599
646
|
*/
|
|
600
|
-
baseEmotion
|
|
647
|
+
baseEmotion?: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
601
648
|
|
|
602
649
|
/**
|
|
603
650
|
* How the persona confirms information
|
|
604
651
|
*/
|
|
605
|
-
confirmationStyle
|
|
652
|
+
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
606
653
|
|
|
607
654
|
/**
|
|
608
655
|
* Gender of the persona
|
|
609
656
|
*/
|
|
610
|
-
gender
|
|
657
|
+
gender?: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
611
658
|
|
|
612
659
|
/**
|
|
613
660
|
* Whether the persona uses filler words like "um" and "uh"
|
|
614
661
|
*/
|
|
615
|
-
hasDisfluencies
|
|
662
|
+
hasDisfluencies?: boolean;
|
|
616
663
|
|
|
617
664
|
/**
|
|
618
665
|
* How clearly the persona expresses their intentions
|
|
619
666
|
*/
|
|
620
|
-
intentClarity
|
|
667
|
+
intentClarity?: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
621
668
|
|
|
622
669
|
/**
|
|
623
|
-
* Primary language for the persona
|
|
670
|
+
* Primary language ISO 639-1 code for the persona
|
|
624
671
|
*/
|
|
625
|
-
language
|
|
672
|
+
language?: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
626
673
|
|
|
627
674
|
/**
|
|
628
675
|
* How reliable the persona's memory is
|
|
629
676
|
*/
|
|
630
|
-
memoryReliability
|
|
677
|
+
memoryReliability?: 'HIGH' | 'LOW';
|
|
631
678
|
|
|
632
679
|
/**
|
|
633
680
|
* The name the agent will identify as during conversations
|
|
634
681
|
*/
|
|
635
|
-
name
|
|
682
|
+
name?: string;
|
|
636
683
|
|
|
637
684
|
/**
|
|
638
|
-
*
|
|
639
|
-
*/
|
|
640
|
-
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* Speech pace of the persona
|
|
685
|
+
* Additional custom properties about the persona
|
|
644
686
|
*/
|
|
645
|
-
|
|
687
|
+
properties?: { [key: string]: unknown };
|
|
646
688
|
|
|
647
689
|
/**
|
|
648
|
-
*
|
|
690
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
649
691
|
*/
|
|
650
|
-
|
|
692
|
+
secondaryLanguage?: 'EN' | null;
|
|
651
693
|
|
|
652
694
|
/**
|
|
653
|
-
*
|
|
695
|
+
* Speech clarity of the persona
|
|
654
696
|
*/
|
|
655
|
-
|
|
697
|
+
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
656
698
|
|
|
657
699
|
/**
|
|
658
|
-
*
|
|
700
|
+
* Speech pace of the persona
|
|
659
701
|
*/
|
|
660
|
-
|
|
702
|
+
speechPace?: 'SLOW' | 'NORMAL' | 'FAST';
|
|
661
703
|
}
|
|
662
704
|
|
|
663
705
|
export interface PersonaFindAllParams {
|