@orq-ai/node 3.12.13 → 3.12.16

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.
Files changed (134) hide show
  1. package/README.md +2 -5
  2. package/bin/mcp-server.js +114 -113
  3. package/bin/mcp-server.js.map +33 -33
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/url.js +1 -1
  9. package/lib/url.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/errors/index.d.ts +1 -0
  13. package/models/errors/index.d.ts.map +1 -1
  14. package/models/errors/index.js +1 -0
  15. package/models/errors/index.js.map +1 -1
  16. package/models/operations/createbudget.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createdataset.js +2 -2
  19. package/models/operations/createdatasetitem.js +2 -2
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.js +16 -16
  22. package/models/operations/fileget.js +2 -2
  23. package/models/operations/filelist.js +2 -2
  24. package/models/operations/fileupload.js +2 -2
  25. package/models/operations/getbudget.js +2 -2
  26. package/models/operations/getevals.js +28 -28
  27. package/models/operations/listbudgets.js +2 -2
  28. package/models/operations/listcontacts.js +2 -2
  29. package/models/operations/listdatasetdatapoints.js +2 -2
  30. package/models/operations/listdatasets.js +2 -2
  31. package/models/operations/listdatasources.js +2 -2
  32. package/models/operations/retrievecontact.js +2 -2
  33. package/models/operations/retrievedatapoint.js +2 -2
  34. package/models/operations/retrievedataset.js +2 -2
  35. package/models/operations/retrievedatasource.js +2 -2
  36. package/models/operations/updatebudget.js +2 -2
  37. package/models/operations/updatecontact.js +2 -2
  38. package/models/operations/updatedatapoint.js +2 -2
  39. package/models/operations/updatedataset.js +2 -2
  40. package/models/operations/updatedatasource.js +2 -2
  41. package/models/operations/updateeval.js +16 -16
  42. package/package.json +1 -1
  43. package/packages/orq-rc/README.md +91 -96
  44. package/packages/orq-rc/docs/sdks/agents/README.md +102 -82
  45. package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
  46. package/packages/orq-rc/examples/package-lock.json +1 -1
  47. package/packages/orq-rc/jsr.json +1 -1
  48. package/packages/orq-rc/package-lock.json +2 -2
  49. package/packages/orq-rc/package.json +1 -1
  50. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  51. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  52. package/packages/orq-rc/src/lib/config.ts +3 -3
  53. package/packages/orq-rc/src/lib/url.ts +1 -1
  54. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  55. package/packages/orq-rc/src/mcp-server/server.ts +1 -3
  56. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  57. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  58. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  59. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/createeval.ts +167 -28
  65. package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
  66. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
  67. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  68. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/getagent.ts +2 -9
  72. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  73. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  75. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  76. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  77. package/packages/orq-rc/src/models/operations/index.ts +0 -1
  78. package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
  79. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  85. package/packages/orq-rc/src/models/operations/retrieveaction.ts +14 -16
  86. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/runagent.ts +207 -31
  91. package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/streamrunagent.ts +219 -32
  93. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/updateeval.ts +181 -28
  99. package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
  100. package/packages/orq-rc/src/sdk/agents.ts +2 -20
  101. package/src/lib/config.ts +3 -3
  102. package/src/lib/url.ts +1 -1
  103. package/src/mcp-server/mcp-server.ts +1 -1
  104. package/src/mcp-server/server.ts +1 -1
  105. package/src/models/errors/index.ts +1 -0
  106. package/src/models/operations/createbudget.ts +2 -2
  107. package/src/models/operations/createcontact.ts +2 -2
  108. package/src/models/operations/createdataset.ts +2 -2
  109. package/src/models/operations/createdatasetitem.ts +2 -2
  110. package/src/models/operations/createdatasource.ts +2 -2
  111. package/src/models/operations/createeval.ts +16 -16
  112. package/src/models/operations/fileget.ts +2 -2
  113. package/src/models/operations/filelist.ts +2 -2
  114. package/src/models/operations/fileupload.ts +2 -2
  115. package/src/models/operations/getbudget.ts +2 -2
  116. package/src/models/operations/getevals.ts +28 -28
  117. package/src/models/operations/listbudgets.ts +2 -2
  118. package/src/models/operations/listcontacts.ts +2 -2
  119. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  120. package/src/models/operations/listdatasets.ts +2 -2
  121. package/src/models/operations/listdatasources.ts +2 -2
  122. package/src/models/operations/retrievecontact.ts +2 -2
  123. package/src/models/operations/retrievedatapoint.ts +2 -2
  124. package/src/models/operations/retrievedataset.ts +2 -2
  125. package/src/models/operations/retrievedatasource.ts +2 -2
  126. package/src/models/operations/updatebudget.ts +2 -2
  127. package/src/models/operations/updatecontact.ts +2 -2
  128. package/src/models/operations/updatedatapoint.ts +2 -2
  129. package/src/models/operations/updatedataset.ts +2 -2
  130. package/src/models/operations/updatedatasource.ts +2 -2
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
  133. package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
  134. package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
