@orq-ai/node 3.14.35 → 3.14.36
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 +1 -1
- 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 +1 -1
- package/packages/orq-rc/README.md +24 -22
- 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/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 +3 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +37 -0
- 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/createtool.ts +873 -277
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +29 -20
- 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/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/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/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/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/updatetool.ts +910 -190
- 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";
|
|
@@ -924,6 +927,97 @@ export type StreamRunAgentTeamOfAgents = {
|
|
|
924
927
|
role?: string | undefined;
|
|
925
928
|
};
|
|
926
929
|
|
|
930
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type =
|
|
931
|
+
{
|
|
932
|
+
Mcp: "mcp",
|
|
933
|
+
} as const;
|
|
934
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type =
|
|
935
|
+
ClosedEnum<
|
|
936
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
937
|
+
>;
|
|
938
|
+
|
|
939
|
+
export type StreamRunAgentAgentToolInputRunAgentsHeaders = {
|
|
940
|
+
value: string;
|
|
941
|
+
encrypted?: boolean | undefined;
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType =
|
|
945
|
+
{
|
|
946
|
+
Object: "object",
|
|
947
|
+
} as const;
|
|
948
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType =
|
|
949
|
+
ClosedEnum<
|
|
950
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
951
|
+
>;
|
|
952
|
+
|
|
953
|
+
export type AgentToolInputRunSchema = {
|
|
954
|
+
type:
|
|
955
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType;
|
|
956
|
+
properties?: { [k: string]: any } | undefined;
|
|
957
|
+
required?: Array<string> | undefined;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
export type AgentToolInputRunTools = {
|
|
961
|
+
name: string;
|
|
962
|
+
description?: string | undefined;
|
|
963
|
+
schema: AgentToolInputRunSchema;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* The connection type used by the MCP server
|
|
968
|
+
*/
|
|
969
|
+
export const AgentToolInputRunConnectionType = {
|
|
970
|
+
Http: "http",
|
|
971
|
+
Sse: "sse",
|
|
972
|
+
} as const;
|
|
973
|
+
/**
|
|
974
|
+
* The connection type used by the MCP server
|
|
975
|
+
*/
|
|
976
|
+
export type AgentToolInputRunConnectionType = ClosedEnum<
|
|
977
|
+
typeof AgentToolInputRunConnectionType
|
|
978
|
+
>;
|
|
979
|
+
|
|
980
|
+
export type AgentToolInputRunMcp = {
|
|
981
|
+
/**
|
|
982
|
+
* The MCP server URL (cached for execution)
|
|
983
|
+
*/
|
|
984
|
+
serverUrl: string;
|
|
985
|
+
/**
|
|
986
|
+
* HTTP headers for MCP server requests with encryption support
|
|
987
|
+
*/
|
|
988
|
+
headers?:
|
|
989
|
+
| { [k: string]: StreamRunAgentAgentToolInputRunAgentsHeaders }
|
|
990
|
+
| undefined;
|
|
991
|
+
/**
|
|
992
|
+
* Array of tools available from the MCP server
|
|
993
|
+
*/
|
|
994
|
+
tools: Array<AgentToolInputRunTools>;
|
|
995
|
+
/**
|
|
996
|
+
* The connection type used by the MCP server
|
|
997
|
+
*/
|
|
998
|
+
connectionType: AgentToolInputRunConnectionType;
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* MCP tool with inline definition for on-the-fly creation in run endpoint
|
|
1003
|
+
*/
|
|
1004
|
+
export type AgentToolInputRunMCPToolRun = {
|
|
1005
|
+
type:
|
|
1006
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type;
|
|
1007
|
+
/**
|
|
1008
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
1009
|
+
*/
|
|
1010
|
+
key: string;
|
|
1011
|
+
id?: string | undefined;
|
|
1012
|
+
displayName?: string | undefined;
|
|
1013
|
+
/**
|
|
1014
|
+
* 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.
|
|
1015
|
+
*/
|
|
1016
|
+
description: string;
|
|
1017
|
+
mcp: AgentToolInputRunMcp;
|
|
1018
|
+
requiresApproval?: boolean | undefined;
|
|
1019
|
+
};
|
|
1020
|
+
|
|
927
1021
|
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
928
1022
|
{
|
|
929
1023
|
Function: "function",
|
|
@@ -933,6 +1027,41 @@ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools
|
|
|
933
1027
|
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
934
1028
|
>;
|
|
935
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* The type must be "object"
|
|
1032
|
+
*/
|
|
1033
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
|
|
1034
|
+
{
|
|
1035
|
+
Object: "object",
|
|
1036
|
+
} as const;
|
|
1037
|
+
/**
|
|
1038
|
+
* The type must be "object"
|
|
1039
|
+
*/
|
|
1040
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
|
|
1041
|
+
ClosedEnum<
|
|
1042
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
1043
|
+
>;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* 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.
|
|
1047
|
+
*/
|
|
1048
|
+
export type StreamRunAgentAgentToolInputRunAgentsParameters = {
|
|
1049
|
+
/**
|
|
1050
|
+
* The type must be "object"
|
|
1051
|
+
*/
|
|
1052
|
+
type:
|
|
1053
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType;
|
|
1054
|
+
/**
|
|
1055
|
+
* The properties of the function parameters
|
|
1056
|
+
*/
|
|
1057
|
+
properties: { [k: string]: any };
|
|
1058
|
+
/**
|
|
1059
|
+
* Array of required parameter names
|
|
1060
|
+
*/
|
|
1061
|
+
required: Array<string>;
|
|
1062
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1063
|
+
};
|
|
1064
|
+
|
|
936
1065
|
export type StreamRunAgentAgentToolInputRunFunction = {
|
|
937
1066
|
/**
|
|
938
1067
|
* 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.
|
|
@@ -949,7 +1078,7 @@ export type StreamRunAgentAgentToolInputRunFunction = {
|
|
|
949
1078
|
/**
|
|
950
1079
|
* 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.
|
|
951
1080
|
*/
|
|
952
|
-
parameters?:
|
|
1081
|
+
parameters?: StreamRunAgentAgentToolInputRunAgentsParameters | undefined;
|
|
953
1082
|
};
|
|
954
1083
|
|
|
955
1084
|
/**
|
|
@@ -978,6 +1107,41 @@ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools
|
|
|
978
1107
|
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
979
1108
|
>;
|
|
980
1109
|
|
|
1110
|
+
/**
|
|
1111
|
+
* The type must be "object"
|
|
1112
|
+
*/
|
|
1113
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
|
|
1114
|
+
{
|
|
1115
|
+
Object: "object",
|
|
1116
|
+
} as const;
|
|
1117
|
+
/**
|
|
1118
|
+
* The type must be "object"
|
|
1119
|
+
*/
|
|
1120
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
|
|
1121
|
+
ClosedEnum<
|
|
1122
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
1123
|
+
>;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* 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.
|
|
1127
|
+
*/
|
|
1128
|
+
export type StreamRunAgentAgentToolInputRunParameters = {
|
|
1129
|
+
/**
|
|
1130
|
+
* The type must be "object"
|
|
1131
|
+
*/
|
|
1132
|
+
type:
|
|
1133
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType;
|
|
1134
|
+
/**
|
|
1135
|
+
* The properties of the function parameters
|
|
1136
|
+
*/
|
|
1137
|
+
properties: { [k: string]: any };
|
|
1138
|
+
/**
|
|
1139
|
+
* Array of required parameter names
|
|
1140
|
+
*/
|
|
1141
|
+
required: Array<string>;
|
|
1142
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1143
|
+
};
|
|
1144
|
+
|
|
981
1145
|
export const AgentToolInputRunLanguage = {
|
|
982
1146
|
Python: "python",
|
|
983
1147
|
} as const;
|
|
@@ -989,7 +1153,7 @@ export type AgentToolInputRunCodeTool = {
|
|
|
989
1153
|
/**
|
|
990
1154
|
* 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.
|
|
991
1155
|
*/
|
|
992
|
-
parameters?:
|
|
1156
|
+
parameters?: StreamRunAgentAgentToolInputRunParameters | undefined;
|
|
993
1157
|
language: AgentToolInputRunLanguage;
|
|
994
1158
|
/**
|
|
995
1159
|
* The code to execute.
|
|
@@ -1042,11 +1206,15 @@ export type AgentToolInputRunMethod = ClosedEnum<
|
|
|
1042
1206
|
typeof AgentToolInputRunMethod
|
|
1043
1207
|
>;
|
|
1044
1208
|
|
|
1045
|
-
export type
|
|
1209
|
+
export type StreamRunAgentHeaders2 = {
|
|
1046
1210
|
value: string;
|
|
1047
1211
|
encrypted?: boolean | undefined;
|
|
1048
1212
|
};
|
|
1049
1213
|
|
|
1214
|
+
export type StreamRunAgentAgentToolInputRunHeaders =
|
|
1215
|
+
| StreamRunAgentHeaders2
|
|
1216
|
+
| string;
|
|
1217
|
+
|
|
1050
1218
|
/**
|
|
1051
1219
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
1052
1220
|
*/
|
|
@@ -1060,9 +1228,9 @@ export type AgentToolInputRunBlueprint = {
|
|
|
1060
1228
|
*/
|
|
1061
1229
|
method: AgentToolInputRunMethod;
|
|
1062
1230
|
/**
|
|
1063
|
-
* The headers to send with the request.
|
|
1231
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
1064
1232
|
*/
|
|
1065
|
-
headers?: { [k: string]:
|
|
1233
|
+
headers?: { [k: string]: StreamRunAgentHeaders2 | string } | undefined;
|
|
1066
1234
|
/**
|
|
1067
1235
|
* The body to send with the request.
|
|
1068
1236
|
*/
|
|
@@ -1362,11 +1530,12 @@ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
|
1362
1530
|
};
|
|
1363
1531
|
|
|
1364
1532
|
/**
|
|
1365
|
-
* 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.
|
|
1533
|
+
* 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.
|
|
1366
1534
|
*/
|
|
1367
1535
|
export type StreamRunAgentAgentToolInputRun =
|
|
1368
1536
|
| AgentToolInputRunHTTPToolRun
|
|
1369
1537
|
| AgentToolInputRunCodeToolRun
|
|
1538
|
+
| AgentToolInputRunMCPToolRun
|
|
1370
1539
|
| AgentToolInputRunFunctionToolRun
|
|
1371
1540
|
| StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
1372
1541
|
| StreamRunAgentAgentToolInputRunWebScraperTool
|
|
@@ -1461,6 +1630,7 @@ export type StreamRunAgentSettings = {
|
|
|
1461
1630
|
| Array<
|
|
1462
1631
|
| AgentToolInputRunHTTPToolRun
|
|
1463
1632
|
| AgentToolInputRunCodeToolRun
|
|
1633
|
+
| AgentToolInputRunMCPToolRun
|
|
1464
1634
|
| AgentToolInputRunFunctionToolRun
|
|
1465
1635
|
| StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
1466
1636
|
| StreamRunAgentAgentToolInputRunWebScraperTool
|
|
@@ -4329,6 +4499,325 @@ export function streamRunAgentTeamOfAgentsFromJSON(
|
|
|
4329
4499
|
);
|
|
4330
4500
|
}
|
|
4331
4501
|
|
|
4502
|
+
/** @internal */
|
|
4503
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema:
|
|
4504
|
+
z.ZodNativeEnum<
|
|
4505
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
4506
|
+
> = z.nativeEnum(
|
|
4507
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type,
|
|
4508
|
+
);
|
|
4509
|
+
/** @internal */
|
|
4510
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
|
|
4511
|
+
z.ZodNativeEnum<
|
|
4512
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type
|
|
4513
|
+
> =
|
|
4514
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema;
|
|
4515
|
+
|
|
4516
|
+
/** @internal */
|
|
4517
|
+
export const StreamRunAgentAgentToolInputRunAgentsHeaders$inboundSchema:
|
|
4518
|
+
z.ZodType<
|
|
4519
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders,
|
|
4520
|
+
z.ZodTypeDef,
|
|
4521
|
+
unknown
|
|
4522
|
+
> = z.object({
|
|
4523
|
+
value: z.string(),
|
|
4524
|
+
encrypted: z.boolean().default(false),
|
|
4525
|
+
});
|
|
4526
|
+
/** @internal */
|
|
4527
|
+
export type StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound = {
|
|
4528
|
+
value: string;
|
|
4529
|
+
encrypted: boolean;
|
|
4530
|
+
};
|
|
4531
|
+
|
|
4532
|
+
/** @internal */
|
|
4533
|
+
export const StreamRunAgentAgentToolInputRunAgentsHeaders$outboundSchema:
|
|
4534
|
+
z.ZodType<
|
|
4535
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound,
|
|
4536
|
+
z.ZodTypeDef,
|
|
4537
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders
|
|
4538
|
+
> = z.object({
|
|
4539
|
+
value: z.string(),
|
|
4540
|
+
encrypted: z.boolean().default(false),
|
|
4541
|
+
});
|
|
4542
|
+
|
|
4543
|
+
export function streamRunAgentAgentToolInputRunAgentsHeadersToJSON(
|
|
4544
|
+
streamRunAgentAgentToolInputRunAgentsHeaders:
|
|
4545
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders,
|
|
4546
|
+
): string {
|
|
4547
|
+
return JSON.stringify(
|
|
4548
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders$outboundSchema.parse(
|
|
4549
|
+
streamRunAgentAgentToolInputRunAgentsHeaders,
|
|
4550
|
+
),
|
|
4551
|
+
);
|
|
4552
|
+
}
|
|
4553
|
+
export function streamRunAgentAgentToolInputRunAgentsHeadersFromJSON(
|
|
4554
|
+
jsonString: string,
|
|
4555
|
+
): SafeParseResult<
|
|
4556
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders,
|
|
4557
|
+
SDKValidationError
|
|
4558
|
+
> {
|
|
4559
|
+
return safeParse(
|
|
4560
|
+
jsonString,
|
|
4561
|
+
(x) =>
|
|
4562
|
+
StreamRunAgentAgentToolInputRunAgentsHeaders$inboundSchema.parse(
|
|
4563
|
+
JSON.parse(x),
|
|
4564
|
+
),
|
|
4565
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunAgentsHeaders' from JSON`,
|
|
4566
|
+
);
|
|
4567
|
+
}
|
|
4568
|
+
|
|
4569
|
+
/** @internal */
|
|
4570
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema:
|
|
4571
|
+
z.ZodNativeEnum<
|
|
4572
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
4573
|
+
> = z.nativeEnum(
|
|
4574
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType,
|
|
4575
|
+
);
|
|
4576
|
+
/** @internal */
|
|
4577
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema:
|
|
4578
|
+
z.ZodNativeEnum<
|
|
4579
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType
|
|
4580
|
+
> =
|
|
4581
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema;
|
|
4582
|
+
|
|
4583
|
+
/** @internal */
|
|
4584
|
+
export const AgentToolInputRunSchema$inboundSchema: z.ZodType<
|
|
4585
|
+
AgentToolInputRunSchema,
|
|
4586
|
+
z.ZodTypeDef,
|
|
4587
|
+
unknown
|
|
4588
|
+
> = z.object({
|
|
4589
|
+
type:
|
|
4590
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema,
|
|
4591
|
+
properties: z.record(z.any()).optional(),
|
|
4592
|
+
required: z.array(z.string()).optional(),
|
|
4593
|
+
});
|
|
4594
|
+
/** @internal */
|
|
4595
|
+
export type AgentToolInputRunSchema$Outbound = {
|
|
4596
|
+
type: string;
|
|
4597
|
+
properties?: { [k: string]: any } | undefined;
|
|
4598
|
+
required?: Array<string> | undefined;
|
|
4599
|
+
};
|
|
4600
|
+
|
|
4601
|
+
/** @internal */
|
|
4602
|
+
export const AgentToolInputRunSchema$outboundSchema: z.ZodType<
|
|
4603
|
+
AgentToolInputRunSchema$Outbound,
|
|
4604
|
+
z.ZodTypeDef,
|
|
4605
|
+
AgentToolInputRunSchema
|
|
4606
|
+
> = z.object({
|
|
4607
|
+
type:
|
|
4608
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema,
|
|
4609
|
+
properties: z.record(z.any()).optional(),
|
|
4610
|
+
required: z.array(z.string()).optional(),
|
|
4611
|
+
});
|
|
4612
|
+
|
|
4613
|
+
export function agentToolInputRunSchemaToJSON(
|
|
4614
|
+
agentToolInputRunSchema: AgentToolInputRunSchema,
|
|
4615
|
+
): string {
|
|
4616
|
+
return JSON.stringify(
|
|
4617
|
+
AgentToolInputRunSchema$outboundSchema.parse(agentToolInputRunSchema),
|
|
4618
|
+
);
|
|
4619
|
+
}
|
|
4620
|
+
export function agentToolInputRunSchemaFromJSON(
|
|
4621
|
+
jsonString: string,
|
|
4622
|
+
): SafeParseResult<AgentToolInputRunSchema, SDKValidationError> {
|
|
4623
|
+
return safeParse(
|
|
4624
|
+
jsonString,
|
|
4625
|
+
(x) => AgentToolInputRunSchema$inboundSchema.parse(JSON.parse(x)),
|
|
4626
|
+
`Failed to parse 'AgentToolInputRunSchema' from JSON`,
|
|
4627
|
+
);
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
/** @internal */
|
|
4631
|
+
export const AgentToolInputRunTools$inboundSchema: z.ZodType<
|
|
4632
|
+
AgentToolInputRunTools,
|
|
4633
|
+
z.ZodTypeDef,
|
|
4634
|
+
unknown
|
|
4635
|
+
> = z.object({
|
|
4636
|
+
name: z.string(),
|
|
4637
|
+
description: z.string().optional(),
|
|
4638
|
+
schema: z.lazy(() => AgentToolInputRunSchema$inboundSchema),
|
|
4639
|
+
});
|
|
4640
|
+
/** @internal */
|
|
4641
|
+
export type AgentToolInputRunTools$Outbound = {
|
|
4642
|
+
name: string;
|
|
4643
|
+
description?: string | undefined;
|
|
4644
|
+
schema: AgentToolInputRunSchema$Outbound;
|
|
4645
|
+
};
|
|
4646
|
+
|
|
4647
|
+
/** @internal */
|
|
4648
|
+
export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
4649
|
+
AgentToolInputRunTools$Outbound,
|
|
4650
|
+
z.ZodTypeDef,
|
|
4651
|
+
AgentToolInputRunTools
|
|
4652
|
+
> = z.object({
|
|
4653
|
+
name: z.string(),
|
|
4654
|
+
description: z.string().optional(),
|
|
4655
|
+
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
4656
|
+
});
|
|
4657
|
+
|
|
4658
|
+
export function agentToolInputRunToolsToJSON(
|
|
4659
|
+
agentToolInputRunTools: AgentToolInputRunTools,
|
|
4660
|
+
): string {
|
|
4661
|
+
return JSON.stringify(
|
|
4662
|
+
AgentToolInputRunTools$outboundSchema.parse(agentToolInputRunTools),
|
|
4663
|
+
);
|
|
4664
|
+
}
|
|
4665
|
+
export function agentToolInputRunToolsFromJSON(
|
|
4666
|
+
jsonString: string,
|
|
4667
|
+
): SafeParseResult<AgentToolInputRunTools, SDKValidationError> {
|
|
4668
|
+
return safeParse(
|
|
4669
|
+
jsonString,
|
|
4670
|
+
(x) => AgentToolInputRunTools$inboundSchema.parse(JSON.parse(x)),
|
|
4671
|
+
`Failed to parse 'AgentToolInputRunTools' from JSON`,
|
|
4672
|
+
);
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
/** @internal */
|
|
4676
|
+
export const AgentToolInputRunConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
4677
|
+
typeof AgentToolInputRunConnectionType
|
|
4678
|
+
> = z.nativeEnum(AgentToolInputRunConnectionType);
|
|
4679
|
+
/** @internal */
|
|
4680
|
+
export const AgentToolInputRunConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
4681
|
+
typeof AgentToolInputRunConnectionType
|
|
4682
|
+
> = AgentToolInputRunConnectionType$inboundSchema;
|
|
4683
|
+
|
|
4684
|
+
/** @internal */
|
|
4685
|
+
export const AgentToolInputRunMcp$inboundSchema: z.ZodType<
|
|
4686
|
+
AgentToolInputRunMcp,
|
|
4687
|
+
z.ZodTypeDef,
|
|
4688
|
+
unknown
|
|
4689
|
+
> = z.object({
|
|
4690
|
+
server_url: z.string(),
|
|
4691
|
+
headers: z.record(
|
|
4692
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunAgentsHeaders$inboundSchema),
|
|
4693
|
+
).optional(),
|
|
4694
|
+
tools: z.array(z.lazy(() => AgentToolInputRunTools$inboundSchema)),
|
|
4695
|
+
connection_type: AgentToolInputRunConnectionType$inboundSchema,
|
|
4696
|
+
}).transform((v) => {
|
|
4697
|
+
return remap$(v, {
|
|
4698
|
+
"server_url": "serverUrl",
|
|
4699
|
+
"connection_type": "connectionType",
|
|
4700
|
+
});
|
|
4701
|
+
});
|
|
4702
|
+
/** @internal */
|
|
4703
|
+
export type AgentToolInputRunMcp$Outbound = {
|
|
4704
|
+
server_url: string;
|
|
4705
|
+
headers?: {
|
|
4706
|
+
[k: string]: StreamRunAgentAgentToolInputRunAgentsHeaders$Outbound;
|
|
4707
|
+
} | undefined;
|
|
4708
|
+
tools: Array<AgentToolInputRunTools$Outbound>;
|
|
4709
|
+
connection_type: string;
|
|
4710
|
+
};
|
|
4711
|
+
|
|
4712
|
+
/** @internal */
|
|
4713
|
+
export const AgentToolInputRunMcp$outboundSchema: z.ZodType<
|
|
4714
|
+
AgentToolInputRunMcp$Outbound,
|
|
4715
|
+
z.ZodTypeDef,
|
|
4716
|
+
AgentToolInputRunMcp
|
|
4717
|
+
> = z.object({
|
|
4718
|
+
serverUrl: z.string(),
|
|
4719
|
+
headers: z.record(
|
|
4720
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunAgentsHeaders$outboundSchema),
|
|
4721
|
+
).optional(),
|
|
4722
|
+
tools: z.array(z.lazy(() => AgentToolInputRunTools$outboundSchema)),
|
|
4723
|
+
connectionType: AgentToolInputRunConnectionType$outboundSchema,
|
|
4724
|
+
}).transform((v) => {
|
|
4725
|
+
return remap$(v, {
|
|
4726
|
+
serverUrl: "server_url",
|
|
4727
|
+
connectionType: "connection_type",
|
|
4728
|
+
});
|
|
4729
|
+
});
|
|
4730
|
+
|
|
4731
|
+
export function agentToolInputRunMcpToJSON(
|
|
4732
|
+
agentToolInputRunMcp: AgentToolInputRunMcp,
|
|
4733
|
+
): string {
|
|
4734
|
+
return JSON.stringify(
|
|
4735
|
+
AgentToolInputRunMcp$outboundSchema.parse(agentToolInputRunMcp),
|
|
4736
|
+
);
|
|
4737
|
+
}
|
|
4738
|
+
export function agentToolInputRunMcpFromJSON(
|
|
4739
|
+
jsonString: string,
|
|
4740
|
+
): SafeParseResult<AgentToolInputRunMcp, SDKValidationError> {
|
|
4741
|
+
return safeParse(
|
|
4742
|
+
jsonString,
|
|
4743
|
+
(x) => AgentToolInputRunMcp$inboundSchema.parse(JSON.parse(x)),
|
|
4744
|
+
`Failed to parse 'AgentToolInputRunMcp' from JSON`,
|
|
4745
|
+
);
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
/** @internal */
|
|
4749
|
+
export const AgentToolInputRunMCPToolRun$inboundSchema: z.ZodType<
|
|
4750
|
+
AgentToolInputRunMCPToolRun,
|
|
4751
|
+
z.ZodTypeDef,
|
|
4752
|
+
unknown
|
|
4753
|
+
> = z.object({
|
|
4754
|
+
type:
|
|
4755
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema,
|
|
4756
|
+
key: z.string(),
|
|
4757
|
+
_id: z.string().optional(),
|
|
4758
|
+
display_name: z.string().optional(),
|
|
4759
|
+
description: z.string(),
|
|
4760
|
+
mcp: z.lazy(() => AgentToolInputRunMcp$inboundSchema),
|
|
4761
|
+
requires_approval: z.boolean().default(false),
|
|
4762
|
+
}).transform((v) => {
|
|
4763
|
+
return remap$(v, {
|
|
4764
|
+
"_id": "id",
|
|
4765
|
+
"display_name": "displayName",
|
|
4766
|
+
"requires_approval": "requiresApproval",
|
|
4767
|
+
});
|
|
4768
|
+
});
|
|
4769
|
+
/** @internal */
|
|
4770
|
+
export type AgentToolInputRunMCPToolRun$Outbound = {
|
|
4771
|
+
type: string;
|
|
4772
|
+
key: string;
|
|
4773
|
+
_id?: string | undefined;
|
|
4774
|
+
display_name?: string | undefined;
|
|
4775
|
+
description: string;
|
|
4776
|
+
mcp: AgentToolInputRunMcp$Outbound;
|
|
4777
|
+
requires_approval: boolean;
|
|
4778
|
+
};
|
|
4779
|
+
|
|
4780
|
+
/** @internal */
|
|
4781
|
+
export const AgentToolInputRunMCPToolRun$outboundSchema: z.ZodType<
|
|
4782
|
+
AgentToolInputRunMCPToolRun$Outbound,
|
|
4783
|
+
z.ZodTypeDef,
|
|
4784
|
+
AgentToolInputRunMCPToolRun
|
|
4785
|
+
> = z.object({
|
|
4786
|
+
type:
|
|
4787
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema,
|
|
4788
|
+
key: z.string(),
|
|
4789
|
+
id: z.string().optional(),
|
|
4790
|
+
displayName: z.string().optional(),
|
|
4791
|
+
description: z.string(),
|
|
4792
|
+
mcp: z.lazy(() => AgentToolInputRunMcp$outboundSchema),
|
|
4793
|
+
requiresApproval: z.boolean().default(false),
|
|
4794
|
+
}).transform((v) => {
|
|
4795
|
+
return remap$(v, {
|
|
4796
|
+
id: "_id",
|
|
4797
|
+
displayName: "display_name",
|
|
4798
|
+
requiresApproval: "requires_approval",
|
|
4799
|
+
});
|
|
4800
|
+
});
|
|
4801
|
+
|
|
4802
|
+
export function agentToolInputRunMCPToolRunToJSON(
|
|
4803
|
+
agentToolInputRunMCPToolRun: AgentToolInputRunMCPToolRun,
|
|
4804
|
+
): string {
|
|
4805
|
+
return JSON.stringify(
|
|
4806
|
+
AgentToolInputRunMCPToolRun$outboundSchema.parse(
|
|
4807
|
+
agentToolInputRunMCPToolRun,
|
|
4808
|
+
),
|
|
4809
|
+
);
|
|
4810
|
+
}
|
|
4811
|
+
export function agentToolInputRunMCPToolRunFromJSON(
|
|
4812
|
+
jsonString: string,
|
|
4813
|
+
): SafeParseResult<AgentToolInputRunMCPToolRun, SDKValidationError> {
|
|
4814
|
+
return safeParse(
|
|
4815
|
+
jsonString,
|
|
4816
|
+
(x) => AgentToolInputRunMCPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
4817
|
+
`Failed to parse 'AgentToolInputRunMCPToolRun' from JSON`,
|
|
4818
|
+
);
|
|
4819
|
+
}
|
|
4820
|
+
|
|
4332
4821
|
/** @internal */
|
|
4333
4822
|
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
4334
4823
|
z.ZodNativeEnum<
|
|
@@ -4343,6 +4832,91 @@ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTool
|
|
|
4343
4832
|
> =
|
|
4344
4833
|
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
4345
4834
|
|
|
4835
|
+
/** @internal */
|
|
4836
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema:
|
|
4837
|
+
z.ZodNativeEnum<
|
|
4838
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
4839
|
+
> = z.nativeEnum(
|
|
4840
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType,
|
|
4841
|
+
);
|
|
4842
|
+
/** @internal */
|
|
4843
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema:
|
|
4844
|
+
z.ZodNativeEnum<
|
|
4845
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
|
|
4846
|
+
> =
|
|
4847
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema;
|
|
4848
|
+
|
|
4849
|
+
/** @internal */
|
|
4850
|
+
export const StreamRunAgentAgentToolInputRunAgentsParameters$inboundSchema:
|
|
4851
|
+
z.ZodType<
|
|
4852
|
+
StreamRunAgentAgentToolInputRunAgentsParameters,
|
|
4853
|
+
z.ZodTypeDef,
|
|
4854
|
+
unknown
|
|
4855
|
+
> = collectExtraKeys$(
|
|
4856
|
+
z.object({
|
|
4857
|
+
type:
|
|
4858
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema,
|
|
4859
|
+
properties: z.record(z.any()),
|
|
4860
|
+
required: z.array(z.string()),
|
|
4861
|
+
}).catchall(z.any()),
|
|
4862
|
+
"additionalProperties",
|
|
4863
|
+
true,
|
|
4864
|
+
);
|
|
4865
|
+
/** @internal */
|
|
4866
|
+
export type StreamRunAgentAgentToolInputRunAgentsParameters$Outbound = {
|
|
4867
|
+
type: string;
|
|
4868
|
+
properties: { [k: string]: any };
|
|
4869
|
+
required: Array<string>;
|
|
4870
|
+
[additionalProperties: string]: unknown;
|
|
4871
|
+
};
|
|
4872
|
+
|
|
4873
|
+
/** @internal */
|
|
4874
|
+
export const StreamRunAgentAgentToolInputRunAgentsParameters$outboundSchema:
|
|
4875
|
+
z.ZodType<
|
|
4876
|
+
StreamRunAgentAgentToolInputRunAgentsParameters$Outbound,
|
|
4877
|
+
z.ZodTypeDef,
|
|
4878
|
+
StreamRunAgentAgentToolInputRunAgentsParameters
|
|
4879
|
+
> = z.object({
|
|
4880
|
+
type:
|
|
4881
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema,
|
|
4882
|
+
properties: z.record(z.any()),
|
|
4883
|
+
required: z.array(z.string()),
|
|
4884
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
4885
|
+
}).transform((v) => {
|
|
4886
|
+
return {
|
|
4887
|
+
...v.additionalProperties,
|
|
4888
|
+
...remap$(v, {
|
|
4889
|
+
additionalProperties: null,
|
|
4890
|
+
}),
|
|
4891
|
+
};
|
|
4892
|
+
});
|
|
4893
|
+
|
|
4894
|
+
export function streamRunAgentAgentToolInputRunAgentsParametersToJSON(
|
|
4895
|
+
streamRunAgentAgentToolInputRunAgentsParameters:
|
|
4896
|
+
StreamRunAgentAgentToolInputRunAgentsParameters,
|
|
4897
|
+
): string {
|
|
4898
|
+
return JSON.stringify(
|
|
4899
|
+
StreamRunAgentAgentToolInputRunAgentsParameters$outboundSchema.parse(
|
|
4900
|
+
streamRunAgentAgentToolInputRunAgentsParameters,
|
|
4901
|
+
),
|
|
4902
|
+
);
|
|
4903
|
+
}
|
|
4904
|
+
export function streamRunAgentAgentToolInputRunAgentsParametersFromJSON(
|
|
4905
|
+
jsonString: string,
|
|
4906
|
+
): SafeParseResult<
|
|
4907
|
+
StreamRunAgentAgentToolInputRunAgentsParameters,
|
|
4908
|
+
SDKValidationError
|
|
4909
|
+
> {
|
|
4910
|
+
return safeParse(
|
|
4911
|
+
jsonString,
|
|
4912
|
+
(x) =>
|
|
4913
|
+
StreamRunAgentAgentToolInputRunAgentsParameters$inboundSchema.parse(
|
|
4914
|
+
JSON.parse(x),
|
|
4915
|
+
),
|
|
4916
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunAgentsParameters' from JSON`,
|
|
4917
|
+
);
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4346
4920
|
/** @internal */
|
|
4347
4921
|
export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
4348
4922
|
StreamRunAgentAgentToolInputRunFunction,
|
|
@@ -4352,14 +4926,18 @@ export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
|
4352
4926
|
name: z.string(),
|
|
4353
4927
|
description: z.string().optional(),
|
|
4354
4928
|
strict: z.boolean().optional(),
|
|
4355
|
-
parameters: z.
|
|
4929
|
+
parameters: z.lazy(() =>
|
|
4930
|
+
StreamRunAgentAgentToolInputRunAgentsParameters$inboundSchema
|
|
4931
|
+
).optional(),
|
|
4356
4932
|
});
|
|
4357
4933
|
/** @internal */
|
|
4358
4934
|
export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
|
|
4359
4935
|
name: string;
|
|
4360
4936
|
description?: string | undefined;
|
|
4361
4937
|
strict?: boolean | undefined;
|
|
4362
|
-
parameters?:
|
|
4938
|
+
parameters?:
|
|
4939
|
+
| StreamRunAgentAgentToolInputRunAgentsParameters$Outbound
|
|
4940
|
+
| undefined;
|
|
4363
4941
|
};
|
|
4364
4942
|
|
|
4365
4943
|
/** @internal */
|
|
@@ -4371,7 +4949,9 @@ export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
|
4371
4949
|
name: z.string(),
|
|
4372
4950
|
description: z.string().optional(),
|
|
4373
4951
|
strict: z.boolean().optional(),
|
|
4374
|
-
parameters: z.
|
|
4952
|
+
parameters: z.lazy(() =>
|
|
4953
|
+
StreamRunAgentAgentToolInputRunAgentsParameters$outboundSchema
|
|
4954
|
+
).optional(),
|
|
4375
4955
|
});
|
|
4376
4956
|
|
|
4377
4957
|
export function streamRunAgentAgentToolInputRunFunctionToJSON(
|
|
@@ -4489,6 +5069,90 @@ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTool
|
|
|
4489
5069
|
> =
|
|
4490
5070
|
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
4491
5071
|
|
|
5072
|
+
/** @internal */
|
|
5073
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema:
|
|
5074
|
+
z.ZodNativeEnum<
|
|
5075
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
5076
|
+
> = z.nativeEnum(
|
|
5077
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType,
|
|
5078
|
+
);
|
|
5079
|
+
/** @internal */
|
|
5080
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema:
|
|
5081
|
+
z.ZodNativeEnum<
|
|
5082
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
|
|
5083
|
+
> =
|
|
5084
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema;
|
|
5085
|
+
|
|
5086
|
+
/** @internal */
|
|
5087
|
+
export const StreamRunAgentAgentToolInputRunParameters$inboundSchema: z.ZodType<
|
|
5088
|
+
StreamRunAgentAgentToolInputRunParameters,
|
|
5089
|
+
z.ZodTypeDef,
|
|
5090
|
+
unknown
|
|
5091
|
+
> = collectExtraKeys$(
|
|
5092
|
+
z.object({
|
|
5093
|
+
type:
|
|
5094
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema,
|
|
5095
|
+
properties: z.record(z.any()),
|
|
5096
|
+
required: z.array(z.string()),
|
|
5097
|
+
}).catchall(z.any()),
|
|
5098
|
+
"additionalProperties",
|
|
5099
|
+
true,
|
|
5100
|
+
);
|
|
5101
|
+
/** @internal */
|
|
5102
|
+
export type StreamRunAgentAgentToolInputRunParameters$Outbound = {
|
|
5103
|
+
type: string;
|
|
5104
|
+
properties: { [k: string]: any };
|
|
5105
|
+
required: Array<string>;
|
|
5106
|
+
[additionalProperties: string]: unknown;
|
|
5107
|
+
};
|
|
5108
|
+
|
|
5109
|
+
/** @internal */
|
|
5110
|
+
export const StreamRunAgentAgentToolInputRunParameters$outboundSchema:
|
|
5111
|
+
z.ZodType<
|
|
5112
|
+
StreamRunAgentAgentToolInputRunParameters$Outbound,
|
|
5113
|
+
z.ZodTypeDef,
|
|
5114
|
+
StreamRunAgentAgentToolInputRunParameters
|
|
5115
|
+
> = z.object({
|
|
5116
|
+
type:
|
|
5117
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema,
|
|
5118
|
+
properties: z.record(z.any()),
|
|
5119
|
+
required: z.array(z.string()),
|
|
5120
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
5121
|
+
}).transform((v) => {
|
|
5122
|
+
return {
|
|
5123
|
+
...v.additionalProperties,
|
|
5124
|
+
...remap$(v, {
|
|
5125
|
+
additionalProperties: null,
|
|
5126
|
+
}),
|
|
5127
|
+
};
|
|
5128
|
+
});
|
|
5129
|
+
|
|
5130
|
+
export function streamRunAgentAgentToolInputRunParametersToJSON(
|
|
5131
|
+
streamRunAgentAgentToolInputRunParameters:
|
|
5132
|
+
StreamRunAgentAgentToolInputRunParameters,
|
|
5133
|
+
): string {
|
|
5134
|
+
return JSON.stringify(
|
|
5135
|
+
StreamRunAgentAgentToolInputRunParameters$outboundSchema.parse(
|
|
5136
|
+
streamRunAgentAgentToolInputRunParameters,
|
|
5137
|
+
),
|
|
5138
|
+
);
|
|
5139
|
+
}
|
|
5140
|
+
export function streamRunAgentAgentToolInputRunParametersFromJSON(
|
|
5141
|
+
jsonString: string,
|
|
5142
|
+
): SafeParseResult<
|
|
5143
|
+
StreamRunAgentAgentToolInputRunParameters,
|
|
5144
|
+
SDKValidationError
|
|
5145
|
+
> {
|
|
5146
|
+
return safeParse(
|
|
5147
|
+
jsonString,
|
|
5148
|
+
(x) =>
|
|
5149
|
+
StreamRunAgentAgentToolInputRunParameters$inboundSchema.parse(
|
|
5150
|
+
JSON.parse(x),
|
|
5151
|
+
),
|
|
5152
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunParameters' from JSON`,
|
|
5153
|
+
);
|
|
5154
|
+
}
|
|
5155
|
+
|
|
4492
5156
|
/** @internal */
|
|
4493
5157
|
export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
|
|
4494
5158
|
typeof AgentToolInputRunLanguage
|
|
@@ -4504,13 +5168,15 @@ export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
|
|
|
4504
5168
|
z.ZodTypeDef,
|
|
4505
5169
|
unknown
|
|
4506
5170
|
> = z.object({
|
|
4507
|
-
parameters: z.
|
|
5171
|
+
parameters: z.lazy(() =>
|
|
5172
|
+
StreamRunAgentAgentToolInputRunParameters$inboundSchema
|
|
5173
|
+
).optional(),
|
|
4508
5174
|
language: AgentToolInputRunLanguage$inboundSchema,
|
|
4509
5175
|
code: z.string(),
|
|
4510
5176
|
});
|
|
4511
5177
|
/** @internal */
|
|
4512
5178
|
export type AgentToolInputRunCodeTool$Outbound = {
|
|
4513
|
-
parameters?:
|
|
5179
|
+
parameters?: StreamRunAgentAgentToolInputRunParameters$Outbound | undefined;
|
|
4514
5180
|
language: string;
|
|
4515
5181
|
code: string;
|
|
4516
5182
|
};
|
|
@@ -4521,7 +5187,9 @@ export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
|
|
|
4521
5187
|
z.ZodTypeDef,
|
|
4522
5188
|
AgentToolInputRunCodeTool
|
|
4523
5189
|
> = z.object({
|
|
4524
|
-
parameters: z.
|
|
5190
|
+
parameters: z.lazy(() =>
|
|
5191
|
+
StreamRunAgentAgentToolInputRunParameters$outboundSchema
|
|
5192
|
+
).optional(),
|
|
4525
5193
|
language: AgentToolInputRunLanguage$outboundSchema,
|
|
4526
5194
|
code: z.string(),
|
|
4527
5195
|
});
|
|
@@ -4642,8 +5310,8 @@ export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
4642
5310
|
> = AgentToolInputRunMethod$inboundSchema;
|
|
4643
5311
|
|
|
4644
5312
|
/** @internal */
|
|
4645
|
-
export const
|
|
4646
|
-
|
|
5313
|
+
export const StreamRunAgentHeaders2$inboundSchema: z.ZodType<
|
|
5314
|
+
StreamRunAgentHeaders2,
|
|
4647
5315
|
z.ZodTypeDef,
|
|
4648
5316
|
unknown
|
|
4649
5317
|
> = z.object({
|
|
@@ -4651,35 +5319,74 @@ export const AgentToolInputRunHeaders$inboundSchema: z.ZodType<
|
|
|
4651
5319
|
encrypted: z.boolean().default(false),
|
|
4652
5320
|
});
|
|
4653
5321
|
/** @internal */
|
|
4654
|
-
export type
|
|
5322
|
+
export type StreamRunAgentHeaders2$Outbound = {
|
|
4655
5323
|
value: string;
|
|
4656
5324
|
encrypted: boolean;
|
|
4657
5325
|
};
|
|
4658
5326
|
|
|
4659
5327
|
/** @internal */
|
|
4660
|
-
export const
|
|
4661
|
-
|
|
5328
|
+
export const StreamRunAgentHeaders2$outboundSchema: z.ZodType<
|
|
5329
|
+
StreamRunAgentHeaders2$Outbound,
|
|
4662
5330
|
z.ZodTypeDef,
|
|
4663
|
-
|
|
5331
|
+
StreamRunAgentHeaders2
|
|
4664
5332
|
> = z.object({
|
|
4665
5333
|
value: z.string(),
|
|
4666
5334
|
encrypted: z.boolean().default(false),
|
|
4667
5335
|
});
|
|
4668
5336
|
|
|
4669
|
-
export function
|
|
4670
|
-
|
|
5337
|
+
export function streamRunAgentHeaders2ToJSON(
|
|
5338
|
+
streamRunAgentHeaders2: StreamRunAgentHeaders2,
|
|
4671
5339
|
): string {
|
|
4672
5340
|
return JSON.stringify(
|
|
4673
|
-
|
|
5341
|
+
StreamRunAgentHeaders2$outboundSchema.parse(streamRunAgentHeaders2),
|
|
4674
5342
|
);
|
|
4675
5343
|
}
|
|
4676
|
-
export function
|
|
5344
|
+
export function streamRunAgentHeaders2FromJSON(
|
|
4677
5345
|
jsonString: string,
|
|
4678
|
-
): SafeParseResult<
|
|
5346
|
+
): SafeParseResult<StreamRunAgentHeaders2, SDKValidationError> {
|
|
4679
5347
|
return safeParse(
|
|
4680
5348
|
jsonString,
|
|
4681
|
-
(x) =>
|
|
4682
|
-
`Failed to parse '
|
|
5349
|
+
(x) => StreamRunAgentHeaders2$inboundSchema.parse(JSON.parse(x)),
|
|
5350
|
+
`Failed to parse 'StreamRunAgentHeaders2' from JSON`,
|
|
5351
|
+
);
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
/** @internal */
|
|
5355
|
+
export const StreamRunAgentAgentToolInputRunHeaders$inboundSchema: z.ZodType<
|
|
5356
|
+
StreamRunAgentAgentToolInputRunHeaders,
|
|
5357
|
+
z.ZodTypeDef,
|
|
5358
|
+
unknown
|
|
5359
|
+
> = z.union([z.lazy(() => StreamRunAgentHeaders2$inboundSchema), z.string()]);
|
|
5360
|
+
/** @internal */
|
|
5361
|
+
export type StreamRunAgentAgentToolInputRunHeaders$Outbound =
|
|
5362
|
+
| StreamRunAgentHeaders2$Outbound
|
|
5363
|
+
| string;
|
|
5364
|
+
|
|
5365
|
+
/** @internal */
|
|
5366
|
+
export const StreamRunAgentAgentToolInputRunHeaders$outboundSchema: z.ZodType<
|
|
5367
|
+
StreamRunAgentAgentToolInputRunHeaders$Outbound,
|
|
5368
|
+
z.ZodTypeDef,
|
|
5369
|
+
StreamRunAgentAgentToolInputRunHeaders
|
|
5370
|
+
> = z.union([z.lazy(() => StreamRunAgentHeaders2$outboundSchema), z.string()]);
|
|
5371
|
+
|
|
5372
|
+
export function streamRunAgentAgentToolInputRunHeadersToJSON(
|
|
5373
|
+
streamRunAgentAgentToolInputRunHeaders:
|
|
5374
|
+
StreamRunAgentAgentToolInputRunHeaders,
|
|
5375
|
+
): string {
|
|
5376
|
+
return JSON.stringify(
|
|
5377
|
+
StreamRunAgentAgentToolInputRunHeaders$outboundSchema.parse(
|
|
5378
|
+
streamRunAgentAgentToolInputRunHeaders,
|
|
5379
|
+
),
|
|
5380
|
+
);
|
|
5381
|
+
}
|
|
5382
|
+
export function streamRunAgentAgentToolInputRunHeadersFromJSON(
|
|
5383
|
+
jsonString: string,
|
|
5384
|
+
): SafeParseResult<StreamRunAgentAgentToolInputRunHeaders, SDKValidationError> {
|
|
5385
|
+
return safeParse(
|
|
5386
|
+
jsonString,
|
|
5387
|
+
(x) =>
|
|
5388
|
+
StreamRunAgentAgentToolInputRunHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
5389
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunHeaders' from JSON`,
|
|
4683
5390
|
);
|
|
4684
5391
|
}
|
|
4685
5392
|
|
|
@@ -4691,15 +5398,18 @@ export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
|
|
|
4691
5398
|
> = z.object({
|
|
4692
5399
|
url: z.string(),
|
|
4693
5400
|
method: AgentToolInputRunMethod$inboundSchema,
|
|
4694
|
-
headers: z.record(
|
|
4695
|
-
.
|
|
5401
|
+
headers: z.record(
|
|
5402
|
+
z.union([z.lazy(() => StreamRunAgentHeaders2$inboundSchema), z.string()]),
|
|
5403
|
+
).optional(),
|
|
4696
5404
|
body: z.record(z.any()).optional(),
|
|
4697
5405
|
});
|
|
4698
5406
|
/** @internal */
|
|
4699
5407
|
export type AgentToolInputRunBlueprint$Outbound = {
|
|
4700
5408
|
url: string;
|
|
4701
5409
|
method: string;
|
|
4702
|
-
headers?:
|
|
5410
|
+
headers?:
|
|
5411
|
+
| { [k: string]: StreamRunAgentHeaders2$Outbound | string }
|
|
5412
|
+
| undefined;
|
|
4703
5413
|
body?: { [k: string]: any } | undefined;
|
|
4704
5414
|
};
|
|
4705
5415
|
|
|
@@ -4711,8 +5421,9 @@ export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
|
|
|
4711
5421
|
> = z.object({
|
|
4712
5422
|
url: z.string(),
|
|
4713
5423
|
method: AgentToolInputRunMethod$outboundSchema,
|
|
4714
|
-
headers: z.record(
|
|
4715
|
-
.
|
|
5424
|
+
headers: z.record(
|
|
5425
|
+
z.union([z.lazy(() => StreamRunAgentHeaders2$outboundSchema), z.string()]),
|
|
5426
|
+
).optional(),
|
|
4716
5427
|
body: z.record(z.any()).optional(),
|
|
4717
5428
|
});
|
|
4718
5429
|
|
|
@@ -5785,6 +6496,7 @@ export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
|
|
|
5785
6496
|
> = z.union([
|
|
5786
6497
|
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
5787
6498
|
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
6499
|
+
z.lazy(() => AgentToolInputRunMCPToolRun$inboundSchema),
|
|
5788
6500
|
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
5789
6501
|
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
5790
6502
|
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
|
|
@@ -5814,6 +6526,7 @@ export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
|
|
|
5814
6526
|
export type StreamRunAgentAgentToolInputRun$Outbound =
|
|
5815
6527
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
5816
6528
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
6529
|
+
| AgentToolInputRunMCPToolRun$Outbound
|
|
5817
6530
|
| AgentToolInputRunFunctionToolRun$Outbound
|
|
5818
6531
|
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
5819
6532
|
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
@@ -5835,6 +6548,7 @@ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
|
|
|
5835
6548
|
> = z.union([
|
|
5836
6549
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
5837
6550
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
6551
|
+
z.lazy(() => AgentToolInputRunMCPToolRun$outboundSchema),
|
|
5838
6552
|
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
5839
6553
|
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
5840
6554
|
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
|
|
@@ -6029,13 +6743,12 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
6029
6743
|
z.union([
|
|
6030
6744
|
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
6031
6745
|
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
6746
|
+
z.lazy(() => AgentToolInputRunMCPToolRun$inboundSchema),
|
|
6032
6747
|
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
6033
6748
|
z.lazy(() =>
|
|
6034
6749
|
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
|
|
6035
6750
|
),
|
|
6036
|
-
z.lazy(() =>
|
|
6037
|
-
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
|
|
6038
|
-
),
|
|
6751
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
|
|
6039
6752
|
z.lazy(() =>
|
|
6040
6753
|
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
|
|
6041
6754
|
),
|
|
@@ -6086,6 +6799,7 @@ export type StreamRunAgentSettings$Outbound = {
|
|
|
6086
6799
|
| Array<
|
|
6087
6800
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
6088
6801
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
6802
|
+
| AgentToolInputRunMCPToolRun$Outbound
|
|
6089
6803
|
| AgentToolInputRunFunctionToolRun$Outbound
|
|
6090
6804
|
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
6091
6805
|
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
@@ -6117,6 +6831,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
6117
6831
|
z.union([
|
|
6118
6832
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
6119
6833
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
6834
|
+
z.lazy(() => AgentToolInputRunMCPToolRun$outboundSchema),
|
|
6120
6835
|
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
6121
6836
|
z.lazy(() =>
|
|
6122
6837
|
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
|