@orq-ai/node 3.13.9 → 3.13.11
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 +107 -93
- package/bin/mcp-server.js +43652 -40649
- package/bin/mcp-server.js.map +117 -98
- package/docs/sdks/agents/README.md +566 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +18 -0
- package/funcs/agentsCreate.d.ts.map +1 -0
- package/funcs/agentsCreate.js +120 -0
- package/funcs/agentsCreate.js.map +1 -0
- package/funcs/agentsDelete.d.ts +18 -0
- package/funcs/agentsDelete.d.ts.map +1 -0
- package/funcs/agentsDelete.js +124 -0
- package/funcs/agentsDelete.js.map +1 -0
- package/funcs/agentsInvoke.d.ts +17 -0
- package/funcs/agentsInvoke.d.ts.map +1 -0
- package/funcs/agentsInvoke.js +120 -0
- package/funcs/agentsInvoke.js.map +1 -0
- package/funcs/agentsStream.d.ts +19 -0
- package/funcs/agentsStream.d.ts.map +1 -0
- package/funcs/agentsStream.js +134 -0
- package/funcs/agentsStream.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +18 -0
- package/funcs/agentsUpdate.d.ts.map +1 -0
- package/funcs/agentsUpdate.js +124 -0
- package/funcs/agentsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +8 -0
- package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsCreate.js +64 -0
- package/mcp-server/tools/agentsCreate.js.map +1 -0
- package/mcp-server/tools/agentsDelete.d.ts +8 -0
- package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
- package/mcp-server/tools/agentsDelete.js +63 -0
- package/mcp-server/tools/agentsDelete.js.map +1 -0
- package/mcp-server/tools/agentsInvoke.d.ts +8 -0
- package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/agentsInvoke.js +64 -0
- package/mcp-server/tools/agentsInvoke.js.map +1 -0
- package/mcp-server/tools/agentsStream.d.ts +8 -0
- package/mcp-server/tools/agentsStream.d.ts.map +1 -0
- package/mcp-server/tools/agentsStream.js +64 -0
- package/mcp-server/tools/agentsStream.js.map +1 -0
- package/mcp-server/tools/agentsUpdate.d.ts +8 -0
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/agentsUpdate.js +64 -0
- package/mcp-server/tools/agentsUpdate.js.map +1 -0
- package/models/errors/createagent.d.ts +41 -0
- package/models/errors/createagent.d.ts.map +1 -0
- package/models/errors/createagent.js +85 -0
- package/models/errors/createagent.js.map +1 -0
- package/models/errors/deleteagent.d.ts +41 -0
- package/models/errors/deleteagent.d.ts.map +1 -0
- package/models/errors/deleteagent.js +85 -0
- package/models/errors/deleteagent.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/streamagent.d.ts +41 -0
- package/models/errors/streamagent.d.ts.map +1 -0
- package/models/errors/streamagent.js +85 -0
- package/models/errors/streamagent.js.map +1 -0
- package/models/errors/updateagent.d.ts +41 -0
- package/models/errors/updateagent.d.ts.map +1 -0
- package/models/errors/updateagent.js +85 -0
- package/models/errors/updateagent.js.map +1 -0
- package/models/operations/createagent.d.ts +1504 -0
- package/models/operations/createagent.d.ts.map +1 -0
- package/models/operations/createagent.js +1530 -0
- package/models/operations/createagent.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 +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +20 -20
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +34 -34
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteagent.d.ts +32 -0
- package/models/operations/deleteagent.d.ts.map +1 -0
- package/models/operations/deleteagent.js +78 -0
- package/models/operations/deleteagent.js.map +1 -0
- package/models/operations/duplicatetool.d.ts +10 -10
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +20 -20
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +44 -175
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +51 -184
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +20 -20
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +912 -0
- package/models/operations/invokeagent.d.ts.map +1 -0
- package/models/operations/invokeagent.js +824 -0
- package/models/operations/invokeagent.js.map +1 -0
- package/models/operations/listagents.d.ts +6 -137
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +5 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +2 -0
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +20 -20
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +640 -721
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +817 -928
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +676 -0
- package/models/operations/streamagent.d.ts.map +1 -0
- package/models/operations/streamagent.js +670 -0
- package/models/operations/streamagent.js.map +1 -0
- package/models/operations/streamrunagent.d.ts +567 -648
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +721 -835
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +1515 -0
- package/models/operations/updateagent.d.ts.map +1 -0
- package/models/operations/updateagent.js +1576 -0
- package/models/operations/updateagent.js.map +1 -0
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.d.ts +18 -18
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +36 -36
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/README.md +103 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +7 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +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 +50 -50
- package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
- 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 +87 -387
- package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
- 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 +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
- 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 +30 -30
- package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
- package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
- 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 +56 -56
- package/packages/orq-rc/src/sdk/agents.ts +54 -0
- package/sdk/agents.d.ts +35 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +50 -0
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +172 -0
- package/src/funcs/agentsDelete.ts +176 -0
- package/src/funcs/agentsInvoke.ts +167 -0
- package/src/funcs/agentsStream.ts +191 -0
- package/src/funcs/agentsUpdate.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/src/mcp-server/tools/agentsStream.ts +37 -0
- package/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/src/models/errors/createagent.ts +80 -0
- package/src/models/errors/deleteagent.ts +80 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/streamagent.ts +80 -0
- package/src/models/errors/updateagent.ts +80 -0
- package/src/models/operations/createagent.ts +3021 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +54 -54
- package/src/models/operations/deleteagent.ts +78 -0
- package/src/models/operations/duplicatetool.ts +30 -30
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +87 -387
- package/src/models/operations/getalltools.ts +30 -30
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/invokeagent.ts +1569 -0
- package/src/models/operations/listagents.ts +8 -321
- package/src/models/operations/listagenttasks.ts +7 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +30 -30
- package/src/models/operations/runagent.ts +1441 -1488
- package/src/models/operations/streamagent.ts +1367 -0
- package/src/models/operations/streamrunagent.ts +1542 -1657
- package/src/models/operations/updateagent.ts +3227 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +60 -60
- package/src/sdk/agents.ts +90 -0
|
@@ -52,7 +52,7 @@ export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
|
52
52
|
/**
|
|
53
53
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type StreamRunAgentPublicMessagePartToolResultPart = {
|
|
56
56
|
kind: StreamRunAgentPublicMessagePartAgentsRequestKind;
|
|
57
57
|
toolCallId: string;
|
|
58
58
|
result?: any | undefined;
|
|
@@ -69,7 +69,7 @@ export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
|
69
69
|
/**
|
|
70
70
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
71
71
|
*/
|
|
72
|
-
export type
|
|
72
|
+
export type StreamRunAgentFileFileInURIFormat = {
|
|
73
73
|
/**
|
|
74
74
|
* URL for the File content
|
|
75
75
|
*/
|
|
@@ -87,7 +87,7 @@ export type FileFileInURIFormat = {
|
|
|
87
87
|
/**
|
|
88
88
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
89
89
|
*/
|
|
90
|
-
export type
|
|
90
|
+
export type StreamRunAgentFileBinaryFormat = {
|
|
91
91
|
/**
|
|
92
92
|
* base64 encoded content of the file
|
|
93
93
|
*/
|
|
@@ -103,15 +103,15 @@ export type FileBinaryFormat = {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export type StreamRunAgentPublicMessagePartFile =
|
|
106
|
-
|
|
|
107
|
-
|
|
|
106
|
+
| StreamRunAgentFileBinaryFormat
|
|
107
|
+
| StreamRunAgentFileFileInURIFormat;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
111
111
|
*/
|
|
112
|
-
export type
|
|
112
|
+
export type StreamRunAgentPublicMessagePartFilePart = {
|
|
113
113
|
kind: StreamRunAgentPublicMessagePartAgentsKind;
|
|
114
|
-
file:
|
|
114
|
+
file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
115
115
|
metadata?: { [k: string]: any } | undefined;
|
|
116
116
|
};
|
|
117
117
|
|
|
@@ -125,7 +125,7 @@ export type StreamRunAgentPublicMessagePartKind = ClosedEnum<
|
|
|
125
125
|
/**
|
|
126
126
|
* Text content part. Use this to send text messages to the agent.
|
|
127
127
|
*/
|
|
128
|
-
export type
|
|
128
|
+
export type StreamRunAgentPublicMessagePartTextPart = {
|
|
129
129
|
kind: StreamRunAgentPublicMessagePartKind;
|
|
130
130
|
text: string;
|
|
131
131
|
};
|
|
@@ -134,9 +134,9 @@ export type PublicMessagePartTextPart = {
|
|
|
134
134
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
135
135
|
*/
|
|
136
136
|
export type StreamRunAgentPublicMessagePart =
|
|
137
|
-
|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
137
|
+
| StreamRunAgentPublicMessagePartTextPart
|
|
138
|
+
| StreamRunAgentPublicMessagePartFilePart
|
|
139
|
+
| StreamRunAgentPublicMessagePartToolResultPart;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -154,9 +154,9 @@ export type StreamRunAgentMessage = {
|
|
|
154
154
|
* A2A message parts (text, file, or tool_result only)
|
|
155
155
|
*/
|
|
156
156
|
parts: Array<
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
|
157
|
+
| StreamRunAgentPublicMessagePartTextPart
|
|
158
|
+
| StreamRunAgentPublicMessagePartFilePart
|
|
159
|
+
| StreamRunAgentPublicMessagePartToolResultPart
|
|
160
160
|
>;
|
|
161
161
|
};
|
|
162
162
|
|
|
@@ -214,49 +214,11 @@ export type StreamRunAgentMemory = {
|
|
|
214
214
|
entityId: string;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
export const StreamRunAgentKnowledgeBaseConfigurationAgentsType = {
|
|
218
|
-
Query: "query",
|
|
219
|
-
} as const;
|
|
220
|
-
export type StreamRunAgentKnowledgeBaseConfigurationAgentsType = ClosedEnum<
|
|
221
|
-
typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType
|
|
222
|
-
>;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Defines the configuration settings for a static query.
|
|
226
|
-
*/
|
|
227
|
-
export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
|
|
228
|
-
type: StreamRunAgentKnowledgeBaseConfigurationAgentsType;
|
|
229
|
-
query: string;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export const StreamRunAgentKnowledgeBaseConfigurationType = {
|
|
233
|
-
LastUserMessage: "last_user_message",
|
|
234
|
-
} as const;
|
|
235
|
-
export type StreamRunAgentKnowledgeBaseConfigurationType = ClosedEnum<
|
|
236
|
-
typeof StreamRunAgentKnowledgeBaseConfigurationType
|
|
237
|
-
>;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Defines the configuration settings for a last user message type retrieval.
|
|
241
|
-
*/
|
|
242
|
-
export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
|
|
243
|
-
type: StreamRunAgentKnowledgeBaseConfigurationType;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
248
|
-
*/
|
|
249
|
-
export type StreamRunAgentKnowledgeBaseConfiguration =
|
|
250
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
251
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
252
|
-
|
|
253
217
|
export type StreamRunAgentKnowledgeBases = {
|
|
254
218
|
/**
|
|
255
|
-
*
|
|
219
|
+
* Unique identifier of the knowledge base to search
|
|
256
220
|
*/
|
|
257
|
-
|
|
258
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
259
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
|
|
221
|
+
knowledgeId: string;
|
|
260
222
|
};
|
|
261
223
|
|
|
262
224
|
export type StreamRunAgentTeamOfAgents = {
|
|
@@ -270,58 +232,73 @@ export type StreamRunAgentTeamOfAgents = {
|
|
|
270
232
|
role?: string | undefined;
|
|
271
233
|
};
|
|
272
234
|
|
|
273
|
-
export const
|
|
235
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
274
236
|
{
|
|
275
237
|
Function: "function",
|
|
276
238
|
} as const;
|
|
277
|
-
export type
|
|
239
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
278
240
|
ClosedEnum<
|
|
279
|
-
typeof
|
|
241
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
280
242
|
>;
|
|
281
243
|
|
|
282
|
-
export type
|
|
244
|
+
export type StreamRunAgentAgentToolInputRunFunction = {
|
|
245
|
+
/**
|
|
246
|
+
* 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.
|
|
247
|
+
*/
|
|
283
248
|
name: string;
|
|
249
|
+
/**
|
|
250
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
251
|
+
*/
|
|
284
252
|
description?: string | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
255
|
+
*/
|
|
285
256
|
strict?: boolean | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* 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.
|
|
259
|
+
*/
|
|
286
260
|
parameters?: { [k: string]: any } | undefined;
|
|
287
261
|
};
|
|
288
262
|
|
|
289
263
|
/**
|
|
290
|
-
*
|
|
264
|
+
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
291
265
|
*/
|
|
292
|
-
export type
|
|
266
|
+
export type AgentToolInputRunFunctionToolRun = {
|
|
293
267
|
type:
|
|
294
|
-
|
|
295
|
-
|
|
268
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
269
|
+
/**
|
|
270
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
271
|
+
*/
|
|
296
272
|
key: string;
|
|
273
|
+
id?: string | undefined;
|
|
297
274
|
displayName?: string | undefined;
|
|
298
275
|
description?: string | undefined;
|
|
276
|
+
function: StreamRunAgentAgentToolInputRunFunction;
|
|
299
277
|
requiresApproval?: boolean | undefined;
|
|
300
|
-
function: StreamRunAgentRunAgentRequestToolFunction;
|
|
301
278
|
};
|
|
302
279
|
|
|
303
|
-
export const
|
|
280
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
304
281
|
{
|
|
305
282
|
Code: "code",
|
|
306
283
|
} as const;
|
|
307
|
-
export type
|
|
284
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
308
285
|
ClosedEnum<
|
|
309
|
-
typeof
|
|
286
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
310
287
|
>;
|
|
311
288
|
|
|
312
|
-
export const
|
|
289
|
+
export const AgentToolInputRunLanguage = {
|
|
313
290
|
Python: "python",
|
|
314
291
|
} as const;
|
|
315
|
-
export type
|
|
316
|
-
typeof
|
|
292
|
+
export type AgentToolInputRunLanguage = ClosedEnum<
|
|
293
|
+
typeof AgentToolInputRunLanguage
|
|
317
294
|
>;
|
|
318
295
|
|
|
319
|
-
export type
|
|
296
|
+
export type AgentToolInputRunCodeTool = {
|
|
320
297
|
/**
|
|
321
298
|
* 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.
|
|
322
299
|
*/
|
|
323
300
|
parameters?: { [k: string]: any } | undefined;
|
|
324
|
-
language:
|
|
301
|
+
language: AgentToolInputRunLanguage;
|
|
325
302
|
/**
|
|
326
303
|
* The code to execute.
|
|
327
304
|
*/
|
|
@@ -329,41 +306,38 @@ export type RunAgentRequestToolCodeTool = {
|
|
|
329
306
|
};
|
|
330
307
|
|
|
331
308
|
/**
|
|
332
|
-
*
|
|
309
|
+
* Code execution tool with inline definition for on-the-fly creation in run endpoint
|
|
333
310
|
*/
|
|
334
|
-
export type
|
|
311
|
+
export type AgentToolInputRunCodeToolRun = {
|
|
312
|
+
type:
|
|
313
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
335
314
|
/**
|
|
336
315
|
* Unique key of the tool as it will be displayed in the UI
|
|
337
316
|
*/
|
|
338
317
|
key: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
*/
|
|
342
|
-
displayName: string;
|
|
318
|
+
id?: string | undefined;
|
|
319
|
+
displayName?: string | undefined;
|
|
343
320
|
/**
|
|
344
321
|
* 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.
|
|
345
322
|
*/
|
|
346
323
|
description: string;
|
|
347
|
-
|
|
348
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
|
|
349
|
-
codeTool: RunAgentRequestToolCodeTool;
|
|
350
|
-
id?: string | undefined;
|
|
324
|
+
codeTool: AgentToolInputRunCodeTool;
|
|
351
325
|
requiresApproval?: boolean | undefined;
|
|
352
326
|
};
|
|
353
327
|
|
|
354
|
-
export const
|
|
328
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
355
329
|
{
|
|
356
330
|
Http: "http",
|
|
357
331
|
} as const;
|
|
358
|
-
export type
|
|
332
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
359
333
|
ClosedEnum<
|
|
360
|
-
typeof
|
|
334
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
361
335
|
>;
|
|
362
336
|
|
|
363
337
|
/**
|
|
364
338
|
* The HTTP method to use.
|
|
365
339
|
*/
|
|
366
|
-
export const
|
|
340
|
+
export const AgentToolInputRunMethod = {
|
|
367
341
|
Get: "GET",
|
|
368
342
|
Post: "POST",
|
|
369
343
|
Put: "PUT",
|
|
@@ -372,14 +346,14 @@ export const RunAgentRequestToolMethod = {
|
|
|
372
346
|
/**
|
|
373
347
|
* The HTTP method to use.
|
|
374
348
|
*/
|
|
375
|
-
export type
|
|
376
|
-
typeof
|
|
349
|
+
export type AgentToolInputRunMethod = ClosedEnum<
|
|
350
|
+
typeof AgentToolInputRunMethod
|
|
377
351
|
>;
|
|
378
352
|
|
|
379
353
|
/**
|
|
380
354
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
381
355
|
*/
|
|
382
|
-
export type
|
|
356
|
+
export type AgentToolInputRunBlueprint = {
|
|
383
357
|
/**
|
|
384
358
|
* The URL to send the request to.
|
|
385
359
|
*/
|
|
@@ -387,7 +361,7 @@ export type RunAgentRequestToolBlueprint = {
|
|
|
387
361
|
/**
|
|
388
362
|
* The HTTP method to use.
|
|
389
363
|
*/
|
|
390
|
-
method:
|
|
364
|
+
method: AgentToolInputRunMethod;
|
|
391
365
|
/**
|
|
392
366
|
* The headers to send with the request.
|
|
393
367
|
*/
|
|
@@ -401,7 +375,7 @@ export type RunAgentRequestToolBlueprint = {
|
|
|
401
375
|
/**
|
|
402
376
|
* The type of the argument.
|
|
403
377
|
*/
|
|
404
|
-
export const
|
|
378
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
405
379
|
{
|
|
406
380
|
String: "string",
|
|
407
381
|
Number: "number",
|
|
@@ -410,22 +384,22 @@ export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTo
|
|
|
410
384
|
/**
|
|
411
385
|
* The type of the argument.
|
|
412
386
|
*/
|
|
413
|
-
export type
|
|
387
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
414
388
|
ClosedEnum<
|
|
415
|
-
typeof
|
|
389
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
416
390
|
>;
|
|
417
391
|
|
|
418
392
|
/**
|
|
419
393
|
* The default value of the argument.
|
|
420
394
|
*/
|
|
421
|
-
export type
|
|
395
|
+
export type AgentToolInputRunDefaultValue = string | number | boolean;
|
|
422
396
|
|
|
423
|
-
export type
|
|
397
|
+
export type AgentToolInputRunArguments = {
|
|
424
398
|
/**
|
|
425
399
|
* The type of the argument.
|
|
426
400
|
*/
|
|
427
401
|
type:
|
|
428
|
-
|
|
402
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
429
403
|
/**
|
|
430
404
|
* A description of the argument.
|
|
431
405
|
*/
|
|
@@ -440,244 +414,274 @@ export type RunAgentRequestToolArguments = {
|
|
|
440
414
|
defaultValue?: string | number | boolean | undefined;
|
|
441
415
|
};
|
|
442
416
|
|
|
443
|
-
export type
|
|
417
|
+
export type AgentToolInputRunHttp = {
|
|
444
418
|
/**
|
|
445
419
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
446
420
|
*/
|
|
447
|
-
blueprint:
|
|
421
|
+
blueprint: AgentToolInputRunBlueprint;
|
|
448
422
|
/**
|
|
449
423
|
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
450
424
|
*/
|
|
451
|
-
arguments?: { [k: string]:
|
|
425
|
+
arguments?: { [k: string]: AgentToolInputRunArguments } | undefined;
|
|
452
426
|
};
|
|
453
427
|
|
|
454
428
|
/**
|
|
455
|
-
*
|
|
429
|
+
* HTTP tool with inline definition for on-the-fly creation in run endpoint
|
|
456
430
|
*/
|
|
457
|
-
export type
|
|
458
|
-
|
|
431
|
+
export type AgentToolInputRunHTTPToolRun = {
|
|
432
|
+
type:
|
|
433
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
459
434
|
/**
|
|
460
435
|
* Unique key of the tool as it will be displayed in the UI
|
|
461
436
|
*/
|
|
462
437
|
key: string;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
*/
|
|
466
|
-
displayName: string;
|
|
438
|
+
id?: string | undefined;
|
|
439
|
+
displayName?: string | undefined;
|
|
467
440
|
/**
|
|
468
441
|
* 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.
|
|
469
442
|
*/
|
|
470
443
|
description: string;
|
|
471
|
-
|
|
472
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
|
|
473
|
-
http: RunAgentRequestToolHttp;
|
|
444
|
+
http: AgentToolInputRunHttp;
|
|
474
445
|
requiresApproval?: boolean | undefined;
|
|
475
446
|
};
|
|
476
447
|
|
|
477
|
-
export const
|
|
448
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
478
449
|
{
|
|
479
450
|
CurrentDate: "current_date",
|
|
480
451
|
} as const;
|
|
481
|
-
export type
|
|
452
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
482
453
|
ClosedEnum<
|
|
483
|
-
typeof
|
|
454
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
484
455
|
>;
|
|
485
456
|
|
|
486
457
|
/**
|
|
487
|
-
*
|
|
458
|
+
* Returns the current date and time
|
|
488
459
|
*/
|
|
489
|
-
export type
|
|
460
|
+
export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
|
|
490
461
|
type:
|
|
491
|
-
|
|
462
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
463
|
+
/**
|
|
464
|
+
* Whether this tool requires approval before execution
|
|
465
|
+
*/
|
|
492
466
|
requiresApproval?: boolean | undefined;
|
|
493
467
|
};
|
|
494
468
|
|
|
495
|
-
export const
|
|
469
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
496
470
|
{
|
|
497
471
|
QueryKnowledgeBase: "query_knowledge_base",
|
|
498
472
|
} as const;
|
|
499
|
-
export type
|
|
473
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
500
474
|
ClosedEnum<
|
|
501
|
-
typeof
|
|
475
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
502
476
|
>;
|
|
503
477
|
|
|
504
478
|
/**
|
|
505
479
|
* Queries knowledge bases for information
|
|
506
480
|
*/
|
|
507
|
-
export type
|
|
481
|
+
export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
|
|
508
482
|
type:
|
|
509
|
-
|
|
483
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
484
|
+
/**
|
|
485
|
+
* Whether this tool requires approval before execution
|
|
486
|
+
*/
|
|
510
487
|
requiresApproval?: boolean | undefined;
|
|
511
488
|
};
|
|
512
489
|
|
|
513
|
-
export const
|
|
490
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
514
491
|
{
|
|
515
492
|
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
516
493
|
} as const;
|
|
517
|
-
export type
|
|
494
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
518
495
|
ClosedEnum<
|
|
519
|
-
typeof
|
|
496
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
520
497
|
>;
|
|
521
498
|
|
|
522
499
|
/**
|
|
523
500
|
* Lists available knowledge bases
|
|
524
501
|
*/
|
|
525
|
-
export type
|
|
502
|
+
export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
526
503
|
type:
|
|
527
|
-
|
|
504
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
505
|
+
/**
|
|
506
|
+
* Whether this tool requires approval before execution
|
|
507
|
+
*/
|
|
528
508
|
requiresApproval?: boolean | undefined;
|
|
529
509
|
};
|
|
530
510
|
|
|
531
|
-
export const
|
|
511
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
532
512
|
{
|
|
533
513
|
DeleteMemoryDocument: "delete_memory_document",
|
|
534
514
|
} as const;
|
|
535
|
-
export type
|
|
515
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
536
516
|
ClosedEnum<
|
|
537
|
-
typeof
|
|
517
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
538
518
|
>;
|
|
539
519
|
|
|
540
520
|
/**
|
|
541
|
-
* Deletes
|
|
521
|
+
* Deletes documents from memory stores
|
|
542
522
|
*/
|
|
543
|
-
export type
|
|
523
|
+
export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
|
|
544
524
|
type:
|
|
545
|
-
|
|
525
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
526
|
+
/**
|
|
527
|
+
* Whether this tool requires approval before execution
|
|
528
|
+
*/
|
|
546
529
|
requiresApproval?: boolean | undefined;
|
|
547
530
|
};
|
|
548
531
|
|
|
549
|
-
export const
|
|
532
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
|
|
550
533
|
{
|
|
551
534
|
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
552
535
|
} as const;
|
|
553
|
-
export type
|
|
536
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
|
|
554
537
|
ClosedEnum<
|
|
555
|
-
typeof
|
|
538
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
556
539
|
>;
|
|
557
540
|
|
|
558
541
|
/**
|
|
559
542
|
* Lists available memory stores
|
|
560
543
|
*/
|
|
561
|
-
export type
|
|
544
|
+
export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
|
|
562
545
|
type:
|
|
563
|
-
|
|
546
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
|
|
547
|
+
/**
|
|
548
|
+
* Whether this tool requires approval before execution
|
|
549
|
+
*/
|
|
564
550
|
requiresApproval?: boolean | undefined;
|
|
565
551
|
};
|
|
566
552
|
|
|
567
|
-
export const
|
|
553
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
568
554
|
{
|
|
569
555
|
WriteMemoryStore: "write_memory_store",
|
|
570
556
|
} as const;
|
|
571
|
-
export type
|
|
557
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
572
558
|
ClosedEnum<
|
|
573
|
-
typeof
|
|
559
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
574
560
|
>;
|
|
575
561
|
|
|
576
562
|
/**
|
|
577
563
|
* Writes information to agent memory stores
|
|
578
564
|
*/
|
|
579
|
-
export type
|
|
565
|
+
export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
|
|
580
566
|
type:
|
|
581
|
-
|
|
567
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
568
|
+
/**
|
|
569
|
+
* Whether this tool requires approval before execution
|
|
570
|
+
*/
|
|
582
571
|
requiresApproval?: boolean | undefined;
|
|
583
572
|
};
|
|
584
573
|
|
|
585
|
-
export const
|
|
574
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
586
575
|
{
|
|
587
576
|
QueryMemoryStore: "query_memory_store",
|
|
588
577
|
} as const;
|
|
589
|
-
export type
|
|
578
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
590
579
|
ClosedEnum<
|
|
591
|
-
typeof
|
|
580
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
592
581
|
>;
|
|
593
582
|
|
|
594
583
|
/**
|
|
595
584
|
* Queries agent memory stores for context
|
|
596
585
|
*/
|
|
597
|
-
export type
|
|
598
|
-
type:
|
|
586
|
+
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
|
|
587
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
588
|
+
/**
|
|
589
|
+
* Whether this tool requires approval before execution
|
|
590
|
+
*/
|
|
599
591
|
requiresApproval?: boolean | undefined;
|
|
600
592
|
};
|
|
601
593
|
|
|
602
|
-
export const
|
|
594
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
603
595
|
RetrieveAgents: "retrieve_agents",
|
|
604
596
|
} as const;
|
|
605
|
-
export type
|
|
597
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType =
|
|
606
598
|
ClosedEnum<
|
|
607
|
-
typeof
|
|
599
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
608
600
|
>;
|
|
609
601
|
|
|
610
602
|
/**
|
|
611
603
|
* Retrieves available agents in the system
|
|
612
604
|
*/
|
|
613
|
-
export type
|
|
614
|
-
type:
|
|
605
|
+
export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
|
|
606
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
607
|
+
/**
|
|
608
|
+
* Whether this tool requires approval before execution
|
|
609
|
+
*/
|
|
615
610
|
requiresApproval?: boolean | undefined;
|
|
616
611
|
};
|
|
617
612
|
|
|
618
|
-
export const
|
|
613
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType = {
|
|
619
614
|
CallSubAgent: "call_sub_agent",
|
|
620
615
|
} as const;
|
|
621
|
-
export type
|
|
622
|
-
typeof
|
|
616
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
|
|
617
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestType
|
|
623
618
|
>;
|
|
624
619
|
|
|
625
620
|
/**
|
|
626
621
|
* Delegates tasks to specialized sub-agents
|
|
627
622
|
*/
|
|
628
|
-
export type
|
|
629
|
-
type:
|
|
623
|
+
export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
|
|
624
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType;
|
|
625
|
+
/**
|
|
626
|
+
* Whether this tool requires approval before execution
|
|
627
|
+
*/
|
|
630
628
|
requiresApproval?: boolean | undefined;
|
|
631
629
|
};
|
|
632
630
|
|
|
633
|
-
export const
|
|
631
|
+
export const StreamRunAgentAgentToolInputRunAgentsType = {
|
|
634
632
|
WebScraper: "web_scraper",
|
|
635
633
|
} as const;
|
|
636
|
-
export type
|
|
637
|
-
typeof
|
|
634
|
+
export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<
|
|
635
|
+
typeof StreamRunAgentAgentToolInputRunAgentsType
|
|
638
636
|
>;
|
|
639
637
|
|
|
640
638
|
/**
|
|
641
639
|
* Scrapes and extracts content from web pages
|
|
642
640
|
*/
|
|
643
|
-
export type
|
|
644
|
-
type:
|
|
641
|
+
export type StreamRunAgentAgentToolInputRunWebScraperTool = {
|
|
642
|
+
type: StreamRunAgentAgentToolInputRunAgentsType;
|
|
643
|
+
/**
|
|
644
|
+
* Whether this tool requires approval before execution
|
|
645
|
+
*/
|
|
645
646
|
requiresApproval?: boolean | undefined;
|
|
646
647
|
};
|
|
647
648
|
|
|
648
|
-
export const
|
|
649
|
+
export const StreamRunAgentAgentToolInputRunType = {
|
|
649
650
|
GoogleSearch: "google_search",
|
|
650
651
|
} as const;
|
|
651
|
-
export type
|
|
652
|
-
typeof
|
|
652
|
+
export type StreamRunAgentAgentToolInputRunType = ClosedEnum<
|
|
653
|
+
typeof StreamRunAgentAgentToolInputRunType
|
|
653
654
|
>;
|
|
654
655
|
|
|
655
656
|
/**
|
|
656
657
|
* Performs Google searches to retrieve web content
|
|
657
658
|
*/
|
|
658
|
-
export type
|
|
659
|
-
type:
|
|
659
|
+
export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
660
|
+
type: StreamRunAgentAgentToolInputRunType;
|
|
661
|
+
/**
|
|
662
|
+
* Whether this tool requires approval before execution
|
|
663
|
+
*/
|
|
660
664
|
requiresApproval?: boolean | undefined;
|
|
661
665
|
};
|
|
662
666
|
|
|
663
667
|
/**
|
|
664
|
-
*
|
|
668
|
+
* 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.
|
|
665
669
|
*/
|
|
666
|
-
export type
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
671
|
-
|
|
|
672
|
-
|
|
|
673
|
-
|
|
|
674
|
-
|
|
|
675
|
-
|
|
|
676
|
-
|
|
|
677
|
-
|
|
|
678
|
-
|
|
|
679
|
-
|
|
|
680
|
-
|
|
|
670
|
+
export type StreamRunAgentAgentToolInputRun =
|
|
671
|
+
| AgentToolInputRunHTTPToolRun
|
|
672
|
+
| AgentToolInputRunCodeToolRun
|
|
673
|
+
| AgentToolInputRunFunctionToolRun
|
|
674
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
675
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool
|
|
676
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool
|
|
677
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool
|
|
678
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
|
|
679
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
|
|
680
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
|
|
681
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
|
|
682
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
|
|
683
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
|
|
684
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool;
|
|
681
685
|
|
|
682
686
|
/**
|
|
683
687
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
@@ -699,20 +703,20 @@ export type StreamRunAgentSettings = {
|
|
|
699
703
|
* Tools available to the agent
|
|
700
704
|
*/
|
|
701
705
|
tools: Array<
|
|
702
|
-
|
|
|
703
|
-
|
|
|
704
|
-
|
|
|
705
|
-
|
|
|
706
|
-
|
|
|
707
|
-
|
|
|
708
|
-
|
|
|
709
|
-
|
|
|
710
|
-
|
|
|
711
|
-
|
|
|
712
|
-
|
|
|
713
|
-
|
|
|
714
|
-
|
|
|
715
|
-
|
|
|
706
|
+
| AgentToolInputRunHTTPToolRun
|
|
707
|
+
| AgentToolInputRunCodeToolRun
|
|
708
|
+
| AgentToolInputRunFunctionToolRun
|
|
709
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
710
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool
|
|
711
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool
|
|
712
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool
|
|
713
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
|
|
714
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
|
|
715
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
|
|
716
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
|
|
717
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
|
|
718
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
|
|
719
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool
|
|
716
720
|
>;
|
|
717
721
|
/**
|
|
718
722
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
@@ -789,6 +793,9 @@ export type StreamRunAgentRequestBody = {
|
|
|
789
793
|
* The list of keys of the memory stores that are accessible to the agent.
|
|
790
794
|
*/
|
|
791
795
|
memoryStores?: Array<string> | undefined;
|
|
796
|
+
/**
|
|
797
|
+
* Knowledge base configurations for the agent to access
|
|
798
|
+
*/
|
|
792
799
|
knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
|
|
793
800
|
/**
|
|
794
801
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
@@ -935,23 +942,24 @@ export namespace StreamRunAgentPublicMessagePartAgentsRequestKind$ {
|
|
|
935
942
|
}
|
|
936
943
|
|
|
937
944
|
/** @internal */
|
|
938
|
-
export const
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
945
|
+
export const StreamRunAgentPublicMessagePartToolResultPart$inboundSchema:
|
|
946
|
+
z.ZodType<
|
|
947
|
+
StreamRunAgentPublicMessagePartToolResultPart,
|
|
948
|
+
z.ZodTypeDef,
|
|
949
|
+
unknown
|
|
950
|
+
> = z.object({
|
|
951
|
+
kind: StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
952
|
+
tool_call_id: z.string(),
|
|
953
|
+
result: z.any().optional(),
|
|
954
|
+
metadata: z.record(z.any()).optional(),
|
|
955
|
+
}).transform((v) => {
|
|
956
|
+
return remap$(v, {
|
|
957
|
+
"tool_call_id": "toolCallId",
|
|
958
|
+
});
|
|
950
959
|
});
|
|
951
|
-
});
|
|
952
960
|
|
|
953
961
|
/** @internal */
|
|
954
|
-
export type
|
|
962
|
+
export type StreamRunAgentPublicMessagePartToolResultPart$Outbound = {
|
|
955
963
|
kind: string;
|
|
956
964
|
tool_call_id: string;
|
|
957
965
|
result?: any | undefined;
|
|
@@ -959,51 +967,61 @@ export type PublicMessagePartToolResultPart$Outbound = {
|
|
|
959
967
|
};
|
|
960
968
|
|
|
961
969
|
/** @internal */
|
|
962
|
-
export const
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
970
|
+
export const StreamRunAgentPublicMessagePartToolResultPart$outboundSchema:
|
|
971
|
+
z.ZodType<
|
|
972
|
+
StreamRunAgentPublicMessagePartToolResultPart$Outbound,
|
|
973
|
+
z.ZodTypeDef,
|
|
974
|
+
StreamRunAgentPublicMessagePartToolResultPart
|
|
975
|
+
> = z.object({
|
|
976
|
+
kind: StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
977
|
+
toolCallId: z.string(),
|
|
978
|
+
result: z.any().optional(),
|
|
979
|
+
metadata: z.record(z.any()).optional(),
|
|
980
|
+
}).transform((v) => {
|
|
981
|
+
return remap$(v, {
|
|
982
|
+
toolCallId: "tool_call_id",
|
|
983
|
+
});
|
|
974
984
|
});
|
|
975
|
-
});
|
|
976
985
|
|
|
977
986
|
/**
|
|
978
987
|
* @internal
|
|
979
988
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
980
989
|
*/
|
|
981
|
-
export namespace
|
|
982
|
-
/** @deprecated use `
|
|
983
|
-
export const inboundSchema =
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
990
|
+
export namespace StreamRunAgentPublicMessagePartToolResultPart$ {
|
|
991
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
992
|
+
export const inboundSchema =
|
|
993
|
+
StreamRunAgentPublicMessagePartToolResultPart$inboundSchema;
|
|
994
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
995
|
+
export const outboundSchema =
|
|
996
|
+
StreamRunAgentPublicMessagePartToolResultPart$outboundSchema;
|
|
997
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$Outbound` instead. */
|
|
998
|
+
export type Outbound = StreamRunAgentPublicMessagePartToolResultPart$Outbound;
|
|
988
999
|
}
|
|
989
1000
|
|
|
990
|
-
export function
|
|
991
|
-
|
|
1001
|
+
export function streamRunAgentPublicMessagePartToolResultPartToJSON(
|
|
1002
|
+
streamRunAgentPublicMessagePartToolResultPart:
|
|
1003
|
+
StreamRunAgentPublicMessagePartToolResultPart,
|
|
992
1004
|
): string {
|
|
993
1005
|
return JSON.stringify(
|
|
994
|
-
|
|
995
|
-
|
|
1006
|
+
StreamRunAgentPublicMessagePartToolResultPart$outboundSchema.parse(
|
|
1007
|
+
streamRunAgentPublicMessagePartToolResultPart,
|
|
996
1008
|
),
|
|
997
1009
|
);
|
|
998
1010
|
}
|
|
999
1011
|
|
|
1000
|
-
export function
|
|
1012
|
+
export function streamRunAgentPublicMessagePartToolResultPartFromJSON(
|
|
1001
1013
|
jsonString: string,
|
|
1002
|
-
): SafeParseResult<
|
|
1014
|
+
): SafeParseResult<
|
|
1015
|
+
StreamRunAgentPublicMessagePartToolResultPart,
|
|
1016
|
+
SDKValidationError
|
|
1017
|
+
> {
|
|
1003
1018
|
return safeParse(
|
|
1004
1019
|
jsonString,
|
|
1005
|
-
(x) =>
|
|
1006
|
-
|
|
1020
|
+
(x) =>
|
|
1021
|
+
StreamRunAgentPublicMessagePartToolResultPart$inboundSchema.parse(
|
|
1022
|
+
JSON.parse(x),
|
|
1023
|
+
),
|
|
1024
|
+
`Failed to parse 'StreamRunAgentPublicMessagePartToolResultPart' from JSON`,
|
|
1007
1025
|
);
|
|
1008
1026
|
}
|
|
1009
1027
|
|
|
@@ -1031,8 +1049,8 @@ export namespace StreamRunAgentPublicMessagePartAgentsKind$ {
|
|
|
1031
1049
|
}
|
|
1032
1050
|
|
|
1033
1051
|
/** @internal */
|
|
1034
|
-
export const
|
|
1035
|
-
|
|
1052
|
+
export const StreamRunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
1053
|
+
StreamRunAgentFileFileInURIFormat,
|
|
1036
1054
|
z.ZodTypeDef,
|
|
1037
1055
|
unknown
|
|
1038
1056
|
> = z.object({
|
|
@@ -1042,17 +1060,17 @@ export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
|
1042
1060
|
});
|
|
1043
1061
|
|
|
1044
1062
|
/** @internal */
|
|
1045
|
-
export type
|
|
1063
|
+
export type StreamRunAgentFileFileInURIFormat$Outbound = {
|
|
1046
1064
|
uri: string;
|
|
1047
1065
|
mimeType?: string | undefined;
|
|
1048
1066
|
name?: string | undefined;
|
|
1049
1067
|
};
|
|
1050
1068
|
|
|
1051
1069
|
/** @internal */
|
|
1052
|
-
export const
|
|
1053
|
-
|
|
1070
|
+
export const StreamRunAgentFileFileInURIFormat$outboundSchema: z.ZodType<
|
|
1071
|
+
StreamRunAgentFileFileInURIFormat$Outbound,
|
|
1054
1072
|
z.ZodTypeDef,
|
|
1055
|
-
|
|
1073
|
+
StreamRunAgentFileFileInURIFormat
|
|
1056
1074
|
> = z.object({
|
|
1057
1075
|
uri: z.string(),
|
|
1058
1076
|
mimeType: z.string().optional(),
|
|
@@ -1063,36 +1081,39 @@ export const FileFileInURIFormat$outboundSchema: z.ZodType<
|
|
|
1063
1081
|
* @internal
|
|
1064
1082
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1065
1083
|
*/
|
|
1066
|
-
export namespace
|
|
1067
|
-
/** @deprecated use `
|
|
1068
|
-
export const inboundSchema =
|
|
1069
|
-
/** @deprecated use `
|
|
1070
|
-
export const outboundSchema =
|
|
1071
|
-
|
|
1072
|
-
|
|
1084
|
+
export namespace StreamRunAgentFileFileInURIFormat$ {
|
|
1085
|
+
/** @deprecated use `StreamRunAgentFileFileInURIFormat$inboundSchema` instead. */
|
|
1086
|
+
export const inboundSchema = StreamRunAgentFileFileInURIFormat$inboundSchema;
|
|
1087
|
+
/** @deprecated use `StreamRunAgentFileFileInURIFormat$outboundSchema` instead. */
|
|
1088
|
+
export const outboundSchema =
|
|
1089
|
+
StreamRunAgentFileFileInURIFormat$outboundSchema;
|
|
1090
|
+
/** @deprecated use `StreamRunAgentFileFileInURIFormat$Outbound` instead. */
|
|
1091
|
+
export type Outbound = StreamRunAgentFileFileInURIFormat$Outbound;
|
|
1073
1092
|
}
|
|
1074
1093
|
|
|
1075
|
-
export function
|
|
1076
|
-
|
|
1094
|
+
export function streamRunAgentFileFileInURIFormatToJSON(
|
|
1095
|
+
streamRunAgentFileFileInURIFormat: StreamRunAgentFileFileInURIFormat,
|
|
1077
1096
|
): string {
|
|
1078
1097
|
return JSON.stringify(
|
|
1079
|
-
|
|
1098
|
+
StreamRunAgentFileFileInURIFormat$outboundSchema.parse(
|
|
1099
|
+
streamRunAgentFileFileInURIFormat,
|
|
1100
|
+
),
|
|
1080
1101
|
);
|
|
1081
1102
|
}
|
|
1082
1103
|
|
|
1083
|
-
export function
|
|
1104
|
+
export function streamRunAgentFileFileInURIFormatFromJSON(
|
|
1084
1105
|
jsonString: string,
|
|
1085
|
-
): SafeParseResult<
|
|
1106
|
+
): SafeParseResult<StreamRunAgentFileFileInURIFormat, SDKValidationError> {
|
|
1086
1107
|
return safeParse(
|
|
1087
1108
|
jsonString,
|
|
1088
|
-
(x) =>
|
|
1089
|
-
`Failed to parse '
|
|
1109
|
+
(x) => StreamRunAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1110
|
+
`Failed to parse 'StreamRunAgentFileFileInURIFormat' from JSON`,
|
|
1090
1111
|
);
|
|
1091
1112
|
}
|
|
1092
1113
|
|
|
1093
1114
|
/** @internal */
|
|
1094
|
-
export const
|
|
1095
|
-
|
|
1115
|
+
export const StreamRunAgentFileBinaryFormat$inboundSchema: z.ZodType<
|
|
1116
|
+
StreamRunAgentFileBinaryFormat,
|
|
1096
1117
|
z.ZodTypeDef,
|
|
1097
1118
|
unknown
|
|
1098
1119
|
> = z.object({
|
|
@@ -1102,17 +1123,17 @@ export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
|
1102
1123
|
});
|
|
1103
1124
|
|
|
1104
1125
|
/** @internal */
|
|
1105
|
-
export type
|
|
1126
|
+
export type StreamRunAgentFileBinaryFormat$Outbound = {
|
|
1106
1127
|
bytes: string;
|
|
1107
1128
|
mimeType?: string | undefined;
|
|
1108
1129
|
name?: string | undefined;
|
|
1109
1130
|
};
|
|
1110
1131
|
|
|
1111
1132
|
/** @internal */
|
|
1112
|
-
export const
|
|
1113
|
-
|
|
1133
|
+
export const StreamRunAgentFileBinaryFormat$outboundSchema: z.ZodType<
|
|
1134
|
+
StreamRunAgentFileBinaryFormat$Outbound,
|
|
1114
1135
|
z.ZodTypeDef,
|
|
1115
|
-
|
|
1136
|
+
StreamRunAgentFileBinaryFormat
|
|
1116
1137
|
> = z.object({
|
|
1117
1138
|
bytes: z.string(),
|
|
1118
1139
|
mimeType: z.string().optional(),
|
|
@@ -1123,30 +1144,32 @@ export const FileBinaryFormat$outboundSchema: z.ZodType<
|
|
|
1123
1144
|
* @internal
|
|
1124
1145
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1125
1146
|
*/
|
|
1126
|
-
export namespace
|
|
1127
|
-
/** @deprecated use `
|
|
1128
|
-
export const inboundSchema =
|
|
1129
|
-
/** @deprecated use `
|
|
1130
|
-
export const outboundSchema =
|
|
1131
|
-
/** @deprecated use `
|
|
1132
|
-
export type Outbound =
|
|
1147
|
+
export namespace StreamRunAgentFileBinaryFormat$ {
|
|
1148
|
+
/** @deprecated use `StreamRunAgentFileBinaryFormat$inboundSchema` instead. */
|
|
1149
|
+
export const inboundSchema = StreamRunAgentFileBinaryFormat$inboundSchema;
|
|
1150
|
+
/** @deprecated use `StreamRunAgentFileBinaryFormat$outboundSchema` instead. */
|
|
1151
|
+
export const outboundSchema = StreamRunAgentFileBinaryFormat$outboundSchema;
|
|
1152
|
+
/** @deprecated use `StreamRunAgentFileBinaryFormat$Outbound` instead. */
|
|
1153
|
+
export type Outbound = StreamRunAgentFileBinaryFormat$Outbound;
|
|
1133
1154
|
}
|
|
1134
1155
|
|
|
1135
|
-
export function
|
|
1136
|
-
|
|
1156
|
+
export function streamRunAgentFileBinaryFormatToJSON(
|
|
1157
|
+
streamRunAgentFileBinaryFormat: StreamRunAgentFileBinaryFormat,
|
|
1137
1158
|
): string {
|
|
1138
1159
|
return JSON.stringify(
|
|
1139
|
-
|
|
1160
|
+
StreamRunAgentFileBinaryFormat$outboundSchema.parse(
|
|
1161
|
+
streamRunAgentFileBinaryFormat,
|
|
1162
|
+
),
|
|
1140
1163
|
);
|
|
1141
1164
|
}
|
|
1142
1165
|
|
|
1143
|
-
export function
|
|
1166
|
+
export function streamRunAgentFileBinaryFormatFromJSON(
|
|
1144
1167
|
jsonString: string,
|
|
1145
|
-
): SafeParseResult<
|
|
1168
|
+
): SafeParseResult<StreamRunAgentFileBinaryFormat, SDKValidationError> {
|
|
1146
1169
|
return safeParse(
|
|
1147
1170
|
jsonString,
|
|
1148
|
-
(x) =>
|
|
1149
|
-
`Failed to parse '
|
|
1171
|
+
(x) => StreamRunAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1172
|
+
`Failed to parse 'StreamRunAgentFileBinaryFormat' from JSON`,
|
|
1150
1173
|
);
|
|
1151
1174
|
}
|
|
1152
1175
|
|
|
@@ -1156,14 +1179,14 @@ export const StreamRunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
|
1156
1179
|
z.ZodTypeDef,
|
|
1157
1180
|
unknown
|
|
1158
1181
|
> = z.union([
|
|
1159
|
-
z.lazy(() =>
|
|
1160
|
-
z.lazy(() =>
|
|
1182
|
+
z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
|
|
1183
|
+
z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
|
|
1161
1184
|
]);
|
|
1162
1185
|
|
|
1163
1186
|
/** @internal */
|
|
1164
1187
|
export type StreamRunAgentPublicMessagePartFile$Outbound =
|
|
1165
|
-
|
|
|
1166
|
-
|
|
|
1188
|
+
| StreamRunAgentFileBinaryFormat$Outbound
|
|
1189
|
+
| StreamRunAgentFileFileInURIFormat$Outbound;
|
|
1167
1190
|
|
|
1168
1191
|
/** @internal */
|
|
1169
1192
|
export const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
@@ -1171,8 +1194,8 @@ export const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
|
1171
1194
|
z.ZodTypeDef,
|
|
1172
1195
|
StreamRunAgentPublicMessagePartFile
|
|
1173
1196
|
> = z.union([
|
|
1174
|
-
z.lazy(() =>
|
|
1175
|
-
z.lazy(() =>
|
|
1197
|
+
z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
|
|
1198
|
+
z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
|
|
1176
1199
|
]);
|
|
1177
1200
|
|
|
1178
1201
|
/**
|
|
@@ -1212,36 +1235,38 @@ export function streamRunAgentPublicMessagePartFileFromJSON(
|
|
|
1212
1235
|
}
|
|
1213
1236
|
|
|
1214
1237
|
/** @internal */
|
|
1215
|
-
export const
|
|
1216
|
-
|
|
1238
|
+
export const StreamRunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
1239
|
+
StreamRunAgentPublicMessagePartFilePart,
|
|
1217
1240
|
z.ZodTypeDef,
|
|
1218
1241
|
unknown
|
|
1219
1242
|
> = z.object({
|
|
1220
1243
|
kind: StreamRunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
1221
1244
|
file: z.union([
|
|
1222
|
-
z.lazy(() =>
|
|
1223
|
-
z.lazy(() =>
|
|
1245
|
+
z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
|
|
1246
|
+
z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
|
|
1224
1247
|
]),
|
|
1225
1248
|
metadata: z.record(z.any()).optional(),
|
|
1226
1249
|
});
|
|
1227
1250
|
|
|
1228
1251
|
/** @internal */
|
|
1229
|
-
export type
|
|
1252
|
+
export type StreamRunAgentPublicMessagePartFilePart$Outbound = {
|
|
1230
1253
|
kind: string;
|
|
1231
|
-
file:
|
|
1254
|
+
file:
|
|
1255
|
+
| StreamRunAgentFileBinaryFormat$Outbound
|
|
1256
|
+
| StreamRunAgentFileFileInURIFormat$Outbound;
|
|
1232
1257
|
metadata?: { [k: string]: any } | undefined;
|
|
1233
1258
|
};
|
|
1234
1259
|
|
|
1235
1260
|
/** @internal */
|
|
1236
|
-
export const
|
|
1237
|
-
|
|
1261
|
+
export const StreamRunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
1262
|
+
StreamRunAgentPublicMessagePartFilePart$Outbound,
|
|
1238
1263
|
z.ZodTypeDef,
|
|
1239
|
-
|
|
1264
|
+
StreamRunAgentPublicMessagePartFilePart
|
|
1240
1265
|
> = z.object({
|
|
1241
1266
|
kind: StreamRunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
1242
1267
|
file: z.union([
|
|
1243
|
-
z.lazy(() =>
|
|
1244
|
-
z.lazy(() =>
|
|
1268
|
+
z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
|
|
1269
|
+
z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
|
|
1245
1270
|
]),
|
|
1246
1271
|
metadata: z.record(z.any()).optional(),
|
|
1247
1272
|
});
|
|
@@ -1250,30 +1275,41 @@ export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
|
1250
1275
|
* @internal
|
|
1251
1276
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1252
1277
|
*/
|
|
1253
|
-
export namespace
|
|
1254
|
-
/** @deprecated use `
|
|
1255
|
-
export const inboundSchema =
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1278
|
+
export namespace StreamRunAgentPublicMessagePartFilePart$ {
|
|
1279
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartFilePart$inboundSchema` instead. */
|
|
1280
|
+
export const inboundSchema =
|
|
1281
|
+
StreamRunAgentPublicMessagePartFilePart$inboundSchema;
|
|
1282
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartFilePart$outboundSchema` instead. */
|
|
1283
|
+
export const outboundSchema =
|
|
1284
|
+
StreamRunAgentPublicMessagePartFilePart$outboundSchema;
|
|
1285
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartFilePart$Outbound` instead. */
|
|
1286
|
+
export type Outbound = StreamRunAgentPublicMessagePartFilePart$Outbound;
|
|
1260
1287
|
}
|
|
1261
1288
|
|
|
1262
|
-
export function
|
|
1263
|
-
|
|
1289
|
+
export function streamRunAgentPublicMessagePartFilePartToJSON(
|
|
1290
|
+
streamRunAgentPublicMessagePartFilePart:
|
|
1291
|
+
StreamRunAgentPublicMessagePartFilePart,
|
|
1264
1292
|
): string {
|
|
1265
1293
|
return JSON.stringify(
|
|
1266
|
-
|
|
1294
|
+
StreamRunAgentPublicMessagePartFilePart$outboundSchema.parse(
|
|
1295
|
+
streamRunAgentPublicMessagePartFilePart,
|
|
1296
|
+
),
|
|
1267
1297
|
);
|
|
1268
1298
|
}
|
|
1269
1299
|
|
|
1270
|
-
export function
|
|
1300
|
+
export function streamRunAgentPublicMessagePartFilePartFromJSON(
|
|
1271
1301
|
jsonString: string,
|
|
1272
|
-
): SafeParseResult<
|
|
1302
|
+
): SafeParseResult<
|
|
1303
|
+
StreamRunAgentPublicMessagePartFilePart,
|
|
1304
|
+
SDKValidationError
|
|
1305
|
+
> {
|
|
1273
1306
|
return safeParse(
|
|
1274
1307
|
jsonString,
|
|
1275
|
-
(x) =>
|
|
1276
|
-
|
|
1308
|
+
(x) =>
|
|
1309
|
+
StreamRunAgentPublicMessagePartFilePart$inboundSchema.parse(
|
|
1310
|
+
JSON.parse(x),
|
|
1311
|
+
),
|
|
1312
|
+
`Failed to parse 'StreamRunAgentPublicMessagePartFilePart' from JSON`,
|
|
1277
1313
|
);
|
|
1278
1314
|
}
|
|
1279
1315
|
|
|
@@ -1301,8 +1337,8 @@ export namespace StreamRunAgentPublicMessagePartKind$ {
|
|
|
1301
1337
|
}
|
|
1302
1338
|
|
|
1303
1339
|
/** @internal */
|
|
1304
|
-
export const
|
|
1305
|
-
|
|
1340
|
+
export const StreamRunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
1341
|
+
StreamRunAgentPublicMessagePartTextPart,
|
|
1306
1342
|
z.ZodTypeDef,
|
|
1307
1343
|
unknown
|
|
1308
1344
|
> = z.object({
|
|
@@ -1311,16 +1347,16 @@ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
|
1311
1347
|
});
|
|
1312
1348
|
|
|
1313
1349
|
/** @internal */
|
|
1314
|
-
export type
|
|
1350
|
+
export type StreamRunAgentPublicMessagePartTextPart$Outbound = {
|
|
1315
1351
|
kind: string;
|
|
1316
1352
|
text: string;
|
|
1317
1353
|
};
|
|
1318
1354
|
|
|
1319
1355
|
/** @internal */
|
|
1320
|
-
export const
|
|
1321
|
-
|
|
1356
|
+
export const StreamRunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
1357
|
+
StreamRunAgentPublicMessagePartTextPart$Outbound,
|
|
1322
1358
|
z.ZodTypeDef,
|
|
1323
|
-
|
|
1359
|
+
StreamRunAgentPublicMessagePartTextPart
|
|
1324
1360
|
> = z.object({
|
|
1325
1361
|
kind: StreamRunAgentPublicMessagePartKind$outboundSchema,
|
|
1326
1362
|
text: z.string(),
|
|
@@ -1330,30 +1366,41 @@ export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
|
1330
1366
|
* @internal
|
|
1331
1367
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1332
1368
|
*/
|
|
1333
|
-
export namespace
|
|
1334
|
-
/** @deprecated use `
|
|
1335
|
-
export const inboundSchema =
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1369
|
+
export namespace StreamRunAgentPublicMessagePartTextPart$ {
|
|
1370
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartTextPart$inboundSchema` instead. */
|
|
1371
|
+
export const inboundSchema =
|
|
1372
|
+
StreamRunAgentPublicMessagePartTextPart$inboundSchema;
|
|
1373
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartTextPart$outboundSchema` instead. */
|
|
1374
|
+
export const outboundSchema =
|
|
1375
|
+
StreamRunAgentPublicMessagePartTextPart$outboundSchema;
|
|
1376
|
+
/** @deprecated use `StreamRunAgentPublicMessagePartTextPart$Outbound` instead. */
|
|
1377
|
+
export type Outbound = StreamRunAgentPublicMessagePartTextPart$Outbound;
|
|
1340
1378
|
}
|
|
1341
1379
|
|
|
1342
|
-
export function
|
|
1343
|
-
|
|
1380
|
+
export function streamRunAgentPublicMessagePartTextPartToJSON(
|
|
1381
|
+
streamRunAgentPublicMessagePartTextPart:
|
|
1382
|
+
StreamRunAgentPublicMessagePartTextPart,
|
|
1344
1383
|
): string {
|
|
1345
1384
|
return JSON.stringify(
|
|
1346
|
-
|
|
1385
|
+
StreamRunAgentPublicMessagePartTextPart$outboundSchema.parse(
|
|
1386
|
+
streamRunAgentPublicMessagePartTextPart,
|
|
1387
|
+
),
|
|
1347
1388
|
);
|
|
1348
1389
|
}
|
|
1349
1390
|
|
|
1350
|
-
export function
|
|
1391
|
+
export function streamRunAgentPublicMessagePartTextPartFromJSON(
|
|
1351
1392
|
jsonString: string,
|
|
1352
|
-
): SafeParseResult<
|
|
1393
|
+
): SafeParseResult<
|
|
1394
|
+
StreamRunAgentPublicMessagePartTextPart,
|
|
1395
|
+
SDKValidationError
|
|
1396
|
+
> {
|
|
1353
1397
|
return safeParse(
|
|
1354
1398
|
jsonString,
|
|
1355
|
-
(x) =>
|
|
1356
|
-
|
|
1399
|
+
(x) =>
|
|
1400
|
+
StreamRunAgentPublicMessagePartTextPart$inboundSchema.parse(
|
|
1401
|
+
JSON.parse(x),
|
|
1402
|
+
),
|
|
1403
|
+
`Failed to parse 'StreamRunAgentPublicMessagePartTextPart' from JSON`,
|
|
1357
1404
|
);
|
|
1358
1405
|
}
|
|
1359
1406
|
|
|
@@ -1363,16 +1410,16 @@ export const StreamRunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
|
1363
1410
|
z.ZodTypeDef,
|
|
1364
1411
|
unknown
|
|
1365
1412
|
> = z.union([
|
|
1366
|
-
z.lazy(() =>
|
|
1367
|
-
z.lazy(() =>
|
|
1368
|
-
z.lazy(() =>
|
|
1413
|
+
z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
|
|
1414
|
+
z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
|
|
1415
|
+
z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
1369
1416
|
]);
|
|
1370
1417
|
|
|
1371
1418
|
/** @internal */
|
|
1372
1419
|
export type StreamRunAgentPublicMessagePart$Outbound =
|
|
1373
|
-
|
|
|
1374
|
-
|
|
|
1375
|
-
|
|
|
1420
|
+
| StreamRunAgentPublicMessagePartTextPart$Outbound
|
|
1421
|
+
| StreamRunAgentPublicMessagePartFilePart$Outbound
|
|
1422
|
+
| StreamRunAgentPublicMessagePartToolResultPart$Outbound;
|
|
1376
1423
|
|
|
1377
1424
|
/** @internal */
|
|
1378
1425
|
export const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -1380,9 +1427,9 @@ export const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
|
1380
1427
|
z.ZodTypeDef,
|
|
1381
1428
|
StreamRunAgentPublicMessagePart
|
|
1382
1429
|
> = z.union([
|
|
1383
|
-
z.lazy(() =>
|
|
1384
|
-
z.lazy(() =>
|
|
1385
|
-
z.lazy(() =>
|
|
1430
|
+
z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
|
|
1431
|
+
z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
|
|
1432
|
+
z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$outboundSchema),
|
|
1386
1433
|
]);
|
|
1387
1434
|
|
|
1388
1435
|
/**
|
|
@@ -1431,9 +1478,9 @@ export const StreamRunAgentMessage$inboundSchema: z.ZodType<
|
|
|
1431
1478
|
]),
|
|
1432
1479
|
parts: z.array(
|
|
1433
1480
|
z.union([
|
|
1434
|
-
z.lazy(() =>
|
|
1435
|
-
z.lazy(() =>
|
|
1436
|
-
z.lazy(() =>
|
|
1481
|
+
z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
|
|
1482
|
+
z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
|
|
1483
|
+
z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
1437
1484
|
]),
|
|
1438
1485
|
),
|
|
1439
1486
|
});
|
|
@@ -1443,9 +1490,9 @@ export type StreamRunAgentMessage$Outbound = {
|
|
|
1443
1490
|
messageId?: string | undefined;
|
|
1444
1491
|
role: string | string;
|
|
1445
1492
|
parts: Array<
|
|
1446
|
-
|
|
|
1447
|
-
|
|
|
1448
|
-
|
|
|
1493
|
+
| StreamRunAgentPublicMessagePartTextPart$Outbound
|
|
1494
|
+
| StreamRunAgentPublicMessagePartFilePart$Outbound
|
|
1495
|
+
| StreamRunAgentPublicMessagePartToolResultPart$Outbound
|
|
1449
1496
|
>;
|
|
1450
1497
|
};
|
|
1451
1498
|
|
|
@@ -1462,9 +1509,11 @@ export const StreamRunAgentMessage$outboundSchema: z.ZodType<
|
|
|
1462
1509
|
]),
|
|
1463
1510
|
parts: z.array(
|
|
1464
1511
|
z.union([
|
|
1465
|
-
z.lazy(() =>
|
|
1466
|
-
z.lazy(() =>
|
|
1467
|
-
z.lazy(() =>
|
|
1512
|
+
z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
|
|
1513
|
+
z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
|
|
1514
|
+
z.lazy(() =>
|
|
1515
|
+
StreamRunAgentPublicMessagePartToolResultPart$outboundSchema
|
|
1516
|
+
),
|
|
1468
1517
|
]),
|
|
1469
1518
|
),
|
|
1470
1519
|
});
|
|
@@ -1699,424 +1748,157 @@ export function streamRunAgentMemoryFromJSON(
|
|
|
1699
1748
|
}
|
|
1700
1749
|
|
|
1701
1750
|
/** @internal */
|
|
1702
|
-
export const
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
/**
|
|
1712
|
-
* @internal
|
|
1713
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1714
|
-
*/
|
|
1715
|
-
export namespace StreamRunAgentKnowledgeBaseConfigurationAgentsType$ {
|
|
1716
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
|
|
1717
|
-
export const inboundSchema =
|
|
1718
|
-
StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
1719
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
|
|
1720
|
-
export const outboundSchema =
|
|
1721
|
-
StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
/** @internal */
|
|
1725
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
|
|
1726
|
-
z.ZodType<
|
|
1727
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1728
|
-
z.ZodTypeDef,
|
|
1729
|
-
unknown
|
|
1730
|
-
> = z.object({
|
|
1731
|
-
type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
|
|
1732
|
-
query: z.string(),
|
|
1751
|
+
export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1752
|
+
StreamRunAgentKnowledgeBases,
|
|
1753
|
+
z.ZodTypeDef,
|
|
1754
|
+
unknown
|
|
1755
|
+
> = z.object({
|
|
1756
|
+
knowledge_id: z.string(),
|
|
1757
|
+
}).transform((v) => {
|
|
1758
|
+
return remap$(v, {
|
|
1759
|
+
"knowledge_id": "knowledgeId",
|
|
1733
1760
|
});
|
|
1761
|
+
});
|
|
1734
1762
|
|
|
1735
1763
|
/** @internal */
|
|
1736
|
-
export type
|
|
1737
|
-
|
|
1738
|
-
query: string;
|
|
1764
|
+
export type StreamRunAgentKnowledgeBases$Outbound = {
|
|
1765
|
+
knowledge_id: string;
|
|
1739
1766
|
};
|
|
1740
1767
|
|
|
1741
1768
|
/** @internal */
|
|
1742
|
-
export const
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1769
|
+
export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1770
|
+
StreamRunAgentKnowledgeBases$Outbound,
|
|
1771
|
+
z.ZodTypeDef,
|
|
1772
|
+
StreamRunAgentKnowledgeBases
|
|
1773
|
+
> = z.object({
|
|
1774
|
+
knowledgeId: z.string(),
|
|
1775
|
+
}).transform((v) => {
|
|
1776
|
+
return remap$(v, {
|
|
1777
|
+
knowledgeId: "knowledge_id",
|
|
1750
1778
|
});
|
|
1779
|
+
});
|
|
1751
1780
|
|
|
1752
1781
|
/**
|
|
1753
1782
|
* @internal
|
|
1754
1783
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1755
1784
|
*/
|
|
1756
|
-
export namespace
|
|
1757
|
-
/** @deprecated use `
|
|
1758
|
-
export const inboundSchema =
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
|
|
1764
|
-
export type Outbound =
|
|
1765
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
|
|
1785
|
+
export namespace StreamRunAgentKnowledgeBases$ {
|
|
1786
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
|
|
1787
|
+
export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
|
|
1788
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
|
|
1789
|
+
export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
|
|
1790
|
+
/** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
|
|
1791
|
+
export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
|
|
1766
1792
|
}
|
|
1767
1793
|
|
|
1768
|
-
export function
|
|
1769
|
-
|
|
1770
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1794
|
+
export function streamRunAgentKnowledgeBasesToJSON(
|
|
1795
|
+
streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
|
|
1771
1796
|
): string {
|
|
1772
1797
|
return JSON.stringify(
|
|
1773
|
-
|
|
1774
|
-
|
|
1798
|
+
StreamRunAgentKnowledgeBases$outboundSchema.parse(
|
|
1799
|
+
streamRunAgentKnowledgeBases,
|
|
1775
1800
|
),
|
|
1776
1801
|
);
|
|
1777
1802
|
}
|
|
1778
1803
|
|
|
1779
|
-
export function
|
|
1804
|
+
export function streamRunAgentKnowledgeBasesFromJSON(
|
|
1780
1805
|
jsonString: string,
|
|
1781
|
-
): SafeParseResult<
|
|
1782
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1783
|
-
SDKValidationError
|
|
1784
|
-
> {
|
|
1806
|
+
): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
|
|
1785
1807
|
return safeParse(
|
|
1786
1808
|
jsonString,
|
|
1787
|
-
(x) =>
|
|
1788
|
-
|
|
1789
|
-
JSON.parse(x),
|
|
1790
|
-
),
|
|
1791
|
-
`Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
|
|
1809
|
+
(x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1810
|
+
`Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
|
|
1792
1811
|
);
|
|
1793
1812
|
}
|
|
1794
1813
|
|
|
1795
1814
|
/** @internal */
|
|
1796
|
-
export const
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
z.
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
/**
|
|
1806
|
-
* @internal
|
|
1807
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1808
|
-
*/
|
|
1809
|
-
export namespace StreamRunAgentKnowledgeBaseConfigurationType$ {
|
|
1810
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1811
|
-
export const inboundSchema =
|
|
1812
|
-
StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1813
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1814
|
-
export const outboundSchema =
|
|
1815
|
-
StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
/** @internal */
|
|
1819
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
|
|
1820
|
-
z.ZodType<
|
|
1821
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1822
|
-
z.ZodTypeDef,
|
|
1823
|
-
unknown
|
|
1824
|
-
> = z.object({
|
|
1825
|
-
type: StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
1826
|
-
});
|
|
1815
|
+
export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
1816
|
+
StreamRunAgentTeamOfAgents,
|
|
1817
|
+
z.ZodTypeDef,
|
|
1818
|
+
unknown
|
|
1819
|
+
> = z.object({
|
|
1820
|
+
key: z.string(),
|
|
1821
|
+
role: z.string().optional(),
|
|
1822
|
+
});
|
|
1827
1823
|
|
|
1828
1824
|
/** @internal */
|
|
1829
|
-
export type
|
|
1830
|
-
|
|
1825
|
+
export type StreamRunAgentTeamOfAgents$Outbound = {
|
|
1826
|
+
key: string;
|
|
1827
|
+
role?: string | undefined;
|
|
1831
1828
|
};
|
|
1832
1829
|
|
|
1833
1830
|
/** @internal */
|
|
1834
|
-
export const
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1831
|
+
export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
1832
|
+
StreamRunAgentTeamOfAgents$Outbound,
|
|
1833
|
+
z.ZodTypeDef,
|
|
1834
|
+
StreamRunAgentTeamOfAgents
|
|
1835
|
+
> = z.object({
|
|
1836
|
+
key: z.string(),
|
|
1837
|
+
role: z.string().optional(),
|
|
1838
|
+
});
|
|
1842
1839
|
|
|
1843
1840
|
/**
|
|
1844
1841
|
* @internal
|
|
1845
1842
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1846
1843
|
*/
|
|
1847
|
-
export namespace
|
|
1848
|
-
/** @deprecated use `
|
|
1849
|
-
export const inboundSchema =
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
1855
|
-
export type Outbound =
|
|
1856
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1844
|
+
export namespace StreamRunAgentTeamOfAgents$ {
|
|
1845
|
+
/** @deprecated use `StreamRunAgentTeamOfAgents$inboundSchema` instead. */
|
|
1846
|
+
export const inboundSchema = StreamRunAgentTeamOfAgents$inboundSchema;
|
|
1847
|
+
/** @deprecated use `StreamRunAgentTeamOfAgents$outboundSchema` instead. */
|
|
1848
|
+
export const outboundSchema = StreamRunAgentTeamOfAgents$outboundSchema;
|
|
1849
|
+
/** @deprecated use `StreamRunAgentTeamOfAgents$Outbound` instead. */
|
|
1850
|
+
export type Outbound = StreamRunAgentTeamOfAgents$Outbound;
|
|
1857
1851
|
}
|
|
1858
1852
|
|
|
1859
|
-
export function
|
|
1860
|
-
|
|
1861
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1853
|
+
export function streamRunAgentTeamOfAgentsToJSON(
|
|
1854
|
+
streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents,
|
|
1862
1855
|
): string {
|
|
1863
1856
|
return JSON.stringify(
|
|
1864
|
-
|
|
1865
|
-
knowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1866
|
-
),
|
|
1857
|
+
StreamRunAgentTeamOfAgents$outboundSchema.parse(streamRunAgentTeamOfAgents),
|
|
1867
1858
|
);
|
|
1868
1859
|
}
|
|
1869
1860
|
|
|
1870
|
-
export function
|
|
1861
|
+
export function streamRunAgentTeamOfAgentsFromJSON(
|
|
1871
1862
|
jsonString: string,
|
|
1872
|
-
): SafeParseResult<
|
|
1873
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1874
|
-
SDKValidationError
|
|
1875
|
-
> {
|
|
1863
|
+
): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError> {
|
|
1876
1864
|
return safeParse(
|
|
1877
1865
|
jsonString,
|
|
1878
|
-
(x) =>
|
|
1879
|
-
|
|
1880
|
-
.parse(JSON.parse(x)),
|
|
1881
|
-
`Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
|
|
1866
|
+
(x) => StreamRunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
1867
|
+
`Failed to parse 'StreamRunAgentTeamOfAgents' from JSON`,
|
|
1882
1868
|
);
|
|
1883
1869
|
}
|
|
1884
1870
|
|
|
1885
1871
|
/** @internal */
|
|
1886
|
-
export const
|
|
1887
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1888
|
-
z.ZodTypeDef,
|
|
1889
|
-
unknown
|
|
1890
|
-
> = z.union([
|
|
1891
|
-
z.lazy(() =>
|
|
1892
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1893
|
-
),
|
|
1894
|
-
z.lazy(() =>
|
|
1895
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1896
|
-
),
|
|
1897
|
-
]);
|
|
1898
|
-
|
|
1899
|
-
/** @internal */
|
|
1900
|
-
export type StreamRunAgentKnowledgeBaseConfiguration$Outbound =
|
|
1901
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1902
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1903
|
-
|
|
1904
|
-
/** @internal */
|
|
1905
|
-
export const StreamRunAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1906
|
-
StreamRunAgentKnowledgeBaseConfiguration$Outbound,
|
|
1907
|
-
z.ZodTypeDef,
|
|
1908
|
-
StreamRunAgentKnowledgeBaseConfiguration
|
|
1909
|
-
> = z.union([
|
|
1910
|
-
z.lazy(() =>
|
|
1911
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1912
|
-
),
|
|
1913
|
-
z.lazy(() =>
|
|
1914
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1915
|
-
),
|
|
1916
|
-
]);
|
|
1917
|
-
|
|
1918
|
-
/**
|
|
1919
|
-
* @internal
|
|
1920
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1921
|
-
*/
|
|
1922
|
-
export namespace StreamRunAgentKnowledgeBaseConfiguration$ {
|
|
1923
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1924
|
-
export const inboundSchema =
|
|
1925
|
-
StreamRunAgentKnowledgeBaseConfiguration$inboundSchema;
|
|
1926
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1927
|
-
export const outboundSchema =
|
|
1928
|
-
StreamRunAgentKnowledgeBaseConfiguration$outboundSchema;
|
|
1929
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$Outbound` instead. */
|
|
1930
|
-
export type Outbound = StreamRunAgentKnowledgeBaseConfiguration$Outbound;
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
export function streamRunAgentKnowledgeBaseConfigurationToJSON(
|
|
1934
|
-
streamRunAgentKnowledgeBaseConfiguration:
|
|
1935
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1936
|
-
): string {
|
|
1937
|
-
return JSON.stringify(
|
|
1938
|
-
StreamRunAgentKnowledgeBaseConfiguration$outboundSchema.parse(
|
|
1939
|
-
streamRunAgentKnowledgeBaseConfiguration,
|
|
1940
|
-
),
|
|
1941
|
-
);
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
export function streamRunAgentKnowledgeBaseConfigurationFromJSON(
|
|
1945
|
-
jsonString: string,
|
|
1946
|
-
): SafeParseResult<
|
|
1947
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1948
|
-
SDKValidationError
|
|
1949
|
-
> {
|
|
1950
|
-
return safeParse(
|
|
1951
|
-
jsonString,
|
|
1952
|
-
(x) =>
|
|
1953
|
-
StreamRunAgentKnowledgeBaseConfiguration$inboundSchema.parse(
|
|
1954
|
-
JSON.parse(x),
|
|
1955
|
-
),
|
|
1956
|
-
`Failed to parse 'StreamRunAgentKnowledgeBaseConfiguration' from JSON`,
|
|
1957
|
-
);
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
/** @internal */
|
|
1961
|
-
export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1962
|
-
StreamRunAgentKnowledgeBases,
|
|
1963
|
-
z.ZodTypeDef,
|
|
1964
|
-
unknown
|
|
1965
|
-
> = z.object({
|
|
1966
|
-
configuration: z.union([
|
|
1967
|
-
z.lazy(() =>
|
|
1968
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1969
|
-
),
|
|
1970
|
-
z.lazy(() =>
|
|
1971
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1972
|
-
),
|
|
1973
|
-
]),
|
|
1974
|
-
});
|
|
1975
|
-
|
|
1976
|
-
/** @internal */
|
|
1977
|
-
export type StreamRunAgentKnowledgeBases$Outbound = {
|
|
1978
|
-
configuration:
|
|
1979
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1980
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1981
|
-
};
|
|
1982
|
-
|
|
1983
|
-
/** @internal */
|
|
1984
|
-
export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1985
|
-
StreamRunAgentKnowledgeBases$Outbound,
|
|
1986
|
-
z.ZodTypeDef,
|
|
1987
|
-
StreamRunAgentKnowledgeBases
|
|
1988
|
-
> = z.object({
|
|
1989
|
-
configuration: z.union([
|
|
1990
|
-
z.lazy(() =>
|
|
1991
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1992
|
-
),
|
|
1993
|
-
z.lazy(() =>
|
|
1994
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1995
|
-
),
|
|
1996
|
-
]),
|
|
1997
|
-
});
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
2000
|
-
* @internal
|
|
2001
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2002
|
-
*/
|
|
2003
|
-
export namespace StreamRunAgentKnowledgeBases$ {
|
|
2004
|
-
/** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
|
|
2005
|
-
export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
|
|
2006
|
-
/** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
|
|
2007
|
-
export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
|
|
2008
|
-
/** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
|
|
2009
|
-
export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
export function streamRunAgentKnowledgeBasesToJSON(
|
|
2013
|
-
streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
|
|
2014
|
-
): string {
|
|
2015
|
-
return JSON.stringify(
|
|
2016
|
-
StreamRunAgentKnowledgeBases$outboundSchema.parse(
|
|
2017
|
-
streamRunAgentKnowledgeBases,
|
|
2018
|
-
),
|
|
2019
|
-
);
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
export function streamRunAgentKnowledgeBasesFromJSON(
|
|
2023
|
-
jsonString: string,
|
|
2024
|
-
): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
|
|
2025
|
-
return safeParse(
|
|
2026
|
-
jsonString,
|
|
2027
|
-
(x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
2028
|
-
`Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
|
|
2029
|
-
);
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
/** @internal */
|
|
2033
|
-
export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
2034
|
-
StreamRunAgentTeamOfAgents,
|
|
2035
|
-
z.ZodTypeDef,
|
|
2036
|
-
unknown
|
|
2037
|
-
> = z.object({
|
|
2038
|
-
key: z.string(),
|
|
2039
|
-
role: z.string().optional(),
|
|
2040
|
-
});
|
|
2041
|
-
|
|
2042
|
-
/** @internal */
|
|
2043
|
-
export type StreamRunAgentTeamOfAgents$Outbound = {
|
|
2044
|
-
key: string;
|
|
2045
|
-
role?: string | undefined;
|
|
2046
|
-
};
|
|
2047
|
-
|
|
2048
|
-
/** @internal */
|
|
2049
|
-
export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
2050
|
-
StreamRunAgentTeamOfAgents$Outbound,
|
|
2051
|
-
z.ZodTypeDef,
|
|
2052
|
-
StreamRunAgentTeamOfAgents
|
|
2053
|
-
> = z.object({
|
|
2054
|
-
key: z.string(),
|
|
2055
|
-
role: z.string().optional(),
|
|
2056
|
-
});
|
|
2057
|
-
|
|
2058
|
-
/**
|
|
2059
|
-
* @internal
|
|
2060
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2061
|
-
*/
|
|
2062
|
-
export namespace StreamRunAgentTeamOfAgents$ {
|
|
2063
|
-
/** @deprecated use `StreamRunAgentTeamOfAgents$inboundSchema` instead. */
|
|
2064
|
-
export const inboundSchema = StreamRunAgentTeamOfAgents$inboundSchema;
|
|
2065
|
-
/** @deprecated use `StreamRunAgentTeamOfAgents$outboundSchema` instead. */
|
|
2066
|
-
export const outboundSchema = StreamRunAgentTeamOfAgents$outboundSchema;
|
|
2067
|
-
/** @deprecated use `StreamRunAgentTeamOfAgents$Outbound` instead. */
|
|
2068
|
-
export type Outbound = StreamRunAgentTeamOfAgents$Outbound;
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
export function streamRunAgentTeamOfAgentsToJSON(
|
|
2072
|
-
streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents,
|
|
2073
|
-
): string {
|
|
2074
|
-
return JSON.stringify(
|
|
2075
|
-
StreamRunAgentTeamOfAgents$outboundSchema.parse(streamRunAgentTeamOfAgents),
|
|
2076
|
-
);
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
export function streamRunAgentTeamOfAgentsFromJSON(
|
|
2080
|
-
jsonString: string,
|
|
2081
|
-
): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError> {
|
|
2082
|
-
return safeParse(
|
|
2083
|
-
jsonString,
|
|
2084
|
-
(x) => StreamRunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
|
|
2085
|
-
`Failed to parse 'StreamRunAgentTeamOfAgents' from JSON`,
|
|
2086
|
-
);
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
/** @internal */
|
|
2090
|
-
export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
1872
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
2091
1873
|
z.ZodNativeEnum<
|
|
2092
|
-
typeof
|
|
1874
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2093
1875
|
> = z.nativeEnum(
|
|
2094
|
-
|
|
1876
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
|
|
2095
1877
|
);
|
|
2096
1878
|
|
|
2097
1879
|
/** @internal */
|
|
2098
|
-
export const
|
|
1880
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
2099
1881
|
z.ZodNativeEnum<
|
|
2100
|
-
typeof
|
|
1882
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2101
1883
|
> =
|
|
2102
|
-
|
|
1884
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
2103
1885
|
|
|
2104
1886
|
/**
|
|
2105
1887
|
* @internal
|
|
2106
1888
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2107
1889
|
*/
|
|
2108
|
-
export namespace
|
|
2109
|
-
/** @deprecated use `
|
|
1890
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
|
|
1891
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
2110
1892
|
export const inboundSchema =
|
|
2111
|
-
|
|
2112
|
-
/** @deprecated use `
|
|
1893
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1894
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
2113
1895
|
export const outboundSchema =
|
|
2114
|
-
|
|
1896
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
2115
1897
|
}
|
|
2116
1898
|
|
|
2117
1899
|
/** @internal */
|
|
2118
|
-
export const
|
|
2119
|
-
|
|
1900
|
+
export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
1901
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2120
1902
|
z.ZodTypeDef,
|
|
2121
1903
|
unknown
|
|
2122
1904
|
> = z.object({
|
|
@@ -2127,7 +1909,7 @@ export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
|
|
|
2127
1909
|
});
|
|
2128
1910
|
|
|
2129
1911
|
/** @internal */
|
|
2130
|
-
export type
|
|
1912
|
+
export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
|
|
2131
1913
|
name: string;
|
|
2132
1914
|
description?: string | undefined;
|
|
2133
1915
|
strict?: boolean | undefined;
|
|
@@ -2135,76 +1917,73 @@ export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
|
|
|
2135
1917
|
};
|
|
2136
1918
|
|
|
2137
1919
|
/** @internal */
|
|
2138
|
-
export const
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
});
|
|
1920
|
+
export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
1921
|
+
StreamRunAgentAgentToolInputRunFunction$Outbound,
|
|
1922
|
+
z.ZodTypeDef,
|
|
1923
|
+
StreamRunAgentAgentToolInputRunFunction
|
|
1924
|
+
> = z.object({
|
|
1925
|
+
name: z.string(),
|
|
1926
|
+
description: z.string().optional(),
|
|
1927
|
+
strict: z.boolean().optional(),
|
|
1928
|
+
parameters: z.record(z.any()).optional(),
|
|
1929
|
+
});
|
|
2149
1930
|
|
|
2150
1931
|
/**
|
|
2151
1932
|
* @internal
|
|
2152
1933
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2153
1934
|
*/
|
|
2154
|
-
export namespace
|
|
2155
|
-
/** @deprecated use `
|
|
1935
|
+
export namespace StreamRunAgentAgentToolInputRunFunction$ {
|
|
1936
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
|
|
2156
1937
|
export const inboundSchema =
|
|
2157
|
-
|
|
2158
|
-
/** @deprecated use `
|
|
1938
|
+
StreamRunAgentAgentToolInputRunFunction$inboundSchema;
|
|
1939
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
|
|
2159
1940
|
export const outboundSchema =
|
|
2160
|
-
|
|
2161
|
-
/** @deprecated use `
|
|
2162
|
-
export type Outbound =
|
|
1941
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema;
|
|
1942
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
|
|
1943
|
+
export type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
|
|
2163
1944
|
}
|
|
2164
1945
|
|
|
2165
|
-
export function
|
|
2166
|
-
|
|
2167
|
-
|
|
1946
|
+
export function streamRunAgentAgentToolInputRunFunctionToJSON(
|
|
1947
|
+
streamRunAgentAgentToolInputRunFunction:
|
|
1948
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2168
1949
|
): string {
|
|
2169
1950
|
return JSON.stringify(
|
|
2170
|
-
|
|
2171
|
-
|
|
1951
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema.parse(
|
|
1952
|
+
streamRunAgentAgentToolInputRunFunction,
|
|
2172
1953
|
),
|
|
2173
1954
|
);
|
|
2174
1955
|
}
|
|
2175
1956
|
|
|
2176
|
-
export function
|
|
1957
|
+
export function streamRunAgentAgentToolInputRunFunctionFromJSON(
|
|
2177
1958
|
jsonString: string,
|
|
2178
1959
|
): SafeParseResult<
|
|
2179
|
-
|
|
1960
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2180
1961
|
SDKValidationError
|
|
2181
1962
|
> {
|
|
2182
1963
|
return safeParse(
|
|
2183
1964
|
jsonString,
|
|
2184
1965
|
(x) =>
|
|
2185
|
-
|
|
1966
|
+
StreamRunAgentAgentToolInputRunFunction$inboundSchema.parse(
|
|
2186
1967
|
JSON.parse(x),
|
|
2187
1968
|
),
|
|
2188
|
-
`Failed to parse '
|
|
1969
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunFunction' from JSON`,
|
|
2189
1970
|
);
|
|
2190
1971
|
}
|
|
2191
1972
|
|
|
2192
1973
|
/** @internal */
|
|
2193
|
-
export const
|
|
2194
|
-
|
|
1974
|
+
export const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<
|
|
1975
|
+
AgentToolInputRunFunctionToolRun,
|
|
2195
1976
|
z.ZodTypeDef,
|
|
2196
1977
|
unknown
|
|
2197
1978
|
> = z.object({
|
|
2198
1979
|
type:
|
|
2199
|
-
|
|
2200
|
-
_id: z.string().optional(),
|
|
1980
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
2201
1981
|
key: z.string(),
|
|
1982
|
+
_id: z.string().optional(),
|
|
2202
1983
|
display_name: z.string().optional(),
|
|
2203
1984
|
description: z.string().optional(),
|
|
1985
|
+
function: z.lazy(() => StreamRunAgentAgentToolInputRunFunction$inboundSchema),
|
|
2204
1986
|
requires_approval: z.boolean().default(false),
|
|
2205
|
-
function: z.lazy(() =>
|
|
2206
|
-
StreamRunAgentRunAgentRequestToolFunction$inboundSchema
|
|
2207
|
-
),
|
|
2208
1987
|
}).transform((v) => {
|
|
2209
1988
|
return remap$(v, {
|
|
2210
1989
|
"_id": "id",
|
|
@@ -2214,32 +1993,32 @@ export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
|
|
|
2214
1993
|
});
|
|
2215
1994
|
|
|
2216
1995
|
/** @internal */
|
|
2217
|
-
export type
|
|
1996
|
+
export type AgentToolInputRunFunctionToolRun$Outbound = {
|
|
2218
1997
|
type: string;
|
|
2219
|
-
_id?: string | undefined;
|
|
2220
1998
|
key: string;
|
|
1999
|
+
_id?: string | undefined;
|
|
2221
2000
|
display_name?: string | undefined;
|
|
2222
2001
|
description?: string | undefined;
|
|
2002
|
+
function: StreamRunAgentAgentToolInputRunFunction$Outbound;
|
|
2223
2003
|
requires_approval: boolean;
|
|
2224
|
-
function: StreamRunAgentRunAgentRequestToolFunction$Outbound;
|
|
2225
2004
|
};
|
|
2226
2005
|
|
|
2227
2006
|
/** @internal */
|
|
2228
|
-
export const
|
|
2229
|
-
|
|
2007
|
+
export const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<
|
|
2008
|
+
AgentToolInputRunFunctionToolRun$Outbound,
|
|
2230
2009
|
z.ZodTypeDef,
|
|
2231
|
-
|
|
2010
|
+
AgentToolInputRunFunctionToolRun
|
|
2232
2011
|
> = z.object({
|
|
2233
2012
|
type:
|
|
2234
|
-
|
|
2235
|
-
id: z.string().optional(),
|
|
2013
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
2236
2014
|
key: z.string(),
|
|
2015
|
+
id: z.string().optional(),
|
|
2237
2016
|
displayName: z.string().optional(),
|
|
2238
2017
|
description: z.string().optional(),
|
|
2239
|
-
requiresApproval: z.boolean().default(false),
|
|
2240
2018
|
function: z.lazy(() =>
|
|
2241
|
-
|
|
2019
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema
|
|
2242
2020
|
),
|
|
2021
|
+
requiresApproval: z.boolean().default(false),
|
|
2243
2022
|
}).transform((v) => {
|
|
2244
2023
|
return remap$(v, {
|
|
2245
2024
|
id: "_id",
|
|
@@ -2252,110 +2031,110 @@ export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
|
|
|
2252
2031
|
* @internal
|
|
2253
2032
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2254
2033
|
*/
|
|
2255
|
-
export namespace
|
|
2256
|
-
/** @deprecated use `
|
|
2257
|
-
export const inboundSchema =
|
|
2258
|
-
/** @deprecated use `
|
|
2259
|
-
export const outboundSchema =
|
|
2260
|
-
/** @deprecated use `
|
|
2261
|
-
export type Outbound =
|
|
2034
|
+
export namespace AgentToolInputRunFunctionToolRun$ {
|
|
2035
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
|
|
2036
|
+
export const inboundSchema = AgentToolInputRunFunctionToolRun$inboundSchema;
|
|
2037
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
|
|
2038
|
+
export const outboundSchema = AgentToolInputRunFunctionToolRun$outboundSchema;
|
|
2039
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
|
|
2040
|
+
export type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
|
|
2262
2041
|
}
|
|
2263
2042
|
|
|
2264
|
-
export function
|
|
2265
|
-
|
|
2043
|
+
export function agentToolInputRunFunctionToolRunToJSON(
|
|
2044
|
+
agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun,
|
|
2266
2045
|
): string {
|
|
2267
2046
|
return JSON.stringify(
|
|
2268
|
-
|
|
2269
|
-
|
|
2047
|
+
AgentToolInputRunFunctionToolRun$outboundSchema.parse(
|
|
2048
|
+
agentToolInputRunFunctionToolRun,
|
|
2270
2049
|
),
|
|
2271
2050
|
);
|
|
2272
2051
|
}
|
|
2273
2052
|
|
|
2274
|
-
export function
|
|
2053
|
+
export function agentToolInputRunFunctionToolRunFromJSON(
|
|
2275
2054
|
jsonString: string,
|
|
2276
|
-
): SafeParseResult<
|
|
2055
|
+
): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError> {
|
|
2277
2056
|
return safeParse(
|
|
2278
2057
|
jsonString,
|
|
2279
|
-
(x) =>
|
|
2280
|
-
`Failed to parse '
|
|
2058
|
+
(x) => AgentToolInputRunFunctionToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2059
|
+
`Failed to parse 'AgentToolInputRunFunctionToolRun' from JSON`,
|
|
2281
2060
|
);
|
|
2282
2061
|
}
|
|
2283
2062
|
|
|
2284
2063
|
/** @internal */
|
|
2285
|
-
export const
|
|
2064
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
2286
2065
|
z.ZodNativeEnum<
|
|
2287
|
-
typeof
|
|
2066
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2288
2067
|
> = z.nativeEnum(
|
|
2289
|
-
|
|
2068
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
|
|
2290
2069
|
);
|
|
2291
2070
|
|
|
2292
2071
|
/** @internal */
|
|
2293
|
-
export const
|
|
2072
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2294
2073
|
z.ZodNativeEnum<
|
|
2295
|
-
typeof
|
|
2074
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2296
2075
|
> =
|
|
2297
|
-
|
|
2076
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2298
2077
|
|
|
2299
2078
|
/**
|
|
2300
2079
|
* @internal
|
|
2301
2080
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2302
2081
|
*/
|
|
2303
|
-
export namespace
|
|
2304
|
-
/** @deprecated use `
|
|
2082
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2083
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2305
2084
|
export const inboundSchema =
|
|
2306
|
-
|
|
2307
|
-
/** @deprecated use `
|
|
2085
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2086
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2308
2087
|
export const outboundSchema =
|
|
2309
|
-
|
|
2088
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
2310
2089
|
}
|
|
2311
2090
|
|
|
2312
2091
|
/** @internal */
|
|
2313
|
-
export const
|
|
2314
|
-
typeof
|
|
2315
|
-
> = z.nativeEnum(
|
|
2092
|
+
export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2093
|
+
typeof AgentToolInputRunLanguage
|
|
2094
|
+
> = z.nativeEnum(AgentToolInputRunLanguage);
|
|
2316
2095
|
|
|
2317
2096
|
/** @internal */
|
|
2318
|
-
export const
|
|
2319
|
-
typeof
|
|
2320
|
-
> =
|
|
2097
|
+
export const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2098
|
+
typeof AgentToolInputRunLanguage
|
|
2099
|
+
> = AgentToolInputRunLanguage$inboundSchema;
|
|
2321
2100
|
|
|
2322
2101
|
/**
|
|
2323
2102
|
* @internal
|
|
2324
2103
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2325
2104
|
*/
|
|
2326
|
-
export namespace
|
|
2327
|
-
/** @deprecated use `
|
|
2328
|
-
export const inboundSchema =
|
|
2329
|
-
/** @deprecated use `
|
|
2330
|
-
export const outboundSchema =
|
|
2105
|
+
export namespace AgentToolInputRunLanguage$ {
|
|
2106
|
+
/** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
|
|
2107
|
+
export const inboundSchema = AgentToolInputRunLanguage$inboundSchema;
|
|
2108
|
+
/** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
|
|
2109
|
+
export const outboundSchema = AgentToolInputRunLanguage$outboundSchema;
|
|
2331
2110
|
}
|
|
2332
2111
|
|
|
2333
2112
|
/** @internal */
|
|
2334
|
-
export const
|
|
2335
|
-
|
|
2113
|
+
export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
|
|
2114
|
+
AgentToolInputRunCodeTool,
|
|
2336
2115
|
z.ZodTypeDef,
|
|
2337
2116
|
unknown
|
|
2338
2117
|
> = z.object({
|
|
2339
2118
|
parameters: z.record(z.any()).optional(),
|
|
2340
|
-
language:
|
|
2119
|
+
language: AgentToolInputRunLanguage$inboundSchema,
|
|
2341
2120
|
code: z.string(),
|
|
2342
2121
|
});
|
|
2343
2122
|
|
|
2344
2123
|
/** @internal */
|
|
2345
|
-
export type
|
|
2124
|
+
export type AgentToolInputRunCodeTool$Outbound = {
|
|
2346
2125
|
parameters?: { [k: string]: any } | undefined;
|
|
2347
2126
|
language: string;
|
|
2348
2127
|
code: string;
|
|
2349
2128
|
};
|
|
2350
2129
|
|
|
2351
2130
|
/** @internal */
|
|
2352
|
-
export const
|
|
2353
|
-
|
|
2131
|
+
export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
|
|
2132
|
+
AgentToolInputRunCodeTool$Outbound,
|
|
2354
2133
|
z.ZodTypeDef,
|
|
2355
|
-
|
|
2134
|
+
AgentToolInputRunCodeTool
|
|
2356
2135
|
> = z.object({
|
|
2357
2136
|
parameters: z.record(z.any()).optional(),
|
|
2358
|
-
language:
|
|
2137
|
+
language: AgentToolInputRunLanguage$outboundSchema,
|
|
2359
2138
|
code: z.string(),
|
|
2360
2139
|
});
|
|
2361
2140
|
|
|
@@ -2363,88 +2142,86 @@ export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
|
|
|
2363
2142
|
* @internal
|
|
2364
2143
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2365
2144
|
*/
|
|
2366
|
-
export namespace
|
|
2367
|
-
/** @deprecated use `
|
|
2368
|
-
export const inboundSchema =
|
|
2369
|
-
/** @deprecated use `
|
|
2370
|
-
export const outboundSchema =
|
|
2371
|
-
/** @deprecated use `
|
|
2372
|
-
export type Outbound =
|
|
2145
|
+
export namespace AgentToolInputRunCodeTool$ {
|
|
2146
|
+
/** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
|
|
2147
|
+
export const inboundSchema = AgentToolInputRunCodeTool$inboundSchema;
|
|
2148
|
+
/** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
|
|
2149
|
+
export const outboundSchema = AgentToolInputRunCodeTool$outboundSchema;
|
|
2150
|
+
/** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
|
|
2151
|
+
export type Outbound = AgentToolInputRunCodeTool$Outbound;
|
|
2373
2152
|
}
|
|
2374
2153
|
|
|
2375
|
-
export function
|
|
2376
|
-
|
|
2154
|
+
export function agentToolInputRunCodeToolToJSON(
|
|
2155
|
+
agentToolInputRunCodeTool: AgentToolInputRunCodeTool,
|
|
2377
2156
|
): string {
|
|
2378
2157
|
return JSON.stringify(
|
|
2379
|
-
|
|
2380
|
-
runAgentRequestToolCodeTool,
|
|
2381
|
-
),
|
|
2158
|
+
AgentToolInputRunCodeTool$outboundSchema.parse(agentToolInputRunCodeTool),
|
|
2382
2159
|
);
|
|
2383
2160
|
}
|
|
2384
2161
|
|
|
2385
|
-
export function
|
|
2162
|
+
export function agentToolInputRunCodeToolFromJSON(
|
|
2386
2163
|
jsonString: string,
|
|
2387
|
-
): SafeParseResult<
|
|
2164
|
+
): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError> {
|
|
2388
2165
|
return safeParse(
|
|
2389
2166
|
jsonString,
|
|
2390
|
-
(x) =>
|
|
2391
|
-
`Failed to parse '
|
|
2167
|
+
(x) => AgentToolInputRunCodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
2168
|
+
`Failed to parse 'AgentToolInputRunCodeTool' from JSON`,
|
|
2392
2169
|
);
|
|
2393
2170
|
}
|
|
2394
2171
|
|
|
2395
2172
|
/** @internal */
|
|
2396
|
-
export const
|
|
2397
|
-
|
|
2173
|
+
export const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<
|
|
2174
|
+
AgentToolInputRunCodeToolRun,
|
|
2398
2175
|
z.ZodTypeDef,
|
|
2399
2176
|
unknown
|
|
2400
2177
|
> = z.object({
|
|
2401
|
-
key: z.string(),
|
|
2402
|
-
display_name: z.string(),
|
|
2403
|
-
description: z.string(),
|
|
2404
2178
|
type:
|
|
2405
|
-
|
|
2406
|
-
|
|
2179
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2180
|
+
key: z.string(),
|
|
2407
2181
|
_id: z.string().optional(),
|
|
2182
|
+
display_name: z.string().optional(),
|
|
2183
|
+
description: z.string(),
|
|
2184
|
+
code_tool: z.lazy(() => AgentToolInputRunCodeTool$inboundSchema),
|
|
2408
2185
|
requires_approval: z.boolean().default(false),
|
|
2409
2186
|
}).transform((v) => {
|
|
2410
2187
|
return remap$(v, {
|
|
2188
|
+
"_id": "id",
|
|
2411
2189
|
"display_name": "displayName",
|
|
2412
2190
|
"code_tool": "codeTool",
|
|
2413
|
-
"_id": "id",
|
|
2414
2191
|
"requires_approval": "requiresApproval",
|
|
2415
2192
|
});
|
|
2416
2193
|
});
|
|
2417
2194
|
|
|
2418
2195
|
/** @internal */
|
|
2419
|
-
export type
|
|
2420
|
-
key: string;
|
|
2421
|
-
display_name: string;
|
|
2422
|
-
description: string;
|
|
2196
|
+
export type AgentToolInputRunCodeToolRun$Outbound = {
|
|
2423
2197
|
type: string;
|
|
2424
|
-
|
|
2198
|
+
key: string;
|
|
2425
2199
|
_id?: string | undefined;
|
|
2200
|
+
display_name?: string | undefined;
|
|
2201
|
+
description: string;
|
|
2202
|
+
code_tool: AgentToolInputRunCodeTool$Outbound;
|
|
2426
2203
|
requires_approval: boolean;
|
|
2427
2204
|
};
|
|
2428
2205
|
|
|
2429
2206
|
/** @internal */
|
|
2430
|
-
export const
|
|
2431
|
-
|
|
2207
|
+
export const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<
|
|
2208
|
+
AgentToolInputRunCodeToolRun$Outbound,
|
|
2432
2209
|
z.ZodTypeDef,
|
|
2433
|
-
|
|
2210
|
+
AgentToolInputRunCodeToolRun
|
|
2434
2211
|
> = z.object({
|
|
2435
|
-
key: z.string(),
|
|
2436
|
-
displayName: z.string(),
|
|
2437
|
-
description: z.string(),
|
|
2438
2212
|
type:
|
|
2439
|
-
|
|
2440
|
-
|
|
2213
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2214
|
+
key: z.string(),
|
|
2441
2215
|
id: z.string().optional(),
|
|
2216
|
+
displayName: z.string().optional(),
|
|
2217
|
+
description: z.string(),
|
|
2218
|
+
codeTool: z.lazy(() => AgentToolInputRunCodeTool$outboundSchema),
|
|
2442
2219
|
requiresApproval: z.boolean().default(false),
|
|
2443
2220
|
}).transform((v) => {
|
|
2444
2221
|
return remap$(v, {
|
|
2222
|
+
id: "_id",
|
|
2445
2223
|
displayName: "display_name",
|
|
2446
2224
|
codeTool: "code_tool",
|
|
2447
|
-
id: "_id",
|
|
2448
2225
|
requiresApproval: "requires_approval",
|
|
2449
2226
|
});
|
|
2450
2227
|
});
|
|
@@ -2453,101 +2230,98 @@ export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2453
2230
|
* @internal
|
|
2454
2231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2455
2232
|
*/
|
|
2456
|
-
export namespace
|
|
2457
|
-
/** @deprecated use `
|
|
2458
|
-
export const inboundSchema =
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
/** @deprecated use `RunAgentRequestToolCodeExecutionTool$Outbound` instead. */
|
|
2464
|
-
export type Outbound = RunAgentRequestToolCodeExecutionTool$Outbound;
|
|
2233
|
+
export namespace AgentToolInputRunCodeToolRun$ {
|
|
2234
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
|
|
2235
|
+
export const inboundSchema = AgentToolInputRunCodeToolRun$inboundSchema;
|
|
2236
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
|
|
2237
|
+
export const outboundSchema = AgentToolInputRunCodeToolRun$outboundSchema;
|
|
2238
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
|
|
2239
|
+
export type Outbound = AgentToolInputRunCodeToolRun$Outbound;
|
|
2465
2240
|
}
|
|
2466
2241
|
|
|
2467
|
-
export function
|
|
2468
|
-
|
|
2242
|
+
export function agentToolInputRunCodeToolRunToJSON(
|
|
2243
|
+
agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun,
|
|
2469
2244
|
): string {
|
|
2470
2245
|
return JSON.stringify(
|
|
2471
|
-
|
|
2472
|
-
|
|
2246
|
+
AgentToolInputRunCodeToolRun$outboundSchema.parse(
|
|
2247
|
+
agentToolInputRunCodeToolRun,
|
|
2473
2248
|
),
|
|
2474
2249
|
);
|
|
2475
2250
|
}
|
|
2476
2251
|
|
|
2477
|
-
export function
|
|
2252
|
+
export function agentToolInputRunCodeToolRunFromJSON(
|
|
2478
2253
|
jsonString: string,
|
|
2479
|
-
): SafeParseResult<
|
|
2254
|
+
): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError> {
|
|
2480
2255
|
return safeParse(
|
|
2481
2256
|
jsonString,
|
|
2482
|
-
(x) =>
|
|
2483
|
-
|
|
2484
|
-
`Failed to parse 'RunAgentRequestToolCodeExecutionTool' from JSON`,
|
|
2257
|
+
(x) => AgentToolInputRunCodeToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2258
|
+
`Failed to parse 'AgentToolInputRunCodeToolRun' from JSON`,
|
|
2485
2259
|
);
|
|
2486
2260
|
}
|
|
2487
2261
|
|
|
2488
2262
|
/** @internal */
|
|
2489
|
-
export const
|
|
2263
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2490
2264
|
z.ZodNativeEnum<
|
|
2491
|
-
typeof
|
|
2265
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2492
2266
|
> = z.nativeEnum(
|
|
2493
|
-
|
|
2267
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
|
|
2494
2268
|
);
|
|
2495
2269
|
|
|
2496
2270
|
/** @internal */
|
|
2497
|
-
export const
|
|
2271
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2498
2272
|
z.ZodNativeEnum<
|
|
2499
|
-
typeof
|
|
2273
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2500
2274
|
> =
|
|
2501
|
-
|
|
2275
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2502
2276
|
|
|
2503
2277
|
/**
|
|
2504
2278
|
* @internal
|
|
2505
2279
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2506
2280
|
*/
|
|
2507
|
-
export namespace
|
|
2508
|
-
/** @deprecated use `
|
|
2281
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2282
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2509
2283
|
export const inboundSchema =
|
|
2510
|
-
|
|
2511
|
-
/** @deprecated use `
|
|
2284
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2285
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2512
2286
|
export const outboundSchema =
|
|
2513
|
-
|
|
2287
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2514
2288
|
}
|
|
2515
2289
|
|
|
2516
2290
|
/** @internal */
|
|
2517
|
-
export const
|
|
2518
|
-
typeof
|
|
2519
|
-
> = z.nativeEnum(
|
|
2291
|
+
export const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<
|
|
2292
|
+
typeof AgentToolInputRunMethod
|
|
2293
|
+
> = z.nativeEnum(AgentToolInputRunMethod);
|
|
2520
2294
|
|
|
2521
2295
|
/** @internal */
|
|
2522
|
-
export const
|
|
2523
|
-
typeof
|
|
2524
|
-
> =
|
|
2296
|
+
export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
|
|
2297
|
+
typeof AgentToolInputRunMethod
|
|
2298
|
+
> = AgentToolInputRunMethod$inboundSchema;
|
|
2525
2299
|
|
|
2526
2300
|
/**
|
|
2527
2301
|
* @internal
|
|
2528
2302
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2529
2303
|
*/
|
|
2530
|
-
export namespace
|
|
2531
|
-
/** @deprecated use `
|
|
2532
|
-
export const inboundSchema =
|
|
2533
|
-
/** @deprecated use `
|
|
2534
|
-
export const outboundSchema =
|
|
2304
|
+
export namespace AgentToolInputRunMethod$ {
|
|
2305
|
+
/** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
|
|
2306
|
+
export const inboundSchema = AgentToolInputRunMethod$inboundSchema;
|
|
2307
|
+
/** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
|
|
2308
|
+
export const outboundSchema = AgentToolInputRunMethod$outboundSchema;
|
|
2535
2309
|
}
|
|
2536
2310
|
|
|
2537
2311
|
/** @internal */
|
|
2538
|
-
export const
|
|
2539
|
-
|
|
2312
|
+
export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
|
|
2313
|
+
AgentToolInputRunBlueprint,
|
|
2540
2314
|
z.ZodTypeDef,
|
|
2541
2315
|
unknown
|
|
2542
2316
|
> = z.object({
|
|
2543
2317
|
url: z.string(),
|
|
2544
|
-
method:
|
|
2318
|
+
method: AgentToolInputRunMethod$inboundSchema,
|
|
2545
2319
|
headers: z.record(z.string()).optional(),
|
|
2546
2320
|
body: z.record(z.any()).optional(),
|
|
2547
2321
|
});
|
|
2548
2322
|
|
|
2549
2323
|
/** @internal */
|
|
2550
|
-
export type
|
|
2324
|
+
export type AgentToolInputRunBlueprint$Outbound = {
|
|
2551
2325
|
url: string;
|
|
2552
2326
|
method: string;
|
|
2553
2327
|
headers?: { [k: string]: string } | undefined;
|
|
@@ -2555,13 +2329,13 @@ export type RunAgentRequestToolBlueprint$Outbound = {
|
|
|
2555
2329
|
};
|
|
2556
2330
|
|
|
2557
2331
|
/** @internal */
|
|
2558
|
-
export const
|
|
2559
|
-
|
|
2332
|
+
export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
|
|
2333
|
+
AgentToolInputRunBlueprint$Outbound,
|
|
2560
2334
|
z.ZodTypeDef,
|
|
2561
|
-
|
|
2335
|
+
AgentToolInputRunBlueprint
|
|
2562
2336
|
> = z.object({
|
|
2563
2337
|
url: z.string(),
|
|
2564
|
-
method:
|
|
2338
|
+
method: AgentToolInputRunMethod$outboundSchema,
|
|
2565
2339
|
headers: z.record(z.string()).optional(),
|
|
2566
2340
|
body: z.record(z.any()).optional(),
|
|
2567
2341
|
});
|
|
@@ -2570,124 +2344,119 @@ export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
|
|
|
2570
2344
|
* @internal
|
|
2571
2345
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2572
2346
|
*/
|
|
2573
|
-
export namespace
|
|
2574
|
-
/** @deprecated use `
|
|
2575
|
-
export const inboundSchema =
|
|
2576
|
-
/** @deprecated use `
|
|
2577
|
-
export const outboundSchema =
|
|
2578
|
-
/** @deprecated use `
|
|
2579
|
-
export type Outbound =
|
|
2347
|
+
export namespace AgentToolInputRunBlueprint$ {
|
|
2348
|
+
/** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
|
|
2349
|
+
export const inboundSchema = AgentToolInputRunBlueprint$inboundSchema;
|
|
2350
|
+
/** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
|
|
2351
|
+
export const outboundSchema = AgentToolInputRunBlueprint$outboundSchema;
|
|
2352
|
+
/** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
|
|
2353
|
+
export type Outbound = AgentToolInputRunBlueprint$Outbound;
|
|
2580
2354
|
}
|
|
2581
2355
|
|
|
2582
|
-
export function
|
|
2583
|
-
|
|
2356
|
+
export function agentToolInputRunBlueprintToJSON(
|
|
2357
|
+
agentToolInputRunBlueprint: AgentToolInputRunBlueprint,
|
|
2584
2358
|
): string {
|
|
2585
2359
|
return JSON.stringify(
|
|
2586
|
-
|
|
2587
|
-
runAgentRequestToolBlueprint,
|
|
2588
|
-
),
|
|
2360
|
+
AgentToolInputRunBlueprint$outboundSchema.parse(agentToolInputRunBlueprint),
|
|
2589
2361
|
);
|
|
2590
2362
|
}
|
|
2591
2363
|
|
|
2592
|
-
export function
|
|
2364
|
+
export function agentToolInputRunBlueprintFromJSON(
|
|
2593
2365
|
jsonString: string,
|
|
2594
|
-
): SafeParseResult<
|
|
2366
|
+
): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError> {
|
|
2595
2367
|
return safeParse(
|
|
2596
2368
|
jsonString,
|
|
2597
|
-
(x) =>
|
|
2598
|
-
`Failed to parse '
|
|
2369
|
+
(x) => AgentToolInputRunBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
2370
|
+
`Failed to parse 'AgentToolInputRunBlueprint' from JSON`,
|
|
2599
2371
|
);
|
|
2600
2372
|
}
|
|
2601
2373
|
|
|
2602
2374
|
/** @internal */
|
|
2603
|
-
export const
|
|
2375
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
|
|
2604
2376
|
z.ZodNativeEnum<
|
|
2605
|
-
typeof
|
|
2377
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2606
2378
|
> = z.nativeEnum(
|
|
2607
|
-
|
|
2379
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
|
|
2608
2380
|
);
|
|
2609
2381
|
|
|
2610
2382
|
/** @internal */
|
|
2611
|
-
export const
|
|
2383
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
|
|
2612
2384
|
z.ZodNativeEnum<
|
|
2613
|
-
typeof
|
|
2385
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2614
2386
|
> =
|
|
2615
|
-
|
|
2387
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2616
2388
|
|
|
2617
2389
|
/**
|
|
2618
2390
|
* @internal
|
|
2619
2391
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2620
2392
|
*/
|
|
2621
|
-
export namespace
|
|
2622
|
-
/** @deprecated use `
|
|
2393
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
|
|
2394
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
2623
2395
|
export const inboundSchema =
|
|
2624
|
-
|
|
2625
|
-
/** @deprecated use `
|
|
2396
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2397
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
2626
2398
|
export const outboundSchema =
|
|
2627
|
-
|
|
2399
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
2628
2400
|
}
|
|
2629
2401
|
|
|
2630
2402
|
/** @internal */
|
|
2631
|
-
export const
|
|
2632
|
-
|
|
2403
|
+
export const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<
|
|
2404
|
+
AgentToolInputRunDefaultValue,
|
|
2633
2405
|
z.ZodTypeDef,
|
|
2634
2406
|
unknown
|
|
2635
2407
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2636
2408
|
|
|
2637
2409
|
/** @internal */
|
|
2638
|
-
export type
|
|
2639
|
-
| string
|
|
2640
|
-
| number
|
|
2641
|
-
| boolean;
|
|
2410
|
+
export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
|
|
2642
2411
|
|
|
2643
2412
|
/** @internal */
|
|
2644
|
-
export const
|
|
2645
|
-
|
|
2413
|
+
export const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<
|
|
2414
|
+
AgentToolInputRunDefaultValue$Outbound,
|
|
2646
2415
|
z.ZodTypeDef,
|
|
2647
|
-
|
|
2416
|
+
AgentToolInputRunDefaultValue
|
|
2648
2417
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2649
2418
|
|
|
2650
2419
|
/**
|
|
2651
2420
|
* @internal
|
|
2652
2421
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2653
2422
|
*/
|
|
2654
|
-
export namespace
|
|
2655
|
-
/** @deprecated use `
|
|
2656
|
-
export const inboundSchema =
|
|
2657
|
-
/** @deprecated use `
|
|
2658
|
-
export const outboundSchema =
|
|
2659
|
-
/** @deprecated use `
|
|
2660
|
-
export type Outbound =
|
|
2423
|
+
export namespace AgentToolInputRunDefaultValue$ {
|
|
2424
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
|
|
2425
|
+
export const inboundSchema = AgentToolInputRunDefaultValue$inboundSchema;
|
|
2426
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
|
|
2427
|
+
export const outboundSchema = AgentToolInputRunDefaultValue$outboundSchema;
|
|
2428
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
|
|
2429
|
+
export type Outbound = AgentToolInputRunDefaultValue$Outbound;
|
|
2661
2430
|
}
|
|
2662
2431
|
|
|
2663
|
-
export function
|
|
2664
|
-
|
|
2432
|
+
export function agentToolInputRunDefaultValueToJSON(
|
|
2433
|
+
agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue,
|
|
2665
2434
|
): string {
|
|
2666
2435
|
return JSON.stringify(
|
|
2667
|
-
|
|
2668
|
-
|
|
2436
|
+
AgentToolInputRunDefaultValue$outboundSchema.parse(
|
|
2437
|
+
agentToolInputRunDefaultValue,
|
|
2669
2438
|
),
|
|
2670
2439
|
);
|
|
2671
2440
|
}
|
|
2672
2441
|
|
|
2673
|
-
export function
|
|
2442
|
+
export function agentToolInputRunDefaultValueFromJSON(
|
|
2674
2443
|
jsonString: string,
|
|
2675
|
-
): SafeParseResult<
|
|
2444
|
+
): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError> {
|
|
2676
2445
|
return safeParse(
|
|
2677
2446
|
jsonString,
|
|
2678
|
-
(x) =>
|
|
2679
|
-
`Failed to parse '
|
|
2447
|
+
(x) => AgentToolInputRunDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
2448
|
+
`Failed to parse 'AgentToolInputRunDefaultValue' from JSON`,
|
|
2680
2449
|
);
|
|
2681
2450
|
}
|
|
2682
2451
|
|
|
2683
2452
|
/** @internal */
|
|
2684
|
-
export const
|
|
2685
|
-
|
|
2453
|
+
export const AgentToolInputRunArguments$inboundSchema: z.ZodType<
|
|
2454
|
+
AgentToolInputRunArguments,
|
|
2686
2455
|
z.ZodTypeDef,
|
|
2687
2456
|
unknown
|
|
2688
2457
|
> = z.object({
|
|
2689
2458
|
type:
|
|
2690
|
-
|
|
2459
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
2691
2460
|
description: z.string(),
|
|
2692
2461
|
send_to_model: z.boolean().default(true),
|
|
2693
2462
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2699,7 +2468,7 @@ export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
|
|
|
2699
2468
|
});
|
|
2700
2469
|
|
|
2701
2470
|
/** @internal */
|
|
2702
|
-
export type
|
|
2471
|
+
export type AgentToolInputRunArguments$Outbound = {
|
|
2703
2472
|
type: string;
|
|
2704
2473
|
description: string;
|
|
2705
2474
|
send_to_model: boolean;
|
|
@@ -2707,13 +2476,13 @@ export type RunAgentRequestToolArguments$Outbound = {
|
|
|
2707
2476
|
};
|
|
2708
2477
|
|
|
2709
2478
|
/** @internal */
|
|
2710
|
-
export const
|
|
2711
|
-
|
|
2479
|
+
export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
|
|
2480
|
+
AgentToolInputRunArguments$Outbound,
|
|
2712
2481
|
z.ZodTypeDef,
|
|
2713
|
-
|
|
2482
|
+
AgentToolInputRunArguments
|
|
2714
2483
|
> = z.object({
|
|
2715
2484
|
type:
|
|
2716
|
-
|
|
2485
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
2717
2486
|
description: z.string(),
|
|
2718
2487
|
sendToModel: z.boolean().default(true),
|
|
2719
2488
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2728,62 +2497,58 @@ export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
|
|
|
2728
2497
|
* @internal
|
|
2729
2498
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2730
2499
|
*/
|
|
2731
|
-
export namespace
|
|
2732
|
-
/** @deprecated use `
|
|
2733
|
-
export const inboundSchema =
|
|
2734
|
-
/** @deprecated use `
|
|
2735
|
-
export const outboundSchema =
|
|
2736
|
-
/** @deprecated use `
|
|
2737
|
-
export type Outbound =
|
|
2500
|
+
export namespace AgentToolInputRunArguments$ {
|
|
2501
|
+
/** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
|
|
2502
|
+
export const inboundSchema = AgentToolInputRunArguments$inboundSchema;
|
|
2503
|
+
/** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
|
|
2504
|
+
export const outboundSchema = AgentToolInputRunArguments$outboundSchema;
|
|
2505
|
+
/** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
|
|
2506
|
+
export type Outbound = AgentToolInputRunArguments$Outbound;
|
|
2738
2507
|
}
|
|
2739
2508
|
|
|
2740
|
-
export function
|
|
2741
|
-
|
|
2509
|
+
export function agentToolInputRunArgumentsToJSON(
|
|
2510
|
+
agentToolInputRunArguments: AgentToolInputRunArguments,
|
|
2742
2511
|
): string {
|
|
2743
2512
|
return JSON.stringify(
|
|
2744
|
-
|
|
2745
|
-
runAgentRequestToolArguments,
|
|
2746
|
-
),
|
|
2513
|
+
AgentToolInputRunArguments$outboundSchema.parse(agentToolInputRunArguments),
|
|
2747
2514
|
);
|
|
2748
2515
|
}
|
|
2749
2516
|
|
|
2750
|
-
export function
|
|
2517
|
+
export function agentToolInputRunArgumentsFromJSON(
|
|
2751
2518
|
jsonString: string,
|
|
2752
|
-
): SafeParseResult<
|
|
2519
|
+
): SafeParseResult<AgentToolInputRunArguments, SDKValidationError> {
|
|
2753
2520
|
return safeParse(
|
|
2754
2521
|
jsonString,
|
|
2755
|
-
(x) =>
|
|
2756
|
-
`Failed to parse '
|
|
2522
|
+
(x) => AgentToolInputRunArguments$inboundSchema.parse(JSON.parse(x)),
|
|
2523
|
+
`Failed to parse 'AgentToolInputRunArguments' from JSON`,
|
|
2757
2524
|
);
|
|
2758
2525
|
}
|
|
2759
2526
|
|
|
2760
2527
|
/** @internal */
|
|
2761
|
-
export const
|
|
2762
|
-
|
|
2528
|
+
export const AgentToolInputRunHttp$inboundSchema: z.ZodType<
|
|
2529
|
+
AgentToolInputRunHttp,
|
|
2763
2530
|
z.ZodTypeDef,
|
|
2764
2531
|
unknown
|
|
2765
2532
|
> = z.object({
|
|
2766
|
-
blueprint: z.lazy(() =>
|
|
2767
|
-
arguments: z.record(z.lazy(() =>
|
|
2533
|
+
blueprint: z.lazy(() => AgentToolInputRunBlueprint$inboundSchema),
|
|
2534
|
+
arguments: z.record(z.lazy(() => AgentToolInputRunArguments$inboundSchema))
|
|
2768
2535
|
.optional(),
|
|
2769
2536
|
});
|
|
2770
2537
|
|
|
2771
2538
|
/** @internal */
|
|
2772
|
-
export type
|
|
2773
|
-
blueprint:
|
|
2774
|
-
arguments?:
|
|
2775
|
-
| { [k: string]: RunAgentRequestToolArguments$Outbound }
|
|
2776
|
-
| undefined;
|
|
2539
|
+
export type AgentToolInputRunHttp$Outbound = {
|
|
2540
|
+
blueprint: AgentToolInputRunBlueprint$Outbound;
|
|
2541
|
+
arguments?: { [k: string]: AgentToolInputRunArguments$Outbound } | undefined;
|
|
2777
2542
|
};
|
|
2778
2543
|
|
|
2779
2544
|
/** @internal */
|
|
2780
|
-
export const
|
|
2781
|
-
|
|
2545
|
+
export const AgentToolInputRunHttp$outboundSchema: z.ZodType<
|
|
2546
|
+
AgentToolInputRunHttp$Outbound,
|
|
2782
2547
|
z.ZodTypeDef,
|
|
2783
|
-
|
|
2548
|
+
AgentToolInputRunHttp
|
|
2784
2549
|
> = z.object({
|
|
2785
|
-
blueprint: z.lazy(() =>
|
|
2786
|
-
arguments: z.record(z.lazy(() =>
|
|
2550
|
+
blueprint: z.lazy(() => AgentToolInputRunBlueprint$outboundSchema),
|
|
2551
|
+
arguments: z.record(z.lazy(() => AgentToolInputRunArguments$outboundSchema))
|
|
2787
2552
|
.optional(),
|
|
2788
2553
|
});
|
|
2789
2554
|
|
|
@@ -2791,46 +2556,46 @@ export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
|
|
|
2791
2556
|
* @internal
|
|
2792
2557
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2793
2558
|
*/
|
|
2794
|
-
export namespace
|
|
2795
|
-
/** @deprecated use `
|
|
2796
|
-
export const inboundSchema =
|
|
2797
|
-
/** @deprecated use `
|
|
2798
|
-
export const outboundSchema =
|
|
2799
|
-
/** @deprecated use `
|
|
2800
|
-
export type Outbound =
|
|
2559
|
+
export namespace AgentToolInputRunHttp$ {
|
|
2560
|
+
/** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
|
|
2561
|
+
export const inboundSchema = AgentToolInputRunHttp$inboundSchema;
|
|
2562
|
+
/** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
|
|
2563
|
+
export const outboundSchema = AgentToolInputRunHttp$outboundSchema;
|
|
2564
|
+
/** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
|
|
2565
|
+
export type Outbound = AgentToolInputRunHttp$Outbound;
|
|
2801
2566
|
}
|
|
2802
2567
|
|
|
2803
|
-
export function
|
|
2804
|
-
|
|
2568
|
+
export function agentToolInputRunHttpToJSON(
|
|
2569
|
+
agentToolInputRunHttp: AgentToolInputRunHttp,
|
|
2805
2570
|
): string {
|
|
2806
2571
|
return JSON.stringify(
|
|
2807
|
-
|
|
2572
|
+
AgentToolInputRunHttp$outboundSchema.parse(agentToolInputRunHttp),
|
|
2808
2573
|
);
|
|
2809
2574
|
}
|
|
2810
2575
|
|
|
2811
|
-
export function
|
|
2576
|
+
export function agentToolInputRunHttpFromJSON(
|
|
2812
2577
|
jsonString: string,
|
|
2813
|
-
): SafeParseResult<
|
|
2578
|
+
): SafeParseResult<AgentToolInputRunHttp, SDKValidationError> {
|
|
2814
2579
|
return safeParse(
|
|
2815
2580
|
jsonString,
|
|
2816
|
-
(x) =>
|
|
2817
|
-
`Failed to parse '
|
|
2581
|
+
(x) => AgentToolInputRunHttp$inboundSchema.parse(JSON.parse(x)),
|
|
2582
|
+
`Failed to parse 'AgentToolInputRunHttp' from JSON`,
|
|
2818
2583
|
);
|
|
2819
2584
|
}
|
|
2820
2585
|
|
|
2821
2586
|
/** @internal */
|
|
2822
|
-
export const
|
|
2823
|
-
|
|
2587
|
+
export const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<
|
|
2588
|
+
AgentToolInputRunHTTPToolRun,
|
|
2824
2589
|
z.ZodTypeDef,
|
|
2825
2590
|
unknown
|
|
2826
2591
|
> = z.object({
|
|
2827
|
-
|
|
2592
|
+
type:
|
|
2593
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2828
2594
|
key: z.string(),
|
|
2829
|
-
|
|
2595
|
+
_id: z.string().optional(),
|
|
2596
|
+
display_name: z.string().optional(),
|
|
2830
2597
|
description: z.string(),
|
|
2831
|
-
|
|
2832
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2833
|
-
http: z.lazy(() => RunAgentRequestToolHttp$inboundSchema),
|
|
2598
|
+
http: z.lazy(() => AgentToolInputRunHttp$inboundSchema),
|
|
2834
2599
|
requires_approval: z.boolean().default(false),
|
|
2835
2600
|
}).transform((v) => {
|
|
2836
2601
|
return remap$(v, {
|
|
@@ -2841,29 +2606,29 @@ export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
|
|
|
2841
2606
|
});
|
|
2842
2607
|
|
|
2843
2608
|
/** @internal */
|
|
2844
|
-
export type
|
|
2845
|
-
|
|
2609
|
+
export type AgentToolInputRunHTTPToolRun$Outbound = {
|
|
2610
|
+
type: string;
|
|
2846
2611
|
key: string;
|
|
2847
|
-
|
|
2612
|
+
_id?: string | undefined;
|
|
2613
|
+
display_name?: string | undefined;
|
|
2848
2614
|
description: string;
|
|
2849
|
-
|
|
2850
|
-
http: RunAgentRequestToolHttp$Outbound;
|
|
2615
|
+
http: AgentToolInputRunHttp$Outbound;
|
|
2851
2616
|
requires_approval: boolean;
|
|
2852
2617
|
};
|
|
2853
2618
|
|
|
2854
2619
|
/** @internal */
|
|
2855
|
-
export const
|
|
2856
|
-
|
|
2620
|
+
export const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<
|
|
2621
|
+
AgentToolInputRunHTTPToolRun$Outbound,
|
|
2857
2622
|
z.ZodTypeDef,
|
|
2858
|
-
|
|
2623
|
+
AgentToolInputRunHTTPToolRun
|
|
2859
2624
|
> = z.object({
|
|
2860
|
-
|
|
2625
|
+
type:
|
|
2626
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2861
2627
|
key: z.string(),
|
|
2862
|
-
|
|
2628
|
+
id: z.string().optional(),
|
|
2629
|
+
displayName: z.string().optional(),
|
|
2863
2630
|
description: z.string(),
|
|
2864
|
-
|
|
2865
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2866
|
-
http: z.lazy(() => RunAgentRequestToolHttp$outboundSchema),
|
|
2631
|
+
http: z.lazy(() => AgentToolInputRunHttp$outboundSchema),
|
|
2867
2632
|
requiresApproval: z.boolean().default(false),
|
|
2868
2633
|
}).transform((v) => {
|
|
2869
2634
|
return remap$(v, {
|
|
@@ -2877,192 +2642,203 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
|
|
|
2877
2642
|
* @internal
|
|
2878
2643
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2879
2644
|
*/
|
|
2880
|
-
export namespace
|
|
2881
|
-
/** @deprecated use `
|
|
2882
|
-
export const inboundSchema =
|
|
2883
|
-
/** @deprecated use `
|
|
2884
|
-
export const outboundSchema =
|
|
2885
|
-
/** @deprecated use `
|
|
2886
|
-
export type Outbound =
|
|
2645
|
+
export namespace AgentToolInputRunHTTPToolRun$ {
|
|
2646
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
|
|
2647
|
+
export const inboundSchema = AgentToolInputRunHTTPToolRun$inboundSchema;
|
|
2648
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
|
|
2649
|
+
export const outboundSchema = AgentToolInputRunHTTPToolRun$outboundSchema;
|
|
2650
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
|
|
2651
|
+
export type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
|
|
2887
2652
|
}
|
|
2888
2653
|
|
|
2889
|
-
export function
|
|
2890
|
-
|
|
2654
|
+
export function agentToolInputRunHTTPToolRunToJSON(
|
|
2655
|
+
agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun,
|
|
2891
2656
|
): string {
|
|
2892
2657
|
return JSON.stringify(
|
|
2893
|
-
|
|
2894
|
-
|
|
2658
|
+
AgentToolInputRunHTTPToolRun$outboundSchema.parse(
|
|
2659
|
+
agentToolInputRunHTTPToolRun,
|
|
2895
2660
|
),
|
|
2896
2661
|
);
|
|
2897
2662
|
}
|
|
2898
2663
|
|
|
2899
|
-
export function
|
|
2664
|
+
export function agentToolInputRunHTTPToolRunFromJSON(
|
|
2900
2665
|
jsonString: string,
|
|
2901
|
-
): SafeParseResult<
|
|
2666
|
+
): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError> {
|
|
2902
2667
|
return safeParse(
|
|
2903
2668
|
jsonString,
|
|
2904
|
-
(x) =>
|
|
2905
|
-
`Failed to parse '
|
|
2669
|
+
(x) => AgentToolInputRunHTTPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2670
|
+
`Failed to parse 'AgentToolInputRunHTTPToolRun' from JSON`,
|
|
2906
2671
|
);
|
|
2907
2672
|
}
|
|
2908
2673
|
|
|
2909
2674
|
/** @internal */
|
|
2910
|
-
export const
|
|
2675
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2911
2676
|
z.ZodNativeEnum<
|
|
2912
|
-
typeof
|
|
2677
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2913
2678
|
> = z.nativeEnum(
|
|
2914
|
-
|
|
2679
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
|
|
2915
2680
|
);
|
|
2916
2681
|
|
|
2917
2682
|
/** @internal */
|
|
2918
|
-
export const
|
|
2683
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2919
2684
|
z.ZodNativeEnum<
|
|
2920
|
-
typeof
|
|
2685
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2921
2686
|
> =
|
|
2922
|
-
|
|
2687
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2923
2688
|
|
|
2924
2689
|
/**
|
|
2925
2690
|
* @internal
|
|
2926
2691
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2927
2692
|
*/
|
|
2928
|
-
export namespace
|
|
2929
|
-
/** @deprecated use `
|
|
2693
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2694
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2930
2695
|
export const inboundSchema =
|
|
2931
|
-
|
|
2932
|
-
/** @deprecated use `
|
|
2696
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2697
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2933
2698
|
export const outboundSchema =
|
|
2934
|
-
|
|
2699
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2935
2700
|
}
|
|
2936
2701
|
|
|
2937
2702
|
/** @internal */
|
|
2938
|
-
export const
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2703
|
+
export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
|
|
2704
|
+
z.ZodType<
|
|
2705
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2706
|
+
z.ZodTypeDef,
|
|
2707
|
+
unknown
|
|
2708
|
+
> = z.object({
|
|
2709
|
+
type:
|
|
2710
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2711
|
+
requires_approval: z.boolean().default(false),
|
|
2712
|
+
}).transform((v) => {
|
|
2713
|
+
return remap$(v, {
|
|
2714
|
+
"requires_approval": "requiresApproval",
|
|
2715
|
+
});
|
|
2949
2716
|
});
|
|
2950
|
-
});
|
|
2951
2717
|
|
|
2952
2718
|
/** @internal */
|
|
2953
|
-
export type
|
|
2719
|
+
export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
|
|
2954
2720
|
type: string;
|
|
2955
2721
|
requires_approval: boolean;
|
|
2956
2722
|
};
|
|
2957
2723
|
|
|
2958
2724
|
/** @internal */
|
|
2959
|
-
export const
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2725
|
+
export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
|
|
2726
|
+
z.ZodType<
|
|
2727
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
|
|
2728
|
+
z.ZodTypeDef,
|
|
2729
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool
|
|
2730
|
+
> = z.object({
|
|
2731
|
+
type:
|
|
2732
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2733
|
+
requiresApproval: z.boolean().default(false),
|
|
2734
|
+
}).transform((v) => {
|
|
2735
|
+
return remap$(v, {
|
|
2736
|
+
requiresApproval: "requires_approval",
|
|
2737
|
+
});
|
|
2970
2738
|
});
|
|
2971
|
-
});
|
|
2972
2739
|
|
|
2973
2740
|
/**
|
|
2974
2741
|
* @internal
|
|
2975
2742
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2976
2743
|
*/
|
|
2977
|
-
export namespace
|
|
2978
|
-
/** @deprecated use `
|
|
2979
|
-
export const inboundSchema =
|
|
2980
|
-
|
|
2744
|
+
export namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
|
|
2745
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
2746
|
+
export const inboundSchema =
|
|
2747
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema;
|
|
2748
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
2981
2749
|
export const outboundSchema =
|
|
2982
|
-
|
|
2983
|
-
/** @deprecated use `
|
|
2984
|
-
export type Outbound =
|
|
2750
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema;
|
|
2751
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
|
|
2752
|
+
export type Outbound =
|
|
2753
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
|
|
2985
2754
|
}
|
|
2986
2755
|
|
|
2987
|
-
export function
|
|
2988
|
-
|
|
2756
|
+
export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
|
|
2757
|
+
streamRunAgentAgentToolInputRunCurrentDateTool:
|
|
2758
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2989
2759
|
): string {
|
|
2990
2760
|
return JSON.stringify(
|
|
2991
|
-
|
|
2992
|
-
|
|
2761
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
|
|
2762
|
+
streamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2993
2763
|
),
|
|
2994
2764
|
);
|
|
2995
2765
|
}
|
|
2996
2766
|
|
|
2997
|
-
export function
|
|
2767
|
+
export function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(
|
|
2998
2768
|
jsonString: string,
|
|
2999
|
-
): SafeParseResult<
|
|
3000
|
-
|
|
3001
|
-
|
|
2769
|
+
): SafeParseResult<
|
|
2770
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2771
|
+
SDKValidationError
|
|
2772
|
+
> {
|
|
2773
|
+
return safeParse(
|
|
2774
|
+
jsonString,
|
|
3002
2775
|
(x) =>
|
|
3003
|
-
|
|
3004
|
-
|
|
2776
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema.parse(
|
|
2777
|
+
JSON.parse(x),
|
|
2778
|
+
),
|
|
2779
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunCurrentDateTool' from JSON`,
|
|
3005
2780
|
);
|
|
3006
2781
|
}
|
|
3007
2782
|
|
|
3008
2783
|
/** @internal */
|
|
3009
|
-
export const
|
|
2784
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
3010
2785
|
z.ZodNativeEnum<
|
|
3011
|
-
typeof
|
|
2786
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
3012
2787
|
> = z.nativeEnum(
|
|
3013
|
-
|
|
2788
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
|
|
3014
2789
|
);
|
|
3015
2790
|
|
|
3016
2791
|
/** @internal */
|
|
3017
|
-
export const
|
|
2792
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
3018
2793
|
z.ZodNativeEnum<
|
|
3019
|
-
typeof
|
|
2794
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
3020
2795
|
> =
|
|
3021
|
-
|
|
2796
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
3022
2797
|
|
|
3023
2798
|
/**
|
|
3024
2799
|
* @internal
|
|
3025
2800
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3026
2801
|
*/
|
|
3027
|
-
export namespace
|
|
3028
|
-
/** @deprecated use `
|
|
2802
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2803
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
3029
2804
|
export const inboundSchema =
|
|
3030
|
-
|
|
3031
|
-
/** @deprecated use `
|
|
2805
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2806
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
3032
2807
|
export const outboundSchema =
|
|
3033
|
-
|
|
2808
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
3034
2809
|
}
|
|
3035
2810
|
|
|
3036
2811
|
/** @internal */
|
|
3037
|
-
export const
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
2812
|
+
export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema:
|
|
2813
|
+
z.ZodType<
|
|
2814
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
2815
|
+
z.ZodTypeDef,
|
|
2816
|
+
unknown
|
|
2817
|
+
> = z.object({
|
|
2818
|
+
type:
|
|
2819
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2820
|
+
requires_approval: z.boolean().default(false),
|
|
2821
|
+
}).transform((v) => {
|
|
2822
|
+
return remap$(v, {
|
|
2823
|
+
"requires_approval": "requiresApproval",
|
|
2824
|
+
});
|
|
3048
2825
|
});
|
|
3049
|
-
});
|
|
3050
2826
|
|
|
3051
2827
|
/** @internal */
|
|
3052
|
-
export type
|
|
2828
|
+
export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
|
|
3053
2829
|
type: string;
|
|
3054
2830
|
requires_approval: boolean;
|
|
3055
2831
|
};
|
|
3056
2832
|
|
|
3057
2833
|
/** @internal */
|
|
3058
|
-
export const
|
|
2834
|
+
export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
|
|
3059
2835
|
z.ZodType<
|
|
3060
|
-
|
|
2836
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
|
|
3061
2837
|
z.ZodTypeDef,
|
|
3062
|
-
|
|
2838
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
|
|
3063
2839
|
> = z.object({
|
|
3064
2840
|
type:
|
|
3065
|
-
|
|
2841
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
3066
2842
|
requiresApproval: z.boolean().default(false),
|
|
3067
2843
|
}).transform((v) => {
|
|
3068
2844
|
return remap$(v, {
|
|
@@ -3074,81 +2850,82 @@ export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
|
|
|
3074
2850
|
* @internal
|
|
3075
2851
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3076
2852
|
*/
|
|
3077
|
-
export namespace
|
|
3078
|
-
/** @deprecated use `
|
|
2853
|
+
export namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
|
|
2854
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
3079
2855
|
export const inboundSchema =
|
|
3080
|
-
|
|
3081
|
-
/** @deprecated use `
|
|
2856
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
2857
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
3082
2858
|
export const outboundSchema =
|
|
3083
|
-
|
|
3084
|
-
/** @deprecated use `
|
|
3085
|
-
export type Outbound =
|
|
2859
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
2860
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
|
|
2861
|
+
export type Outbound =
|
|
2862
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
|
|
3086
2863
|
}
|
|
3087
2864
|
|
|
3088
|
-
export function
|
|
3089
|
-
|
|
3090
|
-
|
|
2865
|
+
export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
|
|
2866
|
+
streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
|
|
2867
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3091
2868
|
): string {
|
|
3092
2869
|
return JSON.stringify(
|
|
3093
|
-
|
|
3094
|
-
|
|
2870
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
2871
|
+
streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3095
2872
|
),
|
|
3096
2873
|
);
|
|
3097
2874
|
}
|
|
3098
2875
|
|
|
3099
|
-
export function
|
|
2876
|
+
export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(
|
|
3100
2877
|
jsonString: string,
|
|
3101
2878
|
): SafeParseResult<
|
|
3102
|
-
|
|
2879
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3103
2880
|
SDKValidationError
|
|
3104
2881
|
> {
|
|
3105
2882
|
return safeParse(
|
|
3106
2883
|
jsonString,
|
|
3107
2884
|
(x) =>
|
|
3108
|
-
|
|
2885
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
3109
2886
|
JSON.parse(x),
|
|
3110
2887
|
),
|
|
3111
|
-
`Failed to parse '
|
|
2888
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
|
|
3112
2889
|
);
|
|
3113
2890
|
}
|
|
3114
2891
|
|
|
3115
2892
|
/** @internal */
|
|
3116
|
-
export const
|
|
2893
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
3117
2894
|
z.ZodNativeEnum<
|
|
3118
|
-
typeof
|
|
2895
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3119
2896
|
> = z.nativeEnum(
|
|
3120
|
-
|
|
2897
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
|
|
3121
2898
|
);
|
|
3122
2899
|
|
|
3123
2900
|
/** @internal */
|
|
3124
|
-
export const
|
|
2901
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
3125
2902
|
z.ZodNativeEnum<
|
|
3126
|
-
typeof
|
|
2903
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3127
2904
|
> =
|
|
3128
|
-
|
|
2905
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
3129
2906
|
|
|
3130
2907
|
/**
|
|
3131
2908
|
* @internal
|
|
3132
2909
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3133
2910
|
*/
|
|
3134
|
-
export namespace
|
|
3135
|
-
/** @deprecated use `
|
|
2911
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2912
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
3136
2913
|
export const inboundSchema =
|
|
3137
|
-
|
|
3138
|
-
/** @deprecated use `
|
|
2914
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2915
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
3139
2916
|
export const outboundSchema =
|
|
3140
|
-
|
|
2917
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
3141
2918
|
}
|
|
3142
2919
|
|
|
3143
2920
|
/** @internal */
|
|
3144
|
-
export const
|
|
2921
|
+
export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
|
|
3145
2922
|
z.ZodType<
|
|
3146
|
-
|
|
2923
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3147
2924
|
z.ZodTypeDef,
|
|
3148
2925
|
unknown
|
|
3149
2926
|
> = z.object({
|
|
3150
2927
|
type:
|
|
3151
|
-
|
|
2928
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
3152
2929
|
requires_approval: z.boolean().default(false),
|
|
3153
2930
|
}).transform((v) => {
|
|
3154
2931
|
return remap$(v, {
|
|
@@ -3157,20 +2934,21 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
|
|
|
3157
2934
|
});
|
|
3158
2935
|
|
|
3159
2936
|
/** @internal */
|
|
3160
|
-
export type
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
2937
|
+
export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
|
|
2938
|
+
{
|
|
2939
|
+
type: string;
|
|
2940
|
+
requires_approval: boolean;
|
|
2941
|
+
};
|
|
3164
2942
|
|
|
3165
2943
|
/** @internal */
|
|
3166
|
-
export const
|
|
2944
|
+
export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
|
|
3167
2945
|
z.ZodType<
|
|
3168
|
-
|
|
2946
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
|
|
3169
2947
|
z.ZodTypeDef,
|
|
3170
|
-
|
|
2948
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
|
|
3171
2949
|
> = z.object({
|
|
3172
2950
|
type:
|
|
3173
|
-
|
|
2951
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
3174
2952
|
requiresApproval: z.boolean().default(false),
|
|
3175
2953
|
}).transform((v) => {
|
|
3176
2954
|
return remap$(v, {
|
|
@@ -3182,187 +2960,187 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
|
|
|
3182
2960
|
* @internal
|
|
3183
2961
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3184
2962
|
*/
|
|
3185
|
-
export namespace
|
|
3186
|
-
/** @deprecated use `
|
|
2963
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
|
|
2964
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
3187
2965
|
export const inboundSchema =
|
|
3188
|
-
|
|
3189
|
-
/** @deprecated use `
|
|
2966
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
2967
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
3190
2968
|
export const outboundSchema =
|
|
3191
|
-
|
|
3192
|
-
/** @deprecated use `
|
|
3193
|
-
export type Outbound =
|
|
2969
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
2970
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2971
|
+
export type Outbound =
|
|
2972
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
|
|
3194
2973
|
}
|
|
3195
2974
|
|
|
3196
|
-
export function
|
|
3197
|
-
|
|
3198
|
-
|
|
2975
|
+
export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
|
|
2976
|
+
streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
|
|
2977
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3199
2978
|
): string {
|
|
3200
2979
|
return JSON.stringify(
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
),
|
|
2980
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
2981
|
+
.parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
|
|
3204
2982
|
);
|
|
3205
2983
|
}
|
|
3206
2984
|
|
|
3207
|
-
export function
|
|
2985
|
+
export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
|
|
3208
2986
|
jsonString: string,
|
|
3209
2987
|
): SafeParseResult<
|
|
3210
|
-
|
|
2988
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3211
2989
|
SDKValidationError
|
|
3212
2990
|
> {
|
|
3213
2991
|
return safeParse(
|
|
3214
2992
|
jsonString,
|
|
3215
2993
|
(x) =>
|
|
3216
|
-
|
|
3217
|
-
JSON.parse(x),
|
|
3218
|
-
|
|
3219
|
-
`Failed to parse 'RunAgentRequestToolRetrieveKnowledgeBasesTool' from JSON`,
|
|
2994
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
2995
|
+
.parse(JSON.parse(x)),
|
|
2996
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
|
|
3220
2997
|
);
|
|
3221
2998
|
}
|
|
3222
2999
|
|
|
3223
3000
|
/** @internal */
|
|
3224
|
-
export const
|
|
3001
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
3225
3002
|
z.ZodNativeEnum<
|
|
3226
|
-
typeof
|
|
3003
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3227
3004
|
> = z.nativeEnum(
|
|
3228
|
-
|
|
3005
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
|
|
3229
3006
|
);
|
|
3230
3007
|
|
|
3231
3008
|
/** @internal */
|
|
3232
|
-
export const
|
|
3009
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
3233
3010
|
z.ZodNativeEnum<
|
|
3234
|
-
typeof
|
|
3011
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3235
3012
|
> =
|
|
3236
|
-
|
|
3013
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3237
3014
|
|
|
3238
3015
|
/**
|
|
3239
3016
|
* @internal
|
|
3240
3017
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3241
3018
|
*/
|
|
3242
|
-
export namespace
|
|
3243
|
-
/** @deprecated use `
|
|
3019
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
|
|
3020
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
3244
3021
|
export const inboundSchema =
|
|
3245
|
-
|
|
3246
|
-
/** @deprecated use `
|
|
3022
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3023
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
3247
3024
|
export const outboundSchema =
|
|
3248
|
-
|
|
3025
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
3249
3026
|
}
|
|
3250
3027
|
|
|
3251
3028
|
/** @internal */
|
|
3252
|
-
export const
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3029
|
+
export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema:
|
|
3030
|
+
z.ZodType<
|
|
3031
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3032
|
+
z.ZodTypeDef,
|
|
3033
|
+
unknown
|
|
3034
|
+
> = z.object({
|
|
3035
|
+
type:
|
|
3036
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
3037
|
+
requires_approval: z.boolean().default(false),
|
|
3038
|
+
}).transform((v) => {
|
|
3039
|
+
return remap$(v, {
|
|
3040
|
+
"requires_approval": "requiresApproval",
|
|
3041
|
+
});
|
|
3263
3042
|
});
|
|
3264
|
-
});
|
|
3265
3043
|
|
|
3266
3044
|
/** @internal */
|
|
3267
|
-
export type
|
|
3045
|
+
export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
|
|
3268
3046
|
type: string;
|
|
3269
3047
|
requires_approval: boolean;
|
|
3270
3048
|
};
|
|
3271
3049
|
|
|
3272
3050
|
/** @internal */
|
|
3273
|
-
export const
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3051
|
+
export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
|
|
3052
|
+
z.ZodType<
|
|
3053
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
|
|
3054
|
+
z.ZodTypeDef,
|
|
3055
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
|
|
3056
|
+
> = z.object({
|
|
3057
|
+
type:
|
|
3058
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
3059
|
+
requiresApproval: z.boolean().default(false),
|
|
3060
|
+
}).transform((v) => {
|
|
3061
|
+
return remap$(v, {
|
|
3062
|
+
requiresApproval: "requires_approval",
|
|
3063
|
+
});
|
|
3284
3064
|
});
|
|
3285
|
-
});
|
|
3286
3065
|
|
|
3287
3066
|
/**
|
|
3288
3067
|
* @internal
|
|
3289
3068
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3290
3069
|
*/
|
|
3291
|
-
export namespace
|
|
3292
|
-
/** @deprecated use `
|
|
3070
|
+
export namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
|
|
3071
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
3293
3072
|
export const inboundSchema =
|
|
3294
|
-
|
|
3295
|
-
/** @deprecated use `
|
|
3073
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
3074
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
3296
3075
|
export const outboundSchema =
|
|
3297
|
-
|
|
3298
|
-
/** @deprecated use `
|
|
3299
|
-
export type Outbound =
|
|
3076
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
3077
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
|
|
3078
|
+
export type Outbound =
|
|
3079
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
|
|
3300
3080
|
}
|
|
3301
3081
|
|
|
3302
|
-
export function
|
|
3303
|
-
|
|
3304
|
-
|
|
3082
|
+
export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
|
|
3083
|
+
streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
|
|
3084
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3305
3085
|
): string {
|
|
3306
3086
|
return JSON.stringify(
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
),
|
|
3087
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
3088
|
+
.parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
|
|
3310
3089
|
);
|
|
3311
3090
|
}
|
|
3312
3091
|
|
|
3313
|
-
export function
|
|
3092
|
+
export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(
|
|
3314
3093
|
jsonString: string,
|
|
3315
3094
|
): SafeParseResult<
|
|
3316
|
-
|
|
3095
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3317
3096
|
SDKValidationError
|
|
3318
3097
|
> {
|
|
3319
3098
|
return safeParse(
|
|
3320
3099
|
jsonString,
|
|
3321
3100
|
(x) =>
|
|
3322
|
-
|
|
3323
|
-
JSON.parse(x),
|
|
3324
|
-
|
|
3325
|
-
`Failed to parse 'RunAgentRequestToolDeleteMemoryStoreTool' from JSON`,
|
|
3101
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
3102
|
+
.parse(JSON.parse(x)),
|
|
3103
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
|
|
3326
3104
|
);
|
|
3327
3105
|
}
|
|
3328
3106
|
|
|
3329
3107
|
/** @internal */
|
|
3330
|
-
export const
|
|
3108
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
|
|
3331
3109
|
z.ZodNativeEnum<
|
|
3332
|
-
typeof
|
|
3110
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
3333
3111
|
> = z.nativeEnum(
|
|
3334
|
-
|
|
3112
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type,
|
|
3335
3113
|
);
|
|
3336
3114
|
|
|
3337
3115
|
/** @internal */
|
|
3338
|
-
export const
|
|
3116
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
|
|
3339
3117
|
z.ZodNativeEnum<
|
|
3340
|
-
typeof
|
|
3118
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
3341
3119
|
> =
|
|
3342
|
-
|
|
3120
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
3343
3121
|
|
|
3344
3122
|
/**
|
|
3345
3123
|
* @internal
|
|
3346
3124
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3347
3125
|
*/
|
|
3348
|
-
export namespace
|
|
3349
|
-
/** @deprecated use `
|
|
3126
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
|
|
3127
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
|
|
3350
3128
|
export const inboundSchema =
|
|
3351
|
-
|
|
3352
|
-
/** @deprecated use `
|
|
3129
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
3130
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
|
|
3353
3131
|
export const outboundSchema =
|
|
3354
|
-
|
|
3132
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
|
|
3355
3133
|
}
|
|
3356
3134
|
|
|
3357
3135
|
/** @internal */
|
|
3358
|
-
export const
|
|
3136
|
+
export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema:
|
|
3359
3137
|
z.ZodType<
|
|
3360
|
-
|
|
3138
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3361
3139
|
z.ZodTypeDef,
|
|
3362
3140
|
unknown
|
|
3363
3141
|
> = z.object({
|
|
3364
3142
|
type:
|
|
3365
|
-
|
|
3143
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
|
|
3366
3144
|
requires_approval: z.boolean().default(false),
|
|
3367
3145
|
}).transform((v) => {
|
|
3368
3146
|
return remap$(v, {
|
|
@@ -3371,20 +3149,20 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
|
|
|
3371
3149
|
});
|
|
3372
3150
|
|
|
3373
3151
|
/** @internal */
|
|
3374
|
-
export type
|
|
3152
|
+
export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
|
|
3375
3153
|
type: string;
|
|
3376
3154
|
requires_approval: boolean;
|
|
3377
3155
|
};
|
|
3378
3156
|
|
|
3379
3157
|
/** @internal */
|
|
3380
|
-
export const
|
|
3158
|
+
export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
|
|
3381
3159
|
z.ZodType<
|
|
3382
|
-
|
|
3160
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
|
|
3383
3161
|
z.ZodTypeDef,
|
|
3384
|
-
|
|
3162
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
|
|
3385
3163
|
> = z.object({
|
|
3386
3164
|
type:
|
|
3387
|
-
|
|
3165
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
|
|
3388
3166
|
requiresApproval: z.boolean().default(false),
|
|
3389
3167
|
}).transform((v) => {
|
|
3390
3168
|
return remap$(v, {
|
|
@@ -3396,726 +3174,789 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
|
|
|
3396
3174
|
* @internal
|
|
3397
3175
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3398
3176
|
*/
|
|
3399
|
-
export namespace
|
|
3400
|
-
/** @deprecated use `
|
|
3177
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
|
|
3178
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3401
3179
|
export const inboundSchema =
|
|
3402
|
-
|
|
3403
|
-
/** @deprecated use `
|
|
3180
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
3181
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3404
3182
|
export const outboundSchema =
|
|
3405
|
-
|
|
3406
|
-
/** @deprecated use `
|
|
3407
|
-
export type Outbound =
|
|
3183
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
3184
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
|
|
3185
|
+
export type Outbound =
|
|
3186
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
|
|
3408
3187
|
}
|
|
3409
3188
|
|
|
3410
|
-
export function
|
|
3411
|
-
|
|
3412
|
-
|
|
3189
|
+
export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
|
|
3190
|
+
streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
|
|
3191
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3413
3192
|
): string {
|
|
3414
3193
|
return JSON.stringify(
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
),
|
|
3194
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
3195
|
+
.parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
|
|
3418
3196
|
);
|
|
3419
3197
|
}
|
|
3420
3198
|
|
|
3421
|
-
export function
|
|
3199
|
+
export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(
|
|
3422
3200
|
jsonString: string,
|
|
3423
3201
|
): SafeParseResult<
|
|
3424
|
-
|
|
3202
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3425
3203
|
SDKValidationError
|
|
3426
3204
|
> {
|
|
3427
3205
|
return safeParse(
|
|
3428
3206
|
jsonString,
|
|
3429
3207
|
(x) =>
|
|
3430
|
-
|
|
3431
|
-
JSON.parse(x),
|
|
3432
|
-
|
|
3433
|
-
`Failed to parse 'RunAgentRequestToolRetrieveMemoryStoresTool' from JSON`,
|
|
3208
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
3209
|
+
.parse(JSON.parse(x)),
|
|
3210
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
|
|
3434
3211
|
);
|
|
3435
3212
|
}
|
|
3436
3213
|
|
|
3437
3214
|
/** @internal */
|
|
3438
|
-
export const
|
|
3215
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3439
3216
|
z.ZodNativeEnum<
|
|
3440
|
-
typeof
|
|
3217
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3441
3218
|
> = z.nativeEnum(
|
|
3442
|
-
|
|
3219
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
|
|
3443
3220
|
);
|
|
3444
3221
|
|
|
3445
3222
|
/** @internal */
|
|
3446
|
-
export const
|
|
3223
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3447
3224
|
z.ZodNativeEnum<
|
|
3448
|
-
typeof
|
|
3225
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3449
3226
|
> =
|
|
3450
|
-
|
|
3227
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3451
3228
|
|
|
3452
3229
|
/**
|
|
3453
3230
|
* @internal
|
|
3454
3231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3455
3232
|
*/
|
|
3456
|
-
export namespace
|
|
3457
|
-
/** @deprecated use `
|
|
3233
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
|
|
3234
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3458
3235
|
export const inboundSchema =
|
|
3459
|
-
|
|
3460
|
-
/** @deprecated use `
|
|
3236
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3237
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3461
3238
|
export const outboundSchema =
|
|
3462
|
-
|
|
3239
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3463
3240
|
}
|
|
3464
3241
|
|
|
3465
3242
|
/** @internal */
|
|
3466
|
-
export const
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3243
|
+
export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
|
|
3244
|
+
z.ZodType<
|
|
3245
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3246
|
+
z.ZodTypeDef,
|
|
3247
|
+
unknown
|
|
3248
|
+
> = z.object({
|
|
3249
|
+
type:
|
|
3250
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3251
|
+
requires_approval: z.boolean().default(false),
|
|
3252
|
+
}).transform((v) => {
|
|
3253
|
+
return remap$(v, {
|
|
3254
|
+
"requires_approval": "requiresApproval",
|
|
3255
|
+
});
|
|
3477
3256
|
});
|
|
3478
|
-
});
|
|
3479
3257
|
|
|
3480
3258
|
/** @internal */
|
|
3481
|
-
export type
|
|
3259
|
+
export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
|
|
3482
3260
|
type: string;
|
|
3483
3261
|
requires_approval: boolean;
|
|
3484
3262
|
};
|
|
3485
3263
|
|
|
3486
3264
|
/** @internal */
|
|
3487
|
-
export const
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3265
|
+
export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
|
|
3266
|
+
z.ZodType<
|
|
3267
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
|
|
3268
|
+
z.ZodTypeDef,
|
|
3269
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
|
|
3270
|
+
> = z.object({
|
|
3271
|
+
type:
|
|
3272
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3273
|
+
requiresApproval: z.boolean().default(false),
|
|
3274
|
+
}).transform((v) => {
|
|
3275
|
+
return remap$(v, {
|
|
3276
|
+
requiresApproval: "requires_approval",
|
|
3277
|
+
});
|
|
3498
3278
|
});
|
|
3499
|
-
});
|
|
3500
3279
|
|
|
3501
3280
|
/**
|
|
3502
3281
|
* @internal
|
|
3503
3282
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3504
3283
|
*/
|
|
3505
|
-
export namespace
|
|
3506
|
-
/** @deprecated use `
|
|
3284
|
+
export namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
|
|
3285
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
3507
3286
|
export const inboundSchema =
|
|
3508
|
-
|
|
3509
|
-
/** @deprecated use `
|
|
3287
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
3288
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
3510
3289
|
export const outboundSchema =
|
|
3511
|
-
|
|
3512
|
-
/** @deprecated use `
|
|
3513
|
-
export type Outbound =
|
|
3290
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
3291
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
|
|
3292
|
+
export type Outbound =
|
|
3293
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
|
|
3514
3294
|
}
|
|
3515
3295
|
|
|
3516
|
-
export function
|
|
3517
|
-
|
|
3518
|
-
|
|
3296
|
+
export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
|
|
3297
|
+
streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
|
|
3298
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3519
3299
|
): string {
|
|
3520
3300
|
return JSON.stringify(
|
|
3521
|
-
|
|
3522
|
-
|
|
3301
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
|
|
3302
|
+
streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3523
3303
|
),
|
|
3524
3304
|
);
|
|
3525
3305
|
}
|
|
3526
3306
|
|
|
3527
|
-
export function
|
|
3307
|
+
export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(
|
|
3528
3308
|
jsonString: string,
|
|
3529
3309
|
): SafeParseResult<
|
|
3530
|
-
|
|
3310
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3531
3311
|
SDKValidationError
|
|
3532
3312
|
> {
|
|
3533
3313
|
return safeParse(
|
|
3534
3314
|
jsonString,
|
|
3535
3315
|
(x) =>
|
|
3536
|
-
|
|
3316
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(
|
|
3537
3317
|
JSON.parse(x),
|
|
3538
3318
|
),
|
|
3539
|
-
`Failed to parse '
|
|
3319
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunWriteMemoryStoreTool' from JSON`,
|
|
3540
3320
|
);
|
|
3541
3321
|
}
|
|
3542
3322
|
|
|
3543
3323
|
/** @internal */
|
|
3544
|
-
export const
|
|
3324
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3545
3325
|
z.ZodNativeEnum<
|
|
3546
|
-
typeof
|
|
3326
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3547
3327
|
> = z.nativeEnum(
|
|
3548
|
-
|
|
3328
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
|
|
3549
3329
|
);
|
|
3550
3330
|
|
|
3551
3331
|
/** @internal */
|
|
3552
|
-
export const
|
|
3332
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3553
3333
|
z.ZodNativeEnum<
|
|
3554
|
-
typeof
|
|
3334
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3555
3335
|
> =
|
|
3556
|
-
|
|
3336
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3557
3337
|
|
|
3558
3338
|
/**
|
|
3559
3339
|
* @internal
|
|
3560
3340
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3561
3341
|
*/
|
|
3562
|
-
export namespace
|
|
3563
|
-
/** @deprecated use `
|
|
3342
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
|
|
3343
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3564
3344
|
export const inboundSchema =
|
|
3565
|
-
|
|
3566
|
-
/** @deprecated use `
|
|
3345
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3346
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3567
3347
|
export const outboundSchema =
|
|
3568
|
-
|
|
3348
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3569
3349
|
}
|
|
3570
3350
|
|
|
3571
3351
|
/** @internal */
|
|
3572
|
-
export const
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3352
|
+
export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
|
|
3353
|
+
z.ZodType<
|
|
3354
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3355
|
+
z.ZodTypeDef,
|
|
3356
|
+
unknown
|
|
3357
|
+
> = z.object({
|
|
3358
|
+
type:
|
|
3359
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3360
|
+
requires_approval: z.boolean().default(false),
|
|
3361
|
+
}).transform((v) => {
|
|
3362
|
+
return remap$(v, {
|
|
3363
|
+
"requires_approval": "requiresApproval",
|
|
3364
|
+
});
|
|
3583
3365
|
});
|
|
3584
|
-
});
|
|
3585
3366
|
|
|
3586
3367
|
/** @internal */
|
|
3587
|
-
export type
|
|
3368
|
+
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
|
|
3588
3369
|
type: string;
|
|
3589
3370
|
requires_approval: boolean;
|
|
3590
3371
|
};
|
|
3591
3372
|
|
|
3592
3373
|
/** @internal */
|
|
3593
|
-
export const
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3374
|
+
export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
|
|
3375
|
+
z.ZodType<
|
|
3376
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
|
|
3377
|
+
z.ZodTypeDef,
|
|
3378
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
|
|
3379
|
+
> = z.object({
|
|
3380
|
+
type:
|
|
3381
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3382
|
+
requiresApproval: z.boolean().default(false),
|
|
3383
|
+
}).transform((v) => {
|
|
3384
|
+
return remap$(v, {
|
|
3385
|
+
requiresApproval: "requires_approval",
|
|
3386
|
+
});
|
|
3604
3387
|
});
|
|
3605
|
-
});
|
|
3606
3388
|
|
|
3607
3389
|
/**
|
|
3608
3390
|
* @internal
|
|
3609
3391
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3610
3392
|
*/
|
|
3611
|
-
export namespace
|
|
3612
|
-
/** @deprecated use `
|
|
3393
|
+
export namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
|
|
3394
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
3613
3395
|
export const inboundSchema =
|
|
3614
|
-
|
|
3615
|
-
/** @deprecated use `
|
|
3396
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
3397
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
3616
3398
|
export const outboundSchema =
|
|
3617
|
-
|
|
3618
|
-
/** @deprecated use `
|
|
3619
|
-
export type Outbound =
|
|
3399
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
3400
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
|
|
3401
|
+
export type Outbound =
|
|
3402
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
|
|
3620
3403
|
}
|
|
3621
3404
|
|
|
3622
|
-
export function
|
|
3623
|
-
|
|
3624
|
-
|
|
3405
|
+
export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
|
|
3406
|
+
streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
|
|
3407
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3625
3408
|
): string {
|
|
3626
3409
|
return JSON.stringify(
|
|
3627
|
-
|
|
3628
|
-
|
|
3410
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
|
|
3411
|
+
streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3629
3412
|
),
|
|
3630
3413
|
);
|
|
3631
3414
|
}
|
|
3632
3415
|
|
|
3633
|
-
export function
|
|
3416
|
+
export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(
|
|
3634
3417
|
jsonString: string,
|
|
3635
3418
|
): SafeParseResult<
|
|
3636
|
-
|
|
3419
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3637
3420
|
SDKValidationError
|
|
3638
3421
|
> {
|
|
3639
3422
|
return safeParse(
|
|
3640
3423
|
jsonString,
|
|
3641
3424
|
(x) =>
|
|
3642
|
-
|
|
3425
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(
|
|
3643
3426
|
JSON.parse(x),
|
|
3644
3427
|
),
|
|
3645
|
-
`Failed to parse '
|
|
3428
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunQueryMemoryStoreTool' from JSON`,
|
|
3646
3429
|
);
|
|
3647
3430
|
}
|
|
3648
3431
|
|
|
3649
3432
|
/** @internal */
|
|
3650
|
-
export const
|
|
3433
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
|
|
3651
3434
|
z.ZodNativeEnum<
|
|
3652
|
-
typeof
|
|
3653
|
-
> = z.nativeEnum(
|
|
3654
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType,
|
|
3655
|
-
);
|
|
3435
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3436
|
+
> = z.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
3656
3437
|
|
|
3657
3438
|
/** @internal */
|
|
3658
|
-
export const
|
|
3439
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
|
|
3659
3440
|
z.ZodNativeEnum<
|
|
3660
|
-
typeof
|
|
3661
|
-
> =
|
|
3662
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
|
|
3441
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3442
|
+
> = StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3663
3443
|
|
|
3664
3444
|
/**
|
|
3665
3445
|
* @internal
|
|
3666
3446
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3667
3447
|
*/
|
|
3668
|
-
export namespace
|
|
3669
|
-
/** @deprecated use `
|
|
3448
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
|
|
3449
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3670
3450
|
export const inboundSchema =
|
|
3671
|
-
|
|
3672
|
-
/** @deprecated use `
|
|
3451
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3452
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3673
3453
|
export const outboundSchema =
|
|
3674
|
-
|
|
3454
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
3675
3455
|
}
|
|
3676
3456
|
|
|
3677
3457
|
/** @internal */
|
|
3678
|
-
export const
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3458
|
+
export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
|
|
3459
|
+
z.ZodType<
|
|
3460
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3461
|
+
z.ZodTypeDef,
|
|
3462
|
+
unknown
|
|
3463
|
+
> = z.object({
|
|
3464
|
+
type:
|
|
3465
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
3466
|
+
requires_approval: z.boolean().default(false),
|
|
3467
|
+
}).transform((v) => {
|
|
3468
|
+
return remap$(v, {
|
|
3469
|
+
"requires_approval": "requiresApproval",
|
|
3470
|
+
});
|
|
3689
3471
|
});
|
|
3690
|
-
});
|
|
3691
3472
|
|
|
3692
3473
|
/** @internal */
|
|
3693
|
-
export type
|
|
3474
|
+
export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
|
|
3694
3475
|
type: string;
|
|
3695
3476
|
requires_approval: boolean;
|
|
3696
3477
|
};
|
|
3697
3478
|
|
|
3698
3479
|
/** @internal */
|
|
3699
|
-
export const
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3480
|
+
export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
|
|
3481
|
+
z.ZodType<
|
|
3482
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
|
|
3483
|
+
z.ZodTypeDef,
|
|
3484
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool
|
|
3485
|
+
> = z.object({
|
|
3486
|
+
type:
|
|
3487
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
3488
|
+
requiresApproval: z.boolean().default(false),
|
|
3489
|
+
}).transform((v) => {
|
|
3490
|
+
return remap$(v, {
|
|
3491
|
+
requiresApproval: "requires_approval",
|
|
3492
|
+
});
|
|
3710
3493
|
});
|
|
3711
|
-
});
|
|
3712
3494
|
|
|
3713
3495
|
/**
|
|
3714
3496
|
* @internal
|
|
3715
3497
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3716
3498
|
*/
|
|
3717
|
-
export namespace
|
|
3718
|
-
/** @deprecated use `
|
|
3499
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
|
|
3500
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
3719
3501
|
export const inboundSchema =
|
|
3720
|
-
|
|
3721
|
-
/** @deprecated use `
|
|
3502
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
3503
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
3722
3504
|
export const outboundSchema =
|
|
3723
|
-
|
|
3724
|
-
/** @deprecated use `
|
|
3725
|
-
export type Outbound =
|
|
3505
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
3506
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
|
|
3507
|
+
export type Outbound =
|
|
3508
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
|
|
3726
3509
|
}
|
|
3727
3510
|
|
|
3728
|
-
export function
|
|
3729
|
-
|
|
3511
|
+
export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
|
|
3512
|
+
streamRunAgentAgentToolInputRunRetrieveAgentsTool:
|
|
3513
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3730
3514
|
): string {
|
|
3731
3515
|
return JSON.stringify(
|
|
3732
|
-
|
|
3733
|
-
|
|
3516
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
|
|
3517
|
+
streamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3734
3518
|
),
|
|
3735
3519
|
);
|
|
3736
3520
|
}
|
|
3737
3521
|
|
|
3738
|
-
export function
|
|
3522
|
+
export function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(
|
|
3739
3523
|
jsonString: string,
|
|
3740
|
-
): SafeParseResult<
|
|
3524
|
+
): SafeParseResult<
|
|
3525
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3526
|
+
SDKValidationError
|
|
3527
|
+
> {
|
|
3741
3528
|
return safeParse(
|
|
3742
3529
|
jsonString,
|
|
3743
3530
|
(x) =>
|
|
3744
|
-
|
|
3745
|
-
|
|
3531
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(
|
|
3532
|
+
JSON.parse(x),
|
|
3533
|
+
),
|
|
3534
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveAgentsTool' from JSON`,
|
|
3746
3535
|
);
|
|
3747
3536
|
}
|
|
3748
3537
|
|
|
3749
3538
|
/** @internal */
|
|
3750
|
-
export const
|
|
3751
|
-
z.ZodNativeEnum<typeof
|
|
3752
|
-
.nativeEnum(
|
|
3539
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
|
|
3540
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> = z
|
|
3541
|
+
.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestType);
|
|
3753
3542
|
|
|
3754
3543
|
/** @internal */
|
|
3755
|
-
export const
|
|
3756
|
-
z.ZodNativeEnum<typeof
|
|
3757
|
-
|
|
3544
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
|
|
3545
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> =
|
|
3546
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3758
3547
|
|
|
3759
3548
|
/**
|
|
3760
3549
|
* @internal
|
|
3761
3550
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3762
3551
|
*/
|
|
3763
|
-
export namespace
|
|
3764
|
-
/** @deprecated use `
|
|
3552
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
|
|
3553
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
3765
3554
|
export const inboundSchema =
|
|
3766
|
-
|
|
3767
|
-
/** @deprecated use `
|
|
3555
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3556
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
3768
3557
|
export const outboundSchema =
|
|
3769
|
-
|
|
3558
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
3770
3559
|
}
|
|
3771
3560
|
|
|
3772
3561
|
/** @internal */
|
|
3773
|
-
export const
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3562
|
+
export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
|
|
3563
|
+
z.ZodType<
|
|
3564
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3565
|
+
z.ZodTypeDef,
|
|
3566
|
+
unknown
|
|
3567
|
+
> = z.object({
|
|
3568
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
3569
|
+
requires_approval: z.boolean().default(false),
|
|
3570
|
+
}).transform((v) => {
|
|
3571
|
+
return remap$(v, {
|
|
3572
|
+
"requires_approval": "requiresApproval",
|
|
3573
|
+
});
|
|
3783
3574
|
});
|
|
3784
|
-
});
|
|
3785
3575
|
|
|
3786
3576
|
/** @internal */
|
|
3787
|
-
export type
|
|
3577
|
+
export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
|
|
3788
3578
|
type: string;
|
|
3789
3579
|
requires_approval: boolean;
|
|
3790
3580
|
};
|
|
3791
3581
|
|
|
3792
3582
|
/** @internal */
|
|
3793
|
-
export const
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3583
|
+
export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
|
|
3584
|
+
z.ZodType<
|
|
3585
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
|
|
3586
|
+
z.ZodTypeDef,
|
|
3587
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool
|
|
3588
|
+
> = z.object({
|
|
3589
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
3590
|
+
requiresApproval: z.boolean().default(false),
|
|
3591
|
+
}).transform((v) => {
|
|
3592
|
+
return remap$(v, {
|
|
3593
|
+
requiresApproval: "requires_approval",
|
|
3594
|
+
});
|
|
3803
3595
|
});
|
|
3804
|
-
});
|
|
3805
3596
|
|
|
3806
3597
|
/**
|
|
3807
3598
|
* @internal
|
|
3808
3599
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3809
3600
|
*/
|
|
3810
|
-
export namespace
|
|
3811
|
-
/** @deprecated use `
|
|
3601
|
+
export namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
|
|
3602
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
3812
3603
|
export const inboundSchema =
|
|
3813
|
-
|
|
3814
|
-
/** @deprecated use `
|
|
3604
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
3605
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
3815
3606
|
export const outboundSchema =
|
|
3816
|
-
|
|
3817
|
-
/** @deprecated use `
|
|
3818
|
-
export type Outbound =
|
|
3607
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
3608
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
|
|
3609
|
+
export type Outbound =
|
|
3610
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
|
|
3819
3611
|
}
|
|
3820
3612
|
|
|
3821
|
-
export function
|
|
3822
|
-
|
|
3613
|
+
export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
|
|
3614
|
+
streamRunAgentAgentToolInputRunCallSubAgentTool:
|
|
3615
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3823
3616
|
): string {
|
|
3824
3617
|
return JSON.stringify(
|
|
3825
|
-
|
|
3826
|
-
|
|
3618
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
|
|
3619
|
+
streamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3827
3620
|
),
|
|
3828
3621
|
);
|
|
3829
3622
|
}
|
|
3830
3623
|
|
|
3831
|
-
export function
|
|
3624
|
+
export function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(
|
|
3832
3625
|
jsonString: string,
|
|
3833
|
-
): SafeParseResult<
|
|
3626
|
+
): SafeParseResult<
|
|
3627
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3628
|
+
SDKValidationError
|
|
3629
|
+
> {
|
|
3834
3630
|
return safeParse(
|
|
3835
3631
|
jsonString,
|
|
3836
3632
|
(x) =>
|
|
3837
|
-
|
|
3838
|
-
|
|
3633
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema.parse(
|
|
3634
|
+
JSON.parse(x),
|
|
3635
|
+
),
|
|
3636
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunCallSubAgentTool' from JSON`,
|
|
3839
3637
|
);
|
|
3840
3638
|
}
|
|
3841
3639
|
|
|
3842
3640
|
/** @internal */
|
|
3843
|
-
export const
|
|
3844
|
-
z.ZodNativeEnum<typeof
|
|
3845
|
-
.nativeEnum(
|
|
3641
|
+
export const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema:
|
|
3642
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> = z
|
|
3643
|
+
.nativeEnum(StreamRunAgentAgentToolInputRunAgentsType);
|
|
3846
3644
|
|
|
3847
3645
|
/** @internal */
|
|
3848
|
-
export const
|
|
3849
|
-
z.ZodNativeEnum<typeof
|
|
3850
|
-
|
|
3646
|
+
export const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema:
|
|
3647
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> =
|
|
3648
|
+
StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3851
3649
|
|
|
3852
3650
|
/**
|
|
3853
3651
|
* @internal
|
|
3854
3652
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3855
3653
|
*/
|
|
3856
|
-
export namespace
|
|
3857
|
-
/** @deprecated use `
|
|
3654
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsType$ {
|
|
3655
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
3858
3656
|
export const inboundSchema =
|
|
3859
|
-
|
|
3860
|
-
/** @deprecated use `
|
|
3657
|
+
StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3658
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
3861
3659
|
export const outboundSchema =
|
|
3862
|
-
|
|
3660
|
+
StreamRunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
3863
3661
|
}
|
|
3864
3662
|
|
|
3865
3663
|
/** @internal */
|
|
3866
|
-
export const
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3664
|
+
export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
|
|
3665
|
+
z.ZodType<
|
|
3666
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3667
|
+
z.ZodTypeDef,
|
|
3668
|
+
unknown
|
|
3669
|
+
> = z.object({
|
|
3670
|
+
type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
3671
|
+
requires_approval: z.boolean().default(false),
|
|
3672
|
+
}).transform((v) => {
|
|
3673
|
+
return remap$(v, {
|
|
3674
|
+
"requires_approval": "requiresApproval",
|
|
3675
|
+
});
|
|
3876
3676
|
});
|
|
3877
|
-
});
|
|
3878
3677
|
|
|
3879
3678
|
/** @internal */
|
|
3880
|
-
export type
|
|
3679
|
+
export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
|
|
3881
3680
|
type: string;
|
|
3882
3681
|
requires_approval: boolean;
|
|
3883
3682
|
};
|
|
3884
3683
|
|
|
3885
3684
|
/** @internal */
|
|
3886
|
-
export const
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3685
|
+
export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
|
|
3686
|
+
z.ZodType<
|
|
3687
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
|
|
3688
|
+
z.ZodTypeDef,
|
|
3689
|
+
StreamRunAgentAgentToolInputRunWebScraperTool
|
|
3690
|
+
> = z.object({
|
|
3691
|
+
type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
3692
|
+
requiresApproval: z.boolean().default(false),
|
|
3693
|
+
}).transform((v) => {
|
|
3694
|
+
return remap$(v, {
|
|
3695
|
+
requiresApproval: "requires_approval",
|
|
3696
|
+
});
|
|
3896
3697
|
});
|
|
3897
|
-
});
|
|
3898
3698
|
|
|
3899
3699
|
/**
|
|
3900
3700
|
* @internal
|
|
3901
3701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3902
3702
|
*/
|
|
3903
|
-
export namespace
|
|
3904
|
-
/** @deprecated use `
|
|
3905
|
-
export const inboundSchema =
|
|
3906
|
-
|
|
3703
|
+
export namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
|
|
3704
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
3705
|
+
export const inboundSchema =
|
|
3706
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema;
|
|
3707
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
3907
3708
|
export const outboundSchema =
|
|
3908
|
-
|
|
3909
|
-
/** @deprecated use `
|
|
3910
|
-
export type Outbound =
|
|
3709
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema;
|
|
3710
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
|
|
3711
|
+
export type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
|
|
3911
3712
|
}
|
|
3912
3713
|
|
|
3913
|
-
export function
|
|
3914
|
-
|
|
3714
|
+
export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
|
|
3715
|
+
streamRunAgentAgentToolInputRunWebScraperTool:
|
|
3716
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3915
3717
|
): string {
|
|
3916
3718
|
return JSON.stringify(
|
|
3917
|
-
|
|
3918
|
-
|
|
3719
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
|
|
3720
|
+
streamRunAgentAgentToolInputRunWebScraperTool,
|
|
3919
3721
|
),
|
|
3920
3722
|
);
|
|
3921
3723
|
}
|
|
3922
3724
|
|
|
3923
|
-
export function
|
|
3725
|
+
export function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(
|
|
3924
3726
|
jsonString: string,
|
|
3925
|
-
): SafeParseResult<
|
|
3727
|
+
): SafeParseResult<
|
|
3728
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3729
|
+
SDKValidationError
|
|
3730
|
+
> {
|
|
3926
3731
|
return safeParse(
|
|
3927
3732
|
jsonString,
|
|
3928
|
-
(x) =>
|
|
3929
|
-
|
|
3733
|
+
(x) =>
|
|
3734
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema.parse(
|
|
3735
|
+
JSON.parse(x),
|
|
3736
|
+
),
|
|
3737
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunWebScraperTool' from JSON`,
|
|
3930
3738
|
);
|
|
3931
3739
|
}
|
|
3932
3740
|
|
|
3933
3741
|
/** @internal */
|
|
3934
|
-
export const
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
);
|
|
3742
|
+
export const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3743
|
+
typeof StreamRunAgentAgentToolInputRunType
|
|
3744
|
+
> = z.nativeEnum(StreamRunAgentAgentToolInputRunType);
|
|
3938
3745
|
|
|
3939
3746
|
/** @internal */
|
|
3940
|
-
export const
|
|
3941
|
-
z.ZodNativeEnum<typeof
|
|
3942
|
-
|
|
3747
|
+
export const StreamRunAgentAgentToolInputRunType$outboundSchema:
|
|
3748
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType> =
|
|
3749
|
+
StreamRunAgentAgentToolInputRunType$inboundSchema;
|
|
3943
3750
|
|
|
3944
3751
|
/**
|
|
3945
3752
|
* @internal
|
|
3946
3753
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3947
3754
|
*/
|
|
3948
|
-
export namespace
|
|
3949
|
-
/** @deprecated use `
|
|
3755
|
+
export namespace StreamRunAgentAgentToolInputRunType$ {
|
|
3756
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
3950
3757
|
export const inboundSchema =
|
|
3951
|
-
|
|
3952
|
-
/** @deprecated use `
|
|
3758
|
+
StreamRunAgentAgentToolInputRunType$inboundSchema;
|
|
3759
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
3953
3760
|
export const outboundSchema =
|
|
3954
|
-
|
|
3761
|
+
StreamRunAgentAgentToolInputRunType$outboundSchema;
|
|
3955
3762
|
}
|
|
3956
3763
|
|
|
3957
3764
|
/** @internal */
|
|
3958
|
-
export const
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3765
|
+
export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
|
|
3766
|
+
z.ZodType<
|
|
3767
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
3768
|
+
z.ZodTypeDef,
|
|
3769
|
+
unknown
|
|
3770
|
+
> = z.object({
|
|
3771
|
+
type: StreamRunAgentAgentToolInputRunType$inboundSchema,
|
|
3772
|
+
requires_approval: z.boolean().default(false),
|
|
3773
|
+
}).transform((v) => {
|
|
3774
|
+
return remap$(v, {
|
|
3775
|
+
"requires_approval": "requiresApproval",
|
|
3776
|
+
});
|
|
3968
3777
|
});
|
|
3969
|
-
});
|
|
3970
3778
|
|
|
3971
3779
|
/** @internal */
|
|
3972
|
-
export type
|
|
3780
|
+
export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
|
|
3973
3781
|
type: string;
|
|
3974
3782
|
requires_approval: boolean;
|
|
3975
3783
|
};
|
|
3976
3784
|
|
|
3977
3785
|
/** @internal */
|
|
3978
|
-
export const
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3786
|
+
export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
|
|
3787
|
+
z.ZodType<
|
|
3788
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
|
|
3789
|
+
z.ZodTypeDef,
|
|
3790
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
3791
|
+
> = z.object({
|
|
3792
|
+
type: StreamRunAgentAgentToolInputRunType$outboundSchema,
|
|
3793
|
+
requiresApproval: z.boolean().default(false),
|
|
3794
|
+
}).transform((v) => {
|
|
3795
|
+
return remap$(v, {
|
|
3796
|
+
requiresApproval: "requires_approval",
|
|
3797
|
+
});
|
|
3988
3798
|
});
|
|
3989
|
-
});
|
|
3990
3799
|
|
|
3991
3800
|
/**
|
|
3992
3801
|
* @internal
|
|
3993
3802
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3994
3803
|
*/
|
|
3995
|
-
export namespace
|
|
3996
|
-
/** @deprecated use `
|
|
3804
|
+
export namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
|
|
3805
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
3997
3806
|
export const inboundSchema =
|
|
3998
|
-
|
|
3999
|
-
/** @deprecated use `
|
|
3807
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
3808
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
4000
3809
|
export const outboundSchema =
|
|
4001
|
-
|
|
4002
|
-
/** @deprecated use `
|
|
4003
|
-
export type Outbound =
|
|
3810
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
3811
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
|
|
3812
|
+
export type Outbound =
|
|
3813
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
|
|
4004
3814
|
}
|
|
4005
3815
|
|
|
4006
|
-
export function
|
|
4007
|
-
|
|
3816
|
+
export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
|
|
3817
|
+
streamRunAgentAgentToolInputRunGoogleSearchTool:
|
|
3818
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
4008
3819
|
): string {
|
|
4009
3820
|
return JSON.stringify(
|
|
4010
|
-
|
|
4011
|
-
|
|
3821
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
|
|
3822
|
+
streamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
4012
3823
|
),
|
|
4013
3824
|
);
|
|
4014
3825
|
}
|
|
4015
3826
|
|
|
4016
|
-
export function
|
|
3827
|
+
export function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
|
|
4017
3828
|
jsonString: string,
|
|
4018
|
-
): SafeParseResult<
|
|
3829
|
+
): SafeParseResult<
|
|
3830
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
3831
|
+
SDKValidationError
|
|
3832
|
+
> {
|
|
4019
3833
|
return safeParse(
|
|
4020
3834
|
jsonString,
|
|
4021
3835
|
(x) =>
|
|
4022
|
-
|
|
4023
|
-
|
|
3836
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema.parse(
|
|
3837
|
+
JSON.parse(x),
|
|
3838
|
+
),
|
|
3839
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunGoogleSearchTool' from JSON`,
|
|
4024
3840
|
);
|
|
4025
3841
|
}
|
|
4026
3842
|
|
|
4027
3843
|
/** @internal */
|
|
4028
|
-
export const
|
|
4029
|
-
|
|
3844
|
+
export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
|
|
3845
|
+
StreamRunAgentAgentToolInputRun,
|
|
4030
3846
|
z.ZodTypeDef,
|
|
4031
3847
|
unknown
|
|
4032
3848
|
> = z.union([
|
|
4033
|
-
z.lazy(() =>
|
|
4034
|
-
z.lazy(() =>
|
|
4035
|
-
z.lazy(() =>
|
|
4036
|
-
z.lazy(() =>
|
|
4037
|
-
z.lazy(() =>
|
|
4038
|
-
z.lazy(() =>
|
|
4039
|
-
z.lazy(() =>
|
|
4040
|
-
z.lazy(() =>
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
z.lazy(() =>
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
z.lazy(() =>
|
|
3849
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
3850
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
3851
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
3852
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3853
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
|
|
3854
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3855
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3856
|
+
z.lazy(() =>
|
|
3857
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
|
|
3858
|
+
),
|
|
3859
|
+
z.lazy(() =>
|
|
3860
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
|
|
3861
|
+
),
|
|
3862
|
+
z.lazy(() =>
|
|
3863
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
3864
|
+
),
|
|
3865
|
+
z.lazy(() =>
|
|
3866
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
3867
|
+
),
|
|
3868
|
+
z.lazy(() =>
|
|
3869
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
3870
|
+
),
|
|
3871
|
+
z.lazy(() =>
|
|
3872
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
|
|
3873
|
+
),
|
|
3874
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema),
|
|
4047
3875
|
]);
|
|
4048
3876
|
|
|
4049
3877
|
/** @internal */
|
|
4050
|
-
export type
|
|
4051
|
-
|
|
|
4052
|
-
|
|
|
4053
|
-
|
|
|
4054
|
-
|
|
|
4055
|
-
|
|
|
4056
|
-
|
|
|
4057
|
-
|
|
|
4058
|
-
|
|
|
4059
|
-
|
|
|
4060
|
-
|
|
|
4061
|
-
|
|
|
4062
|
-
|
|
|
4063
|
-
|
|
|
4064
|
-
|
|
|
4065
|
-
|
|
4066
|
-
/** @internal */
|
|
4067
|
-
export const
|
|
4068
|
-
|
|
3878
|
+
export type StreamRunAgentAgentToolInputRun$Outbound =
|
|
3879
|
+
| AgentToolInputRunHTTPToolRun$Outbound
|
|
3880
|
+
| AgentToolInputRunCodeToolRun$Outbound
|
|
3881
|
+
| AgentToolInputRunFunctionToolRun$Outbound
|
|
3882
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
3883
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
3884
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
|
|
3885
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3886
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3887
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3888
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3889
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3890
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3891
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3892
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
|
|
3893
|
+
|
|
3894
|
+
/** @internal */
|
|
3895
|
+
export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
|
|
3896
|
+
StreamRunAgentAgentToolInputRun$Outbound,
|
|
4069
3897
|
z.ZodTypeDef,
|
|
4070
|
-
|
|
3898
|
+
StreamRunAgentAgentToolInputRun
|
|
4071
3899
|
> = z.union([
|
|
4072
|
-
z.lazy(() =>
|
|
4073
|
-
z.lazy(() =>
|
|
4074
|
-
z.lazy(() =>
|
|
4075
|
-
z.lazy(() =>
|
|
4076
|
-
z.lazy(() =>
|
|
4077
|
-
z.lazy(() =>
|
|
4078
|
-
z.lazy(() =>
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
z.lazy(() =>
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
z.lazy(() =>
|
|
4085
|
-
|
|
3900
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
3901
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
3902
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
3903
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3904
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
|
|
3905
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3906
|
+
z.lazy(() =>
|
|
3907
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
|
|
3908
|
+
),
|
|
3909
|
+
z.lazy(() =>
|
|
3910
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
|
|
3911
|
+
),
|
|
3912
|
+
z.lazy(() =>
|
|
3913
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
|
|
3914
|
+
),
|
|
3915
|
+
z.lazy(() =>
|
|
3916
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
3917
|
+
),
|
|
3918
|
+
z.lazy(() =>
|
|
3919
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
3920
|
+
),
|
|
3921
|
+
z.lazy(() =>
|
|
3922
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
3923
|
+
),
|
|
3924
|
+
z.lazy(() =>
|
|
3925
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
|
|
3926
|
+
),
|
|
3927
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
|
|
4086
3928
|
]);
|
|
4087
3929
|
|
|
4088
3930
|
/**
|
|
4089
3931
|
* @internal
|
|
4090
3932
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4091
3933
|
*/
|
|
4092
|
-
export namespace
|
|
4093
|
-
/** @deprecated use `
|
|
4094
|
-
export const inboundSchema =
|
|
4095
|
-
/** @deprecated use `
|
|
4096
|
-
export const outboundSchema =
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
export type Outbound = StreamRunAgentRunAgentRequestTool$Outbound;
|
|
3934
|
+
export namespace StreamRunAgentAgentToolInputRun$ {
|
|
3935
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
|
|
3936
|
+
export const inboundSchema = StreamRunAgentAgentToolInputRun$inboundSchema;
|
|
3937
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
|
|
3938
|
+
export const outboundSchema = StreamRunAgentAgentToolInputRun$outboundSchema;
|
|
3939
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
|
|
3940
|
+
export type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
|
|
4100
3941
|
}
|
|
4101
3942
|
|
|
4102
|
-
export function
|
|
4103
|
-
|
|
3943
|
+
export function streamRunAgentAgentToolInputRunToJSON(
|
|
3944
|
+
streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun,
|
|
4104
3945
|
): string {
|
|
4105
3946
|
return JSON.stringify(
|
|
4106
|
-
|
|
4107
|
-
|
|
3947
|
+
StreamRunAgentAgentToolInputRun$outboundSchema.parse(
|
|
3948
|
+
streamRunAgentAgentToolInputRun,
|
|
4108
3949
|
),
|
|
4109
3950
|
);
|
|
4110
3951
|
}
|
|
4111
3952
|
|
|
4112
|
-
export function
|
|
3953
|
+
export function streamRunAgentAgentToolInputRunFromJSON(
|
|
4113
3954
|
jsonString: string,
|
|
4114
|
-
): SafeParseResult<
|
|
3955
|
+
): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError> {
|
|
4115
3956
|
return safeParse(
|
|
4116
3957
|
jsonString,
|
|
4117
|
-
(x) =>
|
|
4118
|
-
`Failed to parse '
|
|
3958
|
+
(x) => StreamRunAgentAgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
|
|
3959
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRun' from JSON`,
|
|
4119
3960
|
);
|
|
4120
3961
|
}
|
|
4121
3962
|
|
|
@@ -4149,20 +3990,42 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
4149
3990
|
> = z.object({
|
|
4150
3991
|
tools: z.array(
|
|
4151
3992
|
z.union([
|
|
4152
|
-
z.lazy(() =>
|
|
4153
|
-
z.lazy(() =>
|
|
4154
|
-
z.lazy(() =>
|
|
4155
|
-
z.lazy(() =>
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
z.lazy(() =>
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
z.lazy(() =>
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
z.lazy(() =>
|
|
4165
|
-
|
|
3993
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
3994
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
3995
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
3996
|
+
z.lazy(() =>
|
|
3997
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
|
|
3998
|
+
),
|
|
3999
|
+
z.lazy(() =>
|
|
4000
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
|
|
4001
|
+
),
|
|
4002
|
+
z.lazy(() =>
|
|
4003
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
|
|
4004
|
+
),
|
|
4005
|
+
z.lazy(() =>
|
|
4006
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema
|
|
4007
|
+
),
|
|
4008
|
+
z.lazy(() =>
|
|
4009
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
|
|
4010
|
+
),
|
|
4011
|
+
z.lazy(() =>
|
|
4012
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
|
|
4013
|
+
),
|
|
4014
|
+
z.lazy(() =>
|
|
4015
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
4016
|
+
),
|
|
4017
|
+
z.lazy(() =>
|
|
4018
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
4019
|
+
),
|
|
4020
|
+
z.lazy(() =>
|
|
4021
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
4022
|
+
),
|
|
4023
|
+
z.lazy(() =>
|
|
4024
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
|
|
4025
|
+
),
|
|
4026
|
+
z.lazy(() =>
|
|
4027
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema
|
|
4028
|
+
),
|
|
4166
4029
|
]),
|
|
4167
4030
|
),
|
|
4168
4031
|
tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
|
|
@@ -4180,20 +4043,20 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
4180
4043
|
/** @internal */
|
|
4181
4044
|
export type StreamRunAgentSettings$Outbound = {
|
|
4182
4045
|
tools: Array<
|
|
4183
|
-
|
|
|
4184
|
-
|
|
|
4185
|
-
|
|
|
4186
|
-
|
|
|
4187
|
-
|
|
|
4188
|
-
|
|
|
4189
|
-
|
|
|
4190
|
-
|
|
|
4191
|
-
|
|
|
4192
|
-
|
|
|
4193
|
-
|
|
|
4194
|
-
|
|
|
4195
|
-
|
|
|
4196
|
-
|
|
|
4046
|
+
| AgentToolInputRunHTTPToolRun$Outbound
|
|
4047
|
+
| AgentToolInputRunCodeToolRun$Outbound
|
|
4048
|
+
| AgentToolInputRunFunctionToolRun$Outbound
|
|
4049
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
4050
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
4051
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
|
|
4052
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
|
|
4053
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
4054
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
4055
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
4056
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
4057
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
4058
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
4059
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
|
|
4197
4060
|
>;
|
|
4198
4061
|
tool_approval_required: string;
|
|
4199
4062
|
max_iterations: number;
|
|
@@ -4208,22 +4071,42 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
4208
4071
|
> = z.object({
|
|
4209
4072
|
tools: z.array(
|
|
4210
4073
|
z.union([
|
|
4211
|
-
z.lazy(() =>
|
|
4212
|
-
z.lazy(() =>
|
|
4213
|
-
z.lazy(() =>
|
|
4214
|
-
z.lazy(() =>
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
z.lazy(() =>
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
z.lazy(() =>
|
|
4221
|
-
|
|
4074
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
4075
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
4076
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
4077
|
+
z.lazy(() =>
|
|
4078
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
|
|
4079
|
+
),
|
|
4080
|
+
z.lazy(() =>
|
|
4081
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
|
|
4082
|
+
),
|
|
4083
|
+
z.lazy(() =>
|
|
4084
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
|
|
4085
|
+
),
|
|
4086
|
+
z.lazy(() =>
|
|
4087
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
|
|
4088
|
+
),
|
|
4089
|
+
z.lazy(() =>
|
|
4090
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
|
|
4091
|
+
),
|
|
4222
4092
|
z.lazy(() =>
|
|
4223
|
-
|
|
4093
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
|
|
4094
|
+
),
|
|
4095
|
+
z.lazy(() =>
|
|
4096
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
4097
|
+
),
|
|
4098
|
+
z.lazy(() =>
|
|
4099
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
4100
|
+
),
|
|
4101
|
+
z.lazy(() =>
|
|
4102
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
4103
|
+
),
|
|
4104
|
+
z.lazy(() =>
|
|
4105
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
|
|
4106
|
+
),
|
|
4107
|
+
z.lazy(() =>
|
|
4108
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
|
|
4224
4109
|
),
|
|
4225
|
-
z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
|
|
4226
|
-
z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
|
|
4227
4110
|
]),
|
|
4228
4111
|
),
|
|
4229
4112
|
toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
|
|
@@ -4276,7 +4159,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4276
4159
|
unknown
|
|
4277
4160
|
> = z.object({
|
|
4278
4161
|
key: z.string(),
|
|
4279
|
-
|
|
4162
|
+
task_id: z.string().optional(),
|
|
4280
4163
|
model: z.string(),
|
|
4281
4164
|
fallback_models: z.array(z.string()).optional(),
|
|
4282
4165
|
role: z.string(),
|
|
@@ -4301,6 +4184,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4301
4184
|
stream_timeout_seconds: z.number().optional(),
|
|
4302
4185
|
}).transform((v) => {
|
|
4303
4186
|
return remap$(v, {
|
|
4187
|
+
"task_id": "taskId",
|
|
4304
4188
|
"fallback_models": "fallbackModels",
|
|
4305
4189
|
"system_prompt": "systemPrompt",
|
|
4306
4190
|
"memory_stores": "memoryStores",
|
|
@@ -4313,7 +4197,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4313
4197
|
/** @internal */
|
|
4314
4198
|
export type StreamRunAgentRequestBody$Outbound = {
|
|
4315
4199
|
key: string;
|
|
4316
|
-
|
|
4200
|
+
task_id?: string | undefined;
|
|
4317
4201
|
model: string;
|
|
4318
4202
|
fallback_models?: Array<string> | undefined;
|
|
4319
4203
|
role: string;
|
|
@@ -4365,6 +4249,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4365
4249
|
streamTimeoutSeconds: z.number().optional(),
|
|
4366
4250
|
}).transform((v) => {
|
|
4367
4251
|
return remap$(v, {
|
|
4252
|
+
taskId: "task_id",
|
|
4368
4253
|
fallbackModels: "fallback_models",
|
|
4369
4254
|
systemPrompt: "system_prompt",
|
|
4370
4255
|
memoryStores: "memory_stores",
|