@orq-ai/node 3.14.35 → 3.14.37
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 +1 -1
- package/bin/mcp-server.js +529 -517
- package/bin/mcp-server.js.map +52 -52
- package/docs/sdks/deployments/README.md +43 -43
- package/examples/package-lock.json +2 -8
- package/funcs/deploymentsInvoke.d.ts +1 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- 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.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsInvoke.d.ts +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/{deployments.d.ts → invokedeploymentrequest.d.ts} +280 -266
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/{deployments.js → invokedeploymentrequest.js} +377 -363
- package/models/components/invokedeploymentrequest.js.map +1 -0
- 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/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +42 -32
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +42 -42
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -15
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -17
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +41 -32
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +42 -41
- package/models/operations/deploymentstream.js.map +1 -1
- 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/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.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/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- 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.js +10 -10
- package/models/operations/searchknowledge.d.ts +41 -32
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +40 -40
- package/models/operations/searchknowledge.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/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +2 -6
- package/packages/orq-rc/README.md +25 -23
- package/packages/orq-rc/docs/sdks/deployments/README.md +43 -43
- package/packages/orq-rc/docs/sdks/tools/README.md +93 -12
- 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/deploymentsInvoke.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsCreate.ts +11 -2
- package/packages/orq-rc/src/funcs/toolsSync.ts +176 -0
- 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 +4 -2
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +37 -0
- package/packages/orq-rc/src/models/components/index.ts +1 -1
- package/packages/orq-rc/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- package/packages/orq-rc/src/models/operations/createagent.ts +114 -40
- 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 +8 -8
- 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/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +873 -277
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +107 -86
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +35 -35
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +80 -78
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +0 -37
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +466 -87
- 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 +0 -38
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +447 -96
- 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 +1 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -37
- 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 +8 -8
- 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/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- 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/retrievetool.ts +466 -85
- package/packages/orq-rc/src/models/operations/runagent.ts +656 -25
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +79 -70
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +749 -34
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +2599 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +121 -77
- 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 +8 -8
- 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/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +910 -190
- package/packages/orq-rc/src/sdk/deployments.ts +17 -17
- package/packages/orq-rc/src/sdk/tools.ts +18 -0
- package/sdk/deployments.d.ts +7 -7
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +9 -9
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/models/components/index.ts +1 -1
- package/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- 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/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +78 -66
- package/src/models/operations/deploymentinvoke.ts +35 -35
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +80 -78
- 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/getallprompts.ts +1 -0
- 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/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- 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/listpromptversions.ts +1 -0
- 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 +10 -10
- package/src/models/operations/searchknowledge.ts +79 -70
- 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/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/deployments.ts +17 -17
- package/models/components/deployments.d.ts.map +0 -1
- package/models/components/deployments.js.map +0 -1
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
8
11
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
12
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -906,6 +909,91 @@ export type RunAgentTeamOfAgents = {
|
|
|
906
909
|
role?: string | undefined;
|
|
907
910
|
};
|
|
908
911
|
|
|
912
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type =
|
|
913
|
+
{
|
|
914
|
+
Mcp: "mcp",
|
|
915
|
+
} as const;
|
|
916
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type =
|
|
917
|
+
ClosedEnum<
|
|
918
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
919
|
+
>;
|
|
920
|
+
|
|
921
|
+
export type AgentToolInputRunHeaders = {
|
|
922
|
+
value: string;
|
|
923
|
+
encrypted?: boolean | undefined;
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType =
|
|
927
|
+
{
|
|
928
|
+
Object: "object",
|
|
929
|
+
} as const;
|
|
930
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType =
|
|
931
|
+
ClosedEnum<
|
|
932
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
933
|
+
>;
|
|
934
|
+
|
|
935
|
+
export type Schema = {
|
|
936
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType;
|
|
937
|
+
properties?: { [k: string]: any } | undefined;
|
|
938
|
+
required?: Array<string> | undefined;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
export type Tools = {
|
|
942
|
+
name: string;
|
|
943
|
+
description?: string | undefined;
|
|
944
|
+
schema: Schema;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* The connection type used by the MCP server
|
|
949
|
+
*/
|
|
950
|
+
export const ConnectionType = {
|
|
951
|
+
Http: "http",
|
|
952
|
+
Sse: "sse",
|
|
953
|
+
} as const;
|
|
954
|
+
/**
|
|
955
|
+
* The connection type used by the MCP server
|
|
956
|
+
*/
|
|
957
|
+
export type ConnectionType = ClosedEnum<typeof ConnectionType>;
|
|
958
|
+
|
|
959
|
+
export type Mcp = {
|
|
960
|
+
/**
|
|
961
|
+
* The MCP server URL (cached for execution)
|
|
962
|
+
*/
|
|
963
|
+
serverUrl: string;
|
|
964
|
+
/**
|
|
965
|
+
* HTTP headers for MCP server requests with encryption support
|
|
966
|
+
*/
|
|
967
|
+
headers?: { [k: string]: AgentToolInputRunHeaders } | undefined;
|
|
968
|
+
/**
|
|
969
|
+
* Array of tools available from the MCP server
|
|
970
|
+
*/
|
|
971
|
+
tools: Array<Tools>;
|
|
972
|
+
/**
|
|
973
|
+
* The connection type used by the MCP server
|
|
974
|
+
*/
|
|
975
|
+
connectionType: ConnectionType;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* MCP tool with inline definition for on-the-fly creation in run endpoint
|
|
980
|
+
*/
|
|
981
|
+
export type MCPToolRun = {
|
|
982
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type;
|
|
983
|
+
/**
|
|
984
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
985
|
+
*/
|
|
986
|
+
key: string;
|
|
987
|
+
id?: string | undefined;
|
|
988
|
+
displayName?: string | undefined;
|
|
989
|
+
/**
|
|
990
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
991
|
+
*/
|
|
992
|
+
description: string;
|
|
993
|
+
mcp: Mcp;
|
|
994
|
+
requiresApproval?: boolean | undefined;
|
|
995
|
+
};
|
|
996
|
+
|
|
909
997
|
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
910
998
|
{
|
|
911
999
|
Function: "function",
|
|
@@ -915,6 +1003,41 @@ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
|
915
1003
|
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
916
1004
|
>;
|
|
917
1005
|
|
|
1006
|
+
/**
|
|
1007
|
+
* The type must be "object"
|
|
1008
|
+
*/
|
|
1009
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
|
|
1010
|
+
{
|
|
1011
|
+
Object: "object",
|
|
1012
|
+
} as const;
|
|
1013
|
+
/**
|
|
1014
|
+
* The type must be "object"
|
|
1015
|
+
*/
|
|
1016
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
|
|
1017
|
+
ClosedEnum<
|
|
1018
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
1019
|
+
>;
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1023
|
+
*/
|
|
1024
|
+
export type RunAgentAgentToolInputRunParameters = {
|
|
1025
|
+
/**
|
|
1026
|
+
* The type must be "object"
|
|
1027
|
+
*/
|
|
1028
|
+
type:
|
|
1029
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType;
|
|
1030
|
+
/**
|
|
1031
|
+
* The properties of the function parameters
|
|
1032
|
+
*/
|
|
1033
|
+
properties: { [k: string]: any };
|
|
1034
|
+
/**
|
|
1035
|
+
* Array of required parameter names
|
|
1036
|
+
*/
|
|
1037
|
+
required: Array<string>;
|
|
1038
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1039
|
+
};
|
|
1040
|
+
|
|
918
1041
|
export type AgentToolInputRunFunction = {
|
|
919
1042
|
/**
|
|
920
1043
|
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -931,7 +1054,7 @@ export type AgentToolInputRunFunction = {
|
|
|
931
1054
|
/**
|
|
932
1055
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
933
1056
|
*/
|
|
934
|
-
parameters?:
|
|
1057
|
+
parameters?: RunAgentAgentToolInputRunParameters | undefined;
|
|
935
1058
|
};
|
|
936
1059
|
|
|
937
1060
|
/**
|
|
@@ -959,6 +1082,41 @@ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
|
959
1082
|
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
960
1083
|
>;
|
|
961
1084
|
|
|
1085
|
+
/**
|
|
1086
|
+
* The type must be "object"
|
|
1087
|
+
*/
|
|
1088
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
|
|
1089
|
+
{
|
|
1090
|
+
Object: "object",
|
|
1091
|
+
} as const;
|
|
1092
|
+
/**
|
|
1093
|
+
* The type must be "object"
|
|
1094
|
+
*/
|
|
1095
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
|
|
1096
|
+
ClosedEnum<
|
|
1097
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
1098
|
+
>;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1102
|
+
*/
|
|
1103
|
+
export type AgentToolInputRunParameters = {
|
|
1104
|
+
/**
|
|
1105
|
+
* The type must be "object"
|
|
1106
|
+
*/
|
|
1107
|
+
type:
|
|
1108
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType;
|
|
1109
|
+
/**
|
|
1110
|
+
* The properties of the function parameters
|
|
1111
|
+
*/
|
|
1112
|
+
properties: { [k: string]: any };
|
|
1113
|
+
/**
|
|
1114
|
+
* Array of required parameter names
|
|
1115
|
+
*/
|
|
1116
|
+
required: Array<string>;
|
|
1117
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
962
1120
|
export const Language = {
|
|
963
1121
|
Python: "python",
|
|
964
1122
|
} as const;
|
|
@@ -968,7 +1126,7 @@ export type CodeTool = {
|
|
|
968
1126
|
/**
|
|
969
1127
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
970
1128
|
*/
|
|
971
|
-
parameters?:
|
|
1129
|
+
parameters?: AgentToolInputRunParameters | undefined;
|
|
972
1130
|
language: Language;
|
|
973
1131
|
/**
|
|
974
1132
|
* The code to execute.
|
|
@@ -1018,11 +1176,13 @@ export const Method = {
|
|
|
1018
1176
|
*/
|
|
1019
1177
|
export type Method = ClosedEnum<typeof Method>;
|
|
1020
1178
|
|
|
1021
|
-
export type
|
|
1179
|
+
export type Headers2 = {
|
|
1022
1180
|
value: string;
|
|
1023
1181
|
encrypted?: boolean | undefined;
|
|
1024
1182
|
};
|
|
1025
1183
|
|
|
1184
|
+
export type Headers = Headers2 | string;
|
|
1185
|
+
|
|
1026
1186
|
/**
|
|
1027
1187
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
1028
1188
|
*/
|
|
@@ -1036,9 +1196,9 @@ export type Blueprint = {
|
|
|
1036
1196
|
*/
|
|
1037
1197
|
method: Method;
|
|
1038
1198
|
/**
|
|
1039
|
-
* The headers to send with the request.
|
|
1199
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
1040
1200
|
*/
|
|
1041
|
-
headers?: { [k: string]:
|
|
1201
|
+
headers?: { [k: string]: Headers2 | string } | undefined;
|
|
1042
1202
|
/**
|
|
1043
1203
|
* The body to send with the request.
|
|
1044
1204
|
*/
|
|
@@ -1325,11 +1485,12 @@ export type AgentToolInputRunGoogleSearchTool = {
|
|
|
1325
1485
|
};
|
|
1326
1486
|
|
|
1327
1487
|
/**
|
|
1328
|
-
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
|
|
1488
|
+
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, MCP) support full inline definitions for on-the-fly creation.
|
|
1329
1489
|
*/
|
|
1330
1490
|
export type AgentToolInputRun =
|
|
1331
1491
|
| HTTPToolRun
|
|
1332
1492
|
| CodeToolRun
|
|
1493
|
+
| MCPToolRun
|
|
1333
1494
|
| FunctionToolRun
|
|
1334
1495
|
| AgentToolInputRunGoogleSearchTool
|
|
1335
1496
|
| AgentToolInputRunWebScraperTool
|
|
@@ -1422,6 +1583,7 @@ export type RunAgentSettings = {
|
|
|
1422
1583
|
| Array<
|
|
1423
1584
|
| HTTPToolRun
|
|
1424
1585
|
| CodeToolRun
|
|
1586
|
+
| MCPToolRun
|
|
1425
1587
|
| FunctionToolRun
|
|
1426
1588
|
| AgentToolInputRunGoogleSearchTool
|
|
1427
1589
|
| AgentToolInputRunWebScraperTool
|
|
@@ -4338,6 +4500,280 @@ export function runAgentTeamOfAgentsFromJSON(
|
|
|
4338
4500
|
);
|
|
4339
4501
|
}
|
|
4340
4502
|
|
|
4503
|
+
/** @internal */
|
|
4504
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema:
|
|
4505
|
+
z.ZodNativeEnum<
|
|
4506
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
4507
|
+
> = z.nativeEnum(
|
|
4508
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type,
|
|
4509
|
+
);
|
|
4510
|
+
/** @internal */
|
|
4511
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
|
|
4512
|
+
z.ZodNativeEnum<
|
|
4513
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
4514
|
+
> =
|
|
4515
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema;
|
|
4516
|
+
|
|
4517
|
+
/** @internal */
|
|
4518
|
+
export const AgentToolInputRunHeaders$inboundSchema: z.ZodType<
|
|
4519
|
+
AgentToolInputRunHeaders,
|
|
4520
|
+
z.ZodTypeDef,
|
|
4521
|
+
unknown
|
|
4522
|
+
> = z.object({
|
|
4523
|
+
value: z.string(),
|
|
4524
|
+
encrypted: z.boolean().default(false),
|
|
4525
|
+
});
|
|
4526
|
+
/** @internal */
|
|
4527
|
+
export type AgentToolInputRunHeaders$Outbound = {
|
|
4528
|
+
value: string;
|
|
4529
|
+
encrypted: boolean;
|
|
4530
|
+
};
|
|
4531
|
+
|
|
4532
|
+
/** @internal */
|
|
4533
|
+
export const AgentToolInputRunHeaders$outboundSchema: z.ZodType<
|
|
4534
|
+
AgentToolInputRunHeaders$Outbound,
|
|
4535
|
+
z.ZodTypeDef,
|
|
4536
|
+
AgentToolInputRunHeaders
|
|
4537
|
+
> = z.object({
|
|
4538
|
+
value: z.string(),
|
|
4539
|
+
encrypted: z.boolean().default(false),
|
|
4540
|
+
});
|
|
4541
|
+
|
|
4542
|
+
export function agentToolInputRunHeadersToJSON(
|
|
4543
|
+
agentToolInputRunHeaders: AgentToolInputRunHeaders,
|
|
4544
|
+
): string {
|
|
4545
|
+
return JSON.stringify(
|
|
4546
|
+
AgentToolInputRunHeaders$outboundSchema.parse(agentToolInputRunHeaders),
|
|
4547
|
+
);
|
|
4548
|
+
}
|
|
4549
|
+
export function agentToolInputRunHeadersFromJSON(
|
|
4550
|
+
jsonString: string,
|
|
4551
|
+
): SafeParseResult<AgentToolInputRunHeaders, SDKValidationError> {
|
|
4552
|
+
return safeParse(
|
|
4553
|
+
jsonString,
|
|
4554
|
+
(x) => AgentToolInputRunHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
4555
|
+
`Failed to parse 'AgentToolInputRunHeaders' from JSON`,
|
|
4556
|
+
);
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
/** @internal */
|
|
4560
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema:
|
|
4561
|
+
z.ZodNativeEnum<
|
|
4562
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
4563
|
+
> = z.nativeEnum(
|
|
4564
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType,
|
|
4565
|
+
);
|
|
4566
|
+
/** @internal */
|
|
4567
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema:
|
|
4568
|
+
z.ZodNativeEnum<
|
|
4569
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
4570
|
+
> =
|
|
4571
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema;
|
|
4572
|
+
|
|
4573
|
+
/** @internal */
|
|
4574
|
+
export const Schema$inboundSchema: z.ZodType<Schema, z.ZodTypeDef, unknown> = z
|
|
4575
|
+
.object({
|
|
4576
|
+
type:
|
|
4577
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema,
|
|
4578
|
+
properties: z.record(z.any()).optional(),
|
|
4579
|
+
required: z.array(z.string()).optional(),
|
|
4580
|
+
});
|
|
4581
|
+
/** @internal */
|
|
4582
|
+
export type Schema$Outbound = {
|
|
4583
|
+
type: string;
|
|
4584
|
+
properties?: { [k: string]: any } | undefined;
|
|
4585
|
+
required?: Array<string> | undefined;
|
|
4586
|
+
};
|
|
4587
|
+
|
|
4588
|
+
/** @internal */
|
|
4589
|
+
export const Schema$outboundSchema: z.ZodType<
|
|
4590
|
+
Schema$Outbound,
|
|
4591
|
+
z.ZodTypeDef,
|
|
4592
|
+
Schema
|
|
4593
|
+
> = z.object({
|
|
4594
|
+
type:
|
|
4595
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema,
|
|
4596
|
+
properties: z.record(z.any()).optional(),
|
|
4597
|
+
required: z.array(z.string()).optional(),
|
|
4598
|
+
});
|
|
4599
|
+
|
|
4600
|
+
export function schemaToJSON(schema: Schema): string {
|
|
4601
|
+
return JSON.stringify(Schema$outboundSchema.parse(schema));
|
|
4602
|
+
}
|
|
4603
|
+
export function schemaFromJSON(
|
|
4604
|
+
jsonString: string,
|
|
4605
|
+
): SafeParseResult<Schema, SDKValidationError> {
|
|
4606
|
+
return safeParse(
|
|
4607
|
+
jsonString,
|
|
4608
|
+
(x) => Schema$inboundSchema.parse(JSON.parse(x)),
|
|
4609
|
+
`Failed to parse 'Schema' from JSON`,
|
|
4610
|
+
);
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
/** @internal */
|
|
4614
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4615
|
+
.object({
|
|
4616
|
+
name: z.string(),
|
|
4617
|
+
description: z.string().optional(),
|
|
4618
|
+
schema: z.lazy(() => Schema$inboundSchema),
|
|
4619
|
+
});
|
|
4620
|
+
/** @internal */
|
|
4621
|
+
export type Tools$Outbound = {
|
|
4622
|
+
name: string;
|
|
4623
|
+
description?: string | undefined;
|
|
4624
|
+
schema: Schema$Outbound;
|
|
4625
|
+
};
|
|
4626
|
+
|
|
4627
|
+
/** @internal */
|
|
4628
|
+
export const Tools$outboundSchema: z.ZodType<
|
|
4629
|
+
Tools$Outbound,
|
|
4630
|
+
z.ZodTypeDef,
|
|
4631
|
+
Tools
|
|
4632
|
+
> = z.object({
|
|
4633
|
+
name: z.string(),
|
|
4634
|
+
description: z.string().optional(),
|
|
4635
|
+
schema: z.lazy(() => Schema$outboundSchema),
|
|
4636
|
+
});
|
|
4637
|
+
|
|
4638
|
+
export function toolsToJSON(tools: Tools): string {
|
|
4639
|
+
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
4640
|
+
}
|
|
4641
|
+
export function toolsFromJSON(
|
|
4642
|
+
jsonString: string,
|
|
4643
|
+
): SafeParseResult<Tools, SDKValidationError> {
|
|
4644
|
+
return safeParse(
|
|
4645
|
+
jsonString,
|
|
4646
|
+
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
4647
|
+
`Failed to parse 'Tools' from JSON`,
|
|
4648
|
+
);
|
|
4649
|
+
}
|
|
4650
|
+
|
|
4651
|
+
/** @internal */
|
|
4652
|
+
export const ConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
4653
|
+
typeof ConnectionType
|
|
4654
|
+
> = z.nativeEnum(ConnectionType);
|
|
4655
|
+
/** @internal */
|
|
4656
|
+
export const ConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
4657
|
+
typeof ConnectionType
|
|
4658
|
+
> = ConnectionType$inboundSchema;
|
|
4659
|
+
|
|
4660
|
+
/** @internal */
|
|
4661
|
+
export const Mcp$inboundSchema: z.ZodType<Mcp, z.ZodTypeDef, unknown> = z
|
|
4662
|
+
.object({
|
|
4663
|
+
server_url: z.string(),
|
|
4664
|
+
headers: z.record(z.lazy(() => AgentToolInputRunHeaders$inboundSchema))
|
|
4665
|
+
.optional(),
|
|
4666
|
+
tools: z.array(z.lazy(() => Tools$inboundSchema)),
|
|
4667
|
+
connection_type: ConnectionType$inboundSchema,
|
|
4668
|
+
}).transform((v) => {
|
|
4669
|
+
return remap$(v, {
|
|
4670
|
+
"server_url": "serverUrl",
|
|
4671
|
+
"connection_type": "connectionType",
|
|
4672
|
+
});
|
|
4673
|
+
});
|
|
4674
|
+
/** @internal */
|
|
4675
|
+
export type Mcp$Outbound = {
|
|
4676
|
+
server_url: string;
|
|
4677
|
+
headers?: { [k: string]: AgentToolInputRunHeaders$Outbound } | undefined;
|
|
4678
|
+
tools: Array<Tools$Outbound>;
|
|
4679
|
+
connection_type: string;
|
|
4680
|
+
};
|
|
4681
|
+
|
|
4682
|
+
/** @internal */
|
|
4683
|
+
export const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp> = z
|
|
4684
|
+
.object({
|
|
4685
|
+
serverUrl: z.string(),
|
|
4686
|
+
headers: z.record(z.lazy(() => AgentToolInputRunHeaders$outboundSchema))
|
|
4687
|
+
.optional(),
|
|
4688
|
+
tools: z.array(z.lazy(() => Tools$outboundSchema)),
|
|
4689
|
+
connectionType: ConnectionType$outboundSchema,
|
|
4690
|
+
}).transform((v) => {
|
|
4691
|
+
return remap$(v, {
|
|
4692
|
+
serverUrl: "server_url",
|
|
4693
|
+
connectionType: "connection_type",
|
|
4694
|
+
});
|
|
4695
|
+
});
|
|
4696
|
+
|
|
4697
|
+
export function mcpToJSON(mcp: Mcp): string {
|
|
4698
|
+
return JSON.stringify(Mcp$outboundSchema.parse(mcp));
|
|
4699
|
+
}
|
|
4700
|
+
export function mcpFromJSON(
|
|
4701
|
+
jsonString: string,
|
|
4702
|
+
): SafeParseResult<Mcp, SDKValidationError> {
|
|
4703
|
+
return safeParse(
|
|
4704
|
+
jsonString,
|
|
4705
|
+
(x) => Mcp$inboundSchema.parse(JSON.parse(x)),
|
|
4706
|
+
`Failed to parse 'Mcp' from JSON`,
|
|
4707
|
+
);
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
/** @internal */
|
|
4711
|
+
export const MCPToolRun$inboundSchema: z.ZodType<
|
|
4712
|
+
MCPToolRun,
|
|
4713
|
+
z.ZodTypeDef,
|
|
4714
|
+
unknown
|
|
4715
|
+
> = z.object({
|
|
4716
|
+
type:
|
|
4717
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema,
|
|
4718
|
+
key: z.string(),
|
|
4719
|
+
_id: z.string().optional(),
|
|
4720
|
+
display_name: z.string().optional(),
|
|
4721
|
+
description: z.string(),
|
|
4722
|
+
mcp: z.lazy(() => Mcp$inboundSchema),
|
|
4723
|
+
requires_approval: z.boolean().default(false),
|
|
4724
|
+
}).transform((v) => {
|
|
4725
|
+
return remap$(v, {
|
|
4726
|
+
"_id": "id",
|
|
4727
|
+
"display_name": "displayName",
|
|
4728
|
+
"requires_approval": "requiresApproval",
|
|
4729
|
+
});
|
|
4730
|
+
});
|
|
4731
|
+
/** @internal */
|
|
4732
|
+
export type MCPToolRun$Outbound = {
|
|
4733
|
+
type: string;
|
|
4734
|
+
key: string;
|
|
4735
|
+
_id?: string | undefined;
|
|
4736
|
+
display_name?: string | undefined;
|
|
4737
|
+
description: string;
|
|
4738
|
+
mcp: Mcp$Outbound;
|
|
4739
|
+
requires_approval: boolean;
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
/** @internal */
|
|
4743
|
+
export const MCPToolRun$outboundSchema: z.ZodType<
|
|
4744
|
+
MCPToolRun$Outbound,
|
|
4745
|
+
z.ZodTypeDef,
|
|
4746
|
+
MCPToolRun
|
|
4747
|
+
> = z.object({
|
|
4748
|
+
type:
|
|
4749
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema,
|
|
4750
|
+
key: z.string(),
|
|
4751
|
+
id: z.string().optional(),
|
|
4752
|
+
displayName: z.string().optional(),
|
|
4753
|
+
description: z.string(),
|
|
4754
|
+
mcp: z.lazy(() => Mcp$outboundSchema),
|
|
4755
|
+
requiresApproval: z.boolean().default(false),
|
|
4756
|
+
}).transform((v) => {
|
|
4757
|
+
return remap$(v, {
|
|
4758
|
+
id: "_id",
|
|
4759
|
+
displayName: "display_name",
|
|
4760
|
+
requiresApproval: "requires_approval",
|
|
4761
|
+
});
|
|
4762
|
+
});
|
|
4763
|
+
|
|
4764
|
+
export function mcpToolRunToJSON(mcpToolRun: MCPToolRun): string {
|
|
4765
|
+
return JSON.stringify(MCPToolRun$outboundSchema.parse(mcpToolRun));
|
|
4766
|
+
}
|
|
4767
|
+
export function mcpToolRunFromJSON(
|
|
4768
|
+
jsonString: string,
|
|
4769
|
+
): SafeParseResult<MCPToolRun, SDKValidationError> {
|
|
4770
|
+
return safeParse(
|
|
4771
|
+
jsonString,
|
|
4772
|
+
(x) => MCPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
4773
|
+
`Failed to parse 'MCPToolRun' from JSON`,
|
|
4774
|
+
);
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4341
4777
|
/** @internal */
|
|
4342
4778
|
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
4343
4779
|
z.ZodNativeEnum<
|
|
@@ -4352,6 +4788,83 @@ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Typ
|
|
|
4352
4788
|
> =
|
|
4353
4789
|
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
4354
4790
|
|
|
4791
|
+
/** @internal */
|
|
4792
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema:
|
|
4793
|
+
z.ZodNativeEnum<
|
|
4794
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
4795
|
+
> = z.nativeEnum(
|
|
4796
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType,
|
|
4797
|
+
);
|
|
4798
|
+
/** @internal */
|
|
4799
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema:
|
|
4800
|
+
z.ZodNativeEnum<
|
|
4801
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
4802
|
+
> =
|
|
4803
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema;
|
|
4804
|
+
|
|
4805
|
+
/** @internal */
|
|
4806
|
+
export const RunAgentAgentToolInputRunParameters$inboundSchema: z.ZodType<
|
|
4807
|
+
RunAgentAgentToolInputRunParameters,
|
|
4808
|
+
z.ZodTypeDef,
|
|
4809
|
+
unknown
|
|
4810
|
+
> = collectExtraKeys$(
|
|
4811
|
+
z.object({
|
|
4812
|
+
type:
|
|
4813
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema,
|
|
4814
|
+
properties: z.record(z.any()),
|
|
4815
|
+
required: z.array(z.string()),
|
|
4816
|
+
}).catchall(z.any()),
|
|
4817
|
+
"additionalProperties",
|
|
4818
|
+
true,
|
|
4819
|
+
);
|
|
4820
|
+
/** @internal */
|
|
4821
|
+
export type RunAgentAgentToolInputRunParameters$Outbound = {
|
|
4822
|
+
type: string;
|
|
4823
|
+
properties: { [k: string]: any };
|
|
4824
|
+
required: Array<string>;
|
|
4825
|
+
[additionalProperties: string]: unknown;
|
|
4826
|
+
};
|
|
4827
|
+
|
|
4828
|
+
/** @internal */
|
|
4829
|
+
export const RunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<
|
|
4830
|
+
RunAgentAgentToolInputRunParameters$Outbound,
|
|
4831
|
+
z.ZodTypeDef,
|
|
4832
|
+
RunAgentAgentToolInputRunParameters
|
|
4833
|
+
> = z.object({
|
|
4834
|
+
type:
|
|
4835
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema,
|
|
4836
|
+
properties: z.record(z.any()),
|
|
4837
|
+
required: z.array(z.string()),
|
|
4838
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
4839
|
+
}).transform((v) => {
|
|
4840
|
+
return {
|
|
4841
|
+
...v.additionalProperties,
|
|
4842
|
+
...remap$(v, {
|
|
4843
|
+
additionalProperties: null,
|
|
4844
|
+
}),
|
|
4845
|
+
};
|
|
4846
|
+
});
|
|
4847
|
+
|
|
4848
|
+
export function runAgentAgentToolInputRunParametersToJSON(
|
|
4849
|
+
runAgentAgentToolInputRunParameters: RunAgentAgentToolInputRunParameters,
|
|
4850
|
+
): string {
|
|
4851
|
+
return JSON.stringify(
|
|
4852
|
+
RunAgentAgentToolInputRunParameters$outboundSchema.parse(
|
|
4853
|
+
runAgentAgentToolInputRunParameters,
|
|
4854
|
+
),
|
|
4855
|
+
);
|
|
4856
|
+
}
|
|
4857
|
+
export function runAgentAgentToolInputRunParametersFromJSON(
|
|
4858
|
+
jsonString: string,
|
|
4859
|
+
): SafeParseResult<RunAgentAgentToolInputRunParameters, SDKValidationError> {
|
|
4860
|
+
return safeParse(
|
|
4861
|
+
jsonString,
|
|
4862
|
+
(x) =>
|
|
4863
|
+
RunAgentAgentToolInputRunParameters$inboundSchema.parse(JSON.parse(x)),
|
|
4864
|
+
`Failed to parse 'RunAgentAgentToolInputRunParameters' from JSON`,
|
|
4865
|
+
);
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4355
4868
|
/** @internal */
|
|
4356
4869
|
export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
4357
4870
|
AgentToolInputRunFunction,
|
|
@@ -4361,14 +4874,15 @@ export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
|
4361
4874
|
name: z.string(),
|
|
4362
4875
|
description: z.string().optional(),
|
|
4363
4876
|
strict: z.boolean().optional(),
|
|
4364
|
-
parameters: z.
|
|
4877
|
+
parameters: z.lazy(() => RunAgentAgentToolInputRunParameters$inboundSchema)
|
|
4878
|
+
.optional(),
|
|
4365
4879
|
});
|
|
4366
4880
|
/** @internal */
|
|
4367
4881
|
export type AgentToolInputRunFunction$Outbound = {
|
|
4368
4882
|
name: string;
|
|
4369
4883
|
description?: string | undefined;
|
|
4370
4884
|
strict?: boolean | undefined;
|
|
4371
|
-
parameters?:
|
|
4885
|
+
parameters?: RunAgentAgentToolInputRunParameters$Outbound | undefined;
|
|
4372
4886
|
};
|
|
4373
4887
|
|
|
4374
4888
|
/** @internal */
|
|
@@ -4380,7 +4894,8 @@ export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
|
4380
4894
|
name: z.string(),
|
|
4381
4895
|
description: z.string().optional(),
|
|
4382
4896
|
strict: z.boolean().optional(),
|
|
4383
|
-
parameters: z.
|
|
4897
|
+
parameters: z.lazy(() => RunAgentAgentToolInputRunParameters$outboundSchema)
|
|
4898
|
+
.optional(),
|
|
4384
4899
|
});
|
|
4385
4900
|
|
|
4386
4901
|
export function agentToolInputRunFunctionToJSON(
|
|
@@ -4483,6 +4998,82 @@ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Typ
|
|
|
4483
4998
|
> =
|
|
4484
4999
|
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
4485
5000
|
|
|
5001
|
+
/** @internal */
|
|
5002
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema:
|
|
5003
|
+
z.ZodNativeEnum<
|
|
5004
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
5005
|
+
> = z.nativeEnum(
|
|
5006
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType,
|
|
5007
|
+
);
|
|
5008
|
+
/** @internal */
|
|
5009
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema:
|
|
5010
|
+
z.ZodNativeEnum<
|
|
5011
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
5012
|
+
> =
|
|
5013
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema;
|
|
5014
|
+
|
|
5015
|
+
/** @internal */
|
|
5016
|
+
export const AgentToolInputRunParameters$inboundSchema: z.ZodType<
|
|
5017
|
+
AgentToolInputRunParameters,
|
|
5018
|
+
z.ZodTypeDef,
|
|
5019
|
+
unknown
|
|
5020
|
+
> = collectExtraKeys$(
|
|
5021
|
+
z.object({
|
|
5022
|
+
type:
|
|
5023
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema,
|
|
5024
|
+
properties: z.record(z.any()),
|
|
5025
|
+
required: z.array(z.string()),
|
|
5026
|
+
}).catchall(z.any()),
|
|
5027
|
+
"additionalProperties",
|
|
5028
|
+
true,
|
|
5029
|
+
);
|
|
5030
|
+
/** @internal */
|
|
5031
|
+
export type AgentToolInputRunParameters$Outbound = {
|
|
5032
|
+
type: string;
|
|
5033
|
+
properties: { [k: string]: any };
|
|
5034
|
+
required: Array<string>;
|
|
5035
|
+
[additionalProperties: string]: unknown;
|
|
5036
|
+
};
|
|
5037
|
+
|
|
5038
|
+
/** @internal */
|
|
5039
|
+
export const AgentToolInputRunParameters$outboundSchema: z.ZodType<
|
|
5040
|
+
AgentToolInputRunParameters$Outbound,
|
|
5041
|
+
z.ZodTypeDef,
|
|
5042
|
+
AgentToolInputRunParameters
|
|
5043
|
+
> = z.object({
|
|
5044
|
+
type:
|
|
5045
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema,
|
|
5046
|
+
properties: z.record(z.any()),
|
|
5047
|
+
required: z.array(z.string()),
|
|
5048
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
5049
|
+
}).transform((v) => {
|
|
5050
|
+
return {
|
|
5051
|
+
...v.additionalProperties,
|
|
5052
|
+
...remap$(v, {
|
|
5053
|
+
additionalProperties: null,
|
|
5054
|
+
}),
|
|
5055
|
+
};
|
|
5056
|
+
});
|
|
5057
|
+
|
|
5058
|
+
export function agentToolInputRunParametersToJSON(
|
|
5059
|
+
agentToolInputRunParameters: AgentToolInputRunParameters,
|
|
5060
|
+
): string {
|
|
5061
|
+
return JSON.stringify(
|
|
5062
|
+
AgentToolInputRunParameters$outboundSchema.parse(
|
|
5063
|
+
agentToolInputRunParameters,
|
|
5064
|
+
),
|
|
5065
|
+
);
|
|
5066
|
+
}
|
|
5067
|
+
export function agentToolInputRunParametersFromJSON(
|
|
5068
|
+
jsonString: string,
|
|
5069
|
+
): SafeParseResult<AgentToolInputRunParameters, SDKValidationError> {
|
|
5070
|
+
return safeParse(
|
|
5071
|
+
jsonString,
|
|
5072
|
+
(x) => AgentToolInputRunParameters$inboundSchema.parse(JSON.parse(x)),
|
|
5073
|
+
`Failed to parse 'AgentToolInputRunParameters' from JSON`,
|
|
5074
|
+
);
|
|
5075
|
+
}
|
|
5076
|
+
|
|
4486
5077
|
/** @internal */
|
|
4487
5078
|
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
4488
5079
|
.nativeEnum(Language);
|
|
@@ -4496,13 +5087,14 @@ export const CodeTool$inboundSchema: z.ZodType<
|
|
|
4496
5087
|
z.ZodTypeDef,
|
|
4497
5088
|
unknown
|
|
4498
5089
|
> = z.object({
|
|
4499
|
-
parameters: z.
|
|
5090
|
+
parameters: z.lazy(() => AgentToolInputRunParameters$inboundSchema)
|
|
5091
|
+
.optional(),
|
|
4500
5092
|
language: Language$inboundSchema,
|
|
4501
5093
|
code: z.string(),
|
|
4502
5094
|
});
|
|
4503
5095
|
/** @internal */
|
|
4504
5096
|
export type CodeTool$Outbound = {
|
|
4505
|
-
parameters?:
|
|
5097
|
+
parameters?: AgentToolInputRunParameters$Outbound | undefined;
|
|
4506
5098
|
language: string;
|
|
4507
5099
|
code: string;
|
|
4508
5100
|
};
|
|
@@ -4513,7 +5105,8 @@ export const CodeTool$outboundSchema: z.ZodType<
|
|
|
4513
5105
|
z.ZodTypeDef,
|
|
4514
5106
|
CodeTool
|
|
4515
5107
|
> = z.object({
|
|
4516
|
-
parameters: z.
|
|
5108
|
+
parameters: z.lazy(() => AgentToolInputRunParameters$outboundSchema)
|
|
5109
|
+
.optional(),
|
|
4517
5110
|
language: Language$outboundSchema,
|
|
4518
5111
|
code: z.string(),
|
|
4519
5112
|
});
|
|
@@ -4622,27 +5215,56 @@ export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
|
|
|
4622
5215
|
Method$inboundSchema;
|
|
4623
5216
|
|
|
4624
5217
|
/** @internal */
|
|
4625
|
-
export const
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
5218
|
+
export const Headers2$inboundSchema: z.ZodType<
|
|
5219
|
+
Headers2,
|
|
5220
|
+
z.ZodTypeDef,
|
|
5221
|
+
unknown
|
|
5222
|
+
> = z.object({
|
|
5223
|
+
value: z.string(),
|
|
5224
|
+
encrypted: z.boolean().default(false),
|
|
5225
|
+
});
|
|
4630
5226
|
/** @internal */
|
|
4631
|
-
export type
|
|
5227
|
+
export type Headers2$Outbound = {
|
|
4632
5228
|
value: string;
|
|
4633
5229
|
encrypted: boolean;
|
|
4634
5230
|
};
|
|
4635
5231
|
|
|
4636
5232
|
/** @internal */
|
|
4637
|
-
export const
|
|
4638
|
-
|
|
5233
|
+
export const Headers2$outboundSchema: z.ZodType<
|
|
5234
|
+
Headers2$Outbound,
|
|
4639
5235
|
z.ZodTypeDef,
|
|
4640
|
-
|
|
5236
|
+
Headers2
|
|
4641
5237
|
> = z.object({
|
|
4642
5238
|
value: z.string(),
|
|
4643
5239
|
encrypted: z.boolean().default(false),
|
|
4644
5240
|
});
|
|
4645
5241
|
|
|
5242
|
+
export function headers2ToJSON(headers2: Headers2): string {
|
|
5243
|
+
return JSON.stringify(Headers2$outboundSchema.parse(headers2));
|
|
5244
|
+
}
|
|
5245
|
+
export function headers2FromJSON(
|
|
5246
|
+
jsonString: string,
|
|
5247
|
+
): SafeParseResult<Headers2, SDKValidationError> {
|
|
5248
|
+
return safeParse(
|
|
5249
|
+
jsonString,
|
|
5250
|
+
(x) => Headers2$inboundSchema.parse(JSON.parse(x)),
|
|
5251
|
+
`Failed to parse 'Headers2' from JSON`,
|
|
5252
|
+
);
|
|
5253
|
+
}
|
|
5254
|
+
|
|
5255
|
+
/** @internal */
|
|
5256
|
+
export const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown> =
|
|
5257
|
+
z.union([z.lazy(() => Headers2$inboundSchema), z.string()]);
|
|
5258
|
+
/** @internal */
|
|
5259
|
+
export type Headers$Outbound = Headers2$Outbound | string;
|
|
5260
|
+
|
|
5261
|
+
/** @internal */
|
|
5262
|
+
export const Headers$outboundSchema: z.ZodType<
|
|
5263
|
+
Headers$Outbound,
|
|
5264
|
+
z.ZodTypeDef,
|
|
5265
|
+
Headers
|
|
5266
|
+
> = z.union([z.lazy(() => Headers2$outboundSchema), z.string()]);
|
|
5267
|
+
|
|
4646
5268
|
export function headersToJSON(headers: Headers): string {
|
|
4647
5269
|
return JSON.stringify(Headers$outboundSchema.parse(headers));
|
|
4648
5270
|
}
|
|
@@ -4664,14 +5286,15 @@ export const Blueprint$inboundSchema: z.ZodType<
|
|
|
4664
5286
|
> = z.object({
|
|
4665
5287
|
url: z.string(),
|
|
4666
5288
|
method: Method$inboundSchema,
|
|
4667
|
-
headers: z.record(z.lazy(() =>
|
|
5289
|
+
headers: z.record(z.union([z.lazy(() => Headers2$inboundSchema), z.string()]))
|
|
5290
|
+
.optional(),
|
|
4668
5291
|
body: z.record(z.any()).optional(),
|
|
4669
5292
|
});
|
|
4670
5293
|
/** @internal */
|
|
4671
5294
|
export type Blueprint$Outbound = {
|
|
4672
5295
|
url: string;
|
|
4673
5296
|
method: string;
|
|
4674
|
-
headers?: { [k: string]:
|
|
5297
|
+
headers?: { [k: string]: Headers2$Outbound | string } | undefined;
|
|
4675
5298
|
body?: { [k: string]: any } | undefined;
|
|
4676
5299
|
};
|
|
4677
5300
|
|
|
@@ -4683,7 +5306,9 @@ export const Blueprint$outboundSchema: z.ZodType<
|
|
|
4683
5306
|
> = z.object({
|
|
4684
5307
|
url: z.string(),
|
|
4685
5308
|
method: Method$outboundSchema,
|
|
4686
|
-
headers: z.record(
|
|
5309
|
+
headers: z.record(
|
|
5310
|
+
z.union([z.lazy(() => Headers2$outboundSchema), z.string()]),
|
|
5311
|
+
).optional(),
|
|
4687
5312
|
body: z.record(z.any()).optional(),
|
|
4688
5313
|
});
|
|
4689
5314
|
|
|
@@ -5656,6 +6281,7 @@ export const AgentToolInputRun$inboundSchema: z.ZodType<
|
|
|
5656
6281
|
> = z.union([
|
|
5657
6282
|
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
5658
6283
|
z.lazy(() => CodeToolRun$inboundSchema),
|
|
6284
|
+
z.lazy(() => MCPToolRun$inboundSchema),
|
|
5659
6285
|
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
5660
6286
|
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
5661
6287
|
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
@@ -5673,6 +6299,7 @@ export const AgentToolInputRun$inboundSchema: z.ZodType<
|
|
|
5673
6299
|
export type AgentToolInputRun$Outbound =
|
|
5674
6300
|
| HTTPToolRun$Outbound
|
|
5675
6301
|
| CodeToolRun$Outbound
|
|
6302
|
+
| MCPToolRun$Outbound
|
|
5676
6303
|
| FunctionToolRun$Outbound
|
|
5677
6304
|
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
5678
6305
|
| AgentToolInputRunWebScraperTool$Outbound
|
|
@@ -5694,6 +6321,7 @@ export const AgentToolInputRun$outboundSchema: z.ZodType<
|
|
|
5694
6321
|
> = z.union([
|
|
5695
6322
|
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
5696
6323
|
z.lazy(() => CodeToolRun$outboundSchema),
|
|
6324
|
+
z.lazy(() => MCPToolRun$outboundSchema),
|
|
5697
6325
|
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
5698
6326
|
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
5699
6327
|
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
@@ -5872,6 +6500,7 @@ export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
|
5872
6500
|
z.union([
|
|
5873
6501
|
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
5874
6502
|
z.lazy(() => CodeToolRun$inboundSchema),
|
|
6503
|
+
z.lazy(() => MCPToolRun$inboundSchema),
|
|
5875
6504
|
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
5876
6505
|
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
5877
6506
|
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
@@ -5908,6 +6537,7 @@ export type RunAgentSettings$Outbound = {
|
|
|
5908
6537
|
| Array<
|
|
5909
6538
|
| HTTPToolRun$Outbound
|
|
5910
6539
|
| CodeToolRun$Outbound
|
|
6540
|
+
| MCPToolRun$Outbound
|
|
5911
6541
|
| FunctionToolRun$Outbound
|
|
5912
6542
|
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
5913
6543
|
| AgentToolInputRunWebScraperTool$Outbound
|
|
@@ -5939,6 +6569,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5939
6569
|
z.union([
|
|
5940
6570
|
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
5941
6571
|
z.lazy(() => CodeToolRun$outboundSchema),
|
|
6572
|
+
z.lazy(() => MCPToolRun$outboundSchema),
|
|
5942
6573
|
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
5943
6574
|
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
5944
6575
|
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|