@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
|
@@ -5,7 +5,8 @@ import * as Core from '../core';
|
|
|
5
5
|
|
|
6
6
|
export class Simulation extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Get a individual simulation run directly by its ID. This is generally part of a
|
|
9
|
+
* larger simulation run plan job.
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
@@ -19,7 +20,7 @@ export class Simulation extends APIResource {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
|
-
* Find the matching simulation
|
|
23
|
+
* Find the matching simulation using the number used by the Roark simulation
|
|
23
24
|
* agent.
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
@@ -50,7 +51,7 @@ export namespace SimulationGetJobByIDResponse {
|
|
|
50
51
|
*/
|
|
51
52
|
export interface Data {
|
|
52
53
|
/**
|
|
53
|
-
* Agent endpoint used in
|
|
54
|
+
* Agent endpoint used in a simulation
|
|
54
55
|
*/
|
|
55
56
|
agentEndpoint: Data.AgentEndpoint;
|
|
56
57
|
|
|
@@ -59,9 +60,6 @@ export namespace SimulationGetJobByIDResponse {
|
|
|
59
60
|
*/
|
|
60
61
|
createdAt: string;
|
|
61
62
|
|
|
62
|
-
/**
|
|
63
|
-
* Persona used in the simulation
|
|
64
|
-
*/
|
|
65
63
|
persona: Data.Persona;
|
|
66
64
|
|
|
67
65
|
/**
|
|
@@ -70,7 +68,7 @@ export namespace SimulationGetJobByIDResponse {
|
|
|
70
68
|
processingStatus: string;
|
|
71
69
|
|
|
72
70
|
/**
|
|
73
|
-
* Scenario used in
|
|
71
|
+
* Scenario used in a simulation
|
|
74
72
|
*/
|
|
75
73
|
scenario: Data.Scenario;
|
|
76
74
|
|
|
@@ -97,7 +95,7 @@ export namespace SimulationGetJobByIDResponse {
|
|
|
97
95
|
|
|
98
96
|
export namespace Data {
|
|
99
97
|
/**
|
|
100
|
-
* Agent endpoint used in
|
|
98
|
+
* Agent endpoint used in a simulation
|
|
101
99
|
*/
|
|
102
100
|
export interface AgentEndpoint {
|
|
103
101
|
/**
|
|
@@ -121,78 +119,109 @@ export namespace SimulationGetJobByIDResponse {
|
|
|
121
119
|
phoneNumber: string | null;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
|
-
/**
|
|
125
|
-
* Persona used in the simulation
|
|
126
|
-
*/
|
|
127
122
|
export interface Persona {
|
|
128
123
|
/**
|
|
129
|
-
*
|
|
124
|
+
* Unique identifier of the persona
|
|
130
125
|
*/
|
|
131
126
|
id: string;
|
|
132
127
|
|
|
133
128
|
/**
|
|
134
|
-
* Accent of the persona
|
|
129
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
130
|
+
* optional variants
|
|
135
131
|
*/
|
|
136
|
-
accent:
|
|
132
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
137
133
|
|
|
138
134
|
/**
|
|
139
135
|
* Background noise setting
|
|
140
136
|
*/
|
|
141
|
-
backgroundNoise:
|
|
137
|
+
backgroundNoise:
|
|
138
|
+
| 'NONE'
|
|
139
|
+
| 'AIRPORT'
|
|
140
|
+
| 'CHILDREN_PLAYING'
|
|
141
|
+
| 'CITY'
|
|
142
|
+
| 'COFFEE_SHOP'
|
|
143
|
+
| 'DRIVING'
|
|
144
|
+
| 'OFFICE'
|
|
145
|
+
| 'THUNDERSTORM';
|
|
142
146
|
|
|
143
147
|
/**
|
|
144
|
-
* Base
|
|
148
|
+
* Base emotional state of the persona
|
|
145
149
|
*/
|
|
146
|
-
baseEmotion:
|
|
150
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
147
151
|
|
|
148
152
|
/**
|
|
149
153
|
* How the persona confirms information
|
|
150
154
|
*/
|
|
151
|
-
confirmationStyle:
|
|
155
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
152
156
|
|
|
153
157
|
/**
|
|
154
|
-
*
|
|
158
|
+
* Creation timestamp
|
|
155
159
|
*/
|
|
156
|
-
|
|
160
|
+
createdAt: string;
|
|
157
161
|
|
|
158
162
|
/**
|
|
159
163
|
* Gender of the persona
|
|
160
164
|
*/
|
|
161
|
-
gender:
|
|
165
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
169
|
+
*/
|
|
170
|
+
hasDisfluencies: boolean;
|
|
162
171
|
|
|
163
172
|
/**
|
|
164
|
-
* How clearly the persona expresses
|
|
173
|
+
* How clearly the persona expresses their intentions
|
|
165
174
|
*/
|
|
166
|
-
intentClarity:
|
|
175
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
167
176
|
|
|
168
177
|
/**
|
|
169
|
-
*
|
|
178
|
+
* Primary language ISO 639-1 code for the persona
|
|
170
179
|
*/
|
|
171
|
-
language:
|
|
180
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
172
181
|
|
|
173
182
|
/**
|
|
174
|
-
*
|
|
183
|
+
* How reliable the persona's memory is
|
|
175
184
|
*/
|
|
176
|
-
memoryReliability:
|
|
185
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
177
186
|
|
|
178
187
|
/**
|
|
179
|
-
*
|
|
188
|
+
* The name the agent will identify as during conversations
|
|
180
189
|
*/
|
|
181
190
|
name: string;
|
|
182
191
|
|
|
183
192
|
/**
|
|
184
|
-
*
|
|
193
|
+
* Additional custom properties about the persona
|
|
194
|
+
*/
|
|
195
|
+
properties: { [key: string]: unknown };
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Speech clarity of the persona
|
|
199
|
+
*/
|
|
200
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Speech pace of the persona
|
|
204
|
+
*/
|
|
205
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Last update timestamp
|
|
209
|
+
*/
|
|
210
|
+
updatedAt: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Background story and behavioral patterns for the persona
|
|
185
214
|
*/
|
|
186
|
-
|
|
215
|
+
backstoryPrompt?: string | null;
|
|
187
216
|
|
|
188
217
|
/**
|
|
189
|
-
*
|
|
218
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
190
219
|
*/
|
|
191
|
-
|
|
220
|
+
secondaryLanguage?: 'EN' | null;
|
|
192
221
|
}
|
|
193
222
|
|
|
194
223
|
/**
|
|
195
|
-
* Scenario used in
|
|
224
|
+
* Scenario used in a simulation
|
|
196
225
|
*/
|
|
197
226
|
export interface Scenario {
|
|
198
227
|
/**
|
|
@@ -221,7 +250,7 @@ export namespace SimulationLookupJobResponse {
|
|
|
221
250
|
*/
|
|
222
251
|
export interface Data {
|
|
223
252
|
/**
|
|
224
|
-
* Agent endpoint used in
|
|
253
|
+
* Agent endpoint used in a simulation
|
|
225
254
|
*/
|
|
226
255
|
agentEndpoint: Data.AgentEndpoint;
|
|
227
256
|
|
|
@@ -230,9 +259,6 @@ export namespace SimulationLookupJobResponse {
|
|
|
230
259
|
*/
|
|
231
260
|
createdAt: string;
|
|
232
261
|
|
|
233
|
-
/**
|
|
234
|
-
* Persona used in the simulation
|
|
235
|
-
*/
|
|
236
262
|
persona: Data.Persona;
|
|
237
263
|
|
|
238
264
|
/**
|
|
@@ -241,7 +267,7 @@ export namespace SimulationLookupJobResponse {
|
|
|
241
267
|
processingStatus: string;
|
|
242
268
|
|
|
243
269
|
/**
|
|
244
|
-
* Scenario used in
|
|
270
|
+
* Scenario used in a simulation
|
|
245
271
|
*/
|
|
246
272
|
scenario: Data.Scenario;
|
|
247
273
|
|
|
@@ -268,7 +294,7 @@ export namespace SimulationLookupJobResponse {
|
|
|
268
294
|
|
|
269
295
|
export namespace Data {
|
|
270
296
|
/**
|
|
271
|
-
* Agent endpoint used in
|
|
297
|
+
* Agent endpoint used in a simulation
|
|
272
298
|
*/
|
|
273
299
|
export interface AgentEndpoint {
|
|
274
300
|
/**
|
|
@@ -292,78 +318,109 @@ export namespace SimulationLookupJobResponse {
|
|
|
292
318
|
phoneNumber: string | null;
|
|
293
319
|
}
|
|
294
320
|
|
|
295
|
-
/**
|
|
296
|
-
* Persona used in the simulation
|
|
297
|
-
*/
|
|
298
321
|
export interface Persona {
|
|
299
322
|
/**
|
|
300
|
-
*
|
|
323
|
+
* Unique identifier of the persona
|
|
301
324
|
*/
|
|
302
325
|
id: string;
|
|
303
326
|
|
|
304
327
|
/**
|
|
305
|
-
* Accent of the persona
|
|
328
|
+
* Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
|
|
329
|
+
* optional variants
|
|
306
330
|
*/
|
|
307
|
-
accent:
|
|
331
|
+
accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU';
|
|
308
332
|
|
|
309
333
|
/**
|
|
310
334
|
* Background noise setting
|
|
311
335
|
*/
|
|
312
|
-
backgroundNoise:
|
|
336
|
+
backgroundNoise:
|
|
337
|
+
| 'NONE'
|
|
338
|
+
| 'AIRPORT'
|
|
339
|
+
| 'CHILDREN_PLAYING'
|
|
340
|
+
| 'CITY'
|
|
341
|
+
| 'COFFEE_SHOP'
|
|
342
|
+
| 'DRIVING'
|
|
343
|
+
| 'OFFICE'
|
|
344
|
+
| 'THUNDERSTORM';
|
|
313
345
|
|
|
314
346
|
/**
|
|
315
|
-
* Base
|
|
347
|
+
* Base emotional state of the persona
|
|
316
348
|
*/
|
|
317
|
-
baseEmotion:
|
|
349
|
+
baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
|
|
318
350
|
|
|
319
351
|
/**
|
|
320
352
|
* How the persona confirms information
|
|
321
353
|
*/
|
|
322
|
-
confirmationStyle:
|
|
354
|
+
confirmationStyle: 'EXPLICIT' | 'VAGUE';
|
|
323
355
|
|
|
324
356
|
/**
|
|
325
|
-
*
|
|
357
|
+
* Creation timestamp
|
|
326
358
|
*/
|
|
327
|
-
|
|
359
|
+
createdAt: string;
|
|
328
360
|
|
|
329
361
|
/**
|
|
330
362
|
* Gender of the persona
|
|
331
363
|
*/
|
|
332
|
-
gender:
|
|
364
|
+
gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Whether the persona uses filler words like "um" and "uh"
|
|
368
|
+
*/
|
|
369
|
+
hasDisfluencies: boolean;
|
|
333
370
|
|
|
334
371
|
/**
|
|
335
|
-
* How clearly the persona expresses
|
|
372
|
+
* How clearly the persona expresses their intentions
|
|
336
373
|
*/
|
|
337
|
-
intentClarity:
|
|
374
|
+
intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
|
|
338
375
|
|
|
339
376
|
/**
|
|
340
|
-
*
|
|
377
|
+
* Primary language ISO 639-1 code for the persona
|
|
341
378
|
*/
|
|
342
|
-
language:
|
|
379
|
+
language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL';
|
|
343
380
|
|
|
344
381
|
/**
|
|
345
|
-
*
|
|
382
|
+
* How reliable the persona's memory is
|
|
346
383
|
*/
|
|
347
|
-
memoryReliability:
|
|
384
|
+
memoryReliability: 'HIGH' | 'LOW';
|
|
348
385
|
|
|
349
386
|
/**
|
|
350
|
-
*
|
|
387
|
+
* The name the agent will identify as during conversations
|
|
351
388
|
*/
|
|
352
389
|
name: string;
|
|
353
390
|
|
|
354
391
|
/**
|
|
355
|
-
*
|
|
392
|
+
* Additional custom properties about the persona
|
|
393
|
+
*/
|
|
394
|
+
properties: { [key: string]: unknown };
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Speech clarity of the persona
|
|
398
|
+
*/
|
|
399
|
+
speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Speech pace of the persona
|
|
403
|
+
*/
|
|
404
|
+
speechPace: 'SLOW' | 'NORMAL' | 'FAST';
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Last update timestamp
|
|
408
|
+
*/
|
|
409
|
+
updatedAt: string;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Background story and behavioral patterns for the persona
|
|
356
413
|
*/
|
|
357
|
-
|
|
414
|
+
backstoryPrompt?: string | null;
|
|
358
415
|
|
|
359
416
|
/**
|
|
360
|
-
*
|
|
417
|
+
* Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
|
|
361
418
|
*/
|
|
362
|
-
|
|
419
|
+
secondaryLanguage?: 'EN' | null;
|
|
363
420
|
}
|
|
364
421
|
|
|
365
422
|
/**
|
|
366
|
-
* Scenario used in
|
|
423
|
+
* Scenario used in a simulation
|
|
367
424
|
*/
|
|
368
425
|
export interface Scenario {
|
|
369
426
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.10.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|