@roarkanalytics/sdk 9.1.0 → 9.3.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.
@@ -53,13 +53,15 @@ export class Simulation extends APIResource {
53
53
  /**
54
54
  * Works out what to test for an existing agent, then creates the customer flows,
55
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.
56
+ * create or change the agent. It also reads the agent's recent production calls
57
+ * and open issues. Run it again and it builds on what earlier generations made,
58
+ * adding only what changed; when nothing has, it finishes straight away and says
59
+ * so. Runs in the background: watch the `simulation.resource_generation.completed`
60
+ * webhook, or poll `GET /v1/simulation/generations/resources/{generationId}`.
61
+ * Takes one agent for now. Refused while another generation for the agent is
62
+ * running. Needs the 'simulation:create' and 'metric:create' permissions.
63
+ * Exploration also needs 'simulation:run', and is turned off for keys without it
64
+ * unless explore.enabled is set.
63
65
  *
64
66
  * @example
65
67
  * ```ts
@@ -359,7 +361,14 @@ export namespace SimulationAnswerResourceGenerationResponse {
359
361
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
360
362
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
361
363
  */
362
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
364
+ layer:
365
+ | 'CORE'
366
+ | 'INDUSTRY'
367
+ | 'CAPABILITY'
368
+ | 'AGENT_CONTEXT'
369
+ | 'EXPLORATION'
370
+ | 'CUSTOMER_INSTRUCTIONS'
371
+ | 'PRODUCTION_CALLS';
363
372
 
364
373
  /**
365
374
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -380,7 +389,8 @@ export namespace SimulationAnswerResourceGenerationResponse {
380
389
  export namespace Item {
381
390
  export interface Source {
382
391
  /**
383
- * The exploration call it came from
392
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
393
+ * production calls
384
394
  */
385
395
  callId: string | null;
386
396
 
@@ -394,7 +404,14 @@ export namespace SimulationAnswerResourceGenerationResponse {
394
404
  */
395
405
  quote: string | null;
396
406
 
397
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
407
+ type:
408
+ | 'CATALOGUE'
409
+ | 'PROMPT'
410
+ | 'DESCRIPTION'
411
+ | 'WEBSITE'
412
+ | 'EXPLORATION_CALL'
413
+ | 'INSTRUCTIONS'
414
+ | 'PRODUCTION_CALL';
398
415
 
399
416
  /**
400
417
  * The page it came from, for website sources
@@ -407,7 +424,14 @@ export namespace SimulationAnswerResourceGenerationResponse {
407
424
  * Where one part of testing the agent stands
408
425
  */
409
426
  export interface Layer {
410
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
427
+ layer:
428
+ | 'CORE'
429
+ | 'INDUSTRY'
430
+ | 'CAPABILITY'
431
+ | 'AGENT_CONTEXT'
432
+ | 'EXPLORATION'
433
+ | 'CUSTOMER_INSTRUCTIONS'
434
+ | 'PRODUCTION_CALLS';
411
435
 
412
436
  /**
413
437
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
@@ -601,7 +625,14 @@ export namespace SimulationCancelResourceGenerationResponse {
601
625
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
602
626
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
603
627
  */
604
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
628
+ layer:
629
+ | 'CORE'
630
+ | 'INDUSTRY'
631
+ | 'CAPABILITY'
632
+ | 'AGENT_CONTEXT'
633
+ | 'EXPLORATION'
634
+ | 'CUSTOMER_INSTRUCTIONS'
635
+ | 'PRODUCTION_CALLS';
605
636
 
606
637
  /**
607
638
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -622,7 +653,8 @@ export namespace SimulationCancelResourceGenerationResponse {
622
653
  export namespace Item {
623
654
  export interface Source {
624
655
  /**
625
- * The exploration call it came from
656
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
657
+ * production calls
626
658
  */
627
659
  callId: string | null;
628
660
 
@@ -636,7 +668,14 @@ export namespace SimulationCancelResourceGenerationResponse {
636
668
  */
637
669
  quote: string | null;
638
670
 
639
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
671
+ type:
672
+ | 'CATALOGUE'
673
+ | 'PROMPT'
674
+ | 'DESCRIPTION'
675
+ | 'WEBSITE'
676
+ | 'EXPLORATION_CALL'
677
+ | 'INSTRUCTIONS'
678
+ | 'PRODUCTION_CALL';
640
679
 
641
680
  /**
642
681
  * The page it came from, for website sources
@@ -649,7 +688,14 @@ export namespace SimulationCancelResourceGenerationResponse {
649
688
  * Where one part of testing the agent stands
650
689
  */
651
690
  export interface Layer {
652
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
691
+ layer:
692
+ | 'CORE'
693
+ | 'INDUSTRY'
694
+ | 'CAPABILITY'
695
+ | 'AGENT_CONTEXT'
696
+ | 'EXPLORATION'
697
+ | 'CUSTOMER_INSTRUCTIONS'
698
+ | 'PRODUCTION_CALLS';
653
699
 
654
700
  /**
655
701
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
@@ -843,7 +889,14 @@ export namespace SimulationGenerateResourcesResponse {
843
889
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
844
890
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
845
891
  */
846
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
892
+ layer:
893
+ | 'CORE'
894
+ | 'INDUSTRY'
895
+ | 'CAPABILITY'
896
+ | 'AGENT_CONTEXT'
897
+ | 'EXPLORATION'
898
+ | 'CUSTOMER_INSTRUCTIONS'
899
+ | 'PRODUCTION_CALLS';
847
900
 
848
901
  /**
849
902
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -864,7 +917,8 @@ export namespace SimulationGenerateResourcesResponse {
864
917
  export namespace Item {
865
918
  export interface Source {
866
919
  /**
867
- * The exploration call it came from
920
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
921
+ * production calls
868
922
  */
869
923
  callId: string | null;
870
924
 
@@ -878,7 +932,14 @@ export namespace SimulationGenerateResourcesResponse {
878
932
  */
879
933
  quote: string | null;
880
934
 
881
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
935
+ type:
936
+ | 'CATALOGUE'
937
+ | 'PROMPT'
938
+ | 'DESCRIPTION'
939
+ | 'WEBSITE'
940
+ | 'EXPLORATION_CALL'
941
+ | 'INSTRUCTIONS'
942
+ | 'PRODUCTION_CALL';
882
943
 
883
944
  /**
884
945
  * The page it came from, for website sources
@@ -891,7 +952,14 @@ export namespace SimulationGenerateResourcesResponse {
891
952
  * Where one part of testing the agent stands
892
953
  */
893
954
  export interface Layer {
894
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
955
+ layer:
956
+ | 'CORE'
957
+ | 'INDUSTRY'
958
+ | 'CAPABILITY'
959
+ | 'AGENT_CONTEXT'
960
+ | 'EXPLORATION'
961
+ | 'CUSTOMER_INSTRUCTIONS'
962
+ | 'PRODUCTION_CALLS';
895
963
 
896
964
  /**
897
965
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
@@ -1085,7 +1153,14 @@ export namespace SimulationGetResourceGenerationResponse {
1085
1153
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
1086
1154
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
1087
1155
  */
1088
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1156
+ layer:
1157
+ | 'CORE'
1158
+ | 'INDUSTRY'
1159
+ | 'CAPABILITY'
1160
+ | 'AGENT_CONTEXT'
1161
+ | 'EXPLORATION'
1162
+ | 'CUSTOMER_INSTRUCTIONS'
1163
+ | 'PRODUCTION_CALLS';
1089
1164
 
1090
1165
  /**
1091
1166
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -1106,7 +1181,8 @@ export namespace SimulationGetResourceGenerationResponse {
1106
1181
  export namespace Item {
1107
1182
  export interface Source {
1108
1183
  /**
1109
- * The exploration call it came from
1184
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
1185
+ * production calls
1110
1186
  */
1111
1187
  callId: string | null;
1112
1188
 
@@ -1120,7 +1196,14 @@ export namespace SimulationGetResourceGenerationResponse {
1120
1196
  */
1121
1197
  quote: string | null;
1122
1198
 
1123
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
1199
+ type:
1200
+ | 'CATALOGUE'
1201
+ | 'PROMPT'
1202
+ | 'DESCRIPTION'
1203
+ | 'WEBSITE'
1204
+ | 'EXPLORATION_CALL'
1205
+ | 'INSTRUCTIONS'
1206
+ | 'PRODUCTION_CALL';
1124
1207
 
1125
1208
  /**
1126
1209
  * The page it came from, for website sources
@@ -1133,7 +1216,14 @@ export namespace SimulationGetResourceGenerationResponse {
1133
1216
  * Where one part of testing the agent stands
1134
1217
  */
1135
1218
  export interface Layer {
1136
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1219
+ layer:
1220
+ | 'CORE'
1221
+ | 'INDUSTRY'
1222
+ | 'CAPABILITY'
1223
+ | 'AGENT_CONTEXT'
1224
+ | 'EXPLORATION'
1225
+ | 'CUSTOMER_INSTRUCTIONS'
1226
+ | 'PRODUCTION_CALLS';
1137
1227
 
1138
1228
  /**
1139
1229
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
@@ -1327,7 +1417,14 @@ export namespace SimulationGuideResourceGenerationResponse {
1327
1417
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
1328
1418
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
1329
1419
  */
1330
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1420
+ layer:
1421
+ | 'CORE'
1422
+ | 'INDUSTRY'
1423
+ | 'CAPABILITY'
1424
+ | 'AGENT_CONTEXT'
1425
+ | 'EXPLORATION'
1426
+ | 'CUSTOMER_INSTRUCTIONS'
1427
+ | 'PRODUCTION_CALLS';
1331
1428
 
1332
1429
  /**
1333
1430
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -1348,7 +1445,8 @@ export namespace SimulationGuideResourceGenerationResponse {
1348
1445
  export namespace Item {
1349
1446
  export interface Source {
1350
1447
  /**
1351
- * The exploration call it came from
1448
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
1449
+ * production calls
1352
1450
  */
1353
1451
  callId: string | null;
1354
1452
 
@@ -1362,7 +1460,14 @@ export namespace SimulationGuideResourceGenerationResponse {
1362
1460
  */
1363
1461
  quote: string | null;
1364
1462
 
1365
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
1463
+ type:
1464
+ | 'CATALOGUE'
1465
+ | 'PROMPT'
1466
+ | 'DESCRIPTION'
1467
+ | 'WEBSITE'
1468
+ | 'EXPLORATION_CALL'
1469
+ | 'INSTRUCTIONS'
1470
+ | 'PRODUCTION_CALL';
1366
1471
 
1367
1472
  /**
1368
1473
  * The page it came from, for website sources
@@ -1375,7 +1480,14 @@ export namespace SimulationGuideResourceGenerationResponse {
1375
1480
  * Where one part of testing the agent stands
1376
1481
  */
1377
1482
  export interface Layer {
1378
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1483
+ layer:
1484
+ | 'CORE'
1485
+ | 'INDUSTRY'
1486
+ | 'CAPABILITY'
1487
+ | 'AGENT_CONTEXT'
1488
+ | 'EXPLORATION'
1489
+ | 'CUSTOMER_INSTRUCTIONS'
1490
+ | 'PRODUCTION_CALLS';
1379
1491
 
1380
1492
  /**
1381
1493
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
@@ -1565,7 +1677,14 @@ export namespace SimulationListResourceGenerationsResponse {
1565
1677
  * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
1566
1678
  * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
1567
1679
  */
1568
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1680
+ layer:
1681
+ | 'CORE'
1682
+ | 'INDUSTRY'
1683
+ | 'CAPABILITY'
1684
+ | 'AGENT_CONTEXT'
1685
+ | 'EXPLORATION'
1686
+ | 'CUSTOMER_INSTRUCTIONS'
1687
+ | 'PRODUCTION_CALLS';
1569
1688
 
1570
1689
  /**
1571
1690
  * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
@@ -1586,7 +1705,8 @@ export namespace SimulationListResourceGenerationsResponse {
1586
1705
  export namespace Item {
1587
1706
  export interface Source {
1588
1707
  /**
1589
- * The exploration call it came from
1708
+ * The call it came from: an exploration call Roark placed, or one of the agent’s
1709
+ * production calls
1590
1710
  */
1591
1711
  callId: string | null;
1592
1712
 
@@ -1600,7 +1720,14 @@ export namespace SimulationListResourceGenerationsResponse {
1600
1720
  */
1601
1721
  quote: string | null;
1602
1722
 
1603
- type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
1723
+ type:
1724
+ | 'CATALOGUE'
1725
+ | 'PROMPT'
1726
+ | 'DESCRIPTION'
1727
+ | 'WEBSITE'
1728
+ | 'EXPLORATION_CALL'
1729
+ | 'INSTRUCTIONS'
1730
+ | 'PRODUCTION_CALL';
1604
1731
 
1605
1732
  /**
1606
1733
  * The page it came from, for website sources
@@ -1613,7 +1740,14 @@ export namespace SimulationListResourceGenerationsResponse {
1613
1740
  * Where one part of testing the agent stands
1614
1741
  */
1615
1742
  export interface Layer {
1616
- layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
1743
+ layer:
1744
+ | 'CORE'
1745
+ | 'INDUSTRY'
1746
+ | 'CAPABILITY'
1747
+ | 'AGENT_CONTEXT'
1748
+ | 'EXPLORATION'
1749
+ | 'CUSTOMER_INSTRUCTIONS'
1750
+ | 'PRODUCTION_CALLS';
1617
1751
 
1618
1752
  /**
1619
1753
  * COVERED: tests exist for it, or are added when the generation finishes. SKIPPED:
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '9.1.0'; // x-release-please-version
1
+ export const VERSION = '9.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "9.1.0";
1
+ export declare const VERSION = "9.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "9.1.0";
1
+ export declare const VERSION = "9.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '9.1.0'; // x-release-please-version
4
+ exports.VERSION = '9.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '9.1.0'; // x-release-please-version
1
+ export const VERSION = '9.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map