@orq-ai/node 4.0.0-rc.30 → 4.0.0-rc.31
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 +24 -22
- package/bin/mcp-server.js +2116 -596
- package/bin/mcp-server.js.map +50 -47
- package/docs/sdks/tools/README.md +93 -12
- package/examples/package-lock.json +1 -1
- package/funcs/toolsCreate.d.ts +2 -1
- package/funcs/toolsCreate.d.ts.map +1 -1
- package/funcs/toolsCreate.js +6 -2
- package/funcs/toolsCreate.js.map +1 -1
- package/funcs/toolsSync.d.ts +18 -0
- package/funcs/toolsSync.d.ts.map +1 -0
- package/funcs/toolsSync.js +123 -0
- package/funcs/toolsSync.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/toolsSync.d.ts +8 -0
- package/mcp-server/tools/toolsSync.d.ts.map +1 -0
- package/mcp-server/tools/toolsSync.js +64 -0
- package/mcp-server/tools/toolsSync.js.map +1 -0
- package/models/operations/createagent.d.ts +53 -24
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +51 -25
- 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 +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +373 -144
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +332 -133
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +13 -12
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/duplicateagent.d.ts +0 -19
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +3 -21
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.d.ts +189 -49
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +172 -44
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +0 -19
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +3 -20
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +194 -54
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +176 -51
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +0 -19
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -22
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- 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 +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +189 -49
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +172 -44
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +279 -23
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +274 -15
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +282 -26
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +268 -22
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.d.ts +1113 -0
- package/models/operations/syncmcptool.d.ts.map +1 -0
- package/models/operations/syncmcptool.js +1070 -0
- package/models/operations/syncmcptool.js.map +1 -0
- package/models/operations/updateagent.d.ts +53 -43
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +52 -43
- 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 +8 -8
- 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.d.ts +394 -114
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +356 -95
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/sdk/tools.d.ts +7 -0
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +10 -0
- package/sdk/tools.js.map +1 -1
- package/src/funcs/toolsCreate.ts +11 -2
- package/src/funcs/toolsSync.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/toolsSync.ts +37 -0
- package/src/models/operations/createagent.ts +114 -40
- 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 +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +873 -277
- package/src/models/operations/deploymentgetconfig.ts +29 -20
- package/src/models/operations/duplicateagent.ts +0 -37
- package/src/models/operations/duplicatetool.ts +466 -87
- 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/getagent.ts +0 -38
- package/src/models/operations/getalltools.ts +447 -96
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listagents.ts +0 -37
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- 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 +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +466 -85
- package/src/models/operations/runagent.ts +656 -25
- package/src/models/operations/streamrunagent.ts +749 -34
- package/src/models/operations/syncmcptool.ts +2599 -0
- package/src/models/operations/updateagent.ts +121 -77
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- 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 +910 -190
- package/src/sdk/tools.ts +18 -0
|
@@ -1820,7 +1820,7 @@ export type DeploymentGetConfigFunction = {
|
|
|
1820
1820
|
parameters?: { [k: string]: any } | undefined;
|
|
1821
1821
|
};
|
|
1822
1822
|
|
|
1823
|
-
export type
|
|
1823
|
+
export type DeploymentGetConfigTools = {
|
|
1824
1824
|
/**
|
|
1825
1825
|
* The type of the tool. Currently, only `function` is supported.
|
|
1826
1826
|
*/
|
|
@@ -1860,7 +1860,7 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1860
1860
|
/**
|
|
1861
1861
|
* A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
1862
1862
|
*/
|
|
1863
|
-
tools?: Array<
|
|
1863
|
+
tools?: Array<DeploymentGetConfigTools> | undefined;
|
|
1864
1864
|
};
|
|
1865
1865
|
|
|
1866
1866
|
/** @internal */
|
|
@@ -7907,37 +7907,44 @@ export function deploymentGetConfigFunctionFromJSON(
|
|
|
7907
7907
|
}
|
|
7908
7908
|
|
|
7909
7909
|
/** @internal */
|
|
7910
|
-
export const
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7910
|
+
export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
|
|
7911
|
+
DeploymentGetConfigTools,
|
|
7912
|
+
z.ZodTypeDef,
|
|
7913
|
+
unknown
|
|
7914
|
+
> = z.object({
|
|
7915
|
+
type: DeploymentGetConfigDeploymentsType$inboundSchema,
|
|
7916
|
+
function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
|
|
7917
|
+
});
|
|
7915
7918
|
/** @internal */
|
|
7916
|
-
export type
|
|
7919
|
+
export type DeploymentGetConfigTools$Outbound = {
|
|
7917
7920
|
type: string;
|
|
7918
7921
|
function: DeploymentGetConfigFunction$Outbound;
|
|
7919
7922
|
};
|
|
7920
7923
|
|
|
7921
7924
|
/** @internal */
|
|
7922
|
-
export const
|
|
7923
|
-
|
|
7925
|
+
export const DeploymentGetConfigTools$outboundSchema: z.ZodType<
|
|
7926
|
+
DeploymentGetConfigTools$Outbound,
|
|
7924
7927
|
z.ZodTypeDef,
|
|
7925
|
-
|
|
7928
|
+
DeploymentGetConfigTools
|
|
7926
7929
|
> = z.object({
|
|
7927
7930
|
type: DeploymentGetConfigDeploymentsType$outboundSchema,
|
|
7928
7931
|
function: z.lazy(() => DeploymentGetConfigFunction$outboundSchema),
|
|
7929
7932
|
});
|
|
7930
7933
|
|
|
7931
|
-
export function
|
|
7932
|
-
|
|
7934
|
+
export function deploymentGetConfigToolsToJSON(
|
|
7935
|
+
deploymentGetConfigTools: DeploymentGetConfigTools,
|
|
7936
|
+
): string {
|
|
7937
|
+
return JSON.stringify(
|
|
7938
|
+
DeploymentGetConfigTools$outboundSchema.parse(deploymentGetConfigTools),
|
|
7939
|
+
);
|
|
7933
7940
|
}
|
|
7934
|
-
export function
|
|
7941
|
+
export function deploymentGetConfigToolsFromJSON(
|
|
7935
7942
|
jsonString: string,
|
|
7936
|
-
): SafeParseResult<
|
|
7943
|
+
): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
|
|
7937
7944
|
return safeParse(
|
|
7938
7945
|
jsonString,
|
|
7939
|
-
(x) =>
|
|
7940
|
-
`Failed to parse '
|
|
7946
|
+
(x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
|
|
7947
|
+
`Failed to parse 'DeploymentGetConfigTools' from JSON`,
|
|
7941
7948
|
);
|
|
7942
7949
|
}
|
|
7943
7950
|
|
|
@@ -7954,7 +7961,8 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
7954
7961
|
version: z.string(),
|
|
7955
7962
|
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
|
|
7956
7963
|
parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
|
|
7957
|
-
tools: z.array(z.lazy(() =>
|
|
7964
|
+
tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
|
|
7965
|
+
.optional(),
|
|
7958
7966
|
});
|
|
7959
7967
|
/** @internal */
|
|
7960
7968
|
export type DeploymentGetConfigResponseBody$Outbound = {
|
|
@@ -7965,7 +7973,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
|
|
|
7965
7973
|
version: string;
|
|
7966
7974
|
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
7967
7975
|
parameters: DeploymentGetConfigParameters$Outbound;
|
|
7968
|
-
tools?: Array<
|
|
7976
|
+
tools?: Array<DeploymentGetConfigTools$Outbound> | undefined;
|
|
7969
7977
|
};
|
|
7970
7978
|
|
|
7971
7979
|
/** @internal */
|
|
@@ -7981,7 +7989,8 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
7981
7989
|
version: z.string(),
|
|
7982
7990
|
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
|
|
7983
7991
|
parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
|
|
7984
|
-
tools: z.array(z.lazy(() =>
|
|
7992
|
+
tools: z.array(z.lazy(() => DeploymentGetConfigTools$outboundSchema))
|
|
7993
|
+
.optional(),
|
|
7985
7994
|
});
|
|
7986
7995
|
|
|
7987
7996
|
export function deploymentGetConfigResponseBodyToJSON(
|
|
@@ -867,19 +867,6 @@ export type DuplicateAgentKnowledgeBases = {
|
|
|
867
867
|
knowledgeId: string;
|
|
868
868
|
};
|
|
869
869
|
|
|
870
|
-
export const DuplicateAgentCollapsedConfigurationSections = {
|
|
871
|
-
Information: "information",
|
|
872
|
-
Model: "model",
|
|
873
|
-
Tools: "tools",
|
|
874
|
-
Context: "context",
|
|
875
|
-
RuntimeConstraints: "runtime_constraints",
|
|
876
|
-
Evaluators: "evaluators",
|
|
877
|
-
Guardrails: "guardrails",
|
|
878
|
-
} as const;
|
|
879
|
-
export type DuplicateAgentCollapsedConfigurationSections = ClosedEnum<
|
|
880
|
-
typeof DuplicateAgentCollapsedConfigurationSections
|
|
881
|
-
>;
|
|
882
|
-
|
|
883
870
|
/**
|
|
884
871
|
* Agent duplicated successfully
|
|
885
872
|
*/
|
|
@@ -930,12 +917,6 @@ export type DuplicateAgentResponseBody = {
|
|
|
930
917
|
* Agent knowledge bases reference
|
|
931
918
|
*/
|
|
932
919
|
knowledgeBases?: Array<DuplicateAgentKnowledgeBases> | undefined;
|
|
933
|
-
/**
|
|
934
|
-
* List of collapsed sections in configuration. Duplicates are not allowed.
|
|
935
|
-
*/
|
|
936
|
-
collapsedConfigurationSections?:
|
|
937
|
-
| Array<DuplicateAgentCollapsedConfigurationSections>
|
|
938
|
-
| undefined;
|
|
939
920
|
};
|
|
940
921
|
|
|
941
922
|
/** @internal */
|
|
@@ -3331,15 +3312,6 @@ export function duplicateAgentKnowledgeBasesFromJSON(
|
|
|
3331
3312
|
);
|
|
3332
3313
|
}
|
|
3333
3314
|
|
|
3334
|
-
/** @internal */
|
|
3335
|
-
export const DuplicateAgentCollapsedConfigurationSections$inboundSchema:
|
|
3336
|
-
z.ZodNativeEnum<typeof DuplicateAgentCollapsedConfigurationSections> = z
|
|
3337
|
-
.nativeEnum(DuplicateAgentCollapsedConfigurationSections);
|
|
3338
|
-
/** @internal */
|
|
3339
|
-
export const DuplicateAgentCollapsedConfigurationSections$outboundSchema:
|
|
3340
|
-
z.ZodNativeEnum<typeof DuplicateAgentCollapsedConfigurationSections> =
|
|
3341
|
-
DuplicateAgentCollapsedConfigurationSections$inboundSchema;
|
|
3342
|
-
|
|
3343
3315
|
/** @internal */
|
|
3344
3316
|
export const DuplicateAgentResponseBody$inboundSchema: z.ZodType<
|
|
3345
3317
|
DuplicateAgentResponseBody,
|
|
@@ -3372,9 +3344,6 @@ export const DuplicateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
3372
3344
|
knowledge_bases: z.array(
|
|
3373
3345
|
z.lazy(() => DuplicateAgentKnowledgeBases$inboundSchema),
|
|
3374
3346
|
).optional(),
|
|
3375
|
-
collapsed_configuration_sections: z.array(
|
|
3376
|
-
DuplicateAgentCollapsedConfigurationSections$inboundSchema,
|
|
3377
|
-
).optional(),
|
|
3378
3347
|
}).transform((v) => {
|
|
3379
3348
|
return remap$(v, {
|
|
3380
3349
|
"_id": "id",
|
|
@@ -3387,7 +3356,6 @@ export const DuplicateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
3387
3356
|
"memory_stores": "memoryStores",
|
|
3388
3357
|
"team_of_agents": "teamOfAgents",
|
|
3389
3358
|
"knowledge_bases": "knowledgeBases",
|
|
3390
|
-
"collapsed_configuration_sections": "collapsedConfigurationSections",
|
|
3391
3359
|
});
|
|
3392
3360
|
});
|
|
3393
3361
|
/** @internal */
|
|
@@ -3414,7 +3382,6 @@ export type DuplicateAgentResponseBody$Outbound = {
|
|
|
3414
3382
|
metrics?: DuplicateAgentMetrics$Outbound | undefined;
|
|
3415
3383
|
variables?: { [k: string]: any } | undefined;
|
|
3416
3384
|
knowledge_bases?: Array<DuplicateAgentKnowledgeBases$Outbound> | undefined;
|
|
3417
|
-
collapsed_configuration_sections?: Array<string> | undefined;
|
|
3418
3385
|
};
|
|
3419
3386
|
|
|
3420
3387
|
/** @internal */
|
|
@@ -3449,9 +3416,6 @@ export const DuplicateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
3449
3416
|
knowledgeBases: z.array(
|
|
3450
3417
|
z.lazy(() => DuplicateAgentKnowledgeBases$outboundSchema),
|
|
3451
3418
|
).optional(),
|
|
3452
|
-
collapsedConfigurationSections: z.array(
|
|
3453
|
-
DuplicateAgentCollapsedConfigurationSections$outboundSchema,
|
|
3454
|
-
).optional(),
|
|
3455
3419
|
}).transform((v) => {
|
|
3456
3420
|
return remap$(v, {
|
|
3457
3421
|
id: "_id",
|
|
@@ -3464,7 +3428,6 @@ export const DuplicateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
3464
3428
|
memoryStores: "memory_stores",
|
|
3465
3429
|
teamOfAgents: "team_of_agents",
|
|
3466
3430
|
knowledgeBases: "knowledge_bases",
|
|
3467
|
-
collapsedConfigurationSections: "collapsed_configuration_sections",
|
|
3468
3431
|
});
|
|
3469
3432
|
});
|
|
3470
3433
|
|