@roarkanalytics/sdk 8.0.1 → 9.1.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 +28 -0
- package/client.d.mts +7 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -7
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +0 -88
- package/resources/agent-connection.d.mts.map +1 -1
- package/resources/agent-connection.d.ts +0 -88
- package/resources/agent-connection.d.ts.map +1 -1
- package/resources/agent.d.mts +2 -200
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +2 -200
- package/resources/agent.d.ts.map +1 -1
- package/resources/config.d.mts +6 -6
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +6 -6
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +6 -95
- package/resources/conversation.d.mts.map +1 -1
- package/resources/conversation.d.ts +6 -95
- package/resources/conversation.d.ts.map +1 -1
- package/resources/conversation.js +5 -17
- package/resources/conversation.js.map +1 -1
- package/resources/conversation.mjs +5 -17
- package/resources/conversation.mjs.map +1 -1
- package/resources/customer-flow-folder.d.mts +157 -0
- package/resources/customer-flow-folder.d.mts.map +1 -0
- package/resources/customer-flow-folder.d.ts +157 -0
- package/resources/customer-flow-folder.d.ts.map +1 -0
- package/resources/customer-flow-folder.js +54 -0
- package/resources/customer-flow-folder.js.map +1 -0
- package/resources/customer-flow-folder.mjs +50 -0
- package/resources/customer-flow-folder.mjs.map +1 -0
- package/resources/customer-flow.d.mts +558 -2
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +558 -2
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +2 -2
- package/resources/customer-flow.mjs +2 -2
- package/resources/dashboard.d.mts +3 -3
- package/resources/dashboard.d.ts +3 -3
- package/resources/dashboard.js +3 -3
- package/resources/dashboard.mjs +3 -3
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/live-report.d.mts +10 -10
- package/resources/live-report.d.ts +10 -10
- package/resources/me.d.mts +20 -19
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +20 -19
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +14 -13
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +14 -13
- package/resources/me.mjs.map +1 -1
- package/resources/metric.d.mts +60 -60
- package/resources/metric.d.ts +60 -60
- package/resources/simulation-group.d.mts +13 -13
- package/resources/simulation-group.d.ts +13 -13
- package/resources/simulation-group.js +5 -5
- package/resources/simulation-group.mjs +5 -5
- package/resources/simulation-run-group.d.mts +2 -2
- package/resources/simulation-run-group.d.ts +2 -2
- package/resources/simulation-run-group.js +2 -2
- package/resources/simulation-run-group.mjs +2 -2
- package/resources/simulation.d.mts +1086 -4
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +1086 -4
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +106 -0
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +106 -0
- package/resources/simulation.mjs.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 +39 -43
- package/src/resources/agent-connection.ts +0 -103
- package/src/resources/agent.ts +2 -317
- package/src/resources/config.ts +12 -12
- package/src/resources/conversation.ts +6 -126
- package/src/resources/customer-flow-folder.ts +235 -0
- package/src/resources/customer-flow.ts +862 -2
- package/src/resources/dashboard.ts +3 -3
- package/src/resources/index.ts +18 -20
- package/src/resources/live-report.ts +10 -10
- package/src/resources/me.ts +20 -19
- package/src/resources/metric.ts +60 -60
- package/src/resources/simulation-group.ts +13 -13
- package/src/resources/simulation-run-group.ts +2 -2
- package/src/resources/simulation.ts +1759 -52
- package/src/resources/webhook.ts +8 -8
- 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
- package/resources/agent-setup.d.mts +0 -1057
- package/resources/agent-setup.d.mts.map +0 -1
- package/resources/agent-setup.d.ts +0 -1057
- package/resources/agent-setup.d.ts.map +0 -1
- package/resources/agent-setup.js +0 -113
- package/resources/agent-setup.js.map +0 -1
- package/resources/agent-setup.mjs +0 -109
- package/resources/agent-setup.mjs.map +0 -1
- package/src/resources/agent-setup.ts +0 -1685
|
@@ -3,8 +3,140 @@
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
export class Simulation extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Answers the question a simulation resource generation is waiting on (status
|
|
11
|
+
* NEEDS_INPUT). If nobody answers within 15 minutes, it goes ahead with its
|
|
12
|
+
* default.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response =
|
|
17
|
+
* await client.simulation.answerResourceGeneration(
|
|
18
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
19
|
+
* { text: 'x' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
answerResourceGeneration(
|
|
24
|
+
generationID: string,
|
|
25
|
+
body: SimulationAnswerResourceGenerationParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<SimulationAnswerResourceGenerationResponse> {
|
|
28
|
+
return this._client.post(path`/v1/simulation/generations/resources/${generationID}/answer`, {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Stops a running simulation resource generation. Flows and metrics it already
|
|
36
|
+
* created are kept; no run plan is made. Refused once the generation has finished.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const response =
|
|
41
|
+
* await client.simulation.cancelResourceGeneration(
|
|
42
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
cancelResourceGeneration(
|
|
47
|
+
generationID: string,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<SimulationCancelResourceGenerationResponse> {
|
|
50
|
+
return this._client.post(path`/v1/simulation/generations/resources/${generationID}/cancel`, options);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Works out what to test for an existing agent, then creates the customer flows,
|
|
55
|
+
* metrics and checks to simulate it, and a run plan that runs them. It does not
|
|
56
|
+
* create or change the agent. Runs in the background: watch the
|
|
57
|
+
* `simulation.resource_generation.completed` webhook, or poll
|
|
58
|
+
* `GET /v1/simulation/generations/resources/{generationId}`. Takes one agent for
|
|
59
|
+
* now. Refused while another generation for the agent is running. Needs the
|
|
60
|
+
* 'simulation:create' and 'metric:create' permissions. Exploration also needs
|
|
61
|
+
* 'simulation:run', and is turned off for keys without it unless explore.enabled
|
|
62
|
+
* is set.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response = await client.simulation.generateResources({
|
|
67
|
+
* agentIds: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'],
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
generateResources(
|
|
72
|
+
body: SimulationGenerateResourcesParams,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<SimulationGenerateResourcesResponse> {
|
|
75
|
+
return this._client.post('/v1/simulation/generations/resources', { body, ...options });
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Returns one simulation resource generation, for example the one a webhook named.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response =
|
|
84
|
+
* await client.simulation.getResourceGeneration(
|
|
85
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
getResourceGeneration(
|
|
90
|
+
generationID: string,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): APIPromise<SimulationGetResourceGenerationResponse> {
|
|
93
|
+
return this._client.get(path`/v1/simulation/generations/resources/${generationID}`, options);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Tells a running simulation resource generation what to focus on or avoid, in
|
|
98
|
+
* your own words. It reads it on its next turn and it outranks its own plan.
|
|
99
|
+
* Refused once the generation has finished.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const response =
|
|
104
|
+
* await client.simulation.guideResourceGeneration(
|
|
105
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
106
|
+
* { text: 'x' },
|
|
107
|
+
* );
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
guideResourceGeneration(
|
|
111
|
+
generationID: string,
|
|
112
|
+
body: SimulationGuideResourceGenerationParams,
|
|
113
|
+
options?: RequestOptions,
|
|
114
|
+
): APIPromise<SimulationGuideResourceGenerationResponse> {
|
|
115
|
+
return this._client.post(path`/v1/simulation/generations/resources/${generationID}/guidance`, {
|
|
116
|
+
body,
|
|
117
|
+
...options,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Returns the project's simulation resource generations, newest first, optionally
|
|
123
|
+
* only for some agents: each one's progress, the run plan it created, and every
|
|
124
|
+
* flow, metric and check it added or left out, with the reason and the source it
|
|
125
|
+
* came from.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```ts
|
|
129
|
+
* const response =
|
|
130
|
+
* await client.simulation.listResourceGenerations();
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
listResourceGenerations(
|
|
134
|
+
query: SimulationListResourceGenerationsParams | null | undefined = {},
|
|
135
|
+
options?: RequestOptions,
|
|
136
|
+
): APIPromise<SimulationListResourceGenerationsResponse> {
|
|
137
|
+
return this._client.get('/v1/simulation/generations/resources', { query, ...options });
|
|
138
|
+
}
|
|
139
|
+
|
|
8
140
|
/**
|
|
9
141
|
* The server half of the tool guard for code-first agents. When a guarded tool
|
|
10
142
|
* fires during a Roark test call, send the invocation here instead of executing
|
|
@@ -67,102 +199,1667 @@ export class Simulation extends APIResource {
|
|
|
67
199
|
}
|
|
68
200
|
}
|
|
69
201
|
|
|
70
|
-
export interface
|
|
202
|
+
export interface SimulationAnswerResourceGenerationResponse {
|
|
71
203
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
204
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
205
|
+
* and run plan, and why
|
|
74
206
|
*/
|
|
75
|
-
data:
|
|
207
|
+
data: SimulationAnswerResourceGenerationResponse.Data;
|
|
76
208
|
}
|
|
77
209
|
|
|
78
|
-
export namespace
|
|
210
|
+
export namespace SimulationAnswerResourceGenerationResponse {
|
|
79
211
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
212
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
213
|
+
* and run plan, and why
|
|
82
214
|
*/
|
|
83
215
|
export interface Data {
|
|
84
216
|
/**
|
|
85
|
-
*
|
|
86
|
-
* ago and the stored response was returned, e.g. on a retry.
|
|
217
|
+
* Simulation resource generation ID
|
|
87
218
|
*/
|
|
88
|
-
|
|
219
|
+
id: string;
|
|
89
220
|
|
|
90
|
-
|
|
221
|
+
/**
|
|
222
|
+
* What the generation did and said, in order
|
|
223
|
+
*/
|
|
224
|
+
activity: Array<Data.Activity>;
|
|
91
225
|
|
|
92
226
|
/**
|
|
93
|
-
*
|
|
94
|
-
* response you configured answered.
|
|
227
|
+
* The agents the inputs were generated for
|
|
95
228
|
*/
|
|
96
|
-
|
|
229
|
+
agentIds: Array<string>;
|
|
230
|
+
|
|
231
|
+
capabilities: Array<
|
|
232
|
+
| 'APPOINTMENT_BOOKING'
|
|
233
|
+
| 'FAQ'
|
|
234
|
+
| 'IDENTITY_VERIFICATION'
|
|
235
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
236
|
+
| 'BILLING_AND_PAYMENTS'
|
|
237
|
+
| 'ORDER_MANAGEMENT'
|
|
238
|
+
| 'TROUBLESHOOTING'
|
|
239
|
+
| 'CALL_ROUTING'
|
|
240
|
+
| 'LEAD_QUALIFICATION'
|
|
241
|
+
| 'COLLECTIONS'
|
|
242
|
+
| 'OUTBOUND_CALLING'
|
|
243
|
+
>;
|
|
244
|
+
|
|
245
|
+
completedAt: string | null;
|
|
97
246
|
|
|
98
|
-
|
|
247
|
+
createdAt: string;
|
|
248
|
+
|
|
249
|
+
errorMessage: string | null;
|
|
250
|
+
|
|
251
|
+
explore: Data.Explore;
|
|
252
|
+
|
|
253
|
+
industry:
|
|
254
|
+
| 'HEALTHCARE'
|
|
255
|
+
| 'FINANCIAL_SERVICES'
|
|
256
|
+
| 'INSURANCE'
|
|
257
|
+
| 'DEBT_COLLECTION'
|
|
258
|
+
| 'RETAIL'
|
|
259
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
260
|
+
| 'TELECOMMUNICATIONS'
|
|
261
|
+
| 'TECHNOLOGY'
|
|
262
|
+
| 'PUBLIC_SECTOR'
|
|
263
|
+
| 'UTILITIES'
|
|
264
|
+
| 'LOGISTICS'
|
|
265
|
+
| 'AUTOMOTIVE'
|
|
266
|
+
| 'HOME_SERVICES'
|
|
267
|
+
| 'RESTAURANTS'
|
|
268
|
+
| 'EDUCATION'
|
|
269
|
+
| 'OTHER'
|
|
270
|
+
| null;
|
|
271
|
+
|
|
272
|
+
items: Array<Data.Item>;
|
|
99
273
|
|
|
100
274
|
/**
|
|
101
|
-
* The
|
|
102
|
-
* with the test scenario and with earlier mocked responses in the same call.
|
|
103
|
-
* Return this from your tool instead of executing it.
|
|
275
|
+
* The checklist the generation works through
|
|
104
276
|
*/
|
|
105
|
-
|
|
277
|
+
layers: Array<Data.Layer>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
281
|
+
*/
|
|
282
|
+
question: Data.Question | null;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* The run plan to start once the generation completes
|
|
286
|
+
*/
|
|
287
|
+
runPlanId: string | null;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
291
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
292
|
+
*/
|
|
293
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Test data the agent asked for that Roark did not have
|
|
297
|
+
*/
|
|
298
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export namespace Data {
|
|
302
|
+
/**
|
|
303
|
+
* One thing the generation did or said, in order
|
|
304
|
+
*/
|
|
305
|
+
export interface Activity {
|
|
306
|
+
createdAt: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
310
|
+
*/
|
|
311
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
312
|
+
|
|
313
|
+
text: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface Explore {
|
|
317
|
+
conversationsUsed: number;
|
|
318
|
+
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
|
|
321
|
+
maxConversationMinutes: number;
|
|
322
|
+
|
|
323
|
+
maxConversations: number;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Something the generation created or chose to leave out, and why
|
|
328
|
+
*/
|
|
329
|
+
export interface Item {
|
|
330
|
+
id: string;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* CREATED, or SKIPPED with the reason
|
|
334
|
+
*/
|
|
335
|
+
action: 'CREATED' | 'SKIPPED';
|
|
336
|
+
|
|
337
|
+
capability:
|
|
338
|
+
| 'APPOINTMENT_BOOKING'
|
|
339
|
+
| 'FAQ'
|
|
340
|
+
| 'IDENTITY_VERIFICATION'
|
|
341
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
342
|
+
| 'BILLING_AND_PAYMENTS'
|
|
343
|
+
| 'ORDER_MANAGEMENT'
|
|
344
|
+
| 'TROUBLESHOOTING'
|
|
345
|
+
| 'CALL_ROUTING'
|
|
346
|
+
| 'LEAD_QUALIFICATION'
|
|
347
|
+
| 'COLLECTIONS'
|
|
348
|
+
| 'OUTBOUND_CALLING'
|
|
349
|
+
| null;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* A flow, a metric, or a pass or fail check
|
|
353
|
+
*/
|
|
354
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
355
|
+
|
|
356
|
+
label: string;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
360
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
361
|
+
*/
|
|
362
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
366
|
+
* offered
|
|
367
|
+
*/
|
|
368
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
369
|
+
|
|
370
|
+
reason: string;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The flow or metric it created
|
|
374
|
+
*/
|
|
375
|
+
resourceId: string | null;
|
|
376
|
+
|
|
377
|
+
source: Item.Source;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export namespace Item {
|
|
381
|
+
export interface Source {
|
|
382
|
+
/**
|
|
383
|
+
* The exploration call it came from
|
|
384
|
+
*/
|
|
385
|
+
callId: string | null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Where in the call
|
|
389
|
+
*/
|
|
390
|
+
offsetMs: number | null;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The words in the source that led to it
|
|
394
|
+
*/
|
|
395
|
+
quote: string | null;
|
|
396
|
+
|
|
397
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The page it came from, for website sources
|
|
401
|
+
*/
|
|
402
|
+
url: string | null;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Where one part of testing the agent stands
|
|
408
|
+
*/
|
|
409
|
+
export interface Layer {
|
|
410
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
414
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
415
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
416
|
+
* test it from.
|
|
417
|
+
*/
|
|
418
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
419
|
+
|
|
420
|
+
summary: string;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
425
|
+
*/
|
|
426
|
+
export interface Question {
|
|
427
|
+
defaultOption: string;
|
|
428
|
+
|
|
429
|
+
options: Array<string>;
|
|
430
|
+
|
|
431
|
+
question: string;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export interface TestDataNeeded {
|
|
435
|
+
callId: string | null;
|
|
436
|
+
|
|
437
|
+
label: string;
|
|
438
|
+
|
|
439
|
+
reason: string;
|
|
440
|
+
}
|
|
106
441
|
}
|
|
107
442
|
}
|
|
108
443
|
|
|
109
|
-
export interface
|
|
444
|
+
export interface SimulationCancelResourceGenerationResponse {
|
|
110
445
|
/**
|
|
111
|
-
*
|
|
446
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
447
|
+
* and run plan, and why
|
|
112
448
|
*/
|
|
113
|
-
data:
|
|
449
|
+
data: SimulationCancelResourceGenerationResponse.Data;
|
|
114
450
|
}
|
|
115
451
|
|
|
116
|
-
export namespace
|
|
452
|
+
export namespace SimulationCancelResourceGenerationResponse {
|
|
117
453
|
/**
|
|
118
|
-
*
|
|
454
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
455
|
+
* and run plan, and why
|
|
119
456
|
*/
|
|
120
457
|
export interface Data {
|
|
121
458
|
/**
|
|
122
|
-
*
|
|
459
|
+
* Simulation resource generation ID
|
|
460
|
+
*/
|
|
461
|
+
id: string;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* What the generation did and said, in order
|
|
465
|
+
*/
|
|
466
|
+
activity: Array<Data.Activity>;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* The agents the inputs were generated for
|
|
123
470
|
*/
|
|
471
|
+
agentIds: Array<string>;
|
|
472
|
+
|
|
473
|
+
capabilities: Array<
|
|
474
|
+
| 'APPOINTMENT_BOOKING'
|
|
475
|
+
| 'FAQ'
|
|
476
|
+
| 'IDENTITY_VERIFICATION'
|
|
477
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
478
|
+
| 'BILLING_AND_PAYMENTS'
|
|
479
|
+
| 'ORDER_MANAGEMENT'
|
|
480
|
+
| 'TROUBLESHOOTING'
|
|
481
|
+
| 'CALL_ROUTING'
|
|
482
|
+
| 'LEAD_QUALIFICATION'
|
|
483
|
+
| 'COLLECTIONS'
|
|
484
|
+
| 'OUTBOUND_CALLING'
|
|
485
|
+
>;
|
|
486
|
+
|
|
487
|
+
completedAt: string | null;
|
|
488
|
+
|
|
124
489
|
createdAt: string;
|
|
125
490
|
|
|
491
|
+
errorMessage: string | null;
|
|
492
|
+
|
|
493
|
+
explore: Data.Explore;
|
|
494
|
+
|
|
495
|
+
industry:
|
|
496
|
+
| 'HEALTHCARE'
|
|
497
|
+
| 'FINANCIAL_SERVICES'
|
|
498
|
+
| 'INSURANCE'
|
|
499
|
+
| 'DEBT_COLLECTION'
|
|
500
|
+
| 'RETAIL'
|
|
501
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
502
|
+
| 'TELECOMMUNICATIONS'
|
|
503
|
+
| 'TECHNOLOGY'
|
|
504
|
+
| 'PUBLIC_SECTOR'
|
|
505
|
+
| 'UTILITIES'
|
|
506
|
+
| 'LOGISTICS'
|
|
507
|
+
| 'AUTOMOTIVE'
|
|
508
|
+
| 'HOME_SERVICES'
|
|
509
|
+
| 'RESTAURANTS'
|
|
510
|
+
| 'EDUCATION'
|
|
511
|
+
| 'OTHER'
|
|
512
|
+
| null;
|
|
513
|
+
|
|
514
|
+
items: Array<Data.Item>;
|
|
515
|
+
|
|
126
516
|
/**
|
|
127
|
-
*
|
|
128
|
-
* run, whose plan is hidden.
|
|
517
|
+
* The checklist the generation works through
|
|
129
518
|
*/
|
|
130
|
-
|
|
519
|
+
layers: Array<Data.Layer>;
|
|
131
520
|
|
|
132
521
|
/**
|
|
133
|
-
*
|
|
522
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
134
523
|
*/
|
|
135
|
-
|
|
524
|
+
question: Data.Question | null;
|
|
136
525
|
|
|
137
526
|
/**
|
|
138
|
-
* The run plan
|
|
139
|
-
* as `planId` to run the same configuration again.
|
|
527
|
+
* The run plan to start once the generation completes
|
|
140
528
|
*/
|
|
141
|
-
|
|
529
|
+
runPlanId: string | null;
|
|
142
530
|
|
|
143
531
|
/**
|
|
144
|
-
*
|
|
532
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
533
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
145
534
|
*/
|
|
146
|
-
|
|
535
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
147
536
|
|
|
148
537
|
/**
|
|
149
|
-
*
|
|
150
|
-
* another job of its is still active.
|
|
538
|
+
* Test data the agent asked for that Roark did not have
|
|
151
539
|
*/
|
|
152
|
-
|
|
153
|
-
| 'PENDING'
|
|
154
|
-
| 'QUEUED'
|
|
155
|
-
| 'CREATING_SNAPSHOTS'
|
|
156
|
-
| 'CREATING_SIMULATIONS'
|
|
157
|
-
| 'PREPARING_CAPACITY'
|
|
158
|
-
| 'RUNNING_SIMULATIONS'
|
|
159
|
-
| 'COMPLETED'
|
|
160
|
-
| 'FAILED'
|
|
161
|
-
| 'TIMED_OUT'
|
|
162
|
-
| 'CANCELLED'
|
|
163
|
-
| 'CANCELLING'
|
|
164
|
-
| 'ENDING_SIMULATIONS';
|
|
540
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
165
541
|
}
|
|
542
|
+
|
|
543
|
+
export namespace Data {
|
|
544
|
+
/**
|
|
545
|
+
* One thing the generation did or said, in order
|
|
546
|
+
*/
|
|
547
|
+
export interface Activity {
|
|
548
|
+
createdAt: string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
552
|
+
*/
|
|
553
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
554
|
+
|
|
555
|
+
text: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface Explore {
|
|
559
|
+
conversationsUsed: number;
|
|
560
|
+
|
|
561
|
+
enabled: boolean;
|
|
562
|
+
|
|
563
|
+
maxConversationMinutes: number;
|
|
564
|
+
|
|
565
|
+
maxConversations: number;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Something the generation created or chose to leave out, and why
|
|
570
|
+
*/
|
|
571
|
+
export interface Item {
|
|
572
|
+
id: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* CREATED, or SKIPPED with the reason
|
|
576
|
+
*/
|
|
577
|
+
action: 'CREATED' | 'SKIPPED';
|
|
578
|
+
|
|
579
|
+
capability:
|
|
580
|
+
| 'APPOINTMENT_BOOKING'
|
|
581
|
+
| 'FAQ'
|
|
582
|
+
| 'IDENTITY_VERIFICATION'
|
|
583
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
584
|
+
| 'BILLING_AND_PAYMENTS'
|
|
585
|
+
| 'ORDER_MANAGEMENT'
|
|
586
|
+
| 'TROUBLESHOOTING'
|
|
587
|
+
| 'CALL_ROUTING'
|
|
588
|
+
| 'LEAD_QUALIFICATION'
|
|
589
|
+
| 'COLLECTIONS'
|
|
590
|
+
| 'OUTBOUND_CALLING'
|
|
591
|
+
| null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* A flow, a metric, or a pass or fail check
|
|
595
|
+
*/
|
|
596
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
597
|
+
|
|
598
|
+
label: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
602
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
603
|
+
*/
|
|
604
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
608
|
+
* offered
|
|
609
|
+
*/
|
|
610
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
611
|
+
|
|
612
|
+
reason: string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* The flow or metric it created
|
|
616
|
+
*/
|
|
617
|
+
resourceId: string | null;
|
|
618
|
+
|
|
619
|
+
source: Item.Source;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export namespace Item {
|
|
623
|
+
export interface Source {
|
|
624
|
+
/**
|
|
625
|
+
* The exploration call it came from
|
|
626
|
+
*/
|
|
627
|
+
callId: string | null;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Where in the call
|
|
631
|
+
*/
|
|
632
|
+
offsetMs: number | null;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* The words in the source that led to it
|
|
636
|
+
*/
|
|
637
|
+
quote: string | null;
|
|
638
|
+
|
|
639
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* The page it came from, for website sources
|
|
643
|
+
*/
|
|
644
|
+
url: string | null;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Where one part of testing the agent stands
|
|
650
|
+
*/
|
|
651
|
+
export interface Layer {
|
|
652
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
656
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
657
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
658
|
+
* test it from.
|
|
659
|
+
*/
|
|
660
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
661
|
+
|
|
662
|
+
summary: string;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
667
|
+
*/
|
|
668
|
+
export interface Question {
|
|
669
|
+
defaultOption: string;
|
|
670
|
+
|
|
671
|
+
options: Array<string>;
|
|
672
|
+
|
|
673
|
+
question: string;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
export interface TestDataNeeded {
|
|
677
|
+
callId: string | null;
|
|
678
|
+
|
|
679
|
+
label: string;
|
|
680
|
+
|
|
681
|
+
reason: string;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export interface SimulationGenerateResourcesResponse {
|
|
687
|
+
/**
|
|
688
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
689
|
+
* and run plan, and why
|
|
690
|
+
*/
|
|
691
|
+
data: SimulationGenerateResourcesResponse.Data;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export namespace SimulationGenerateResourcesResponse {
|
|
695
|
+
/**
|
|
696
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
697
|
+
* and run plan, and why
|
|
698
|
+
*/
|
|
699
|
+
export interface Data {
|
|
700
|
+
/**
|
|
701
|
+
* Simulation resource generation ID
|
|
702
|
+
*/
|
|
703
|
+
id: string;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* What the generation did and said, in order
|
|
707
|
+
*/
|
|
708
|
+
activity: Array<Data.Activity>;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* The agents the inputs were generated for
|
|
712
|
+
*/
|
|
713
|
+
agentIds: Array<string>;
|
|
714
|
+
|
|
715
|
+
capabilities: Array<
|
|
716
|
+
| 'APPOINTMENT_BOOKING'
|
|
717
|
+
| 'FAQ'
|
|
718
|
+
| 'IDENTITY_VERIFICATION'
|
|
719
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
720
|
+
| 'BILLING_AND_PAYMENTS'
|
|
721
|
+
| 'ORDER_MANAGEMENT'
|
|
722
|
+
| 'TROUBLESHOOTING'
|
|
723
|
+
| 'CALL_ROUTING'
|
|
724
|
+
| 'LEAD_QUALIFICATION'
|
|
725
|
+
| 'COLLECTIONS'
|
|
726
|
+
| 'OUTBOUND_CALLING'
|
|
727
|
+
>;
|
|
728
|
+
|
|
729
|
+
completedAt: string | null;
|
|
730
|
+
|
|
731
|
+
createdAt: string;
|
|
732
|
+
|
|
733
|
+
errorMessage: string | null;
|
|
734
|
+
|
|
735
|
+
explore: Data.Explore;
|
|
736
|
+
|
|
737
|
+
industry:
|
|
738
|
+
| 'HEALTHCARE'
|
|
739
|
+
| 'FINANCIAL_SERVICES'
|
|
740
|
+
| 'INSURANCE'
|
|
741
|
+
| 'DEBT_COLLECTION'
|
|
742
|
+
| 'RETAIL'
|
|
743
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
744
|
+
| 'TELECOMMUNICATIONS'
|
|
745
|
+
| 'TECHNOLOGY'
|
|
746
|
+
| 'PUBLIC_SECTOR'
|
|
747
|
+
| 'UTILITIES'
|
|
748
|
+
| 'LOGISTICS'
|
|
749
|
+
| 'AUTOMOTIVE'
|
|
750
|
+
| 'HOME_SERVICES'
|
|
751
|
+
| 'RESTAURANTS'
|
|
752
|
+
| 'EDUCATION'
|
|
753
|
+
| 'OTHER'
|
|
754
|
+
| null;
|
|
755
|
+
|
|
756
|
+
items: Array<Data.Item>;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* The checklist the generation works through
|
|
760
|
+
*/
|
|
761
|
+
layers: Array<Data.Layer>;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
765
|
+
*/
|
|
766
|
+
question: Data.Question | null;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* The run plan to start once the generation completes
|
|
770
|
+
*/
|
|
771
|
+
runPlanId: string | null;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
775
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
776
|
+
*/
|
|
777
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Test data the agent asked for that Roark did not have
|
|
781
|
+
*/
|
|
782
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export namespace Data {
|
|
786
|
+
/**
|
|
787
|
+
* One thing the generation did or said, in order
|
|
788
|
+
*/
|
|
789
|
+
export interface Activity {
|
|
790
|
+
createdAt: string;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
794
|
+
*/
|
|
795
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
796
|
+
|
|
797
|
+
text: string;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface Explore {
|
|
801
|
+
conversationsUsed: number;
|
|
802
|
+
|
|
803
|
+
enabled: boolean;
|
|
804
|
+
|
|
805
|
+
maxConversationMinutes: number;
|
|
806
|
+
|
|
807
|
+
maxConversations: number;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Something the generation created or chose to leave out, and why
|
|
812
|
+
*/
|
|
813
|
+
export interface Item {
|
|
814
|
+
id: string;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* CREATED, or SKIPPED with the reason
|
|
818
|
+
*/
|
|
819
|
+
action: 'CREATED' | 'SKIPPED';
|
|
820
|
+
|
|
821
|
+
capability:
|
|
822
|
+
| 'APPOINTMENT_BOOKING'
|
|
823
|
+
| 'FAQ'
|
|
824
|
+
| 'IDENTITY_VERIFICATION'
|
|
825
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
826
|
+
| 'BILLING_AND_PAYMENTS'
|
|
827
|
+
| 'ORDER_MANAGEMENT'
|
|
828
|
+
| 'TROUBLESHOOTING'
|
|
829
|
+
| 'CALL_ROUTING'
|
|
830
|
+
| 'LEAD_QUALIFICATION'
|
|
831
|
+
| 'COLLECTIONS'
|
|
832
|
+
| 'OUTBOUND_CALLING'
|
|
833
|
+
| null;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* A flow, a metric, or a pass or fail check
|
|
837
|
+
*/
|
|
838
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
839
|
+
|
|
840
|
+
label: string;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
844
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
845
|
+
*/
|
|
846
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
850
|
+
* offered
|
|
851
|
+
*/
|
|
852
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
853
|
+
|
|
854
|
+
reason: string;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* The flow or metric it created
|
|
858
|
+
*/
|
|
859
|
+
resourceId: string | null;
|
|
860
|
+
|
|
861
|
+
source: Item.Source;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export namespace Item {
|
|
865
|
+
export interface Source {
|
|
866
|
+
/**
|
|
867
|
+
* The exploration call it came from
|
|
868
|
+
*/
|
|
869
|
+
callId: string | null;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Where in the call
|
|
873
|
+
*/
|
|
874
|
+
offsetMs: number | null;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* The words in the source that led to it
|
|
878
|
+
*/
|
|
879
|
+
quote: string | null;
|
|
880
|
+
|
|
881
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* The page it came from, for website sources
|
|
885
|
+
*/
|
|
886
|
+
url: string | null;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Where one part of testing the agent stands
|
|
892
|
+
*/
|
|
893
|
+
export interface Layer {
|
|
894
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
898
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
899
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
900
|
+
* test it from.
|
|
901
|
+
*/
|
|
902
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
903
|
+
|
|
904
|
+
summary: string;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
909
|
+
*/
|
|
910
|
+
export interface Question {
|
|
911
|
+
defaultOption: string;
|
|
912
|
+
|
|
913
|
+
options: Array<string>;
|
|
914
|
+
|
|
915
|
+
question: string;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export interface TestDataNeeded {
|
|
919
|
+
callId: string | null;
|
|
920
|
+
|
|
921
|
+
label: string;
|
|
922
|
+
|
|
923
|
+
reason: string;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export interface SimulationGetResourceGenerationResponse {
|
|
929
|
+
/**
|
|
930
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
931
|
+
* and run plan, and why
|
|
932
|
+
*/
|
|
933
|
+
data: SimulationGetResourceGenerationResponse.Data;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export namespace SimulationGetResourceGenerationResponse {
|
|
937
|
+
/**
|
|
938
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
939
|
+
* and run plan, and why
|
|
940
|
+
*/
|
|
941
|
+
export interface Data {
|
|
942
|
+
/**
|
|
943
|
+
* Simulation resource generation ID
|
|
944
|
+
*/
|
|
945
|
+
id: string;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* What the generation did and said, in order
|
|
949
|
+
*/
|
|
950
|
+
activity: Array<Data.Activity>;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* The agents the inputs were generated for
|
|
954
|
+
*/
|
|
955
|
+
agentIds: Array<string>;
|
|
956
|
+
|
|
957
|
+
capabilities: Array<
|
|
958
|
+
| 'APPOINTMENT_BOOKING'
|
|
959
|
+
| 'FAQ'
|
|
960
|
+
| 'IDENTITY_VERIFICATION'
|
|
961
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
962
|
+
| 'BILLING_AND_PAYMENTS'
|
|
963
|
+
| 'ORDER_MANAGEMENT'
|
|
964
|
+
| 'TROUBLESHOOTING'
|
|
965
|
+
| 'CALL_ROUTING'
|
|
966
|
+
| 'LEAD_QUALIFICATION'
|
|
967
|
+
| 'COLLECTIONS'
|
|
968
|
+
| 'OUTBOUND_CALLING'
|
|
969
|
+
>;
|
|
970
|
+
|
|
971
|
+
completedAt: string | null;
|
|
972
|
+
|
|
973
|
+
createdAt: string;
|
|
974
|
+
|
|
975
|
+
errorMessage: string | null;
|
|
976
|
+
|
|
977
|
+
explore: Data.Explore;
|
|
978
|
+
|
|
979
|
+
industry:
|
|
980
|
+
| 'HEALTHCARE'
|
|
981
|
+
| 'FINANCIAL_SERVICES'
|
|
982
|
+
| 'INSURANCE'
|
|
983
|
+
| 'DEBT_COLLECTION'
|
|
984
|
+
| 'RETAIL'
|
|
985
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
986
|
+
| 'TELECOMMUNICATIONS'
|
|
987
|
+
| 'TECHNOLOGY'
|
|
988
|
+
| 'PUBLIC_SECTOR'
|
|
989
|
+
| 'UTILITIES'
|
|
990
|
+
| 'LOGISTICS'
|
|
991
|
+
| 'AUTOMOTIVE'
|
|
992
|
+
| 'HOME_SERVICES'
|
|
993
|
+
| 'RESTAURANTS'
|
|
994
|
+
| 'EDUCATION'
|
|
995
|
+
| 'OTHER'
|
|
996
|
+
| null;
|
|
997
|
+
|
|
998
|
+
items: Array<Data.Item>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* The checklist the generation works through
|
|
1002
|
+
*/
|
|
1003
|
+
layers: Array<Data.Layer>;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1007
|
+
*/
|
|
1008
|
+
question: Data.Question | null;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* The run plan to start once the generation completes
|
|
1012
|
+
*/
|
|
1013
|
+
runPlanId: string | null;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
1017
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
1018
|
+
*/
|
|
1019
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Test data the agent asked for that Roark did not have
|
|
1023
|
+
*/
|
|
1024
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export namespace Data {
|
|
1028
|
+
/**
|
|
1029
|
+
* One thing the generation did or said, in order
|
|
1030
|
+
*/
|
|
1031
|
+
export interface Activity {
|
|
1032
|
+
createdAt: string;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
1036
|
+
*/
|
|
1037
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
1038
|
+
|
|
1039
|
+
text: string;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export interface Explore {
|
|
1043
|
+
conversationsUsed: number;
|
|
1044
|
+
|
|
1045
|
+
enabled: boolean;
|
|
1046
|
+
|
|
1047
|
+
maxConversationMinutes: number;
|
|
1048
|
+
|
|
1049
|
+
maxConversations: number;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Something the generation created or chose to leave out, and why
|
|
1054
|
+
*/
|
|
1055
|
+
export interface Item {
|
|
1056
|
+
id: string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* CREATED, or SKIPPED with the reason
|
|
1060
|
+
*/
|
|
1061
|
+
action: 'CREATED' | 'SKIPPED';
|
|
1062
|
+
|
|
1063
|
+
capability:
|
|
1064
|
+
| 'APPOINTMENT_BOOKING'
|
|
1065
|
+
| 'FAQ'
|
|
1066
|
+
| 'IDENTITY_VERIFICATION'
|
|
1067
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1068
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1069
|
+
| 'ORDER_MANAGEMENT'
|
|
1070
|
+
| 'TROUBLESHOOTING'
|
|
1071
|
+
| 'CALL_ROUTING'
|
|
1072
|
+
| 'LEAD_QUALIFICATION'
|
|
1073
|
+
| 'COLLECTIONS'
|
|
1074
|
+
| 'OUTBOUND_CALLING'
|
|
1075
|
+
| null;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* A flow, a metric, or a pass or fail check
|
|
1079
|
+
*/
|
|
1080
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
1081
|
+
|
|
1082
|
+
label: string;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
1086
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
1087
|
+
*/
|
|
1088
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
1092
|
+
* offered
|
|
1093
|
+
*/
|
|
1094
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
1095
|
+
|
|
1096
|
+
reason: string;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* The flow or metric it created
|
|
1100
|
+
*/
|
|
1101
|
+
resourceId: string | null;
|
|
1102
|
+
|
|
1103
|
+
source: Item.Source;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export namespace Item {
|
|
1107
|
+
export interface Source {
|
|
1108
|
+
/**
|
|
1109
|
+
* The exploration call it came from
|
|
1110
|
+
*/
|
|
1111
|
+
callId: string | null;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Where in the call
|
|
1115
|
+
*/
|
|
1116
|
+
offsetMs: number | null;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* The words in the source that led to it
|
|
1120
|
+
*/
|
|
1121
|
+
quote: string | null;
|
|
1122
|
+
|
|
1123
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* The page it came from, for website sources
|
|
1127
|
+
*/
|
|
1128
|
+
url: string | null;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Where one part of testing the agent stands
|
|
1134
|
+
*/
|
|
1135
|
+
export interface Layer {
|
|
1136
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
1140
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
1141
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
1142
|
+
* test it from.
|
|
1143
|
+
*/
|
|
1144
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
1145
|
+
|
|
1146
|
+
summary: string;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1151
|
+
*/
|
|
1152
|
+
export interface Question {
|
|
1153
|
+
defaultOption: string;
|
|
1154
|
+
|
|
1155
|
+
options: Array<string>;
|
|
1156
|
+
|
|
1157
|
+
question: string;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
export interface TestDataNeeded {
|
|
1161
|
+
callId: string | null;
|
|
1162
|
+
|
|
1163
|
+
label: string;
|
|
1164
|
+
|
|
1165
|
+
reason: string;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
export interface SimulationGuideResourceGenerationResponse {
|
|
1171
|
+
/**
|
|
1172
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
1173
|
+
* and run plan, and why
|
|
1174
|
+
*/
|
|
1175
|
+
data: SimulationGuideResourceGenerationResponse.Data;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
export namespace SimulationGuideResourceGenerationResponse {
|
|
1179
|
+
/**
|
|
1180
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
1181
|
+
* and run plan, and why
|
|
1182
|
+
*/
|
|
1183
|
+
export interface Data {
|
|
1184
|
+
/**
|
|
1185
|
+
* Simulation resource generation ID
|
|
1186
|
+
*/
|
|
1187
|
+
id: string;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* What the generation did and said, in order
|
|
1191
|
+
*/
|
|
1192
|
+
activity: Array<Data.Activity>;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* The agents the inputs were generated for
|
|
1196
|
+
*/
|
|
1197
|
+
agentIds: Array<string>;
|
|
1198
|
+
|
|
1199
|
+
capabilities: Array<
|
|
1200
|
+
| 'APPOINTMENT_BOOKING'
|
|
1201
|
+
| 'FAQ'
|
|
1202
|
+
| 'IDENTITY_VERIFICATION'
|
|
1203
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1204
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1205
|
+
| 'ORDER_MANAGEMENT'
|
|
1206
|
+
| 'TROUBLESHOOTING'
|
|
1207
|
+
| 'CALL_ROUTING'
|
|
1208
|
+
| 'LEAD_QUALIFICATION'
|
|
1209
|
+
| 'COLLECTIONS'
|
|
1210
|
+
| 'OUTBOUND_CALLING'
|
|
1211
|
+
>;
|
|
1212
|
+
|
|
1213
|
+
completedAt: string | null;
|
|
1214
|
+
|
|
1215
|
+
createdAt: string;
|
|
1216
|
+
|
|
1217
|
+
errorMessage: string | null;
|
|
1218
|
+
|
|
1219
|
+
explore: Data.Explore;
|
|
1220
|
+
|
|
1221
|
+
industry:
|
|
1222
|
+
| 'HEALTHCARE'
|
|
1223
|
+
| 'FINANCIAL_SERVICES'
|
|
1224
|
+
| 'INSURANCE'
|
|
1225
|
+
| 'DEBT_COLLECTION'
|
|
1226
|
+
| 'RETAIL'
|
|
1227
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
1228
|
+
| 'TELECOMMUNICATIONS'
|
|
1229
|
+
| 'TECHNOLOGY'
|
|
1230
|
+
| 'PUBLIC_SECTOR'
|
|
1231
|
+
| 'UTILITIES'
|
|
1232
|
+
| 'LOGISTICS'
|
|
1233
|
+
| 'AUTOMOTIVE'
|
|
1234
|
+
| 'HOME_SERVICES'
|
|
1235
|
+
| 'RESTAURANTS'
|
|
1236
|
+
| 'EDUCATION'
|
|
1237
|
+
| 'OTHER'
|
|
1238
|
+
| null;
|
|
1239
|
+
|
|
1240
|
+
items: Array<Data.Item>;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* The checklist the generation works through
|
|
1244
|
+
*/
|
|
1245
|
+
layers: Array<Data.Layer>;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1249
|
+
*/
|
|
1250
|
+
question: Data.Question | null;
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* The run plan to start once the generation completes
|
|
1254
|
+
*/
|
|
1255
|
+
runPlanId: string | null;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
1259
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
1260
|
+
*/
|
|
1261
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Test data the agent asked for that Roark did not have
|
|
1265
|
+
*/
|
|
1266
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export namespace Data {
|
|
1270
|
+
/**
|
|
1271
|
+
* One thing the generation did or said, in order
|
|
1272
|
+
*/
|
|
1273
|
+
export interface Activity {
|
|
1274
|
+
createdAt: string;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
1278
|
+
*/
|
|
1279
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
1280
|
+
|
|
1281
|
+
text: string;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export interface Explore {
|
|
1285
|
+
conversationsUsed: number;
|
|
1286
|
+
|
|
1287
|
+
enabled: boolean;
|
|
1288
|
+
|
|
1289
|
+
maxConversationMinutes: number;
|
|
1290
|
+
|
|
1291
|
+
maxConversations: number;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Something the generation created or chose to leave out, and why
|
|
1296
|
+
*/
|
|
1297
|
+
export interface Item {
|
|
1298
|
+
id: string;
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* CREATED, or SKIPPED with the reason
|
|
1302
|
+
*/
|
|
1303
|
+
action: 'CREATED' | 'SKIPPED';
|
|
1304
|
+
|
|
1305
|
+
capability:
|
|
1306
|
+
| 'APPOINTMENT_BOOKING'
|
|
1307
|
+
| 'FAQ'
|
|
1308
|
+
| 'IDENTITY_VERIFICATION'
|
|
1309
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1310
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1311
|
+
| 'ORDER_MANAGEMENT'
|
|
1312
|
+
| 'TROUBLESHOOTING'
|
|
1313
|
+
| 'CALL_ROUTING'
|
|
1314
|
+
| 'LEAD_QUALIFICATION'
|
|
1315
|
+
| 'COLLECTIONS'
|
|
1316
|
+
| 'OUTBOUND_CALLING'
|
|
1317
|
+
| null;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* A flow, a metric, or a pass or fail check
|
|
1321
|
+
*/
|
|
1322
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
1323
|
+
|
|
1324
|
+
label: string;
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
1328
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
1329
|
+
*/
|
|
1330
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
1334
|
+
* offered
|
|
1335
|
+
*/
|
|
1336
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
1337
|
+
|
|
1338
|
+
reason: string;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* The flow or metric it created
|
|
1342
|
+
*/
|
|
1343
|
+
resourceId: string | null;
|
|
1344
|
+
|
|
1345
|
+
source: Item.Source;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
export namespace Item {
|
|
1349
|
+
export interface Source {
|
|
1350
|
+
/**
|
|
1351
|
+
* The exploration call it came from
|
|
1352
|
+
*/
|
|
1353
|
+
callId: string | null;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Where in the call
|
|
1357
|
+
*/
|
|
1358
|
+
offsetMs: number | null;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* The words in the source that led to it
|
|
1362
|
+
*/
|
|
1363
|
+
quote: string | null;
|
|
1364
|
+
|
|
1365
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* The page it came from, for website sources
|
|
1369
|
+
*/
|
|
1370
|
+
url: string | null;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Where one part of testing the agent stands
|
|
1376
|
+
*/
|
|
1377
|
+
export interface Layer {
|
|
1378
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
1382
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
1383
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
1384
|
+
* test it from.
|
|
1385
|
+
*/
|
|
1386
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
1387
|
+
|
|
1388
|
+
summary: string;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1393
|
+
*/
|
|
1394
|
+
export interface Question {
|
|
1395
|
+
defaultOption: string;
|
|
1396
|
+
|
|
1397
|
+
options: Array<string>;
|
|
1398
|
+
|
|
1399
|
+
question: string;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
export interface TestDataNeeded {
|
|
1403
|
+
callId: string | null;
|
|
1404
|
+
|
|
1405
|
+
label: string;
|
|
1406
|
+
|
|
1407
|
+
reason: string;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
export interface SimulationListResourceGenerationsResponse {
|
|
1413
|
+
data: Array<SimulationListResourceGenerationsResponse.Data>;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
export namespace SimulationListResourceGenerationsResponse {
|
|
1417
|
+
/**
|
|
1418
|
+
* The simulation resources Roark generated for agents: the flows, metrics, checks
|
|
1419
|
+
* and run plan, and why
|
|
1420
|
+
*/
|
|
1421
|
+
export interface Data {
|
|
1422
|
+
/**
|
|
1423
|
+
* Simulation resource generation ID
|
|
1424
|
+
*/
|
|
1425
|
+
id: string;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* What the generation did and said, in order
|
|
1429
|
+
*/
|
|
1430
|
+
activity: Array<Data.Activity>;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* The agents the inputs were generated for
|
|
1434
|
+
*/
|
|
1435
|
+
agentIds: Array<string>;
|
|
1436
|
+
|
|
1437
|
+
capabilities: Array<
|
|
1438
|
+
| 'APPOINTMENT_BOOKING'
|
|
1439
|
+
| 'FAQ'
|
|
1440
|
+
| 'IDENTITY_VERIFICATION'
|
|
1441
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1442
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1443
|
+
| 'ORDER_MANAGEMENT'
|
|
1444
|
+
| 'TROUBLESHOOTING'
|
|
1445
|
+
| 'CALL_ROUTING'
|
|
1446
|
+
| 'LEAD_QUALIFICATION'
|
|
1447
|
+
| 'COLLECTIONS'
|
|
1448
|
+
| 'OUTBOUND_CALLING'
|
|
1449
|
+
>;
|
|
1450
|
+
|
|
1451
|
+
completedAt: string | null;
|
|
1452
|
+
|
|
1453
|
+
createdAt: string;
|
|
1454
|
+
|
|
1455
|
+
errorMessage: string | null;
|
|
1456
|
+
|
|
1457
|
+
explore: Data.Explore;
|
|
1458
|
+
|
|
1459
|
+
industry:
|
|
1460
|
+
| 'HEALTHCARE'
|
|
1461
|
+
| 'FINANCIAL_SERVICES'
|
|
1462
|
+
| 'INSURANCE'
|
|
1463
|
+
| 'DEBT_COLLECTION'
|
|
1464
|
+
| 'RETAIL'
|
|
1465
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
1466
|
+
| 'TELECOMMUNICATIONS'
|
|
1467
|
+
| 'TECHNOLOGY'
|
|
1468
|
+
| 'PUBLIC_SECTOR'
|
|
1469
|
+
| 'UTILITIES'
|
|
1470
|
+
| 'LOGISTICS'
|
|
1471
|
+
| 'AUTOMOTIVE'
|
|
1472
|
+
| 'HOME_SERVICES'
|
|
1473
|
+
| 'RESTAURANTS'
|
|
1474
|
+
| 'EDUCATION'
|
|
1475
|
+
| 'OTHER'
|
|
1476
|
+
| null;
|
|
1477
|
+
|
|
1478
|
+
items: Array<Data.Item>;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* The checklist the generation works through
|
|
1482
|
+
*/
|
|
1483
|
+
layers: Array<Data.Layer>;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1487
|
+
*/
|
|
1488
|
+
question: Data.Question | null;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* The run plan to start once the generation completes
|
|
1492
|
+
*/
|
|
1493
|
+
runPlanId: string | null;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
|
|
1497
|
+
* default if nobody answers), COMPLETED, FAILED or CANCELLED
|
|
1498
|
+
*/
|
|
1499
|
+
status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Test data the agent asked for that Roark did not have
|
|
1503
|
+
*/
|
|
1504
|
+
testDataNeeded: Array<Data.TestDataNeeded>;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
export namespace Data {
|
|
1508
|
+
/**
|
|
1509
|
+
* One thing the generation did or said, in order
|
|
1510
|
+
*/
|
|
1511
|
+
export interface Activity {
|
|
1512
|
+
createdAt: string;
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
|
|
1516
|
+
*/
|
|
1517
|
+
kind: 'STATUS' | 'REASONING' | 'ACTION' | 'GUIDANCE' | 'QUESTION' | 'ANSWER' | 'EXPLORATION' | 'ERROR';
|
|
1518
|
+
|
|
1519
|
+
text: string;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export interface Explore {
|
|
1523
|
+
conversationsUsed: number;
|
|
1524
|
+
|
|
1525
|
+
enabled: boolean;
|
|
1526
|
+
|
|
1527
|
+
maxConversationMinutes: number;
|
|
1528
|
+
|
|
1529
|
+
maxConversations: number;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Something the generation created or chose to leave out, and why
|
|
1534
|
+
*/
|
|
1535
|
+
export interface Item {
|
|
1536
|
+
id: string;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* CREATED, or SKIPPED with the reason
|
|
1540
|
+
*/
|
|
1541
|
+
action: 'CREATED' | 'SKIPPED';
|
|
1542
|
+
|
|
1543
|
+
capability:
|
|
1544
|
+
| 'APPOINTMENT_BOOKING'
|
|
1545
|
+
| 'FAQ'
|
|
1546
|
+
| 'IDENTITY_VERIFICATION'
|
|
1547
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1548
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1549
|
+
| 'ORDER_MANAGEMENT'
|
|
1550
|
+
| 'TROUBLESHOOTING'
|
|
1551
|
+
| 'CALL_ROUTING'
|
|
1552
|
+
| 'LEAD_QUALIFICATION'
|
|
1553
|
+
| 'COLLECTIONS'
|
|
1554
|
+
| 'OUTBOUND_CALLING'
|
|
1555
|
+
| null;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* A flow, a metric, or a pass or fail check
|
|
1559
|
+
*/
|
|
1560
|
+
kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
|
|
1561
|
+
|
|
1562
|
+
label: string;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
|
|
1566
|
+
* prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
|
|
1567
|
+
*/
|
|
1568
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
|
|
1572
|
+
* offered
|
|
1573
|
+
*/
|
|
1574
|
+
origin: 'DISCOVERED' | 'INFERRED' | null;
|
|
1575
|
+
|
|
1576
|
+
reason: string;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* The flow or metric it created
|
|
1580
|
+
*/
|
|
1581
|
+
resourceId: string | null;
|
|
1582
|
+
|
|
1583
|
+
source: Item.Source;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export namespace Item {
|
|
1587
|
+
export interface Source {
|
|
1588
|
+
/**
|
|
1589
|
+
* The exploration call it came from
|
|
1590
|
+
*/
|
|
1591
|
+
callId: string | null;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Where in the call
|
|
1595
|
+
*/
|
|
1596
|
+
offsetMs: number | null;
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* The words in the source that led to it
|
|
1600
|
+
*/
|
|
1601
|
+
quote: string | null;
|
|
1602
|
+
|
|
1603
|
+
type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* The page it came from, for website sources
|
|
1607
|
+
*/
|
|
1608
|
+
url: string | null;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Where one part of testing the agent stands
|
|
1614
|
+
*/
|
|
1615
|
+
export interface Layer {
|
|
1616
|
+
layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
|
|
1620
|
+
* the generation could not test it and said why. OPEN: not covered yet; the
|
|
1621
|
+
* generation does not finish while a layer is open. NOT_APPLICABLE: nothing to
|
|
1622
|
+
* test it from.
|
|
1623
|
+
*/
|
|
1624
|
+
status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
|
|
1625
|
+
|
|
1626
|
+
summary: string;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* The question the generation is waiting on, while NEEDS_INPUT
|
|
1631
|
+
*/
|
|
1632
|
+
export interface Question {
|
|
1633
|
+
defaultOption: string;
|
|
1634
|
+
|
|
1635
|
+
options: Array<string>;
|
|
1636
|
+
|
|
1637
|
+
question: string;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export interface TestDataNeeded {
|
|
1641
|
+
callId: string | null;
|
|
1642
|
+
|
|
1643
|
+
label: string;
|
|
1644
|
+
|
|
1645
|
+
reason: string;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export interface SimulationMockToolResponse {
|
|
1651
|
+
/**
|
|
1652
|
+
* A simulated backend response for a guarded tool during a Roark test call. The
|
|
1653
|
+
* real tool was not, and must not be, executed.
|
|
1654
|
+
*/
|
|
1655
|
+
data: SimulationMockToolResponse.Data;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
export namespace SimulationMockToolResponse {
|
|
1659
|
+
/**
|
|
1660
|
+
* A simulated backend response for a guarded tool during a Roark test call. The
|
|
1661
|
+
* real tool was not, and must not be, executed.
|
|
1662
|
+
*/
|
|
1663
|
+
export interface Data {
|
|
1664
|
+
/**
|
|
1665
|
+
* True when this exact invocation (same tool, same arguments) was answered moments
|
|
1666
|
+
* ago and the stored response was returned, e.g. on a retry.
|
|
1667
|
+
*/
|
|
1668
|
+
reused: boolean;
|
|
1669
|
+
|
|
1670
|
+
simulationJobId: string;
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* GENERATED = the scenario-aware model answered; FIXTURE = a pinned deterministic
|
|
1674
|
+
* response you configured answered.
|
|
1675
|
+
*/
|
|
1676
|
+
source: 'GENERATED' | 'FIXTURE';
|
|
1677
|
+
|
|
1678
|
+
toolName: string;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* The simulated tool response: valid JSON, shaped by the tool contract, consistent
|
|
1682
|
+
* with the test scenario and with earlier mocked responses in the same call.
|
|
1683
|
+
* Return this from your tool instead of executing it.
|
|
1684
|
+
*/
|
|
1685
|
+
result?: unknown;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
export interface SimulationRunResponse {
|
|
1690
|
+
/**
|
|
1691
|
+
* A started simulation run.
|
|
1692
|
+
*/
|
|
1693
|
+
data: SimulationRunResponse.Data;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
export namespace SimulationRunResponse {
|
|
1697
|
+
/**
|
|
1698
|
+
* A started simulation run.
|
|
1699
|
+
*/
|
|
1700
|
+
export interface Data {
|
|
1701
|
+
/**
|
|
1702
|
+
* When the run was created, ISO 8601.
|
|
1703
|
+
*/
|
|
1704
|
+
createdAt: string;
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Whether that plan is listed by GET /v1/simulation/plan. False for an unsaved
|
|
1708
|
+
* run, whose plan is hidden.
|
|
1709
|
+
*/
|
|
1710
|
+
savedAsPlan: boolean;
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* How many simulated calls this run places.
|
|
1714
|
+
*/
|
|
1715
|
+
simulationJobCount: number;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* The run plan behind this run, present whether or not it was saved. Pass it back
|
|
1719
|
+
* as `planId` to run the same configuration again.
|
|
1720
|
+
*/
|
|
1721
|
+
simulationRunPlanId: string;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* The run. Poll it with `GET /v1/simulation/plan/job/{jobId}`.
|
|
1725
|
+
*/
|
|
1726
|
+
simulationRunPlanJobId: string;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Initial status. PENDING normally, or QUEUED when the plan runs sequentially and
|
|
1730
|
+
* another job of its is still active.
|
|
1731
|
+
*/
|
|
1732
|
+
status:
|
|
1733
|
+
| 'PENDING'
|
|
1734
|
+
| 'QUEUED'
|
|
1735
|
+
| 'CREATING_SNAPSHOTS'
|
|
1736
|
+
| 'CREATING_SIMULATIONS'
|
|
1737
|
+
| 'PREPARING_CAPACITY'
|
|
1738
|
+
| 'RUNNING_SIMULATIONS'
|
|
1739
|
+
| 'COMPLETED'
|
|
1740
|
+
| 'FAILED'
|
|
1741
|
+
| 'TIMED_OUT'
|
|
1742
|
+
| 'CANCELLED'
|
|
1743
|
+
| 'CANCELLING'
|
|
1744
|
+
| 'ENDING_SIMULATIONS';
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export interface SimulationAnswerResourceGenerationParams {
|
|
1749
|
+
/**
|
|
1750
|
+
* What you want the generation to know
|
|
1751
|
+
*/
|
|
1752
|
+
text: string;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
export interface SimulationGenerateResourcesParams {
|
|
1756
|
+
/**
|
|
1757
|
+
* The agents to generate simulation resources for. One agent per generation for
|
|
1758
|
+
* now.
|
|
1759
|
+
*/
|
|
1760
|
+
agentIds: Array<string>;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* The endpoint the run plan calls. Defaults to the agent's newest endpoint.
|
|
1764
|
+
*/
|
|
1765
|
+
agentEndpointId?: string;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* The capabilities to test. Omit to let Roark work them out from the agent.
|
|
1769
|
+
*/
|
|
1770
|
+
capabilities?: Array<
|
|
1771
|
+
| 'APPOINTMENT_BOOKING'
|
|
1772
|
+
| 'FAQ'
|
|
1773
|
+
| 'IDENTITY_VERIFICATION'
|
|
1774
|
+
| 'ACCOUNT_MANAGEMENT'
|
|
1775
|
+
| 'BILLING_AND_PAYMENTS'
|
|
1776
|
+
| 'ORDER_MANAGEMENT'
|
|
1777
|
+
| 'TROUBLESHOOTING'
|
|
1778
|
+
| 'CALL_ROUTING'
|
|
1779
|
+
| 'LEAD_QUALIFICATION'
|
|
1780
|
+
| 'COLLECTIONS'
|
|
1781
|
+
| 'OUTBOUND_CALLING'
|
|
1782
|
+
>;
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Exploration settings
|
|
1786
|
+
*/
|
|
1787
|
+
explore?: SimulationGenerateResourcesParams.Explore;
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* The industry the agent serves.
|
|
1791
|
+
*/
|
|
1792
|
+
industry?:
|
|
1793
|
+
| 'HEALTHCARE'
|
|
1794
|
+
| 'FINANCIAL_SERVICES'
|
|
1795
|
+
| 'INSURANCE'
|
|
1796
|
+
| 'DEBT_COLLECTION'
|
|
1797
|
+
| 'RETAIL'
|
|
1798
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
1799
|
+
| 'TELECOMMUNICATIONS'
|
|
1800
|
+
| 'TECHNOLOGY'
|
|
1801
|
+
| 'PUBLIC_SECTOR'
|
|
1802
|
+
| 'UTILITIES'
|
|
1803
|
+
| 'LOGISTICS'
|
|
1804
|
+
| 'AUTOMOTIVE'
|
|
1805
|
+
| 'HOME_SERVICES'
|
|
1806
|
+
| 'RESTAURANTS'
|
|
1807
|
+
| 'EDUCATION'
|
|
1808
|
+
| 'OTHER';
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* What you want tested, in your own words. Each scenario you describe becomes a
|
|
1812
|
+
* flow.
|
|
1813
|
+
*/
|
|
1814
|
+
testingInstructions?: string;
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* A page Roark reads to learn about the business.
|
|
1818
|
+
*/
|
|
1819
|
+
websiteUrl?: string;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
export namespace SimulationGenerateResourcesParams {
|
|
1823
|
+
/**
|
|
1824
|
+
* Exploration settings
|
|
1825
|
+
*/
|
|
1826
|
+
export interface Explore {
|
|
1827
|
+
/**
|
|
1828
|
+
* Whether Roark calls the agent to discover what it does before finishing the
|
|
1829
|
+
* generation. Exploration calls are billed.
|
|
1830
|
+
*/
|
|
1831
|
+
enabled?: boolean;
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* The longest a single exploration call may last, in minutes.
|
|
1835
|
+
*/
|
|
1836
|
+
maxConversationMinutes?: number;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* The most exploration calls Roark places.
|
|
1840
|
+
*/
|
|
1841
|
+
maxConversations?: number;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
export interface SimulationGuideResourceGenerationParams {
|
|
1846
|
+
/**
|
|
1847
|
+
* What you want the generation to know
|
|
1848
|
+
*/
|
|
1849
|
+
text: string;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
export interface SimulationListResourceGenerationsParams {
|
|
1853
|
+
/**
|
|
1854
|
+
* Only generations for these agents, comma-separated, at most 100. Omit for every
|
|
1855
|
+
* agent.
|
|
1856
|
+
*/
|
|
1857
|
+
agentIds?: string;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* How many to return, newest first. Default 20, max 50.
|
|
1861
|
+
*/
|
|
1862
|
+
limit?: number;
|
|
166
1863
|
}
|
|
167
1864
|
|
|
168
1865
|
export interface SimulationMockToolParams {
|
|
@@ -733,8 +2430,8 @@ export declare namespace SimulationRunParams {
|
|
|
733
2430
|
|
|
734
2431
|
export interface RunSimulationFromPlanID {
|
|
735
2432
|
/**
|
|
736
|
-
* The run plan to run, saved or hidden. Rename or unhide it with
|
|
737
|
-
* /v1/simulation/plan/{planId}
|
|
2433
|
+
* The run plan to run, saved or hidden. Rename or unhide it with
|
|
2434
|
+
* `PUT /v1/simulation/plan/{planId}`.
|
|
738
2435
|
*/
|
|
739
2436
|
planId: string;
|
|
740
2437
|
|
|
@@ -1292,8 +2989,18 @@ export declare namespace SimulationRunParams {
|
|
|
1292
2989
|
|
|
1293
2990
|
export declare namespace Simulation {
|
|
1294
2991
|
export {
|
|
2992
|
+
type SimulationAnswerResourceGenerationResponse as SimulationAnswerResourceGenerationResponse,
|
|
2993
|
+
type SimulationCancelResourceGenerationResponse as SimulationCancelResourceGenerationResponse,
|
|
2994
|
+
type SimulationGenerateResourcesResponse as SimulationGenerateResourcesResponse,
|
|
2995
|
+
type SimulationGetResourceGenerationResponse as SimulationGetResourceGenerationResponse,
|
|
2996
|
+
type SimulationGuideResourceGenerationResponse as SimulationGuideResourceGenerationResponse,
|
|
2997
|
+
type SimulationListResourceGenerationsResponse as SimulationListResourceGenerationsResponse,
|
|
1295
2998
|
type SimulationMockToolResponse as SimulationMockToolResponse,
|
|
1296
2999
|
type SimulationRunResponse as SimulationRunResponse,
|
|
3000
|
+
type SimulationAnswerResourceGenerationParams as SimulationAnswerResourceGenerationParams,
|
|
3001
|
+
type SimulationGenerateResourcesParams as SimulationGenerateResourcesParams,
|
|
3002
|
+
type SimulationGuideResourceGenerationParams as SimulationGuideResourceGenerationParams,
|
|
3003
|
+
type SimulationListResourceGenerationsParams as SimulationListResourceGenerationsParams,
|
|
1297
3004
|
type SimulationMockToolParams as SimulationMockToolParams,
|
|
1298
3005
|
type SimulationRunParams as SimulationRunParams,
|
|
1299
3006
|
};
|