@orq-ai/node 3.12.9 → 3.12.10
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/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- 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/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.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/FUNCTIONS.md +19 -9
- package/packages/orq-rc/README.md +179 -123
- package/packages/orq-rc/docs/sdks/knowledge/README.md +12 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -81
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -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/lib/config.ts +3 -3
- 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/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 +28 -28
- 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 +139 -117
- 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/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/listagents.ts +5 -5
- 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/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 +300 -12
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +29 -259
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +335 -12
- 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 +28 -28
- package/packages/orq-rc/src/sdk/sdk.ts +1 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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/examples/postV2AgentsInternal.example.ts +0 -30
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +0 -159
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +0 -33
- package/packages/orq-rc/src/models/operations/postv2agentsinternal.ts +0 -103
|
@@ -80,7 +80,7 @@ export type ListAgentsTools = {
|
|
|
80
80
|
id: string;
|
|
81
81
|
actionType: string;
|
|
82
82
|
displayName?: string | undefined;
|
|
83
|
-
requiresApproval
|
|
83
|
+
requiresApproval?: boolean | undefined;
|
|
84
84
|
conditions?: Array<ListAgentsConditions> | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* The id of the resource
|
|
@@ -453,7 +453,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
453
453
|
id: z.string(),
|
|
454
454
|
action_type: z.string(),
|
|
455
455
|
display_name: z.string().optional(),
|
|
456
|
-
requires_approval: z.boolean(),
|
|
456
|
+
requires_approval: z.boolean().default(false),
|
|
457
457
|
conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
|
|
458
458
|
.optional(),
|
|
459
459
|
mcpServer: z.string().optional(),
|
|
@@ -486,7 +486,7 @@ export const ListAgentsTools$outboundSchema: z.ZodType<
|
|
|
486
486
|
id: z.string(),
|
|
487
487
|
actionType: z.string(),
|
|
488
488
|
displayName: z.string().optional(),
|
|
489
|
-
requiresApproval: z.boolean(),
|
|
489
|
+
requiresApproval: z.boolean().default(false),
|
|
490
490
|
conditions: z.array(z.lazy(() => ListAgentsConditions$outboundSchema))
|
|
491
491
|
.optional(),
|
|
492
492
|
mcpServer: z.string().optional(),
|
|
@@ -1026,7 +1026,7 @@ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1026
1026
|
z.ZodTypeDef,
|
|
1027
1027
|
unknown
|
|
1028
1028
|
> = z.object({
|
|
1029
|
-
id: z.string().default("
|
|
1029
|
+
id: z.string().default("01K5E8A6RZT1PCVK58XFAA34WS"),
|
|
1030
1030
|
knowledge_id: z.string(),
|
|
1031
1031
|
configuration: z.union([
|
|
1032
1032
|
z.lazy(() => ListAgentsConfiguration2$inboundSchema),
|
|
@@ -1053,7 +1053,7 @@ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1053
1053
|
z.ZodTypeDef,
|
|
1054
1054
|
ListAgentsKnowledgeBases
|
|
1055
1055
|
> = z.object({
|
|
1056
|
-
id: z.string().default("
|
|
1056
|
+
id: z.string().default("01K5E8A6RZT1PCVK58XFAA34WS"),
|
|
1057
1057
|
knowledgeId: z.string(),
|
|
1058
1058
|
configuration: z.union([
|
|
1059
1059
|
z.lazy(() => ListAgentsConfiguration2$outboundSchema),
|
|
@@ -464,7 +464,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
464
464
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
465
465
|
.optional(),
|
|
466
466
|
updated: z.string().datetime({ offset: true }).default(
|
|
467
|
-
"2025-09-
|
|
467
|
+
"2025-09-18T11:10:42.158Z",
|
|
468
468
|
).transform(v => new Date(v)),
|
|
469
469
|
}).transform((v) => {
|
|
470
470
|
return remap$(v, {
|
|
@@ -499,7 +499,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
499
499
|
isActive: z.boolean(),
|
|
500
500
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
501
501
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
502
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
502
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
503
503
|
.transform(v => v.toISOString()),
|
|
504
504
|
}).transform((v) => {
|
|
505
505
|
return remap$(v, {
|
|
@@ -352,7 +352,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
352
352
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
353
353
|
.optional(),
|
|
354
354
|
updated: z.string().datetime({ offset: true }).default(
|
|
355
|
-
"2025-09-
|
|
355
|
+
"2025-09-18T11:10:42.158Z",
|
|
356
356
|
).transform(v => new Date(v)),
|
|
357
357
|
metrics: z.lazy(() => ListContactsMetrics$inboundSchema),
|
|
358
358
|
}).transform((v) => {
|
|
@@ -389,7 +389,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
389
389
|
tags: z.array(z.string()).optional(),
|
|
390
390
|
metadata: z.record(z.any()).optional(),
|
|
391
391
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
392
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
392
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
393
393
|
.transform(v => v.toISOString()),
|
|
394
394
|
metrics: z.lazy(() => ListContactsMetrics$outboundSchema),
|
|
395
395
|
}).transform((v) => {
|
|
@@ -3100,7 +3100,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3100
3100
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3101
3101
|
.optional(),
|
|
3102
3102
|
updated: z.string().datetime({ offset: true }).default(
|
|
3103
|
-
"2025-09-
|
|
3103
|
+
"2025-09-18T11:10:42.158Z",
|
|
3104
3104
|
).transform(v => new Date(v)),
|
|
3105
3105
|
}).transform((v) => {
|
|
3106
3106
|
return remap$(v, {
|
|
@@ -3164,7 +3164,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3164
3164
|
createdById: z.string().optional(),
|
|
3165
3165
|
updatedById: z.string().optional(),
|
|
3166
3166
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3167
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3167
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
3168
3168
|
.transform(v => v.toISOString()),
|
|
3169
3169
|
}).transform((v) => {
|
|
3170
3170
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-09-
|
|
256
|
+
"2025-09-18T11:10:42.158Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -285,7 +285,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
285
285
|
z.ZodTypeDef,
|
|
286
286
|
unknown
|
|
287
287
|
> = z.object({
|
|
288
|
-
_id: z.string().default("
|
|
288
|
+
_id: z.string().default("01K5E8A6X18R7ZVH7X20VHEYGS"),
|
|
289
289
|
display_name: z.string(),
|
|
290
290
|
description: z.string().optional(),
|
|
291
291
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -329,7 +329,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
329
329
|
z.ZodTypeDef,
|
|
330
330
|
ListDatasourcesData
|
|
331
331
|
> = z.object({
|
|
332
|
-
id: z.string().default("
|
|
332
|
+
id: z.string().default("01K5E8A6X18R7ZVH7X20VHEYGS"),
|
|
333
333
|
displayName: z.string(),
|
|
334
334
|
description: z.string().optional(),
|
|
335
335
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
127
127
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
128
|
.optional(),
|
|
129
129
|
updated: z.string().datetime({ offset: true }).default(
|
|
130
|
-
"2025-09-
|
|
130
|
+
"2025-09-18T11:10:42.158Z",
|
|
131
131
|
).transform(v => new Date(v)),
|
|
132
132
|
}).transform((v) => {
|
|
133
133
|
return remap$(v, {
|
|
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
165
165
|
tags: z.array(z.string()).optional(),
|
|
166
166
|
metadata: z.record(z.any()).optional(),
|
|
167
167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
168
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
169
169
|
.transform(v => v.toISOString()),
|
|
170
170
|
}).transform((v) => {
|
|
171
171
|
return remap$(v, {
|
|
@@ -2957,7 +2957,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2957
2957
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2958
2958
|
.optional(),
|
|
2959
2959
|
updated: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2025-09-
|
|
2960
|
+
"2025-09-18T11:10:42.158Z",
|
|
2961
2961
|
).transform(v => new Date(v)),
|
|
2962
2962
|
}).transform((v) => {
|
|
2963
2963
|
return remap$(v, {
|
|
@@ -3015,7 +3015,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
3015
3015
|
createdById: z.string().optional(),
|
|
3016
3016
|
updatedById: z.string().optional(),
|
|
3017
3017
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3018
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3018
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
3019
3019
|
.transform(v => v.toISOString()),
|
|
3020
3020
|
}).transform((v) => {
|
|
3021
3021
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-09-
|
|
204
|
+
"2025-09-18T11:10:42.158Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-09-18T11:10:42.158Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01K5E8A6X2VQQPK7A8V82W82FN"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01K5E8A6X2VQQPK7A8V82W82FN"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -141,6 +141,39 @@ export type Message = {
|
|
|
141
141
|
metadata?: { [k: string]: any } | undefined;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
export const RunAgentConfigurationType = {
|
|
145
|
+
Query: "query",
|
|
146
|
+
} as const;
|
|
147
|
+
export type RunAgentConfigurationType = ClosedEnum<
|
|
148
|
+
typeof RunAgentConfigurationType
|
|
149
|
+
>;
|
|
150
|
+
|
|
151
|
+
export type Configuration2 = {
|
|
152
|
+
type: RunAgentConfigurationType;
|
|
153
|
+
query: string;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export const ConfigurationType = {
|
|
157
|
+
LastUserMessage: "last_user_message",
|
|
158
|
+
} as const;
|
|
159
|
+
export type ConfigurationType = ClosedEnum<typeof ConfigurationType>;
|
|
160
|
+
|
|
161
|
+
export type Configuration1 = {
|
|
162
|
+
type: ConfigurationType;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
167
|
+
*/
|
|
168
|
+
export type Configuration = Configuration2 | Configuration1;
|
|
169
|
+
|
|
170
|
+
export type KnowledgeBases = {
|
|
171
|
+
/**
|
|
172
|
+
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
173
|
+
*/
|
|
174
|
+
configuration: Configuration2 | Configuration1;
|
|
175
|
+
};
|
|
176
|
+
|
|
144
177
|
export type TeamOfAgents = {
|
|
145
178
|
id: string;
|
|
146
179
|
/**
|
|
@@ -481,7 +514,7 @@ export type Settings = {
|
|
|
481
514
|
|
|
482
515
|
export type RunAgentRequestBody = {
|
|
483
516
|
/**
|
|
484
|
-
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
517
|
+
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
485
518
|
*/
|
|
486
519
|
key: string;
|
|
487
520
|
/**
|
|
@@ -489,7 +522,7 @@ export type RunAgentRequestBody = {
|
|
|
489
522
|
*/
|
|
490
523
|
taskId?: string | undefined;
|
|
491
524
|
/**
|
|
492
|
-
* The language model that powers the agent.
|
|
525
|
+
* The language model that powers the agent. The model must support tool calling capabilities.
|
|
493
526
|
*/
|
|
494
527
|
model: string;
|
|
495
528
|
/**
|
|
@@ -537,7 +570,7 @@ export type RunAgentRequestBody = {
|
|
|
537
570
|
*/
|
|
538
571
|
systemPrompt?: string | undefined;
|
|
539
572
|
memoryStores?: Array<string> | undefined;
|
|
540
|
-
knowledgeBases?: Array<
|
|
573
|
+
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
541
574
|
/**
|
|
542
575
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
543
576
|
*/
|
|
@@ -1421,6 +1454,259 @@ export function messageFromJSON(
|
|
|
1421
1454
|
);
|
|
1422
1455
|
}
|
|
1423
1456
|
|
|
1457
|
+
/** @internal */
|
|
1458
|
+
export const RunAgentConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1459
|
+
typeof RunAgentConfigurationType
|
|
1460
|
+
> = z.nativeEnum(RunAgentConfigurationType);
|
|
1461
|
+
|
|
1462
|
+
/** @internal */
|
|
1463
|
+
export const RunAgentConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1464
|
+
typeof RunAgentConfigurationType
|
|
1465
|
+
> = RunAgentConfigurationType$inboundSchema;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @internal
|
|
1469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1470
|
+
*/
|
|
1471
|
+
export namespace RunAgentConfigurationType$ {
|
|
1472
|
+
/** @deprecated use `RunAgentConfigurationType$inboundSchema` instead. */
|
|
1473
|
+
export const inboundSchema = RunAgentConfigurationType$inboundSchema;
|
|
1474
|
+
/** @deprecated use `RunAgentConfigurationType$outboundSchema` instead. */
|
|
1475
|
+
export const outboundSchema = RunAgentConfigurationType$outboundSchema;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/** @internal */
|
|
1479
|
+
export const Configuration2$inboundSchema: z.ZodType<
|
|
1480
|
+
Configuration2,
|
|
1481
|
+
z.ZodTypeDef,
|
|
1482
|
+
unknown
|
|
1483
|
+
> = z.object({
|
|
1484
|
+
type: RunAgentConfigurationType$inboundSchema,
|
|
1485
|
+
query: z.string(),
|
|
1486
|
+
});
|
|
1487
|
+
|
|
1488
|
+
/** @internal */
|
|
1489
|
+
export type Configuration2$Outbound = {
|
|
1490
|
+
type: string;
|
|
1491
|
+
query: string;
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
/** @internal */
|
|
1495
|
+
export const Configuration2$outboundSchema: z.ZodType<
|
|
1496
|
+
Configuration2$Outbound,
|
|
1497
|
+
z.ZodTypeDef,
|
|
1498
|
+
Configuration2
|
|
1499
|
+
> = z.object({
|
|
1500
|
+
type: RunAgentConfigurationType$outboundSchema,
|
|
1501
|
+
query: z.string(),
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* @internal
|
|
1506
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1507
|
+
*/
|
|
1508
|
+
export namespace Configuration2$ {
|
|
1509
|
+
/** @deprecated use `Configuration2$inboundSchema` instead. */
|
|
1510
|
+
export const inboundSchema = Configuration2$inboundSchema;
|
|
1511
|
+
/** @deprecated use `Configuration2$outboundSchema` instead. */
|
|
1512
|
+
export const outboundSchema = Configuration2$outboundSchema;
|
|
1513
|
+
/** @deprecated use `Configuration2$Outbound` instead. */
|
|
1514
|
+
export type Outbound = Configuration2$Outbound;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
export function configuration2ToJSON(configuration2: Configuration2): string {
|
|
1518
|
+
return JSON.stringify(Configuration2$outboundSchema.parse(configuration2));
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
export function configuration2FromJSON(
|
|
1522
|
+
jsonString: string,
|
|
1523
|
+
): SafeParseResult<Configuration2, SDKValidationError> {
|
|
1524
|
+
return safeParse(
|
|
1525
|
+
jsonString,
|
|
1526
|
+
(x) => Configuration2$inboundSchema.parse(JSON.parse(x)),
|
|
1527
|
+
`Failed to parse 'Configuration2' from JSON`,
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
/** @internal */
|
|
1532
|
+
export const ConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1533
|
+
typeof ConfigurationType
|
|
1534
|
+
> = z.nativeEnum(ConfigurationType);
|
|
1535
|
+
|
|
1536
|
+
/** @internal */
|
|
1537
|
+
export const ConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1538
|
+
typeof ConfigurationType
|
|
1539
|
+
> = ConfigurationType$inboundSchema;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* @internal
|
|
1543
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1544
|
+
*/
|
|
1545
|
+
export namespace ConfigurationType$ {
|
|
1546
|
+
/** @deprecated use `ConfigurationType$inboundSchema` instead. */
|
|
1547
|
+
export const inboundSchema = ConfigurationType$inboundSchema;
|
|
1548
|
+
/** @deprecated use `ConfigurationType$outboundSchema` instead. */
|
|
1549
|
+
export const outboundSchema = ConfigurationType$outboundSchema;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/** @internal */
|
|
1553
|
+
export const Configuration1$inboundSchema: z.ZodType<
|
|
1554
|
+
Configuration1,
|
|
1555
|
+
z.ZodTypeDef,
|
|
1556
|
+
unknown
|
|
1557
|
+
> = z.object({
|
|
1558
|
+
type: ConfigurationType$inboundSchema,
|
|
1559
|
+
});
|
|
1560
|
+
|
|
1561
|
+
/** @internal */
|
|
1562
|
+
export type Configuration1$Outbound = {
|
|
1563
|
+
type: string;
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
export const Configuration1$outboundSchema: z.ZodType<
|
|
1568
|
+
Configuration1$Outbound,
|
|
1569
|
+
z.ZodTypeDef,
|
|
1570
|
+
Configuration1
|
|
1571
|
+
> = z.object({
|
|
1572
|
+
type: ConfigurationType$outboundSchema,
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* @internal
|
|
1577
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1578
|
+
*/
|
|
1579
|
+
export namespace Configuration1$ {
|
|
1580
|
+
/** @deprecated use `Configuration1$inboundSchema` instead. */
|
|
1581
|
+
export const inboundSchema = Configuration1$inboundSchema;
|
|
1582
|
+
/** @deprecated use `Configuration1$outboundSchema` instead. */
|
|
1583
|
+
export const outboundSchema = Configuration1$outboundSchema;
|
|
1584
|
+
/** @deprecated use `Configuration1$Outbound` instead. */
|
|
1585
|
+
export type Outbound = Configuration1$Outbound;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
export function configuration1ToJSON(configuration1: Configuration1): string {
|
|
1589
|
+
return JSON.stringify(Configuration1$outboundSchema.parse(configuration1));
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
export function configuration1FromJSON(
|
|
1593
|
+
jsonString: string,
|
|
1594
|
+
): SafeParseResult<Configuration1, SDKValidationError> {
|
|
1595
|
+
return safeParse(
|
|
1596
|
+
jsonString,
|
|
1597
|
+
(x) => Configuration1$inboundSchema.parse(JSON.parse(x)),
|
|
1598
|
+
`Failed to parse 'Configuration1' from JSON`,
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
export const Configuration$inboundSchema: z.ZodType<
|
|
1604
|
+
Configuration,
|
|
1605
|
+
z.ZodTypeDef,
|
|
1606
|
+
unknown
|
|
1607
|
+
> = z.union([
|
|
1608
|
+
z.lazy(() => Configuration2$inboundSchema),
|
|
1609
|
+
z.lazy(() => Configuration1$inboundSchema),
|
|
1610
|
+
]);
|
|
1611
|
+
|
|
1612
|
+
/** @internal */
|
|
1613
|
+
export type Configuration$Outbound =
|
|
1614
|
+
| Configuration2$Outbound
|
|
1615
|
+
| Configuration1$Outbound;
|
|
1616
|
+
|
|
1617
|
+
/** @internal */
|
|
1618
|
+
export const Configuration$outboundSchema: z.ZodType<
|
|
1619
|
+
Configuration$Outbound,
|
|
1620
|
+
z.ZodTypeDef,
|
|
1621
|
+
Configuration
|
|
1622
|
+
> = z.union([
|
|
1623
|
+
z.lazy(() => Configuration2$outboundSchema),
|
|
1624
|
+
z.lazy(() => Configuration1$outboundSchema),
|
|
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 Configuration$ {
|
|
1632
|
+
/** @deprecated use `Configuration$inboundSchema` instead. */
|
|
1633
|
+
export const inboundSchema = Configuration$inboundSchema;
|
|
1634
|
+
/** @deprecated use `Configuration$outboundSchema` instead. */
|
|
1635
|
+
export const outboundSchema = Configuration$outboundSchema;
|
|
1636
|
+
/** @deprecated use `Configuration$Outbound` instead. */
|
|
1637
|
+
export type Outbound = Configuration$Outbound;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export function configurationToJSON(configuration: Configuration): string {
|
|
1641
|
+
return JSON.stringify(Configuration$outboundSchema.parse(configuration));
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export function configurationFromJSON(
|
|
1645
|
+
jsonString: string,
|
|
1646
|
+
): SafeParseResult<Configuration, SDKValidationError> {
|
|
1647
|
+
return safeParse(
|
|
1648
|
+
jsonString,
|
|
1649
|
+
(x) => Configuration$inboundSchema.parse(JSON.parse(x)),
|
|
1650
|
+
`Failed to parse 'Configuration' from JSON`,
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
/** @internal */
|
|
1655
|
+
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
1656
|
+
KnowledgeBases,
|
|
1657
|
+
z.ZodTypeDef,
|
|
1658
|
+
unknown
|
|
1659
|
+
> = z.object({
|
|
1660
|
+
configuration: z.union([
|
|
1661
|
+
z.lazy(() => Configuration2$inboundSchema),
|
|
1662
|
+
z.lazy(() => Configuration1$inboundSchema),
|
|
1663
|
+
]),
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
/** @internal */
|
|
1667
|
+
export type KnowledgeBases$Outbound = {
|
|
1668
|
+
configuration: Configuration2$Outbound | Configuration1$Outbound;
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
/** @internal */
|
|
1672
|
+
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
1673
|
+
KnowledgeBases$Outbound,
|
|
1674
|
+
z.ZodTypeDef,
|
|
1675
|
+
KnowledgeBases
|
|
1676
|
+
> = z.object({
|
|
1677
|
+
configuration: z.union([
|
|
1678
|
+
z.lazy(() => Configuration2$outboundSchema),
|
|
1679
|
+
z.lazy(() => Configuration1$outboundSchema),
|
|
1680
|
+
]),
|
|
1681
|
+
});
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* @internal
|
|
1685
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1686
|
+
*/
|
|
1687
|
+
export namespace KnowledgeBases$ {
|
|
1688
|
+
/** @deprecated use `KnowledgeBases$inboundSchema` instead. */
|
|
1689
|
+
export const inboundSchema = KnowledgeBases$inboundSchema;
|
|
1690
|
+
/** @deprecated use `KnowledgeBases$outboundSchema` instead. */
|
|
1691
|
+
export const outboundSchema = KnowledgeBases$outboundSchema;
|
|
1692
|
+
/** @deprecated use `KnowledgeBases$Outbound` instead. */
|
|
1693
|
+
export type Outbound = KnowledgeBases$Outbound;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
1697
|
+
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
export function knowledgeBasesFromJSON(
|
|
1701
|
+
jsonString: string,
|
|
1702
|
+
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
1703
|
+
return safeParse(
|
|
1704
|
+
jsonString,
|
|
1705
|
+
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1706
|
+
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
1707
|
+
);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1424
1710
|
/** @internal */
|
|
1425
1711
|
export const TeamOfAgents$inboundSchema: z.ZodType<
|
|
1426
1712
|
TeamOfAgents,
|
|
@@ -1949,7 +2235,7 @@ export function httpFromJSON(
|
|
|
1949
2235
|
/** @internal */
|
|
1950
2236
|
export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
|
|
1951
2237
|
.object({
|
|
1952
|
-
_id: z.string().default("
|
|
2238
|
+
_id: z.string().default("01K5E8A6SKDM6WDDRGVD1YNSN1"),
|
|
1953
2239
|
path: z.string(),
|
|
1954
2240
|
key: z.string(),
|
|
1955
2241
|
display_name: z.string(),
|
|
@@ -1988,7 +2274,7 @@ export const Eleven$outboundSchema: z.ZodType<
|
|
|
1988
2274
|
z.ZodTypeDef,
|
|
1989
2275
|
Eleven
|
|
1990
2276
|
> = z.object({
|
|
1991
|
-
id: z.string().default("
|
|
2277
|
+
id: z.string().default("01K5E8A6SKDM6WDDRGVD1YNSN1"),
|
|
1992
2278
|
path: z.string(),
|
|
1993
2279
|
key: z.string(),
|
|
1994
2280
|
displayName: z.string(),
|
|
@@ -2948,8 +3234,8 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
2948
3234
|
]),
|
|
2949
3235
|
),
|
|
2950
3236
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
|
|
2951
|
-
max_iterations: z.number().default(15),
|
|
2952
|
-
max_execution_time: z.number().default(120),
|
|
3237
|
+
max_iterations: z.number().int().default(15),
|
|
3238
|
+
max_execution_time: z.number().int().default(120),
|
|
2953
3239
|
}).transform((v) => {
|
|
2954
3240
|
return remap$(v, {
|
|
2955
3241
|
"tool_approval_required": "toolApprovalRequired",
|
|
@@ -3002,8 +3288,8 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
3002
3288
|
]),
|
|
3003
3289
|
),
|
|
3004
3290
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
|
|
3005
|
-
maxIterations: z.number().default(15),
|
|
3006
|
-
maxExecutionTime: z.number().default(120),
|
|
3291
|
+
maxIterations: z.number().int().default(15),
|
|
3292
|
+
maxExecutionTime: z.number().int().default(120),
|
|
3007
3293
|
}).transform((v) => {
|
|
3008
3294
|
return remap$(v, {
|
|
3009
3295
|
toolApprovalRequired: "tool_approval_required",
|
|
@@ -3060,7 +3346,8 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3060
3346
|
iconUrl: z.string().optional(),
|
|
3061
3347
|
system_prompt: z.string().optional(),
|
|
3062
3348
|
memory_stores: z.array(z.string()).optional(),
|
|
3063
|
-
knowledge_bases: z.array(z.
|
|
3349
|
+
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
3350
|
+
.optional(),
|
|
3064
3351
|
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
3065
3352
|
settings: z.lazy(() => Settings$inboundSchema),
|
|
3066
3353
|
}).transform((v) => {
|
|
@@ -3091,7 +3378,7 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
3091
3378
|
iconUrl?: string | undefined;
|
|
3092
3379
|
system_prompt?: string | undefined;
|
|
3093
3380
|
memory_stores?: Array<string> | undefined;
|
|
3094
|
-
knowledge_bases?: Array<
|
|
3381
|
+
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
3095
3382
|
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
3096
3383
|
settings: Settings$Outbound;
|
|
3097
3384
|
};
|
|
@@ -3117,7 +3404,8 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
3117
3404
|
iconUrl: z.string().optional(),
|
|
3118
3405
|
systemPrompt: z.string().optional(),
|
|
3119
3406
|
memoryStores: z.array(z.string()).optional(),
|
|
3120
|
-
knowledgeBases: z.array(z.
|
|
3407
|
+
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
3408
|
+
.optional(),
|
|
3121
3409
|
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
3122
3410
|
settings: z.lazy(() => Settings$outboundSchema),
|
|
3123
3411
|
}).transform((v) => {
|