@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.
- package/README.md +2 -5
- package/bin/mcp-server.js +114 -113
- package/bin/mcp-server.js.map +33 -33
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +91 -96
- package/packages/orq-rc/docs/sdks/agents/README.md +102 -82
- package/packages/orq-rc/docs/sdks/evals/README.md +2 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/url.ts +1 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +167 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +2 -9
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +14 -16
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/runagent.ts +207 -31
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +219 -32
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +181 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/sdk/agents.ts +2 -20
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
- package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
- package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
|
@@ -107,7 +107,7 @@ export type StreamRunAgentPartsAgentsKind = ClosedEnum<
|
|
|
107
107
|
|
|
108
108
|
export type StreamRunAgentParts2 = {
|
|
109
109
|
kind: StreamRunAgentPartsAgentsKind;
|
|
110
|
-
data
|
|
110
|
+
data: { [k: string]: any };
|
|
111
111
|
metadata?: { [k: string]: any } | undefined;
|
|
112
112
|
};
|
|
113
113
|
|
|
@@ -126,9 +126,9 @@ export type StreamRunAgentParts1 = {
|
|
|
126
126
|
export type StreamRunAgentParts =
|
|
127
127
|
| StreamRunAgentParts4
|
|
128
128
|
| StreamRunAgentParts1
|
|
129
|
+
| StreamRunAgentParts2
|
|
129
130
|
| StreamRunAgentParts3
|
|
130
|
-
| Parts5
|
|
131
|
-
| StreamRunAgentParts2;
|
|
131
|
+
| Parts5;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -148,9 +148,9 @@ export type StreamRunAgentMessage = {
|
|
|
148
148
|
parts: Array<
|
|
149
149
|
| StreamRunAgentParts4
|
|
150
150
|
| StreamRunAgentParts1
|
|
151
|
+
| StreamRunAgentParts2
|
|
151
152
|
| StreamRunAgentParts3
|
|
152
153
|
| Parts5
|
|
153
|
-
| StreamRunAgentParts2
|
|
154
154
|
>;
|
|
155
155
|
/**
|
|
156
156
|
* Optional message metadata
|
|
@@ -158,6 +158,50 @@ export type StreamRunAgentMessage = {
|
|
|
158
158
|
metadata?: { [k: string]: any } | undefined;
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
163
|
+
*/
|
|
164
|
+
export type StreamRunAgentContact = {
|
|
165
|
+
/**
|
|
166
|
+
* Unique identifier for the contact
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
/**
|
|
170
|
+
* Display name of the contact
|
|
171
|
+
*/
|
|
172
|
+
displayName?: string | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Email address of the contact
|
|
175
|
+
*/
|
|
176
|
+
email?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
179
|
+
*/
|
|
180
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* URL to the contact's avatar or logo
|
|
183
|
+
*/
|
|
184
|
+
logoUrl?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* A list of tags associated with the contact
|
|
187
|
+
*/
|
|
188
|
+
tags?: Array<string> | undefined;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Thread information to group related requests
|
|
193
|
+
*/
|
|
194
|
+
export type StreamRunAgentThread = {
|
|
195
|
+
/**
|
|
196
|
+
* Unique thread identifier to group related invocations.
|
|
197
|
+
*/
|
|
198
|
+
id: string;
|
|
199
|
+
/**
|
|
200
|
+
* Optional tags to differentiate or categorize threads
|
|
201
|
+
*/
|
|
202
|
+
tags?: Array<string> | undefined;
|
|
203
|
+
};
|
|
204
|
+
|
|
161
205
|
/**
|
|
162
206
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
163
207
|
*/
|
|
@@ -348,7 +392,7 @@ export type Tools12 = {
|
|
|
348
392
|
/**
|
|
349
393
|
* 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.
|
|
350
394
|
*/
|
|
351
|
-
path
|
|
395
|
+
path?: string | undefined;
|
|
352
396
|
/**
|
|
353
397
|
* Unique key of the tool as it will be displayed in the UI
|
|
354
398
|
*/
|
|
@@ -590,9 +634,13 @@ export type StreamRunAgentRequestBody = {
|
|
|
590
634
|
*/
|
|
591
635
|
variables?: { [k: string]: any } | undefined;
|
|
592
636
|
/**
|
|
593
|
-
*
|
|
637
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
638
|
+
*/
|
|
639
|
+
contact?: StreamRunAgentContact | undefined;
|
|
640
|
+
/**
|
|
641
|
+
* Thread information to group related requests
|
|
594
642
|
*/
|
|
595
|
-
|
|
643
|
+
thread?: StreamRunAgentThread | undefined;
|
|
596
644
|
/**
|
|
597
645
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
598
646
|
*/
|
|
@@ -605,10 +653,6 @@ export type StreamRunAgentRequestBody = {
|
|
|
605
653
|
* A brief summary of the agent's purpose.
|
|
606
654
|
*/
|
|
607
655
|
description?: string | undefined;
|
|
608
|
-
/**
|
|
609
|
-
* Optional URL to an icon for the agent
|
|
610
|
-
*/
|
|
611
|
-
iconUrl?: string | undefined;
|
|
612
656
|
/**
|
|
613
657
|
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
614
658
|
*/
|
|
@@ -620,6 +664,10 @@ export type StreamRunAgentRequestBody = {
|
|
|
620
664
|
*/
|
|
621
665
|
teamOfAgents?: Array<StreamRunAgentTeamOfAgents> | undefined;
|
|
622
666
|
settings: StreamRunAgentSettings;
|
|
667
|
+
/**
|
|
668
|
+
* Optional metadata for the agent run as key-value pairs that will be included in traces
|
|
669
|
+
*/
|
|
670
|
+
metadata?: { [k: string]: any } | undefined;
|
|
623
671
|
/**
|
|
624
672
|
* Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
|
|
625
673
|
*/
|
|
@@ -1214,14 +1262,14 @@ export const StreamRunAgentParts2$inboundSchema: z.ZodType<
|
|
|
1214
1262
|
unknown
|
|
1215
1263
|
> = z.object({
|
|
1216
1264
|
kind: StreamRunAgentPartsAgentsKind$inboundSchema,
|
|
1217
|
-
data: z.
|
|
1265
|
+
data: z.record(z.any()),
|
|
1218
1266
|
metadata: z.record(z.any()).optional(),
|
|
1219
1267
|
});
|
|
1220
1268
|
|
|
1221
1269
|
/** @internal */
|
|
1222
1270
|
export type StreamRunAgentParts2$Outbound = {
|
|
1223
1271
|
kind: string;
|
|
1224
|
-
data
|
|
1272
|
+
data: { [k: string]: any };
|
|
1225
1273
|
metadata?: { [k: string]: any } | undefined;
|
|
1226
1274
|
};
|
|
1227
1275
|
|
|
@@ -1232,7 +1280,7 @@ export const StreamRunAgentParts2$outboundSchema: z.ZodType<
|
|
|
1232
1280
|
StreamRunAgentParts2
|
|
1233
1281
|
> = z.object({
|
|
1234
1282
|
kind: StreamRunAgentPartsAgentsKind$outboundSchema,
|
|
1235
|
-
data: z.
|
|
1283
|
+
data: z.record(z.any()),
|
|
1236
1284
|
metadata: z.record(z.any()).optional(),
|
|
1237
1285
|
});
|
|
1238
1286
|
|
|
@@ -1353,18 +1401,18 @@ export const StreamRunAgentParts$inboundSchema: z.ZodType<
|
|
|
1353
1401
|
> = z.union([
|
|
1354
1402
|
z.lazy(() => StreamRunAgentParts4$inboundSchema),
|
|
1355
1403
|
z.lazy(() => StreamRunAgentParts1$inboundSchema),
|
|
1404
|
+
z.lazy(() => StreamRunAgentParts2$inboundSchema),
|
|
1356
1405
|
z.lazy(() => StreamRunAgentParts3$inboundSchema),
|
|
1357
1406
|
z.lazy(() => Parts5$inboundSchema),
|
|
1358
|
-
z.lazy(() => StreamRunAgentParts2$inboundSchema),
|
|
1359
1407
|
]);
|
|
1360
1408
|
|
|
1361
1409
|
/** @internal */
|
|
1362
1410
|
export type StreamRunAgentParts$Outbound =
|
|
1363
1411
|
| StreamRunAgentParts4$Outbound
|
|
1364
1412
|
| StreamRunAgentParts1$Outbound
|
|
1413
|
+
| StreamRunAgentParts2$Outbound
|
|
1365
1414
|
| StreamRunAgentParts3$Outbound
|
|
1366
|
-
| Parts5$Outbound
|
|
1367
|
-
| StreamRunAgentParts2$Outbound;
|
|
1415
|
+
| Parts5$Outbound;
|
|
1368
1416
|
|
|
1369
1417
|
/** @internal */
|
|
1370
1418
|
export const StreamRunAgentParts$outboundSchema: z.ZodType<
|
|
@@ -1374,9 +1422,9 @@ export const StreamRunAgentParts$outboundSchema: z.ZodType<
|
|
|
1374
1422
|
> = z.union([
|
|
1375
1423
|
z.lazy(() => StreamRunAgentParts4$outboundSchema),
|
|
1376
1424
|
z.lazy(() => StreamRunAgentParts1$outboundSchema),
|
|
1425
|
+
z.lazy(() => StreamRunAgentParts2$outboundSchema),
|
|
1377
1426
|
z.lazy(() => StreamRunAgentParts3$outboundSchema),
|
|
1378
1427
|
z.lazy(() => Parts5$outboundSchema),
|
|
1379
|
-
z.lazy(() => StreamRunAgentParts2$outboundSchema),
|
|
1380
1428
|
]);
|
|
1381
1429
|
|
|
1382
1430
|
/**
|
|
@@ -1425,9 +1473,9 @@ export const StreamRunAgentMessage$inboundSchema: z.ZodType<
|
|
|
1425
1473
|
z.union([
|
|
1426
1474
|
z.lazy(() => StreamRunAgentParts4$inboundSchema),
|
|
1427
1475
|
z.lazy(() => StreamRunAgentParts1$inboundSchema),
|
|
1476
|
+
z.lazy(() => StreamRunAgentParts2$inboundSchema),
|
|
1428
1477
|
z.lazy(() => StreamRunAgentParts3$inboundSchema),
|
|
1429
1478
|
z.lazy(() => Parts5$inboundSchema),
|
|
1430
|
-
z.lazy(() => StreamRunAgentParts2$inboundSchema),
|
|
1431
1479
|
]),
|
|
1432
1480
|
),
|
|
1433
1481
|
metadata: z.record(z.any()).optional(),
|
|
@@ -1440,9 +1488,9 @@ export type StreamRunAgentMessage$Outbound = {
|
|
|
1440
1488
|
parts: Array<
|
|
1441
1489
|
| StreamRunAgentParts4$Outbound
|
|
1442
1490
|
| StreamRunAgentParts1$Outbound
|
|
1491
|
+
| StreamRunAgentParts2$Outbound
|
|
1443
1492
|
| StreamRunAgentParts3$Outbound
|
|
1444
1493
|
| Parts5$Outbound
|
|
1445
|
-
| StreamRunAgentParts2$Outbound
|
|
1446
1494
|
>;
|
|
1447
1495
|
metadata?: { [k: string]: any } | undefined;
|
|
1448
1496
|
};
|
|
@@ -1462,9 +1510,9 @@ export const StreamRunAgentMessage$outboundSchema: z.ZodType<
|
|
|
1462
1510
|
z.union([
|
|
1463
1511
|
z.lazy(() => StreamRunAgentParts4$outboundSchema),
|
|
1464
1512
|
z.lazy(() => StreamRunAgentParts1$outboundSchema),
|
|
1513
|
+
z.lazy(() => StreamRunAgentParts2$outboundSchema),
|
|
1465
1514
|
z.lazy(() => StreamRunAgentParts3$outboundSchema),
|
|
1466
1515
|
z.lazy(() => Parts5$outboundSchema),
|
|
1467
|
-
z.lazy(() => StreamRunAgentParts2$outboundSchema),
|
|
1468
1516
|
]),
|
|
1469
1517
|
),
|
|
1470
1518
|
metadata: z.record(z.any()).optional(),
|
|
@@ -1501,6 +1549,142 @@ export function streamRunAgentMessageFromJSON(
|
|
|
1501
1549
|
);
|
|
1502
1550
|
}
|
|
1503
1551
|
|
|
1552
|
+
/** @internal */
|
|
1553
|
+
export const StreamRunAgentContact$inboundSchema: z.ZodType<
|
|
1554
|
+
StreamRunAgentContact,
|
|
1555
|
+
z.ZodTypeDef,
|
|
1556
|
+
unknown
|
|
1557
|
+
> = z.object({
|
|
1558
|
+
id: z.string(),
|
|
1559
|
+
display_name: z.string().optional(),
|
|
1560
|
+
email: z.string().optional(),
|
|
1561
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1562
|
+
logo_url: z.string().optional(),
|
|
1563
|
+
tags: z.array(z.string()).optional(),
|
|
1564
|
+
}).transform((v) => {
|
|
1565
|
+
return remap$(v, {
|
|
1566
|
+
"display_name": "displayName",
|
|
1567
|
+
"logo_url": "logoUrl",
|
|
1568
|
+
});
|
|
1569
|
+
});
|
|
1570
|
+
|
|
1571
|
+
/** @internal */
|
|
1572
|
+
export type StreamRunAgentContact$Outbound = {
|
|
1573
|
+
id: string;
|
|
1574
|
+
display_name?: string | undefined;
|
|
1575
|
+
email?: string | undefined;
|
|
1576
|
+
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
1577
|
+
logo_url?: string | undefined;
|
|
1578
|
+
tags?: Array<string> | undefined;
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
/** @internal */
|
|
1582
|
+
export const StreamRunAgentContact$outboundSchema: z.ZodType<
|
|
1583
|
+
StreamRunAgentContact$Outbound,
|
|
1584
|
+
z.ZodTypeDef,
|
|
1585
|
+
StreamRunAgentContact
|
|
1586
|
+
> = z.object({
|
|
1587
|
+
id: z.string(),
|
|
1588
|
+
displayName: z.string().optional(),
|
|
1589
|
+
email: z.string().optional(),
|
|
1590
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1591
|
+
logoUrl: z.string().optional(),
|
|
1592
|
+
tags: z.array(z.string()).optional(),
|
|
1593
|
+
}).transform((v) => {
|
|
1594
|
+
return remap$(v, {
|
|
1595
|
+
displayName: "display_name",
|
|
1596
|
+
logoUrl: "logo_url",
|
|
1597
|
+
});
|
|
1598
|
+
});
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* @internal
|
|
1602
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1603
|
+
*/
|
|
1604
|
+
export namespace StreamRunAgentContact$ {
|
|
1605
|
+
/** @deprecated use `StreamRunAgentContact$inboundSchema` instead. */
|
|
1606
|
+
export const inboundSchema = StreamRunAgentContact$inboundSchema;
|
|
1607
|
+
/** @deprecated use `StreamRunAgentContact$outboundSchema` instead. */
|
|
1608
|
+
export const outboundSchema = StreamRunAgentContact$outboundSchema;
|
|
1609
|
+
/** @deprecated use `StreamRunAgentContact$Outbound` instead. */
|
|
1610
|
+
export type Outbound = StreamRunAgentContact$Outbound;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
export function streamRunAgentContactToJSON(
|
|
1614
|
+
streamRunAgentContact: StreamRunAgentContact,
|
|
1615
|
+
): string {
|
|
1616
|
+
return JSON.stringify(
|
|
1617
|
+
StreamRunAgentContact$outboundSchema.parse(streamRunAgentContact),
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export function streamRunAgentContactFromJSON(
|
|
1622
|
+
jsonString: string,
|
|
1623
|
+
): SafeParseResult<StreamRunAgentContact, SDKValidationError> {
|
|
1624
|
+
return safeParse(
|
|
1625
|
+
jsonString,
|
|
1626
|
+
(x) => StreamRunAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1627
|
+
`Failed to parse 'StreamRunAgentContact' from JSON`,
|
|
1628
|
+
);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export const StreamRunAgentThread$inboundSchema: z.ZodType<
|
|
1633
|
+
StreamRunAgentThread,
|
|
1634
|
+
z.ZodTypeDef,
|
|
1635
|
+
unknown
|
|
1636
|
+
> = z.object({
|
|
1637
|
+
id: z.string(),
|
|
1638
|
+
tags: z.array(z.string()).optional(),
|
|
1639
|
+
});
|
|
1640
|
+
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export type StreamRunAgentThread$Outbound = {
|
|
1643
|
+
id: string;
|
|
1644
|
+
tags?: Array<string> | undefined;
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
/** @internal */
|
|
1648
|
+
export const StreamRunAgentThread$outboundSchema: z.ZodType<
|
|
1649
|
+
StreamRunAgentThread$Outbound,
|
|
1650
|
+
z.ZodTypeDef,
|
|
1651
|
+
StreamRunAgentThread
|
|
1652
|
+
> = z.object({
|
|
1653
|
+
id: z.string(),
|
|
1654
|
+
tags: z.array(z.string()).optional(),
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* @internal
|
|
1659
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1660
|
+
*/
|
|
1661
|
+
export namespace StreamRunAgentThread$ {
|
|
1662
|
+
/** @deprecated use `StreamRunAgentThread$inboundSchema` instead. */
|
|
1663
|
+
export const inboundSchema = StreamRunAgentThread$inboundSchema;
|
|
1664
|
+
/** @deprecated use `StreamRunAgentThread$outboundSchema` instead. */
|
|
1665
|
+
export const outboundSchema = StreamRunAgentThread$outboundSchema;
|
|
1666
|
+
/** @deprecated use `StreamRunAgentThread$Outbound` instead. */
|
|
1667
|
+
export type Outbound = StreamRunAgentThread$Outbound;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
export function streamRunAgentThreadToJSON(
|
|
1671
|
+
streamRunAgentThread: StreamRunAgentThread,
|
|
1672
|
+
): string {
|
|
1673
|
+
return JSON.stringify(
|
|
1674
|
+
StreamRunAgentThread$outboundSchema.parse(streamRunAgentThread),
|
|
1675
|
+
);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
export function streamRunAgentThreadFromJSON(
|
|
1679
|
+
jsonString: string,
|
|
1680
|
+
): SafeParseResult<StreamRunAgentThread, SDKValidationError> {
|
|
1681
|
+
return safeParse(
|
|
1682
|
+
jsonString,
|
|
1683
|
+
(x) => StreamRunAgentThread$inboundSchema.parse(JSON.parse(x)),
|
|
1684
|
+
`Failed to parse 'StreamRunAgentThread' from JSON`,
|
|
1685
|
+
);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1504
1688
|
/** @internal */
|
|
1505
1689
|
export const StreamRunAgentMemory$inboundSchema: z.ZodType<
|
|
1506
1690
|
StreamRunAgentMemory,
|
|
@@ -2404,8 +2588,8 @@ export function toolsHttpFromJSON(
|
|
|
2404
2588
|
/** @internal */
|
|
2405
2589
|
export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
|
|
2406
2590
|
z.object({
|
|
2407
|
-
_id: z.string().default("
|
|
2408
|
-
path: z.string(),
|
|
2591
|
+
_id: z.string().default("01K5X16BV6H39EVD4E4K07VQ12"),
|
|
2592
|
+
path: z.string().optional(),
|
|
2409
2593
|
key: z.string(),
|
|
2410
2594
|
display_name: z.string(),
|
|
2411
2595
|
description: z.string(),
|
|
@@ -2427,7 +2611,7 @@ export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
|
|
|
2427
2611
|
/** @internal */
|
|
2428
2612
|
export type Tools12$Outbound = {
|
|
2429
2613
|
_id: string;
|
|
2430
|
-
path
|
|
2614
|
+
path?: string | undefined;
|
|
2431
2615
|
key: string;
|
|
2432
2616
|
display_name: string;
|
|
2433
2617
|
description: string;
|
|
@@ -2444,8 +2628,8 @@ export const Tools12$outboundSchema: z.ZodType<
|
|
|
2444
2628
|
z.ZodTypeDef,
|
|
2445
2629
|
Tools12
|
|
2446
2630
|
> = z.object({
|
|
2447
|
-
id: z.string().default("
|
|
2448
|
-
path: z.string(),
|
|
2631
|
+
id: z.string().default("01K5X16BV6H39EVD4E4K07VQ12"),
|
|
2632
|
+
path: z.string().optional(),
|
|
2449
2633
|
key: z.string(),
|
|
2450
2634
|
displayName: z.string(),
|
|
2451
2635
|
description: z.string(),
|
|
@@ -3684,11 +3868,11 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3684
3868
|
instructions: z.string(),
|
|
3685
3869
|
message: z.lazy(() => StreamRunAgentMessage$inboundSchema),
|
|
3686
3870
|
variables: z.record(z.any()).optional(),
|
|
3687
|
-
|
|
3871
|
+
contact: z.lazy(() => StreamRunAgentContact$inboundSchema).optional(),
|
|
3872
|
+
thread: z.lazy(() => StreamRunAgentThread$inboundSchema).optional(),
|
|
3688
3873
|
memory: z.lazy(() => StreamRunAgentMemory$inboundSchema).optional(),
|
|
3689
3874
|
path: z.string(),
|
|
3690
3875
|
description: z.string().optional(),
|
|
3691
|
-
iconUrl: z.string().optional(),
|
|
3692
3876
|
system_prompt: z.string().optional(),
|
|
3693
3877
|
memory_stores: z.array(z.string()).optional(),
|
|
3694
3878
|
knowledge_bases: z.array(
|
|
@@ -3698,6 +3882,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3698
3882
|
z.lazy(() => StreamRunAgentTeamOfAgents$inboundSchema),
|
|
3699
3883
|
).optional(),
|
|
3700
3884
|
settings: z.lazy(() => StreamRunAgentSettings$inboundSchema),
|
|
3885
|
+
metadata: z.record(z.any()).optional(),
|
|
3701
3886
|
stream_timeout_seconds: z.number().optional(),
|
|
3702
3887
|
}).transform((v) => {
|
|
3703
3888
|
return remap$(v, {
|
|
@@ -3720,16 +3905,17 @@ export type StreamRunAgentRequestBody$Outbound = {
|
|
|
3720
3905
|
instructions: string;
|
|
3721
3906
|
message: StreamRunAgentMessage$Outbound;
|
|
3722
3907
|
variables?: { [k: string]: any } | undefined;
|
|
3723
|
-
|
|
3908
|
+
contact?: StreamRunAgentContact$Outbound | undefined;
|
|
3909
|
+
thread?: StreamRunAgentThread$Outbound | undefined;
|
|
3724
3910
|
memory?: StreamRunAgentMemory$Outbound | undefined;
|
|
3725
3911
|
path: string;
|
|
3726
3912
|
description?: string | undefined;
|
|
3727
|
-
iconUrl?: string | undefined;
|
|
3728
3913
|
system_prompt?: string | undefined;
|
|
3729
3914
|
memory_stores?: Array<string> | undefined;
|
|
3730
3915
|
knowledge_bases?: Array<StreamRunAgentKnowledgeBases$Outbound> | undefined;
|
|
3731
3916
|
team_of_agents?: Array<StreamRunAgentTeamOfAgents$Outbound> | undefined;
|
|
3732
3917
|
settings: StreamRunAgentSettings$Outbound;
|
|
3918
|
+
metadata?: { [k: string]: any } | undefined;
|
|
3733
3919
|
stream_timeout_seconds?: number | undefined;
|
|
3734
3920
|
};
|
|
3735
3921
|
|
|
@@ -3747,11 +3933,11 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3747
3933
|
instructions: z.string(),
|
|
3748
3934
|
message: z.lazy(() => StreamRunAgentMessage$outboundSchema),
|
|
3749
3935
|
variables: z.record(z.any()).optional(),
|
|
3750
|
-
|
|
3936
|
+
contact: z.lazy(() => StreamRunAgentContact$outboundSchema).optional(),
|
|
3937
|
+
thread: z.lazy(() => StreamRunAgentThread$outboundSchema).optional(),
|
|
3751
3938
|
memory: z.lazy(() => StreamRunAgentMemory$outboundSchema).optional(),
|
|
3752
3939
|
path: z.string(),
|
|
3753
3940
|
description: z.string().optional(),
|
|
3754
|
-
iconUrl: z.string().optional(),
|
|
3755
3941
|
systemPrompt: z.string().optional(),
|
|
3756
3942
|
memoryStores: z.array(z.string()).optional(),
|
|
3757
3943
|
knowledgeBases: z.array(
|
|
@@ -3760,6 +3946,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3760
3946
|
teamOfAgents: z.array(z.lazy(() => StreamRunAgentTeamOfAgents$outboundSchema))
|
|
3761
3947
|
.optional(),
|
|
3762
3948
|
settings: z.lazy(() => StreamRunAgentSettings$outboundSchema),
|
|
3949
|
+
metadata: z.record(z.any()).optional(),
|
|
3763
3950
|
streamTimeoutSeconds: z.number().optional(),
|
|
3764
3951
|
}).transform((v) => {
|
|
3765
3952
|
return remap$(v, {
|
|
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
538
538
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
539
539
|
.optional(),
|
|
540
540
|
updated: z.string().datetime({ offset: true }).default(
|
|
541
|
-
"2025-09-
|
|
541
|
+
"2025-09-24T04:54:52.401Z",
|
|
542
542
|
).transform(v => new Date(v)),
|
|
543
543
|
}).transform((v) => {
|
|
544
544
|
return remap$(v, {
|
|
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
573
573
|
isActive: z.boolean(),
|
|
574
574
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
575
575
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
576
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
576
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
577
577
|
.transform(v => v.toISOString()),
|
|
578
578
|
}).transform((v) => {
|
|
579
579
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
245
245
|
.optional(),
|
|
246
246
|
updated: z.string().datetime({ offset: true }).default(
|
|
247
|
-
"2025-09-
|
|
247
|
+
"2025-09-24T04:54:52.401Z",
|
|
248
248
|
).transform(v => new Date(v)),
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return remap$(v, {
|
|
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
282
282
|
tags: z.array(z.string()).optional(),
|
|
283
283
|
metadata: z.record(z.any()).optional(),
|
|
284
284
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
285
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
286
286
|
.transform(v => v.toISOString()),
|
|
287
287
|
}).transform((v) => {
|
|
288
288
|
return remap$(v, {
|
|
@@ -6018,7 +6018,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
6018
6018
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6019
6019
|
.optional(),
|
|
6020
6020
|
updated: z.string().datetime({ offset: true }).default(
|
|
6021
|
-
"2025-09-
|
|
6021
|
+
"2025-09-24T04:54:52.401Z",
|
|
6022
6022
|
).transform(v => new Date(v)),
|
|
6023
6023
|
}).transform((v) => {
|
|
6024
6024
|
return remap$(v, {
|
|
@@ -6080,7 +6080,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
6080
6080
|
createdById: z.string().optional(),
|
|
6081
6081
|
updatedById: z.string().optional(),
|
|
6082
6082
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6083
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
6083
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
6084
6084
|
.transform(v => v.toISOString()),
|
|
6085
6085
|
}).transform((v) => {
|
|
6086
6086
|
return remap$(v, {
|
|
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
302
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
303
303
|
.optional(),
|
|
304
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
305
|
-
"2025-09-
|
|
305
|
+
"2025-09-24T04:54:52.401Z",
|
|
306
306
|
).transform(v => new Date(v)),
|
|
307
307
|
}).transform((v) => {
|
|
308
308
|
return remap$(v, {
|
|
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
347
347
|
parentId: z.string().optional(),
|
|
348
348
|
version: z.string().optional(),
|
|
349
349
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
350
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
350
|
+
updated: z.date().default(() => new Date("2025-09-24T04:54:52.401Z"))
|
|
351
351
|
.transform(v => v.toISOString()),
|
|
352
352
|
}).transform((v) => {
|
|
353
353
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
z.ZodTypeDef,
|
|
245
245
|
unknown
|
|
246
246
|
> = z.object({
|
|
247
|
-
_id: z.string().default("
|
|
247
|
+
_id: z.string().default("01K5X16BZQNBG0DWTHWFFH63AW"),
|
|
248
248
|
display_name: z.string(),
|
|
249
249
|
description: z.string().optional(),
|
|
250
250
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
288
288
|
z.ZodTypeDef,
|
|
289
289
|
UpdateDatasourceResponseBody
|
|
290
290
|
> = z.object({
|
|
291
|
-
id: z.string().default("
|
|
291
|
+
id: z.string().default("01K5X16BZQNBG0DWTHWFFH63AW"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|