@@ -103,7 +103,7 @@ export type PartsKind = ClosedEnum<typeof PartsKind>;
103
103
 
104
104
  export type Parts2 = {
105
105
  kind: PartsKind;
106
- data?: any | undefined;
106
+ data: { [k: string]: any };
107
107
  metadata?: { [k: string]: any } | undefined;
108
108
  };
109
109
 
@@ -117,7 +117,7 @@ export type Parts1 = {
117
117
  text: string;
118
118
  };
119
119
 
120
- export type Parts = Parts4 | Parts1 | Parts3 | Five | Parts2;
120
+ export type Parts = Parts4 | Parts1 | Parts2 | Parts3 | Five;
121
121
 
122
122
  /**
123
123
  * The A2A format message containing the task for the agent to perform.
@@ -134,13 +134,57 @@ export type Message = {
134
134
  /**
135
135
  * A2A message parts
136
136
  */
137
- parts: Array<Parts4 | Parts1 | Parts3 | Five | Parts2>;
137
+ parts: Array<Parts4 | Parts1 | Parts2 | Parts3 | Five>;
138
138
  /**
139
139
  * Optional message metadata
140
140
  */
141
141
  metadata?: { [k: string]: any } | undefined;
142
142
  };
143
143
 
144
+ /**
145
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
146
+ */
147
+ export type Contact = {
148
+ /**
149
+ * Unique identifier for the contact
150
+ */
151
+ id: string;
152
+ /**
153
+ * Display name of the contact
154
+ */
155
+ displayName?: string | undefined;
156
+ /**
157
+ * Email address of the contact
158
+ */
159
+ email?: string | undefined;
160
+ /**
161
+ * A hash of key/value pairs containing any other data about the contact
162
+ */
163
+ metadata?: Array<{ [k: string]: any }> | undefined;
164
+ /**
165
+ * URL to the contact's avatar or logo
166
+ */
167
+ logoUrl?: string | undefined;
168
+ /**
169
+ * A list of tags associated with the contact
170
+ */
171
+ tags?: Array<string> | undefined;
172
+ };
173
+
174
+ /**
175
+ * Thread information to group related requests
176
+ */
177
+ export type RunAgentThread = {
178
+ /**
179
+ * Unique thread identifier to group related invocations.
180
+ */
181
+ id: string;
182
+ /**
183
+ * Optional tags to differentiate or categorize threads
184
+ */
185
+ tags?: Array<string> | undefined;
186
+ };
187
+
144
188
  /**
145
189
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
146
190
  */
