@orq-ai/node 3.13.11 → 3.13.13
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 +266 -222
- package/bin/mcp-server.js.map +40 -40
- 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/lib/env.d.ts.map +1 -1
- package/lib/env.js +18 -1
- package/lib/env.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +38 -0
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +35 -1
- package/models/operations/createagent.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 +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- 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/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +15 -15
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +20 -18
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +53 -18
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +54 -19
- package/models/operations/updateagent.js.map +1 -1
- 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 +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/prompts/README.md +47 -13
- package/packages/orq-rc/docs/sdks/tools/README.md +7 -3
- 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/promptsCreate.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +4 -4
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/env.ts +20 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +6 -6
- package/packages/orq-rc/src/models/operations/createagent.ts +73 -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 +14 -14
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +108 -40
- package/packages/orq-rc/src/models/operations/createprompt.ts +4603 -1478
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- 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/getallmemorystores.ts +56 -20
- package/packages/orq-rc/src/models/operations/getallprompts.ts +48 -52
- package/packages/orq-rc/src/models/operations/getalltools.ts +14 -14
- 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 +22 -22
- 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 +11 -11
- 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 +11 -11
- 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/retrievememorystore.ts +56 -20
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +30 -24
- package/packages/orq-rc/src/models/operations/updateagent.ts +110 -28
- 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 +14 -14
- 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 +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +52 -20
- package/packages/orq-rc/src/models/operations/updateprompt.ts +5018 -1772
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/prompts.ts +3 -3
- package/packages/orq-rc/src/sdk/tools.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +20 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +73 -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 +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getalltools.ts +10 -10
- 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/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +30 -24
- package/src/models/operations/updateagent.ts +110 -28
- 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 +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -2751,7 +2751,7 @@ export const UpdateToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
2751
2751
|
z.ZodTypeDef,
|
|
2752
2752
|
unknown
|
|
2753
2753
|
> = z.object({
|
|
2754
|
-
_id: z.string().default("
|
|
2754
|
+
_id: z.string().default("01K83MSAY8T59BSW68T0S839HQ"),
|
|
2755
2755
|
path: z.string(),
|
|
2756
2756
|
key: z.string(),
|
|
2757
2757
|
display_name: z.string().optional(),
|
|
@@ -2806,7 +2806,7 @@ export const UpdateToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
2806
2806
|
z.ZodTypeDef,
|
|
2807
2807
|
UpdateToolResponseBody5
|
|
2808
2808
|
> = z.object({
|
|
2809
|
-
id: z.string().default("
|
|
2809
|
+
id: z.string().default("01K83MSAY8T59BSW68T0S839HQ"),
|
|
2810
2810
|
path: z.string(),
|
|
2811
2811
|
key: z.string(),
|
|
2812
2812
|
displayName: z.string().optional(),
|
|
@@ -3180,7 +3180,7 @@ export const UpdateToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
3180
3180
|
z.ZodTypeDef,
|
|
3181
3181
|
unknown
|
|
3182
3182
|
> = z.object({
|
|
3183
|
-
_id: z.string().default("
|
|
3183
|
+
_id: z.string().default("01K83MSAY8FP4PW3G31125E6R6"),
|
|
3184
3184
|
path: z.string(),
|
|
3185
3185
|
key: z.string(),
|
|
3186
3186
|
display_name: z.string().optional(),
|
|
@@ -3234,7 +3234,7 @@ export const UpdateToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
3234
3234
|
z.ZodTypeDef,
|
|
3235
3235
|
UpdateToolResponseBody4
|
|
3236
3236
|
> = z.object({
|
|
3237
|
-
id: z.string().default("
|
|
3237
|
+
id: z.string().default("01K83MSAY8FP4PW3G31125E6R6"),
|
|
3238
3238
|
path: z.string(),
|
|
3239
3239
|
key: z.string(),
|
|
3240
3240
|
displayName: z.string().optional(),
|
|
@@ -3652,7 +3652,7 @@ export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
3652
3652
|
z.ZodTypeDef,
|
|
3653
3653
|
unknown
|
|
3654
3654
|
> = z.object({
|
|
3655
|
-
_id: z.string().default("
|
|
3655
|
+
_id: z.string().default("01K83MSAY7DYZVGVPQYMS4X0WE"),
|
|
3656
3656
|
path: z.string(),
|
|
3657
3657
|
key: z.string(),
|
|
3658
3658
|
display_name: z.string().optional(),
|
|
@@ -3706,7 +3706,7 @@ export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
3706
3706
|
z.ZodTypeDef,
|
|
3707
3707
|
UpdateToolResponseBody3
|
|
3708
3708
|
> = z.object({
|
|
3709
|
-
id: z.string().default("
|
|
3709
|
+
id: z.string().default("01K83MSAY7DYZVGVPQYMS4X0WE"),
|
|
3710
3710
|
path: z.string(),
|
|
3711
3711
|
key: z.string(),
|
|
3712
3712
|
displayName: z.string().optional(),
|
|
@@ -3880,7 +3880,7 @@ export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
3880
3880
|
z.ZodTypeDef,
|
|
3881
3881
|
unknown
|
|
3882
3882
|
> = z.object({
|
|
3883
|
-
_id: z.string().default("
|
|
3883
|
+
_id: z.string().default("01K83MSAY6R0GPWYMYAJE0Z311"),
|
|
3884
3884
|
path: z.string(),
|
|
3885
3885
|
key: z.string(),
|
|
3886
3886
|
display_name: z.string().optional(),
|
|
@@ -3933,7 +3933,7 @@ export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
3933
3933
|
z.ZodTypeDef,
|
|
3934
3934
|
UpdateToolResponseBody2
|
|
3935
3935
|
> = z.object({
|
|
3936
|
-
id: z.string().default("
|
|
3936
|
+
id: z.string().default("01K83MSAY6R0GPWYMYAJE0Z311"),
|
|
3937
3937
|
path: z.string(),
|
|
3938
3938
|
key: z.string(),
|
|
3939
3939
|
displayName: z.string().optional(),
|
|
@@ -4105,7 +4105,7 @@ export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
4105
4105
|
z.ZodTypeDef,
|
|
4106
4106
|
unknown
|
|
4107
4107
|
> = z.object({
|
|
4108
|
-
_id: z.string().default("
|
|
4108
|
+
_id: z.string().default("01K83MSAY63Q69Y9A79YD0V3J2"),
|
|
4109
4109
|
path: z.string(),
|
|
4110
4110
|
key: z.string(),
|
|
4111
4111
|
display_name: z.string().optional(),
|
|
@@ -4157,7 +4157,7 @@ export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
4157
4157
|
z.ZodTypeDef,
|
|
4158
4158
|
UpdateToolResponseBody1
|
|
4159
4159
|
> = z.object({
|
|
4160
|
-
id: z.string().default("
|
|
4160
|
+
id: z.string().default("01K83MSAY63Q69Y9A79YD0V3J2"),
|
|
4161
4161
|
path: z.string(),
|
|
4162
4162
|
key: z.string(),
|
|
4163
4163
|
displayName: z.string().optional(),
|
|
@@ -37,7 +37,7 @@ export class Prompts extends ClientSDK {
|
|
|
37
37
|
async create(
|
|
38
38
|
request?: operations.CreatePromptRequestBody | undefined,
|
|
39
39
|
options?: RequestOptions,
|
|
40
|
-
): Promise<operations.
|
|
40
|
+
): Promise<operations.CreatePromptPrompt> {
|
|
41
41
|
return unwrapAsync(promptsCreate(
|
|
42
42
|
this,
|
|
43
43
|
request,
|
|
@@ -54,7 +54,7 @@ export class Prompts extends ClientSDK {
|
|
|
54
54
|
async retrieve(
|
|
55
55
|
request: operations.GetOnePromptRequest,
|
|
56
56
|
options?: RequestOptions,
|
|
57
|
-
): Promise<operations.
|
|
57
|
+
): Promise<operations.GetOnePromptPrompt> {
|
|
58
58
|
return unwrapAsync(promptsRetrieve(
|
|
59
59
|
this,
|
|
60
60
|
request,
|
|
@@ -68,7 +68,7 @@ export class Prompts extends ClientSDK {
|
|
|
68
68
|
async update(
|
|
69
69
|
request: operations.UpdatePromptRequest,
|
|
70
70
|
options?: RequestOptions,
|
|
71
|
-
): Promise<operations.
|
|
71
|
+
): Promise<operations.UpdatePromptPrompt> {
|
|
72
72
|
return unwrapAsync(promptsUpdate(
|
|
73
73
|
this,
|
|
74
74
|
request,
|
|
@@ -17,7 +17,7 @@ export class Tools extends ClientSDK {
|
|
|
17
17
|
* List tools
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
*
|
|
20
|
+
* Lists all workspace tools. By default, returns all tools in a single response. Set `limit` to enable cursor-based pagination with `starting_after` and `ending_before`.
|
|
21
21
|
*/
|
|
22
22
|
async list(
|
|
23
23
|
request?: operations.GetAllToolsRequest | undefined,
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.13.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.13.
|
|
71
|
+
sdkVersion: "3.13.13",
|
|
72
|
+
genVersion: "2.727.9",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.13.13 2.727.9 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/env.ts
CHANGED
|
@@ -32,6 +32,18 @@ export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
|
|
|
32
32
|
ORQ_DEBUG: z.coerce.boolean().optional(),
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Checks for the existence of the Deno global object to determine the environment.
|
|
37
|
+
* @returns {boolean} True if the runtime is Deno, false otherwise.
|
|
38
|
+
*/
|
|
39
|
+
function isDeno() {
|
|
40
|
+
if ("Deno" in globalThis) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
let envMemo: Env | undefined = undefined;
|
|
36
48
|
/**
|
|
37
49
|
* Reads and validates environment variables.
|
|
@@ -41,9 +53,14 @@ export function env(): Env {
|
|
|
41
53
|
return envMemo;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
let envObject: Record<string, unknown> = {};
|
|
57
|
+
if (isDeno()) {
|
|
58
|
+
envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {};
|
|
59
|
+
} else {
|
|
60
|
+
envObject = dlv(globalThis, "process.env") ?? {};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
envMemo = envSchema.parse(envObject);
|
|
47
64
|
return envMemo;
|
|
48
65
|
}
|
|
49
66
|
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -408,6 +408,17 @@ export type KnowledgeBases = {
|
|
|
408
408
|
knowledgeId: string;
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
+
export type TeamOfAgents = {
|
|
412
|
+
/**
|
|
413
|
+
* The unique key of the agent within the workspace
|
|
414
|
+
*/
|
|
415
|
+
key: string;
|
|
416
|
+
/**
|
|
417
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
418
|
+
*/
|
|
419
|
+
role?: string | undefined;
|
|
420
|
+
};
|
|
421
|
+
|
|
411
422
|
export type CreateAgentRequestBody = {
|
|
412
423
|
/**
|
|
413
424
|
* The path where the agent will be stored in the project structure
|
|
@@ -453,6 +464,10 @@ export type CreateAgentRequestBody = {
|
|
|
453
464
|
* Optional array of knowledge base configurations for the agent to access
|
|
454
465
|
*/
|
|
455
466
|
knowledgeBases?: Array<KnowledgeBases> | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
469
|
+
*/
|
|
470
|
+
teamOfAgents?: Array<TeamOfAgents> | undefined;
|
|
456
471
|
};
|
|
457
472
|
|
|
458
473
|
/**
|
|
@@ -2233,6 +2248,59 @@ export function knowledgeBasesFromJSON(
|
|
|
2233
2248
|
);
|
|
2234
2249
|
}
|
|
2235
2250
|
|
|
2251
|
+
/** @internal */
|
|
2252
|
+
export const TeamOfAgents$inboundSchema: z.ZodType<
|
|
2253
|
+
TeamOfAgents,
|
|
2254
|
+
z.ZodTypeDef,
|
|
2255
|
+
unknown
|
|
2256
|
+
> = z.object({
|
|
2257
|
+
key: z.string(),
|
|
2258
|
+
role: z.string().optional(),
|
|
2259
|
+
});
|
|
2260
|
+
|
|
2261
|
+
/** @internal */
|
|
2262
|
+
export type TeamOfAgents$Outbound = {
|
|
2263
|
+
key: string;
|
|
2264
|
+
role?: string | undefined;
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
/** @internal */
|
|
2268
|
+
export const TeamOfAgents$outboundSchema: z.ZodType<
|
|
2269
|
+
TeamOfAgents$Outbound,
|
|
2270
|
+
z.ZodTypeDef,
|
|
2271
|
+
TeamOfAgents
|
|
2272
|
+
> = z.object({
|
|
2273
|
+
key: z.string(),
|
|
2274
|
+
role: z.string().optional(),
|
|
2275
|
+
});
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* @internal
|
|
2279
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2280
|
+
*/
|
|
2281
|
+
export namespace TeamOfAgents$ {
|
|
2282
|
+
/** @deprecated use `TeamOfAgents$inboundSchema` instead. */
|
|
2283
|
+
export const inboundSchema = TeamOfAgents$inboundSchema;
|
|
2284
|
+
/** @deprecated use `TeamOfAgents$outboundSchema` instead. */
|
|
2285
|
+
export const outboundSchema = TeamOfAgents$outboundSchema;
|
|
2286
|
+
/** @deprecated use `TeamOfAgents$Outbound` instead. */
|
|
2287
|
+
export type Outbound = TeamOfAgents$Outbound;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
|
|
2291
|
+
return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
export function teamOfAgentsFromJSON(
|
|
2295
|
+
jsonString: string,
|
|
2296
|
+
): SafeParseResult<TeamOfAgents, SDKValidationError> {
|
|
2297
|
+
return safeParse(
|
|
2298
|
+
jsonString,
|
|
2299
|
+
(x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2300
|
+
`Failed to parse 'TeamOfAgents' from JSON`,
|
|
2301
|
+
);
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2236
2304
|
/** @internal */
|
|
2237
2305
|
export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
2238
2306
|
CreateAgentRequestBody,
|
|
@@ -2251,12 +2319,14 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
2251
2319
|
memory_stores: z.array(z.string()).optional(),
|
|
2252
2320
|
knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
|
|
2253
2321
|
.optional(),
|
|
2322
|
+
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
2254
2323
|
}).transform((v) => {
|
|
2255
2324
|
return remap$(v, {
|
|
2256
2325
|
"system_prompt": "systemPrompt",
|
|
2257
2326
|
"fallback_models": "fallbackModels",
|
|
2258
2327
|
"memory_stores": "memoryStores",
|
|
2259
2328
|
"knowledge_bases": "knowledgeBases",
|
|
2329
|
+
"team_of_agents": "teamOfAgents",
|
|
2260
2330
|
});
|
|
2261
2331
|
});
|
|
2262
2332
|
|
|
@@ -2273,6 +2343,7 @@ export type CreateAgentRequestBody$Outbound = {
|
|
|
2273
2343
|
settings: Settings$Outbound;
|
|
2274
2344
|
memory_stores?: Array<string> | undefined;
|
|
2275
2345
|
knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
|
|
2346
|
+
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
2276
2347
|
};
|
|
2277
2348
|
|
|
2278
2349
|
/** @internal */
|
|
@@ -2293,12 +2364,14 @@ export const CreateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
2293
2364
|
memoryStores: z.array(z.string()).optional(),
|
|
2294
2365
|
knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
|
|
2295
2366
|
.optional(),
|
|
2367
|
+
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
2296
2368
|
}).transform((v) => {
|
|
2297
2369
|
return remap$(v, {
|
|
2298
2370
|
systemPrompt: "system_prompt",
|
|
2299
2371
|
fallbackModels: "fallback_models",
|
|
2300
2372
|
memoryStores: "memory_stores",
|
|
2301
2373
|
knowledgeBases: "knowledge_bases",
|
|
2374
|
+
teamOfAgents: "team_of_agents",
|
|
2302
2375
|
});
|
|
2303
2376
|
});
|
|
2304
2377
|
|
|
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
658
658
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
659
659
|
.optional(),
|
|
660
660
|
updated: z.string().datetime({ offset: true }).default(
|
|
661
|
-
"2025-10-
|
|
661
|
+
"2025-10-21T15:19:58.203Z",
|
|
662
662
|
).transform(v => new Date(v)),
|
|
663
663
|
}).transform((v) => {
|
|
664
664
|
return remap$(v, {
|
|
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
693
693
|
isActive: z.boolean(),
|
|
694
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
695
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
696
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
|
|
697
697
|
.transform(v => v.toISOString()),
|
|
698
698
|
}).transform((v) => {
|
|
699
699
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-10-
|
|
185
|
+
"2025-10-21T15:19:58.203Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-10-
|
|
214
|
+
"2025-10-21T15:19:58.203Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -6081,7 +6081,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
6081
6081
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6082
6082
|
.optional(),
|
|
6083
6083
|
updated: z.string().datetime({ offset: true }).default(
|
|
6084
|
-
"2025-10-
|
|
6084
|
+
"2025-10-21T15:19:58.203Z",
|
|
6085
6085
|
).transform(v => new Date(v)),
|
|
6086
6086
|
}).transform((v) => {
|
|
6087
6087
|
return remap$(v, {
|
|
@@ -6145,7 +6145,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
6145
6145
|
createdById: z.string().optional(),
|
|
6146
6146
|
updatedById: z.string().optional(),
|
|
6147
6147
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6148
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
6148
|
+
updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
|
|
6149
6149
|
.transform(v => v.toISOString()),
|
|
6150
6150
|
}).transform((v) => {
|
|
6151
6151
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01K83NPC02S9RA8W9PV5337DNM"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01K83NPC02S9RA8W9PV5337DNM"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -3347,8 +3347,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
3347
3347
|
> = z.object({
|
|
3348
3348
|
_id: z.string(),
|
|
3349
3349
|
description: z.string(),
|
|
3350
|
-
created: z.string().default("2025-10-
|
|
3351
|
-
updated: z.string().default("2025-10-
|
|
3350
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3351
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3352
3352
|
guardrail_config: z.union([
|
|
3353
3353
|
z.lazy(() =>
|
|
3354
3354
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3391,8 +3391,8 @@ export const Typescript$outboundSchema: z.ZodType<
|
|
|
3391
3391
|
> = z.object({
|
|
3392
3392
|
id: z.string(),
|
|
3393
3393
|
description: z.string(),
|
|
3394
|
-
created: z.string().default("2025-10-
|
|
3395
|
-
updated: z.string().default("2025-10-
|
|
3394
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3395
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3396
3396
|
guardrailConfig: z.union([
|
|
3397
3397
|
z.lazy(() =>
|
|
3398
3398
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -3809,8 +3809,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
3809
3809
|
.object({
|
|
3810
3810
|
_id: z.string(),
|
|
3811
3811
|
description: z.string(),
|
|
3812
|
-
created: z.string().default("2025-10-
|
|
3813
|
-
updated: z.string().default("2025-10-
|
|
3812
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3813
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3814
3814
|
guardrail_config: z.union([
|
|
3815
3815
|
z.lazy(() =>
|
|
3816
3816
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -3856,8 +3856,8 @@ export const Ragas$outboundSchema: z.ZodType<
|
|
|
3856
3856
|
> = z.object({
|
|
3857
3857
|
id: z.string(),
|
|
3858
3858
|
description: z.string(),
|
|
3859
|
-
created: z.string().default("2025-10-
|
|
3860
|
-
updated: z.string().default("2025-10-
|
|
3859
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3860
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3861
3861
|
guardrailConfig: z.union([
|
|
3862
3862
|
z.lazy(() =>
|
|
3863
3863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -7281,8 +7281,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7281
7281
|
> = z.object({
|
|
7282
7282
|
_id: z.string(),
|
|
7283
7283
|
description: z.string(),
|
|
7284
|
-
created: z.string().default("2025-10-
|
|
7285
|
-
updated: z.string().default("2025-10-
|
|
7284
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7285
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7286
7286
|
guardrail_config: z.union([
|
|
7287
7287
|
z.lazy(() =>
|
|
7288
7288
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7396,8 +7396,8 @@ export const ResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7396
7396
|
> = z.object({
|
|
7397
7397
|
id: z.string(),
|
|
7398
7398
|
description: z.string(),
|
|
7399
|
-
created: z.string().default("2025-10-
|
|
7400
|
-
updated: z.string().default("2025-10-
|
|
7399
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7400
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7401
7401
|
guardrailConfig: z.union([
|
|
7402
7402
|
z.lazy(() =>
|
|
7403
7403
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -7836,8 +7836,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
7836
7836
|
> = z.object({
|
|
7837
7837
|
_id: z.string(),
|
|
7838
7838
|
description: z.string(),
|
|
7839
|
-
created: z.string().default("2025-10-
|
|
7840
|
-
updated: z.string().default("2025-10-
|
|
7839
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7840
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7841
7841
|
guardrail_config: z.union([
|
|
7842
7842
|
z.lazy(() =>
|
|
7843
7843
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -7879,8 +7879,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
7879
7879
|
> = z.object({
|
|
7880
7880
|
id: z.string(),
|
|
7881
7881
|
description: z.string(),
|
|
7882
|
-
created: z.string().default("2025-10-
|
|
7883
|
-
updated: z.string().default("2025-10-
|
|
7882
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7883
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
7884
7884
|
guardrailConfig: z.union([
|
|
7885
7885
|
z.lazy(() =>
|
|
7886
7886
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8293,8 +8293,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8293
8293
|
> = z.object({
|
|
8294
8294
|
_id: z.string(),
|
|
8295
8295
|
description: z.string(),
|
|
8296
|
-
created: z.string().default("2025-10-
|
|
8297
|
-
updated: z.string().default("2025-10-
|
|
8296
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8297
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8298
8298
|
guardrail_config: z.union([
|
|
8299
8299
|
z.lazy(() =>
|
|
8300
8300
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8342,8 +8342,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8342
8342
|
> = z.object({
|
|
8343
8343
|
id: z.string(),
|
|
8344
8344
|
description: z.string(),
|
|
8345
|
-
created: z.string().default("2025-10-
|
|
8346
|
-
updated: z.string().default("2025-10-
|
|
8345
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8346
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8347
8347
|
guardrailConfig: z.union([
|
|
8348
8348
|
z.lazy(() =>
|
|
8349
8349
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -8720,8 +8720,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
8720
8720
|
> = z.object({
|
|
8721
8721
|
_id: z.string(),
|
|
8722
8722
|
description: z.string(),
|
|
8723
|
-
created: z.string().default("2025-10-
|
|
8724
|
-
updated: z.string().default("2025-10-
|
|
8723
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8724
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8725
8725
|
guardrail_config: z.union([
|
|
8726
8726
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
8727
8727
|
z.lazy(() =>
|
|
@@ -8761,8 +8761,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
8761
8761
|
> = z.object({
|
|
8762
8762
|
id: z.string(),
|
|
8763
8763
|
description: z.string(),
|
|
8764
|
-
created: z.string().default("2025-10-
|
|
8765
|
-
updated: z.string().default("2025-10-
|
|
8764
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8765
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
8766
8766
|
guardrailConfig: z.union([
|
|
8767
8767
|
z.lazy(() =>
|
|
8768
8768
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -9117,8 +9117,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
9117
9117
|
> = z.object({
|
|
9118
9118
|
_id: z.string(),
|
|
9119
9119
|
description: z.string(),
|
|
9120
|
-
created: z.string().default("2025-10-
|
|
9121
|
-
updated: z.string().default("2025-10-
|
|
9120
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
9121
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
9122
9122
|
guardrail_config: z.union([
|
|
9123
9123
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
9124
9124
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9158,8 +9158,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9158
9158
|
> = z.object({
|
|
9159
9159
|
id: z.string(),
|
|
9160
9160
|
description: z.string(),
|
|
9161
|
-
created: z.string().default("2025-10-
|
|
9162
|
-
updated: z.string().default("2025-10-
|
|
9161
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
9162
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
9163
9163
|
guardrailConfig: z.union([
|
|
9164
9164
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9165
9165
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|