@@ -327,7 +371,7 @@ export type Twelve = {
327
371
  /**
328
372
  * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
329
373
  */
330
- path: string;
374
+ path?: string | undefined;
331
375
  /**
332
376
  * Unique key of the tool as it will be displayed in the UI
333
377
  */
@@ -570,9 +614,13 @@ export type RunAgentRequestBody = {
570
614
  */
571
615
  variables?: { [k: string]: any } | undefined;
572
616
  /**
573
- * Optional context ID that maps to thread_id
617
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
618
+ */
619
+ contact?: Contact | undefined;
620
+ /**
621
+ * Thread information to group related requests
574
622
  */
575
- contextId?: string | undefined;
623
+ thread?: RunAgentThread | undefined;
576
624
  /**
577
625
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
578
626
  */
@@ -585,10 +633,6 @@ export type RunAgentRequestBody = {
585
633
  * A brief summary of the agent's purpose.
586
634
  */
587
635
  description?: string | undefined;
588
- /**
589
- * Optional URL to an icon for the agent
590
- */
591
- iconUrl?: string | undefined;
592
636
  /**
593
637
  * A custom system prompt template for the agent. If omitted, the default template is used.
594
638
  */
@@ -600,6 +644,10 @@ export type RunAgentRequestBody = {
600
644
  */
601
645
  teamOfAgents?: Array<TeamOfAgents> | undefined;
602
646
  settings: Settings;
647
+ /**
648
+ * Optional metadata for the agent run as key-value pairs that will be included in traces
649
+ */
650
+ metadata?: { [k: string]: any } | undefined;
603
651
  };
604
652
 
605
653
  /**
@@ -1223,14 +1271,14 @@ export namespace PartsKind$ {
1223
1271
  export const Parts2$inboundSchema: z.ZodType<Parts2, z.ZodTypeDef, unknown> = z
1224
1272
  .object({
1225
1273
  kind: PartsKind$inboundSchema,
1226
- data: z.any().optional(),
1274
+ data: z.record(z.any()),
1227
1275
  metadata: z.record(z.any()).optional(),
1228
1276
  });
1229
1277
 
1230
1278
  /** @internal */
1231
1279
  export type Parts2$Outbound = {
1232
1280
  kind: string;
1233
- data?: any | undefined;
1281
+ data: { [k: string]: any };
1234
1282
  metadata?: { [k: string]: any } | undefined;
1235
1283
  };
1236
1284
 
@@ -1241,7 +1289,7 @@ export const Parts2$outboundSchema: z.ZodType<
1241
1289
  Parts2
1242
1290
  > = z.object({
1243
1291
  kind: PartsKind$outboundSchema,
1244
- data: z.any().optional(),
1292
+ data: z.record(z.any()),
1245
1293
  metadata: z.record(z.any()).optional(),
1246
1294
  });
1247
1295
 
@@ -1347,18 +1395,18 @@ export const Parts$inboundSchema: z.ZodType<Parts, z.ZodTypeDef, unknown> = z
1347
1395
  .union([
1348
1396
  z.lazy(() => Parts4$inboundSchema),
1349
1397
  z.lazy(() => Parts1$inboundSchema),
1398
+ z.lazy(() => Parts2$inboundSchema),
1350
1399
  z.lazy(() => Parts3$inboundSchema),
1351
1400
  z.lazy(() => Five$inboundSchema),
1352
- z.lazy(() => Parts2$inboundSchema),
1353
1401
  ]);
1354
1402
 
1355
1403
  /** @internal */
1356
1404
  export type Parts$Outbound =
1357
1405
  | Parts4$Outbound
1358
1406
  | Parts1$Outbound
1407
+ | Parts2$Outbound
1359
1408
  | Parts3$Outbound
1360
- | Five$Outbound
1361
- | Parts2$Outbound;
1409
+ | Five$Outbound;
1362
1410
 
1363
1411
  /** @internal */
1364
1412
  export const Parts$outboundSchema: z.ZodType<
@@ -1368,9 +1416,9 @@ export const Parts$outboundSchema: z.ZodType<
1368
1416
  > = z.union([
1369
1417
  z.lazy(() => Parts4$outboundSchema),
1370
1418
  z.lazy(() => Parts1$outboundSchema),
1419
+ z.lazy(() => Parts2$outboundSchema),
1371
1420
  z.lazy(() => Parts3$outboundSchema),
1372
1421
  z.lazy(() => Five$outboundSchema),
1373
- z.lazy(() => Parts2$outboundSchema),
1374
1422
  ]);
1375
1423
 
1376
1424
  /**
@@ -1409,9 +1457,9 @@ export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
1409
1457
  z.union([
1410
1458
  z.lazy(() => Parts4$inboundSchema),
1411
1459
  z.lazy(() => Parts1$inboundSchema),
1460
+ z.lazy(() => Parts2$inboundSchema),
1412
1461
  z.lazy(() => Parts3$inboundSchema),
1413
1462
  z.lazy(() => Five$inboundSchema),
1414
- z.lazy(() => Parts2$inboundSchema),
1415
1463
  ]),
1416
1464
  ),
1417
1465
  metadata: z.record(z.any()).optional(),
@@ -1424,9 +1472,9 @@ export type Message$Outbound = {
1424
1472
  parts: Array<
1425
1473
  | Parts4$Outbound
1426
1474
  | Parts1$Outbound
1475
+ | Parts2$Outbound
1427
1476
  | Parts3$Outbound
1428
1477
  | Five$Outbound
1429
- | Parts2$Outbound
1430
1478
  >;
1431
1479
  metadata?: { [k: string]: any } | undefined;
1432
1480
  };
@@ -1443,9 +1491,9 @@ export const Message$outboundSchema: z.ZodType<
1443
1491
  z.union([
1444
1492
  z.lazy(() => Parts4$outboundSchema),
1445
1493
  z.lazy(() => Parts1$outboundSchema),
1494
+ z.lazy(() => Parts2$outboundSchema),
1446
1495
  z.lazy(() => Parts3$outboundSchema),
1447
1496
  z.lazy(() => Five$outboundSchema),
1448
- z.lazy(() => Parts2$outboundSchema),
1449
1497
  ]),
1450
1498
  ),
1451
1499
  metadata: z.record(z.any()).optional(),
@@ -1478,6 +1526,131 @@ export function messageFromJSON(
1478
1526
  );
1479
1527
  }
1480
1528
 
1529
+ /** @internal */
1530
+ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
1531
+ z.object({
1532
+ id: z.string(),
1533
+ display_name: z.string().optional(),
1534
+ email: z.string().optional(),
1535
+ metadata: z.array(z.record(z.any())).optional(),
1536
+ logo_url: z.string().optional(),
1537
+ tags: z.array(z.string()).optional(),
1538
+ }).transform((v) => {
1539
+ return remap$(v, {
1540
+ "display_name": "displayName",
1541
+ "logo_url": "logoUrl",
1542
+ });
1543
+ });
1544
+
1545
+ /** @internal */
1546
+ export type Contact$Outbound = {
1547
+ id: string;
1548
+ display_name?: string | undefined;
1549
+ email?: string | undefined;
1550
+ metadata?: Array<{ [k: string]: any }> | undefined;
1551
+ logo_url?: string | undefined;
1552
+ tags?: Array<string> | undefined;
1553
+ };
1554
+
1555
+ /** @internal */
1556
+ export const Contact$outboundSchema: z.ZodType<
1557
+ Contact$Outbound,
1558
+ z.ZodTypeDef,
1559
+ Contact
1560
+ > = z.object({
1561
+ id: z.string(),
1562
+ displayName: z.string().optional(),
1563
+ email: z.string().optional(),
1564
+ metadata: z.array(z.record(z.any())).optional(),
1565
+ logoUrl: z.string().optional(),
1566
+ tags: z.array(z.string()).optional(),
1567
+ }).transform((v) => {
1568
+ return remap$(v, {
1569
+ displayName: "display_name",
1570
+ logoUrl: "logo_url",
1571
+ });
1572
+ });
1573
+
1574
+ /**
1575
+ * @internal
1576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1577
+ */
1578
+ export namespace Contact$ {
1579
+ /** @deprecated use `Contact$inboundSchema` instead. */
1580
+ export const inboundSchema = Contact$inboundSchema;
1581
+ /** @deprecated use `Contact$outboundSchema` instead. */
1582
+ export const outboundSchema = Contact$outboundSchema;
1583
+ /** @deprecated use `Contact$Outbound` instead. */
1584
+ export type Outbound = Contact$Outbound;
1585
+ }
1586
+
1587
+ export function contactToJSON(contact: Contact): string {
1588
+ return JSON.stringify(Contact$outboundSchema.parse(contact));
1589
+ }
1590
+
1591
+ export function contactFromJSON(
1592
+ jsonString: string,
1593
+ ): SafeParseResult<Contact, SDKValidationError> {
1594
+ return safeParse(
1595
+ jsonString,
1596
+ (x) => Contact$inboundSchema.parse(JSON.parse(x)),
1597
+ `Failed to parse 'Contact' from JSON`,
1598
+ );
1599
+ }
1600
+
1601
+ /** @internal */
1602
+ export const RunAgentThread$inboundSchema: z.ZodType<
1603
+ RunAgentThread,
1604
+ z.ZodTypeDef,
1605
+ unknown
1606
+ > = z.object({
1607
+ id: z.string(),
1608
+ tags: z.array(z.string()).optional(),
1609
+ });
1610
+
1611
+ /** @internal */
1612
+ export type RunAgentThread$Outbound = {
1613
+ id: string;
1614
+ tags?: Array<string> | undefined;
1615
+ };
1616
+
1617
+ /** @internal */
1618
+ export const RunAgentThread$outboundSchema: z.ZodType<
1619
+ RunAgentThread$Outbound,
1620
+ z.ZodTypeDef,
1621
+ RunAgentThread
1622
+ > = z.object({
1623
+ id: z.string(),
1624
+ tags: z.array(z.string()).optional(),
1625
+ });
1626
+
1627
+ /**
1628
+ * @internal
1629
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1630
+ */
1631
+ export namespace RunAgentThread$ {
1632
+ /** @deprecated use `RunAgentThread$inboundSchema` instead. */
1633
+ export const inboundSchema = RunAgentThread$inboundSchema;
1634
+ /** @deprecated use `RunAgentThread$outboundSchema` instead. */
1635
+ export const outboundSchema = RunAgentThread$outboundSchema;
1636
+ /** @deprecated use `RunAgentThread$Outbound` instead. */
1637
+ export type Outbound = RunAgentThread$Outbound;
1638
+ }
1639
+
1640
+ export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
1641
+ return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
1642
+ }
1643
+
1644
+ export function runAgentThreadFromJSON(
1645
+ jsonString: string,
1646
+ ): SafeParseResult<RunAgentThread, SDKValidationError> {
1647
+ return safeParse(
1648
+ jsonString,
1649
+ (x) => RunAgentThread$inboundSchema.parse(JSON.parse(x)),
1650
+ `Failed to parse 'RunAgentThread' from JSON`,
1651
+ );
1652
+ }
1653
+
1481
1654
  /** @internal */
1482
1655
  export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
1483
1656
  .object({
@@ -2317,8 +2490,8 @@ export function httpFromJSON(
2317
2490
  /** @internal */
2318
2491
  export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
2319
2492
  .object({
2320
- _id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
2321
- path: z.string(),
2493
+ _id: z.string().default("01K5X16BV17ZPH27JT1JZGNS5R"),
2494
+ path: z.string().optional(),
2322
2495
  key: z.string(),
2323
2496
  display_name: z.string(),
2324
2497
  description: z.string(),
@@ -2339,7 +2512,7 @@ export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
2339
2512
  /** @internal */
2340
2513
  export type Twelve$Outbound = {
2341
2514
  _id: string;
2342
- path: string;
2515
+ path?: string | undefined;
2343
2516
  key: string;
2344
2517
  display_name: string;
2345
2518
  description: string;
@@ -2356,8 +2529,8 @@ export const Twelve$outboundSchema: z.ZodType<
2356
2529
  z.ZodTypeDef,
2357
2530
  Twelve
2358
2531
  > = z.object({
2359
- id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
2360
- path: z.string(),
2532
+ id: z.string().default("01K5X16BV17ZPH27JT1JZGNS5R"),
2533
+ path: z.string().optional(),
2361
2534
  key: z.string(),
2362
2535
  displayName: z.string(),
2363
2536
  description: z.string(),
@@ -3508,17 +3681,18 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3508
3681
  instructions: z.string(),
3509
3682
  message: z.lazy(() => Message$inboundSchema),
3510
3683
  variables: z.record(z.any()).optional(),
3511
- contextId: z.string().optional(),
3684
+ contact: z.lazy(() => Contact$inboundSchema).optional(),
3685
+ thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
3512
3686
  memory: z.lazy(() => Memory$inboundSchema).optional(),
3513
3687
  path: z.string(),
3514
3688
  description: z.string().optional(),
3515
- iconUrl: z.string().optional(),
3516
3689
  system_prompt: z.string().optional(),
3517
3690
  memory_stores: z.array(z.string()).optional(),
3518
3691
  knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
3519
3692
  .optional(),
3520
3693
  team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
3521
3694
  settings: z.lazy(() => Settings$inboundSchema),
3695
+ metadata: z.record(z.any()).optional(),
3522
3696
  }).transform((v) => {
3523
3697
  return remap$(v, {
3524
3698
  "fallback_models": "fallbackModels",
@@ -3539,16 +3713,17 @@ export type RunAgentRequestBody$Outbound = {
3539
3713
  instructions: string;
3540
3714
  message: Message$Outbound;
3541
3715
  variables?: { [k: string]: any } | undefined;
3542
- contextId?: string | undefined;
3716
+ contact?: Contact$Outbound | undefined;
3717
+ thread?: RunAgentThread$Outbound | undefined;
3543
3718
  memory?: Memory$Outbound | undefined;
3544
3719
  path: string;
3545
3720
  description?: string | undefined;
3546
- iconUrl?: string | undefined;
3547
3721
  system_prompt?: string | undefined;
3548
3722
  memory_stores?: Array<string> | undefined;
3549
3723
  knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
3550
3724
  team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
3551
3725
  settings: Settings$Outbound;
3726
+ metadata?: { [k: string]: any } | undefined;
3552
3727
  };
3553
3728
 
3554
3729
  /** @internal */
@@ -3565,17 +3740,18 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
3565
3740
  instructions: z.string(),
3566
3741
  message: z.lazy(() => Message$outboundSchema),
3567
3742
  variables: z.record(z.any()).optional(),
3568
- contextId: z.string().optional(),
3743
+ contact: z.lazy(() => Contact$outboundSchema).optional(),
3744
+ thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
3569
3745
  memory: z.lazy(() => Memory$outboundSchema).optional(),
3570
3746
  path: z.string(),
3571
3747
  description: z.string().optional(),
3572
- iconUrl: z.string().optional(),
3573
3748
  systemPrompt: z.string().optional(),
3574
3749
  memoryStores: z.array(z.string()).optional(),
3575
3750
  knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
3576
3751
  .optional(),
3577
3752
  teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
3578
3753
  settings: z.lazy(() => Settings$outboundSchema),
3754
+ metadata: z.record(z.any()).optional(),
3579
3755
  }).transform((v) => {
3580
3756
  return remap$(v, {
3581
3757
  fallbackModels: "fallback_models",
@@ -338,7 +338,7 @@ export type SearchOptions = {
338
338
  */
339
339
  export type SearchKnowledgeRerankConfig = {
340
340
  /**
341
- * The name of the rerank model to use
341
+ * The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
342
342
  */
343
343
  model: string;
344
344
  /**
@@ -356,7 +356,7 @@ export type SearchKnowledgeRerankConfig = {
356
356
  */
357
357
  export type SearchKnowledgeAgenticRagConfig = {
358
358
  /**
359
- * The name of the model for the Agent to use. This model must support function calling.
359
+ * The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
360
360
  */
361
361
  model: string;
362
362
  };