@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
|
@@ -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,243 +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
|
|
431
|
+
export type AgentToolInputRunHTTPToolRun = {
|
|
432
|
+
type:
|
|
433
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
458
434
|
/**
|
|
459
435
|
* Unique key of the tool as it will be displayed in the UI
|
|
460
436
|
*/
|
|
461
437
|
key: string;
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
*/
|
|
465
|
-
displayName: string;
|
|
438
|
+
id?: string | undefined;
|
|
439
|
+
displayName?: string | undefined;
|
|
466
440
|
/**
|
|
467
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.
|
|
468
442
|
*/
|
|
469
443
|
description: string;
|
|
470
|
-
|
|
471
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
|
|
472
|
-
http: RunAgentRequestToolHttp;
|
|
444
|
+
http: AgentToolInputRunHttp;
|
|
473
445
|
requiresApproval?: boolean | undefined;
|
|
474
446
|
};
|
|
475
447
|
|
|
476
|
-
export const
|
|
448
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
477
449
|
{
|
|
478
450
|
CurrentDate: "current_date",
|
|
479
451
|
} as const;
|
|
480
|
-
export type
|
|
452
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
481
453
|
ClosedEnum<
|
|
482
|
-
typeof
|
|
454
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
483
455
|
>;
|
|
484
456
|
|
|
485
457
|
/**
|
|
486
|
-
*
|
|
458
|
+
* Returns the current date and time
|
|
487
459
|
*/
|
|
488
|
-
export type
|
|
460
|
+
export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
|
|
489
461
|
type:
|
|
490
|
-
|
|
462
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
463
|
+
/**
|
|
464
|
+
* Whether this tool requires approval before execution
|
|
465
|
+
*/
|
|
491
466
|
requiresApproval?: boolean | undefined;
|
|
492
467
|
};
|
|
493
468
|
|
|
494
|
-
export const
|
|
469
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
495
470
|
{
|
|
496
471
|
QueryKnowledgeBase: "query_knowledge_base",
|
|
497
472
|
} as const;
|
|
498
|
-
export type
|
|
473
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
499
474
|
ClosedEnum<
|
|
500
|
-
typeof
|
|
475
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
501
476
|
>;
|
|
502
477
|
|
|
503
478
|
/**
|
|
504
479
|
* Queries knowledge bases for information
|
|
505
480
|
*/
|
|
506
|
-
export type
|
|
481
|
+
export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
|
|
507
482
|
type:
|
|
508
|
-
|
|
483
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
484
|
+
/**
|
|
485
|
+
* Whether this tool requires approval before execution
|
|
486
|
+
*/
|
|
509
487
|
requiresApproval?: boolean | undefined;
|
|
510
488
|
};
|
|
511
489
|
|
|
512
|
-
export const
|
|
490
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
513
491
|
{
|
|
514
492
|
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
515
493
|
} as const;
|
|
516
|
-
export type
|
|
494
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
517
495
|
ClosedEnum<
|
|
518
|
-
typeof
|
|
496
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
519
497
|
>;
|
|
520
498
|
|
|
521
499
|
/**
|
|
522
500
|
* Lists available knowledge bases
|
|
523
501
|
*/
|
|
524
|
-
export type
|
|
502
|
+
export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
525
503
|
type:
|
|
526
|
-
|
|
504
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
505
|
+
/**
|
|
506
|
+
* Whether this tool requires approval before execution
|
|
507
|
+
*/
|
|
527
508
|
requiresApproval?: boolean | undefined;
|
|
528
509
|
};
|
|
529
510
|
|
|
530
|
-
export const
|
|
511
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
531
512
|
{
|
|
532
513
|
DeleteMemoryDocument: "delete_memory_document",
|
|
533
514
|
} as const;
|
|
534
|
-
export type
|
|
515
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
535
516
|
ClosedEnum<
|
|
536
|
-
typeof
|
|
517
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
537
518
|
>;
|
|
538
519
|
|
|
539
520
|
/**
|
|
540
|
-
* Deletes
|
|
521
|
+
* Deletes documents from memory stores
|
|
541
522
|
*/
|
|
542
|
-
export type
|
|
523
|
+
export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
|
|
543
524
|
type:
|
|
544
|
-
|
|
525
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
526
|
+
/**
|
|
527
|
+
* Whether this tool requires approval before execution
|
|
528
|
+
*/
|
|
545
529
|
requiresApproval?: boolean | undefined;
|
|
546
530
|
};
|
|
547
531
|
|
|
548
|
-
export const
|
|
532
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
|
|
549
533
|
{
|
|
550
534
|
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
551
535
|
} as const;
|
|
552
|
-
export type
|
|
536
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
|
|
553
537
|
ClosedEnum<
|
|
554
|
-
typeof
|
|
538
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
555
539
|
>;
|
|
556
540
|
|
|
557
541
|
/**
|
|
558
542
|
* Lists available memory stores
|
|
559
543
|
*/
|
|
560
|
-
export type
|
|
544
|
+
export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
|
|
561
545
|
type:
|
|
562
|
-
|
|
546
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
|
|
547
|
+
/**
|
|
548
|
+
* Whether this tool requires approval before execution
|
|
549
|
+
*/
|
|
563
550
|
requiresApproval?: boolean | undefined;
|
|
564
551
|
};
|
|
565
552
|
|
|
566
|
-
export const
|
|
553
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
567
554
|
{
|
|
568
555
|
WriteMemoryStore: "write_memory_store",
|
|
569
556
|
} as const;
|
|
570
|
-
export type
|
|
557
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
571
558
|
ClosedEnum<
|
|
572
|
-
typeof
|
|
559
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
573
560
|
>;
|
|
574
561
|
|
|
575
562
|
/**
|
|
576
563
|
* Writes information to agent memory stores
|
|
577
564
|
*/
|
|
578
|
-
export type
|
|
565
|
+
export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
|
|
579
566
|
type:
|
|
580
|
-
|
|
567
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
568
|
+
/**
|
|
569
|
+
* Whether this tool requires approval before execution
|
|
570
|
+
*/
|
|
581
571
|
requiresApproval?: boolean | undefined;
|
|
582
572
|
};
|
|
583
573
|
|
|
584
|
-
export const
|
|
574
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
585
575
|
{
|
|
586
576
|
QueryMemoryStore: "query_memory_store",
|
|
587
577
|
} as const;
|
|
588
|
-
export type
|
|
578
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
589
579
|
ClosedEnum<
|
|
590
|
-
typeof
|
|
580
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
591
581
|
>;
|
|
592
582
|
|
|
593
583
|
/**
|
|
594
584
|
* Queries agent memory stores for context
|
|
595
585
|
*/
|
|
596
|
-
export type
|
|
597
|
-
type:
|
|
586
|
+
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
|
|
587
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
588
|
+
/**
|
|
589
|
+
* Whether this tool requires approval before execution
|
|
590
|
+
*/
|
|
598
591
|
requiresApproval?: boolean | undefined;
|
|
599
592
|
};
|
|
600
593
|
|
|
601
|
-
export const
|
|
594
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
602
595
|
RetrieveAgents: "retrieve_agents",
|
|
603
596
|
} as const;
|
|
604
|
-
export type
|
|
597
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType =
|
|
605
598
|
ClosedEnum<
|
|
606
|
-
typeof
|
|
599
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
607
600
|
>;
|
|
608
601
|
|
|
609
602
|
/**
|
|
610
603
|
* Retrieves available agents in the system
|
|
611
604
|
*/
|
|
612
|
-
export type
|
|
613
|
-
type:
|
|
605
|
+
export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
|
|
606
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
607
|
+
/**
|
|
608
|
+
* Whether this tool requires approval before execution
|
|
609
|
+
*/
|
|
614
610
|
requiresApproval?: boolean | undefined;
|
|
615
611
|
};
|
|
616
612
|
|
|
617
|
-
export const
|
|
613
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType = {
|
|
618
614
|
CallSubAgent: "call_sub_agent",
|
|
619
615
|
} as const;
|
|
620
|
-
export type
|
|
621
|
-
typeof
|
|
616
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
|
|
617
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestType
|
|
622
618
|
>;
|
|
623
619
|
|
|
624
620
|
/**
|
|
625
621
|
* Delegates tasks to specialized sub-agents
|
|
626
622
|
*/
|
|
627
|
-
export type
|
|
628
|
-
type:
|
|
623
|
+
export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
|
|
624
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType;
|
|
625
|
+
/**
|
|
626
|
+
* Whether this tool requires approval before execution
|
|
627
|
+
*/
|
|
629
628
|
requiresApproval?: boolean | undefined;
|
|
630
629
|
};
|
|
631
630
|
|
|
632
|
-
export const
|
|
631
|
+
export const StreamRunAgentAgentToolInputRunAgentsType = {
|
|
633
632
|
WebScraper: "web_scraper",
|
|
634
633
|
} as const;
|
|
635
|
-
export type
|
|
636
|
-
typeof
|
|
634
|
+
export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<
|
|
635
|
+
typeof StreamRunAgentAgentToolInputRunAgentsType
|
|
637
636
|
>;
|
|
638
637
|
|
|
639
638
|
/**
|
|
640
639
|
* Scrapes and extracts content from web pages
|
|
641
640
|
*/
|
|
642
|
-
export type
|
|
643
|
-
type:
|
|
641
|
+
export type StreamRunAgentAgentToolInputRunWebScraperTool = {
|
|
642
|
+
type: StreamRunAgentAgentToolInputRunAgentsType;
|
|
643
|
+
/**
|
|
644
|
+
* Whether this tool requires approval before execution
|
|
645
|
+
*/
|
|
644
646
|
requiresApproval?: boolean | undefined;
|
|
645
647
|
};
|
|
646
648
|
|
|
647
|
-
export const
|
|
649
|
+
export const StreamRunAgentAgentToolInputRunType = {
|
|
648
650
|
GoogleSearch: "google_search",
|
|
649
651
|
} as const;
|
|
650
|
-
export type
|
|
651
|
-
typeof
|
|
652
|
+
export type StreamRunAgentAgentToolInputRunType = ClosedEnum<
|
|
653
|
+
typeof StreamRunAgentAgentToolInputRunType
|
|
652
654
|
>;
|
|
653
655
|
|
|
654
656
|
/**
|
|
655
657
|
* Performs Google searches to retrieve web content
|
|
656
658
|
*/
|
|
657
|
-
export type
|
|
658
|
-
type:
|
|
659
|
+
export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
660
|
+
type: StreamRunAgentAgentToolInputRunType;
|
|
661
|
+
/**
|
|
662
|
+
* Whether this tool requires approval before execution
|
|
663
|
+
*/
|
|
659
664
|
requiresApproval?: boolean | undefined;
|
|
660
665
|
};
|
|
661
666
|
|
|
662
667
|
/**
|
|
663
|
-
*
|
|
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.
|
|
664
669
|
*/
|
|
665
|
-
export type
|
|
666
|
-
|
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
671
|
-
|
|
|
672
|
-
|
|
|
673
|
-
|
|
|
674
|
-
|
|
|
675
|
-
|
|
|
676
|
-
|
|
|
677
|
-
|
|
|
678
|
-
|
|
|
679
|
-
|
|
|
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;
|
|
680
685
|
|
|
681
686
|
/**
|
|
682
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.
|
|
@@ -698,20 +703,20 @@ export type StreamRunAgentSettings = {
|
|
|
698
703
|
* Tools available to the agent
|
|
699
704
|
*/
|
|
700
705
|
tools: Array<
|
|
701
|
-
|
|
|
702
|
-
|
|
|
703
|
-
|
|
|
704
|
-
|
|
|
705
|
-
|
|
|
706
|
-
|
|
|
707
|
-
|
|
|
708
|
-
|
|
|
709
|
-
|
|
|
710
|
-
|
|
|
711
|
-
|
|
|
712
|
-
|
|
|
713
|
-
|
|
|
714
|
-
|
|
|
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
|
|
715
720
|
>;
|
|
716
721
|
/**
|
|
717
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.
|
|
@@ -794,6 +799,9 @@ export type StreamRunAgentRequestBody = {
|
|
|
794
799
|
* The list of keys of the memory stores that are accessible to the agent.
|
|
795
800
|
*/
|
|
796
801
|
memoryStores?: Array<string> | undefined;
|
|
802
|
+
/**
|
|
803
|
+
* Knowledge base configurations for the agent to access
|
|
804
|
+
*/
|
|
797
805
|
knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
|
|
798
806
|
/**
|
|
799
807
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
@@ -1745,286 +1753,22 @@ export function streamRunAgentMemoryFromJSON(
|
|
|
1745
1753
|
);
|
|
1746
1754
|
}
|
|
1747
1755
|
|
|
1748
|
-
/** @internal */
|
|
1749
|
-
export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema:
|
|
1750
|
-
z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> = z
|
|
1751
|
-
.nativeEnum(StreamRunAgentKnowledgeBaseConfigurationAgentsType);
|
|
1752
|
-
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema:
|
|
1755
|
-
z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> =
|
|
1756
|
-
StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* @internal
|
|
1760
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1761
|
-
*/
|
|
1762
|
-
export namespace StreamRunAgentKnowledgeBaseConfigurationAgentsType$ {
|
|
1763
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
|
|
1764
|
-
export const inboundSchema =
|
|
1765
|
-
StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
|
|
1766
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
|
|
1767
|
-
export const outboundSchema =
|
|
1768
|
-
StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
/** @internal */
|
|
1772
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
|
|
1773
|
-
z.ZodType<
|
|
1774
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1775
|
-
z.ZodTypeDef,
|
|
1776
|
-
unknown
|
|
1777
|
-
> = z.object({
|
|
1778
|
-
type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
|
|
1779
|
-
query: z.string(),
|
|
1780
|
-
});
|
|
1781
|
-
|
|
1782
|
-
/** @internal */
|
|
1783
|
-
export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound = {
|
|
1784
|
-
type: string;
|
|
1785
|
-
query: string;
|
|
1786
|
-
};
|
|
1787
|
-
|
|
1788
|
-
/** @internal */
|
|
1789
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
|
|
1790
|
-
z.ZodType<
|
|
1791
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
|
|
1792
|
-
z.ZodTypeDef,
|
|
1793
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
|
|
1794
|
-
> = z.object({
|
|
1795
|
-
type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema,
|
|
1796
|
-
query: z.string(),
|
|
1797
|
-
});
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* @internal
|
|
1801
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1802
|
-
*/
|
|
1803
|
-
export namespace KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
|
|
1804
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
1805
|
-
export const inboundSchema =
|
|
1806
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
|
|
1807
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
1808
|
-
export const outboundSchema =
|
|
1809
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
|
|
1810
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
|
|
1811
|
-
export type Outbound =
|
|
1812
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(
|
|
1816
|
-
knowledgeBaseConfigurationKnowledgeBaseStaticQuery:
|
|
1817
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1818
|
-
): string {
|
|
1819
|
-
return JSON.stringify(
|
|
1820
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema.parse(
|
|
1821
|
-
knowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1822
|
-
),
|
|
1823
|
-
);
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
|
|
1827
|
-
jsonString: string,
|
|
1828
|
-
): SafeParseResult<
|
|
1829
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
|
|
1830
|
-
SDKValidationError
|
|
1831
|
-
> {
|
|
1832
|
-
return safeParse(
|
|
1833
|
-
jsonString,
|
|
1834
|
-
(x) =>
|
|
1835
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema.parse(
|
|
1836
|
-
JSON.parse(x),
|
|
1837
|
-
),
|
|
1838
|
-
`Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
|
|
1839
|
-
);
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
/** @internal */
|
|
1843
|
-
export const StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema:
|
|
1844
|
-
z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> = z
|
|
1845
|
-
.nativeEnum(StreamRunAgentKnowledgeBaseConfigurationType);
|
|
1846
|
-
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export const StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
1849
|
-
z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> =
|
|
1850
|
-
StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* @internal
|
|
1854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1855
|
-
*/
|
|
1856
|
-
export namespace StreamRunAgentKnowledgeBaseConfigurationType$ {
|
|
1857
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1858
|
-
export const inboundSchema =
|
|
1859
|
-
StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1860
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1861
|
-
export const outboundSchema =
|
|
1862
|
-
StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
/** @internal */
|
|
1866
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
|
|
1867
|
-
z.ZodType<
|
|
1868
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1869
|
-
z.ZodTypeDef,
|
|
1870
|
-
unknown
|
|
1871
|
-
> = z.object({
|
|
1872
|
-
type: StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
/** @internal */
|
|
1876
|
-
export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound = {
|
|
1877
|
-
type: string;
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
/** @internal */
|
|
1881
|
-
export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
|
|
1882
|
-
z.ZodType<
|
|
1883
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
|
|
1884
|
-
z.ZodTypeDef,
|
|
1885
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
|
|
1886
|
-
> = z.object({
|
|
1887
|
-
type: StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
1888
|
-
});
|
|
1889
|
-
|
|
1890
|
-
/**
|
|
1891
|
-
* @internal
|
|
1892
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1893
|
-
*/
|
|
1894
|
-
export namespace KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
|
|
1895
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
1896
|
-
export const inboundSchema =
|
|
1897
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
|
|
1898
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
1899
|
-
export const outboundSchema =
|
|
1900
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
|
|
1901
|
-
/** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
|
|
1902
|
-
export type Outbound =
|
|
1903
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
|
|
1907
|
-
knowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
|
|
1908
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1909
|
-
): string {
|
|
1910
|
-
return JSON.stringify(
|
|
1911
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema.parse(
|
|
1912
|
-
knowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1913
|
-
),
|
|
1914
|
-
);
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
|
|
1918
|
-
jsonString: string,
|
|
1919
|
-
): SafeParseResult<
|
|
1920
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
|
|
1921
|
-
SDKValidationError
|
|
1922
|
-
> {
|
|
1923
|
-
return safeParse(
|
|
1924
|
-
jsonString,
|
|
1925
|
-
(x) =>
|
|
1926
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1927
|
-
.parse(JSON.parse(x)),
|
|
1928
|
-
`Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
|
|
1929
|
-
);
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
/** @internal */
|
|
1933
|
-
export const StreamRunAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
1934
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1935
|
-
z.ZodTypeDef,
|
|
1936
|
-
unknown
|
|
1937
|
-
> = z.union([
|
|
1938
|
-
z.lazy(() =>
|
|
1939
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
|
|
1940
|
-
),
|
|
1941
|
-
z.lazy(() =>
|
|
1942
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
1943
|
-
),
|
|
1944
|
-
]);
|
|
1945
|
-
|
|
1946
|
-
/** @internal */
|
|
1947
|
-
export type StreamRunAgentKnowledgeBaseConfiguration$Outbound =
|
|
1948
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
1949
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1950
|
-
|
|
1951
|
-
/** @internal */
|
|
1952
|
-
export const StreamRunAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1953
|
-
StreamRunAgentKnowledgeBaseConfiguration$Outbound,
|
|
1954
|
-
z.ZodTypeDef,
|
|
1955
|
-
StreamRunAgentKnowledgeBaseConfiguration
|
|
1956
|
-
> = z.union([
|
|
1957
|
-
z.lazy(() =>
|
|
1958
|
-
KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
|
|
1959
|
-
),
|
|
1960
|
-
z.lazy(() =>
|
|
1961
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
1962
|
-
),
|
|
1963
|
-
]);
|
|
1964
|
-
|
|
1965
|
-
/**
|
|
1966
|
-
* @internal
|
|
1967
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1968
|
-
*/
|
|
1969
|
-
export namespace StreamRunAgentKnowledgeBaseConfiguration$ {
|
|
1970
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1971
|
-
export const inboundSchema =
|
|
1972
|
-
StreamRunAgentKnowledgeBaseConfiguration$inboundSchema;
|
|
1973
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1974
|
-
export const outboundSchema =
|
|
1975
|
-
StreamRunAgentKnowledgeBaseConfiguration$outboundSchema;
|
|
1976
|
-
/** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$Outbound` instead. */
|
|
1977
|
-
export type Outbound = StreamRunAgentKnowledgeBaseConfiguration$Outbound;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
export function streamRunAgentKnowledgeBaseConfigurationToJSON(
|
|
1981
|
-
streamRunAgentKnowledgeBaseConfiguration:
|
|
1982
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1983
|
-
): string {
|
|
1984
|
-
return JSON.stringify(
|
|
1985
|
-
StreamRunAgentKnowledgeBaseConfiguration$outboundSchema.parse(
|
|
1986
|
-
streamRunAgentKnowledgeBaseConfiguration,
|
|
1987
|
-
),
|
|
1988
|
-
);
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
export function streamRunAgentKnowledgeBaseConfigurationFromJSON(
|
|
1992
|
-
jsonString: string,
|
|
1993
|
-
): SafeParseResult<
|
|
1994
|
-
StreamRunAgentKnowledgeBaseConfiguration,
|
|
1995
|
-
SDKValidationError
|
|
1996
|
-
> {
|
|
1997
|
-
return safeParse(
|
|
1998
|
-
jsonString,
|
|
1999
|
-
(x) =>
|
|
2000
|
-
StreamRunAgentKnowledgeBaseConfiguration$inboundSchema.parse(
|
|
2001
|
-
JSON.parse(x),
|
|
2002
|
-
),
|
|
2003
|
-
`Failed to parse 'StreamRunAgentKnowledgeBaseConfiguration' from JSON`,
|
|
2004
|
-
);
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
1756
|
/** @internal */
|
|
2008
1757
|
export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
2009
1758
|
StreamRunAgentKnowledgeBases,
|
|
2010
1759
|
z.ZodTypeDef,
|
|
2011
1760
|
unknown
|
|
2012
1761
|
> = z.object({
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
|
|
2019
|
-
),
|
|
2020
|
-
]),
|
|
1762
|
+
knowledge_id: z.string(),
|
|
1763
|
+
}).transform((v) => {
|
|
1764
|
+
return remap$(v, {
|
|
1765
|
+
"knowledge_id": "knowledgeId",
|
|
1766
|
+
});
|
|
2021
1767
|
});
|
|
2022
1768
|
|
|
2023
1769
|
/** @internal */
|
|
2024
1770
|
export type StreamRunAgentKnowledgeBases$Outbound = {
|
|
2025
|
-
|
|
2026
|
-
| KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
|
|
2027
|
-
| KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
|
|
1771
|
+
knowledge_id: string;
|
|
2028
1772
|
};
|
|
2029
1773
|
|
|
2030
1774
|
/** @internal */
|
|
@@ -2033,14 +1777,11 @@ export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
2033
1777
|
z.ZodTypeDef,
|
|
2034
1778
|
StreamRunAgentKnowledgeBases
|
|
2035
1779
|
> = z.object({
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
|
|
2042
|
-
),
|
|
2043
|
-
]),
|
|
1780
|
+
knowledgeId: z.string(),
|
|
1781
|
+
}).transform((v) => {
|
|
1782
|
+
return remap$(v, {
|
|
1783
|
+
knowledgeId: "knowledge_id",
|
|
1784
|
+
});
|
|
2044
1785
|
});
|
|
2045
1786
|
|
|
2046
1787
|
/**
|
|
@@ -2134,36 +1875,36 @@ export function streamRunAgentTeamOfAgentsFromJSON(
|
|
|
2134
1875
|
}
|
|
2135
1876
|
|
|
2136
1877
|
/** @internal */
|
|
2137
|
-
export const
|
|
1878
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
2138
1879
|
z.ZodNativeEnum<
|
|
2139
|
-
typeof
|
|
1880
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2140
1881
|
> = z.nativeEnum(
|
|
2141
|
-
|
|
1882
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
|
|
2142
1883
|
);
|
|
2143
1884
|
|
|
2144
1885
|
/** @internal */
|
|
2145
|
-
export const
|
|
1886
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
2146
1887
|
z.ZodNativeEnum<
|
|
2147
|
-
typeof
|
|
1888
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2148
1889
|
> =
|
|
2149
|
-
|
|
1890
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
2150
1891
|
|
|
2151
1892
|
/**
|
|
2152
1893
|
* @internal
|
|
2153
1894
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2154
1895
|
*/
|
|
2155
|
-
export namespace
|
|
2156
|
-
/** @deprecated use `
|
|
1896
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
|
|
1897
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
2157
1898
|
export const inboundSchema =
|
|
2158
|
-
|
|
2159
|
-
/** @deprecated use `
|
|
1899
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1900
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
2160
1901
|
export const outboundSchema =
|
|
2161
|
-
|
|
1902
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
2162
1903
|
}
|
|
2163
1904
|
|
|
2164
1905
|
/** @internal */
|
|
2165
|
-
export const
|
|
2166
|
-
|
|
1906
|
+
export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
1907
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2167
1908
|
z.ZodTypeDef,
|
|
2168
1909
|
unknown
|
|
2169
1910
|
> = z.object({
|
|
@@ -2174,7 +1915,7 @@ export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
|
|
|
2174
1915
|
});
|
|
2175
1916
|
|
|
2176
1917
|
/** @internal */
|
|
2177
|
-
export type
|
|
1918
|
+
export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
|
|
2178
1919
|
name: string;
|
|
2179
1920
|
description?: string | undefined;
|
|
2180
1921
|
strict?: boolean | undefined;
|
|
@@ -2182,76 +1923,73 @@ export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
|
|
|
2182
1923
|
};
|
|
2183
1924
|
|
|
2184
1925
|
/** @internal */
|
|
2185
|
-
export const
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
});
|
|
1926
|
+
export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
1927
|
+
StreamRunAgentAgentToolInputRunFunction$Outbound,
|
|
1928
|
+
z.ZodTypeDef,
|
|
1929
|
+
StreamRunAgentAgentToolInputRunFunction
|
|
1930
|
+
> = z.object({
|
|
1931
|
+
name: z.string(),
|
|
1932
|
+
description: z.string().optional(),
|
|
1933
|
+
strict: z.boolean().optional(),
|
|
1934
|
+
parameters: z.record(z.any()).optional(),
|
|
1935
|
+
});
|
|
2196
1936
|
|
|
2197
1937
|
/**
|
|
2198
1938
|
* @internal
|
|
2199
1939
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2200
1940
|
*/
|
|
2201
|
-
export namespace
|
|
2202
|
-
/** @deprecated use `
|
|
1941
|
+
export namespace StreamRunAgentAgentToolInputRunFunction$ {
|
|
1942
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
|
|
2203
1943
|
export const inboundSchema =
|
|
2204
|
-
|
|
2205
|
-
/** @deprecated use `
|
|
1944
|
+
StreamRunAgentAgentToolInputRunFunction$inboundSchema;
|
|
1945
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
|
|
2206
1946
|
export const outboundSchema =
|
|
2207
|
-
|
|
2208
|
-
/** @deprecated use `
|
|
2209
|
-
export type Outbound =
|
|
1947
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema;
|
|
1948
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
|
|
1949
|
+
export type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
|
|
2210
1950
|
}
|
|
2211
1951
|
|
|
2212
|
-
export function
|
|
2213
|
-
|
|
2214
|
-
|
|
1952
|
+
export function streamRunAgentAgentToolInputRunFunctionToJSON(
|
|
1953
|
+
streamRunAgentAgentToolInputRunFunction:
|
|
1954
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2215
1955
|
): string {
|
|
2216
1956
|
return JSON.stringify(
|
|
2217
|
-
|
|
2218
|
-
|
|
1957
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema.parse(
|
|
1958
|
+
streamRunAgentAgentToolInputRunFunction,
|
|
2219
1959
|
),
|
|
2220
1960
|
);
|
|
2221
1961
|
}
|
|
2222
1962
|
|
|
2223
|
-
export function
|
|
1963
|
+
export function streamRunAgentAgentToolInputRunFunctionFromJSON(
|
|
2224
1964
|
jsonString: string,
|
|
2225
1965
|
): SafeParseResult<
|
|
2226
|
-
|
|
1966
|
+
StreamRunAgentAgentToolInputRunFunction,
|
|
2227
1967
|
SDKValidationError
|
|
2228
1968
|
> {
|
|
2229
1969
|
return safeParse(
|
|
2230
1970
|
jsonString,
|
|
2231
1971
|
(x) =>
|
|
2232
|
-
|
|
1972
|
+
StreamRunAgentAgentToolInputRunFunction$inboundSchema.parse(
|
|
2233
1973
|
JSON.parse(x),
|
|
2234
1974
|
),
|
|
2235
|
-
`Failed to parse '
|
|
1975
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunFunction' from JSON`,
|
|
2236
1976
|
);
|
|
2237
1977
|
}
|
|
2238
1978
|
|
|
2239
1979
|
/** @internal */
|
|
2240
|
-
export const
|
|
2241
|
-
|
|
1980
|
+
export const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<
|
|
1981
|
+
AgentToolInputRunFunctionToolRun,
|
|
2242
1982
|
z.ZodTypeDef,
|
|
2243
1983
|
unknown
|
|
2244
1984
|
> = z.object({
|
|
2245
1985
|
type:
|
|
2246
|
-
|
|
2247
|
-
_id: z.string().optional(),
|
|
1986
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
2248
1987
|
key: z.string(),
|
|
1988
|
+
_id: z.string().optional(),
|
|
2249
1989
|
display_name: z.string().optional(),
|
|
2250
1990
|
description: z.string().optional(),
|
|
1991
|
+
function: z.lazy(() => StreamRunAgentAgentToolInputRunFunction$inboundSchema),
|
|
2251
1992
|
requires_approval: z.boolean().default(false),
|
|
2252
|
-
function: z.lazy(() =>
|
|
2253
|
-
StreamRunAgentRunAgentRequestToolFunction$inboundSchema
|
|
2254
|
-
),
|
|
2255
1993
|
}).transform((v) => {
|
|
2256
1994
|
return remap$(v, {
|
|
2257
1995
|
"_id": "id",
|
|
@@ -2261,32 +1999,32 @@ export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
|
|
|
2261
1999
|
});
|
|
2262
2000
|
|
|
2263
2001
|
/** @internal */
|
|
2264
|
-
export type
|
|
2002
|
+
export type AgentToolInputRunFunctionToolRun$Outbound = {
|
|
2265
2003
|
type: string;
|
|
2266
|
-
_id?: string | undefined;
|
|
2267
2004
|
key: string;
|
|
2005
|
+
_id?: string | undefined;
|
|
2268
2006
|
display_name?: string | undefined;
|
|
2269
2007
|
description?: string | undefined;
|
|
2008
|
+
function: StreamRunAgentAgentToolInputRunFunction$Outbound;
|
|
2270
2009
|
requires_approval: boolean;
|
|
2271
|
-
function: StreamRunAgentRunAgentRequestToolFunction$Outbound;
|
|
2272
2010
|
};
|
|
2273
2011
|
|
|
2274
2012
|
/** @internal */
|
|
2275
|
-
export const
|
|
2276
|
-
|
|
2013
|
+
export const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<
|
|
2014
|
+
AgentToolInputRunFunctionToolRun$Outbound,
|
|
2277
2015
|
z.ZodTypeDef,
|
|
2278
|
-
|
|
2016
|
+
AgentToolInputRunFunctionToolRun
|
|
2279
2017
|
> = z.object({
|
|
2280
2018
|
type:
|
|
2281
|
-
|
|
2282
|
-
id: z.string().optional(),
|
|
2019
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
2283
2020
|
key: z.string(),
|
|
2021
|
+
id: z.string().optional(),
|
|
2284
2022
|
displayName: z.string().optional(),
|
|
2285
2023
|
description: z.string().optional(),
|
|
2286
|
-
requiresApproval: z.boolean().default(false),
|
|
2287
2024
|
function: z.lazy(() =>
|
|
2288
|
-
|
|
2025
|
+
StreamRunAgentAgentToolInputRunFunction$outboundSchema
|
|
2289
2026
|
),
|
|
2027
|
+
requiresApproval: z.boolean().default(false),
|
|
2290
2028
|
}).transform((v) => {
|
|
2291
2029
|
return remap$(v, {
|
|
2292
2030
|
id: "_id",
|
|
@@ -2299,110 +2037,110 @@ export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
|
|
|
2299
2037
|
* @internal
|
|
2300
2038
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2301
2039
|
*/
|
|
2302
|
-
export namespace
|
|
2303
|
-
/** @deprecated use `
|
|
2304
|
-
export const inboundSchema =
|
|
2305
|
-
/** @deprecated use `
|
|
2306
|
-
export const outboundSchema =
|
|
2307
|
-
/** @deprecated use `
|
|
2308
|
-
export type Outbound =
|
|
2040
|
+
export namespace AgentToolInputRunFunctionToolRun$ {
|
|
2041
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
|
|
2042
|
+
export const inboundSchema = AgentToolInputRunFunctionToolRun$inboundSchema;
|
|
2043
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
|
|
2044
|
+
export const outboundSchema = AgentToolInputRunFunctionToolRun$outboundSchema;
|
|
2045
|
+
/** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
|
|
2046
|
+
export type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
|
|
2309
2047
|
}
|
|
2310
2048
|
|
|
2311
|
-
export function
|
|
2312
|
-
|
|
2049
|
+
export function agentToolInputRunFunctionToolRunToJSON(
|
|
2050
|
+
agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun,
|
|
2313
2051
|
): string {
|
|
2314
2052
|
return JSON.stringify(
|
|
2315
|
-
|
|
2316
|
-
|
|
2053
|
+
AgentToolInputRunFunctionToolRun$outboundSchema.parse(
|
|
2054
|
+
agentToolInputRunFunctionToolRun,
|
|
2317
2055
|
),
|
|
2318
2056
|
);
|
|
2319
2057
|
}
|
|
2320
2058
|
|
|
2321
|
-
export function
|
|
2059
|
+
export function agentToolInputRunFunctionToolRunFromJSON(
|
|
2322
2060
|
jsonString: string,
|
|
2323
|
-
): SafeParseResult<
|
|
2061
|
+
): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError> {
|
|
2324
2062
|
return safeParse(
|
|
2325
2063
|
jsonString,
|
|
2326
|
-
(x) =>
|
|
2327
|
-
`Failed to parse '
|
|
2064
|
+
(x) => AgentToolInputRunFunctionToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2065
|
+
`Failed to parse 'AgentToolInputRunFunctionToolRun' from JSON`,
|
|
2328
2066
|
);
|
|
2329
2067
|
}
|
|
2330
2068
|
|
|
2331
2069
|
/** @internal */
|
|
2332
|
-
export const
|
|
2070
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
2333
2071
|
z.ZodNativeEnum<
|
|
2334
|
-
typeof
|
|
2072
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2335
2073
|
> = z.nativeEnum(
|
|
2336
|
-
|
|
2074
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
|
|
2337
2075
|
);
|
|
2338
2076
|
|
|
2339
2077
|
/** @internal */
|
|
2340
|
-
export const
|
|
2078
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2341
2079
|
z.ZodNativeEnum<
|
|
2342
|
-
typeof
|
|
2080
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2343
2081
|
> =
|
|
2344
|
-
|
|
2082
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2345
2083
|
|
|
2346
2084
|
/**
|
|
2347
2085
|
* @internal
|
|
2348
2086
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2349
2087
|
*/
|
|
2350
|
-
export namespace
|
|
2351
|
-
/** @deprecated use `
|
|
2088
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2089
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2352
2090
|
export const inboundSchema =
|
|
2353
|
-
|
|
2354
|
-
/** @deprecated use `
|
|
2091
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2092
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2355
2093
|
export const outboundSchema =
|
|
2356
|
-
|
|
2094
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
2357
2095
|
}
|
|
2358
2096
|
|
|
2359
2097
|
/** @internal */
|
|
2360
|
-
export const
|
|
2361
|
-
typeof
|
|
2362
|
-
> = z.nativeEnum(
|
|
2098
|
+
export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2099
|
+
typeof AgentToolInputRunLanguage
|
|
2100
|
+
> = z.nativeEnum(AgentToolInputRunLanguage);
|
|
2363
2101
|
|
|
2364
2102
|
/** @internal */
|
|
2365
|
-
export const
|
|
2366
|
-
typeof
|
|
2367
|
-
> =
|
|
2103
|
+
export const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2104
|
+
typeof AgentToolInputRunLanguage
|
|
2105
|
+
> = AgentToolInputRunLanguage$inboundSchema;
|
|
2368
2106
|
|
|
2369
2107
|
/**
|
|
2370
2108
|
* @internal
|
|
2371
2109
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2372
2110
|
*/
|
|
2373
|
-
export namespace
|
|
2374
|
-
/** @deprecated use `
|
|
2375
|
-
export const inboundSchema =
|
|
2376
|
-
/** @deprecated use `
|
|
2377
|
-
export const outboundSchema =
|
|
2111
|
+
export namespace AgentToolInputRunLanguage$ {
|
|
2112
|
+
/** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
|
|
2113
|
+
export const inboundSchema = AgentToolInputRunLanguage$inboundSchema;
|
|
2114
|
+
/** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
|
|
2115
|
+
export const outboundSchema = AgentToolInputRunLanguage$outboundSchema;
|
|
2378
2116
|
}
|
|
2379
2117
|
|
|
2380
2118
|
/** @internal */
|
|
2381
|
-
export const
|
|
2382
|
-
|
|
2119
|
+
export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
|
|
2120
|
+
AgentToolInputRunCodeTool,
|
|
2383
2121
|
z.ZodTypeDef,
|
|
2384
2122
|
unknown
|
|
2385
2123
|
> = z.object({
|
|
2386
2124
|
parameters: z.record(z.any()).optional(),
|
|
2387
|
-
language:
|
|
2125
|
+
language: AgentToolInputRunLanguage$inboundSchema,
|
|
2388
2126
|
code: z.string(),
|
|
2389
2127
|
});
|
|
2390
2128
|
|
|
2391
2129
|
/** @internal */
|
|
2392
|
-
export type
|
|
2130
|
+
export type AgentToolInputRunCodeTool$Outbound = {
|
|
2393
2131
|
parameters?: { [k: string]: any } | undefined;
|
|
2394
2132
|
language: string;
|
|
2395
2133
|
code: string;
|
|
2396
2134
|
};
|
|
2397
2135
|
|
|
2398
2136
|
/** @internal */
|
|
2399
|
-
export const
|
|
2400
|
-
|
|
2137
|
+
export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
|
|
2138
|
+
AgentToolInputRunCodeTool$Outbound,
|
|
2401
2139
|
z.ZodTypeDef,
|
|
2402
|
-
|
|
2140
|
+
AgentToolInputRunCodeTool
|
|
2403
2141
|
> = z.object({
|
|
2404
2142
|
parameters: z.record(z.any()).optional(),
|
|
2405
|
-
language:
|
|
2143
|
+
language: AgentToolInputRunLanguage$outboundSchema,
|
|
2406
2144
|
code: z.string(),
|
|
2407
2145
|
});
|
|
2408
2146
|
|
|
@@ -2410,88 +2148,86 @@ export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
|
|
|
2410
2148
|
* @internal
|
|
2411
2149
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2412
2150
|
*/
|
|
2413
|
-
export namespace
|
|
2414
|
-
/** @deprecated use `
|
|
2415
|
-
export const inboundSchema =
|
|
2416
|
-
/** @deprecated use `
|
|
2417
|
-
export const outboundSchema =
|
|
2418
|
-
/** @deprecated use `
|
|
2419
|
-
export type Outbound =
|
|
2151
|
+
export namespace AgentToolInputRunCodeTool$ {
|
|
2152
|
+
/** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
|
|
2153
|
+
export const inboundSchema = AgentToolInputRunCodeTool$inboundSchema;
|
|
2154
|
+
/** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
|
|
2155
|
+
export const outboundSchema = AgentToolInputRunCodeTool$outboundSchema;
|
|
2156
|
+
/** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
|
|
2157
|
+
export type Outbound = AgentToolInputRunCodeTool$Outbound;
|
|
2420
2158
|
}
|
|
2421
2159
|
|
|
2422
|
-
export function
|
|
2423
|
-
|
|
2160
|
+
export function agentToolInputRunCodeToolToJSON(
|
|
2161
|
+
agentToolInputRunCodeTool: AgentToolInputRunCodeTool,
|
|
2424
2162
|
): string {
|
|
2425
2163
|
return JSON.stringify(
|
|
2426
|
-
|
|
2427
|
-
runAgentRequestToolCodeTool,
|
|
2428
|
-
),
|
|
2164
|
+
AgentToolInputRunCodeTool$outboundSchema.parse(agentToolInputRunCodeTool),
|
|
2429
2165
|
);
|
|
2430
2166
|
}
|
|
2431
2167
|
|
|
2432
|
-
export function
|
|
2168
|
+
export function agentToolInputRunCodeToolFromJSON(
|
|
2433
2169
|
jsonString: string,
|
|
2434
|
-
): SafeParseResult<
|
|
2170
|
+
): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError> {
|
|
2435
2171
|
return safeParse(
|
|
2436
2172
|
jsonString,
|
|
2437
|
-
(x) =>
|
|
2438
|
-
`Failed to parse '
|
|
2173
|
+
(x) => AgentToolInputRunCodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
2174
|
+
`Failed to parse 'AgentToolInputRunCodeTool' from JSON`,
|
|
2439
2175
|
);
|
|
2440
2176
|
}
|
|
2441
2177
|
|
|
2442
2178
|
/** @internal */
|
|
2443
|
-
export const
|
|
2444
|
-
|
|
2179
|
+
export const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<
|
|
2180
|
+
AgentToolInputRunCodeToolRun,
|
|
2445
2181
|
z.ZodTypeDef,
|
|
2446
2182
|
unknown
|
|
2447
2183
|
> = z.object({
|
|
2448
|
-
key: z.string(),
|
|
2449
|
-
display_name: z.string(),
|
|
2450
|
-
description: z.string(),
|
|
2451
2184
|
type:
|
|
2452
|
-
|
|
2453
|
-
|
|
2185
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2186
|
+
key: z.string(),
|
|
2454
2187
|
_id: z.string().optional(),
|
|
2188
|
+
display_name: z.string().optional(),
|
|
2189
|
+
description: z.string(),
|
|
2190
|
+
code_tool: z.lazy(() => AgentToolInputRunCodeTool$inboundSchema),
|
|
2455
2191
|
requires_approval: z.boolean().default(false),
|
|
2456
2192
|
}).transform((v) => {
|
|
2457
2193
|
return remap$(v, {
|
|
2194
|
+
"_id": "id",
|
|
2458
2195
|
"display_name": "displayName",
|
|
2459
2196
|
"code_tool": "codeTool",
|
|
2460
|
-
"_id": "id",
|
|
2461
2197
|
"requires_approval": "requiresApproval",
|
|
2462
2198
|
});
|
|
2463
2199
|
});
|
|
2464
2200
|
|
|
2465
2201
|
/** @internal */
|
|
2466
|
-
export type
|
|
2467
|
-
key: string;
|
|
2468
|
-
display_name: string;
|
|
2469
|
-
description: string;
|
|
2202
|
+
export type AgentToolInputRunCodeToolRun$Outbound = {
|
|
2470
2203
|
type: string;
|
|
2471
|
-
|
|
2204
|
+
key: string;
|
|
2472
2205
|
_id?: string | undefined;
|
|
2206
|
+
display_name?: string | undefined;
|
|
2207
|
+
description: string;
|
|
2208
|
+
code_tool: AgentToolInputRunCodeTool$Outbound;
|
|
2473
2209
|
requires_approval: boolean;
|
|
2474
2210
|
};
|
|
2475
2211
|
|
|
2476
2212
|
/** @internal */
|
|
2477
|
-
export const
|
|
2478
|
-
|
|
2213
|
+
export const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<
|
|
2214
|
+
AgentToolInputRunCodeToolRun$Outbound,
|
|
2479
2215
|
z.ZodTypeDef,
|
|
2480
|
-
|
|
2216
|
+
AgentToolInputRunCodeToolRun
|
|
2481
2217
|
> = z.object({
|
|
2482
|
-
key: z.string(),
|
|
2483
|
-
displayName: z.string(),
|
|
2484
|
-
description: z.string(),
|
|
2485
2218
|
type:
|
|
2486
|
-
|
|
2487
|
-
|
|
2219
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2220
|
+
key: z.string(),
|
|
2488
2221
|
id: z.string().optional(),
|
|
2222
|
+
displayName: z.string().optional(),
|
|
2223
|
+
description: z.string(),
|
|
2224
|
+
codeTool: z.lazy(() => AgentToolInputRunCodeTool$outboundSchema),
|
|
2489
2225
|
requiresApproval: z.boolean().default(false),
|
|
2490
2226
|
}).transform((v) => {
|
|
2491
2227
|
return remap$(v, {
|
|
2228
|
+
id: "_id",
|
|
2492
2229
|
displayName: "display_name",
|
|
2493
2230
|
codeTool: "code_tool",
|
|
2494
|
-
id: "_id",
|
|
2495
2231
|
requiresApproval: "requires_approval",
|
|
2496
2232
|
});
|
|
2497
2233
|
});
|
|
@@ -2500,101 +2236,98 @@ export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2500
2236
|
* @internal
|
|
2501
2237
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2502
2238
|
*/
|
|
2503
|
-
export namespace
|
|
2504
|
-
/** @deprecated use `
|
|
2505
|
-
export const inboundSchema =
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
/** @deprecated use `RunAgentRequestToolCodeExecutionTool$Outbound` instead. */
|
|
2511
|
-
export type Outbound = RunAgentRequestToolCodeExecutionTool$Outbound;
|
|
2239
|
+
export namespace AgentToolInputRunCodeToolRun$ {
|
|
2240
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
|
|
2241
|
+
export const inboundSchema = AgentToolInputRunCodeToolRun$inboundSchema;
|
|
2242
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
|
|
2243
|
+
export const outboundSchema = AgentToolInputRunCodeToolRun$outboundSchema;
|
|
2244
|
+
/** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
|
|
2245
|
+
export type Outbound = AgentToolInputRunCodeToolRun$Outbound;
|
|
2512
2246
|
}
|
|
2513
2247
|
|
|
2514
|
-
export function
|
|
2515
|
-
|
|
2248
|
+
export function agentToolInputRunCodeToolRunToJSON(
|
|
2249
|
+
agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun,
|
|
2516
2250
|
): string {
|
|
2517
2251
|
return JSON.stringify(
|
|
2518
|
-
|
|
2519
|
-
|
|
2252
|
+
AgentToolInputRunCodeToolRun$outboundSchema.parse(
|
|
2253
|
+
agentToolInputRunCodeToolRun,
|
|
2520
2254
|
),
|
|
2521
2255
|
);
|
|
2522
2256
|
}
|
|
2523
2257
|
|
|
2524
|
-
export function
|
|
2258
|
+
export function agentToolInputRunCodeToolRunFromJSON(
|
|
2525
2259
|
jsonString: string,
|
|
2526
|
-
): SafeParseResult<
|
|
2260
|
+
): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError> {
|
|
2527
2261
|
return safeParse(
|
|
2528
2262
|
jsonString,
|
|
2529
|
-
(x) =>
|
|
2530
|
-
|
|
2531
|
-
`Failed to parse 'RunAgentRequestToolCodeExecutionTool' from JSON`,
|
|
2263
|
+
(x) => AgentToolInputRunCodeToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2264
|
+
`Failed to parse 'AgentToolInputRunCodeToolRun' from JSON`,
|
|
2532
2265
|
);
|
|
2533
2266
|
}
|
|
2534
2267
|
|
|
2535
2268
|
/** @internal */
|
|
2536
|
-
export const
|
|
2269
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2537
2270
|
z.ZodNativeEnum<
|
|
2538
|
-
typeof
|
|
2271
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2539
2272
|
> = z.nativeEnum(
|
|
2540
|
-
|
|
2273
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
|
|
2541
2274
|
);
|
|
2542
2275
|
|
|
2543
2276
|
/** @internal */
|
|
2544
|
-
export const
|
|
2277
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2545
2278
|
z.ZodNativeEnum<
|
|
2546
|
-
typeof
|
|
2279
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2547
2280
|
> =
|
|
2548
|
-
|
|
2281
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2549
2282
|
|
|
2550
2283
|
/**
|
|
2551
2284
|
* @internal
|
|
2552
2285
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2553
2286
|
*/
|
|
2554
|
-
export namespace
|
|
2555
|
-
/** @deprecated use `
|
|
2287
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2288
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2556
2289
|
export const inboundSchema =
|
|
2557
|
-
|
|
2558
|
-
/** @deprecated use `
|
|
2290
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2291
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2559
2292
|
export const outboundSchema =
|
|
2560
|
-
|
|
2293
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2561
2294
|
}
|
|
2562
2295
|
|
|
2563
2296
|
/** @internal */
|
|
2564
|
-
export const
|
|
2565
|
-
typeof
|
|
2566
|
-
> = z.nativeEnum(
|
|
2297
|
+
export const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<
|
|
2298
|
+
typeof AgentToolInputRunMethod
|
|
2299
|
+
> = z.nativeEnum(AgentToolInputRunMethod);
|
|
2567
2300
|
|
|
2568
2301
|
/** @internal */
|
|
2569
|
-
export const
|
|
2570
|
-
typeof
|
|
2571
|
-
> =
|
|
2302
|
+
export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
|
|
2303
|
+
typeof AgentToolInputRunMethod
|
|
2304
|
+
> = AgentToolInputRunMethod$inboundSchema;
|
|
2572
2305
|
|
|
2573
2306
|
/**
|
|
2574
2307
|
* @internal
|
|
2575
2308
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2576
2309
|
*/
|
|
2577
|
-
export namespace
|
|
2578
|
-
/** @deprecated use `
|
|
2579
|
-
export const inboundSchema =
|
|
2580
|
-
/** @deprecated use `
|
|
2581
|
-
export const outboundSchema =
|
|
2310
|
+
export namespace AgentToolInputRunMethod$ {
|
|
2311
|
+
/** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
|
|
2312
|
+
export const inboundSchema = AgentToolInputRunMethod$inboundSchema;
|
|
2313
|
+
/** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
|
|
2314
|
+
export const outboundSchema = AgentToolInputRunMethod$outboundSchema;
|
|
2582
2315
|
}
|
|
2583
2316
|
|
|
2584
2317
|
/** @internal */
|
|
2585
|
-
export const
|
|
2586
|
-
|
|
2318
|
+
export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
|
|
2319
|
+
AgentToolInputRunBlueprint,
|
|
2587
2320
|
z.ZodTypeDef,
|
|
2588
2321
|
unknown
|
|
2589
2322
|
> = z.object({
|
|
2590
2323
|
url: z.string(),
|
|
2591
|
-
method:
|
|
2324
|
+
method: AgentToolInputRunMethod$inboundSchema,
|
|
2592
2325
|
headers: z.record(z.string()).optional(),
|
|
2593
2326
|
body: z.record(z.any()).optional(),
|
|
2594
2327
|
});
|
|
2595
2328
|
|
|
2596
2329
|
/** @internal */
|
|
2597
|
-
export type
|
|
2330
|
+
export type AgentToolInputRunBlueprint$Outbound = {
|
|
2598
2331
|
url: string;
|
|
2599
2332
|
method: string;
|
|
2600
2333
|
headers?: { [k: string]: string } | undefined;
|
|
@@ -2602,13 +2335,13 @@ export type RunAgentRequestToolBlueprint$Outbound = {
|
|
|
2602
2335
|
};
|
|
2603
2336
|
|
|
2604
2337
|
/** @internal */
|
|
2605
|
-
export const
|
|
2606
|
-
|
|
2338
|
+
export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
|
|
2339
|
+
AgentToolInputRunBlueprint$Outbound,
|
|
2607
2340
|
z.ZodTypeDef,
|
|
2608
|
-
|
|
2341
|
+
AgentToolInputRunBlueprint
|
|
2609
2342
|
> = z.object({
|
|
2610
2343
|
url: z.string(),
|
|
2611
|
-
method:
|
|
2344
|
+
method: AgentToolInputRunMethod$outboundSchema,
|
|
2612
2345
|
headers: z.record(z.string()).optional(),
|
|
2613
2346
|
body: z.record(z.any()).optional(),
|
|
2614
2347
|
});
|
|
@@ -2617,124 +2350,119 @@ export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
|
|
|
2617
2350
|
* @internal
|
|
2618
2351
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2619
2352
|
*/
|
|
2620
|
-
export namespace
|
|
2621
|
-
/** @deprecated use `
|
|
2622
|
-
export const inboundSchema =
|
|
2623
|
-
/** @deprecated use `
|
|
2624
|
-
export const outboundSchema =
|
|
2625
|
-
/** @deprecated use `
|
|
2626
|
-
export type Outbound =
|
|
2353
|
+
export namespace AgentToolInputRunBlueprint$ {
|
|
2354
|
+
/** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
|
|
2355
|
+
export const inboundSchema = AgentToolInputRunBlueprint$inboundSchema;
|
|
2356
|
+
/** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
|
|
2357
|
+
export const outboundSchema = AgentToolInputRunBlueprint$outboundSchema;
|
|
2358
|
+
/** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
|
|
2359
|
+
export type Outbound = AgentToolInputRunBlueprint$Outbound;
|
|
2627
2360
|
}
|
|
2628
2361
|
|
|
2629
|
-
export function
|
|
2630
|
-
|
|
2362
|
+
export function agentToolInputRunBlueprintToJSON(
|
|
2363
|
+
agentToolInputRunBlueprint: AgentToolInputRunBlueprint,
|
|
2631
2364
|
): string {
|
|
2632
2365
|
return JSON.stringify(
|
|
2633
|
-
|
|
2634
|
-
runAgentRequestToolBlueprint,
|
|
2635
|
-
),
|
|
2366
|
+
AgentToolInputRunBlueprint$outboundSchema.parse(agentToolInputRunBlueprint),
|
|
2636
2367
|
);
|
|
2637
2368
|
}
|
|
2638
2369
|
|
|
2639
|
-
export function
|
|
2370
|
+
export function agentToolInputRunBlueprintFromJSON(
|
|
2640
2371
|
jsonString: string,
|
|
2641
|
-
): SafeParseResult<
|
|
2372
|
+
): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError> {
|
|
2642
2373
|
return safeParse(
|
|
2643
2374
|
jsonString,
|
|
2644
|
-
(x) =>
|
|
2645
|
-
`Failed to parse '
|
|
2375
|
+
(x) => AgentToolInputRunBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
2376
|
+
`Failed to parse 'AgentToolInputRunBlueprint' from JSON`,
|
|
2646
2377
|
);
|
|
2647
2378
|
}
|
|
2648
2379
|
|
|
2649
2380
|
/** @internal */
|
|
2650
|
-
export const
|
|
2381
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
|
|
2651
2382
|
z.ZodNativeEnum<
|
|
2652
|
-
typeof
|
|
2383
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2653
2384
|
> = z.nativeEnum(
|
|
2654
|
-
|
|
2385
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
|
|
2655
2386
|
);
|
|
2656
2387
|
|
|
2657
2388
|
/** @internal */
|
|
2658
|
-
export const
|
|
2389
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
|
|
2659
2390
|
z.ZodNativeEnum<
|
|
2660
|
-
typeof
|
|
2391
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2661
2392
|
> =
|
|
2662
|
-
|
|
2393
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2663
2394
|
|
|
2664
2395
|
/**
|
|
2665
2396
|
* @internal
|
|
2666
2397
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2667
2398
|
*/
|
|
2668
|
-
export namespace
|
|
2669
|
-
/** @deprecated use `
|
|
2399
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
|
|
2400
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
2670
2401
|
export const inboundSchema =
|
|
2671
|
-
|
|
2672
|
-
/** @deprecated use `
|
|
2402
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2403
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
2673
2404
|
export const outboundSchema =
|
|
2674
|
-
|
|
2405
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
2675
2406
|
}
|
|
2676
2407
|
|
|
2677
2408
|
/** @internal */
|
|
2678
|
-
export const
|
|
2679
|
-
|
|
2409
|
+
export const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<
|
|
2410
|
+
AgentToolInputRunDefaultValue,
|
|
2680
2411
|
z.ZodTypeDef,
|
|
2681
2412
|
unknown
|
|
2682
2413
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2683
2414
|
|
|
2684
2415
|
/** @internal */
|
|
2685
|
-
export type
|
|
2686
|
-
| string
|
|
2687
|
-
| number
|
|
2688
|
-
| boolean;
|
|
2416
|
+
export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
|
|
2689
2417
|
|
|
2690
2418
|
/** @internal */
|
|
2691
|
-
export const
|
|
2692
|
-
|
|
2419
|
+
export const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<
|
|
2420
|
+
AgentToolInputRunDefaultValue$Outbound,
|
|
2693
2421
|
z.ZodTypeDef,
|
|
2694
|
-
|
|
2422
|
+
AgentToolInputRunDefaultValue
|
|
2695
2423
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2696
2424
|
|
|
2697
2425
|
/**
|
|
2698
2426
|
* @internal
|
|
2699
2427
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2700
2428
|
*/
|
|
2701
|
-
export namespace
|
|
2702
|
-
/** @deprecated use `
|
|
2703
|
-
export const inboundSchema =
|
|
2704
|
-
/** @deprecated use `
|
|
2705
|
-
export const outboundSchema =
|
|
2706
|
-
/** @deprecated use `
|
|
2707
|
-
export type Outbound =
|
|
2429
|
+
export namespace AgentToolInputRunDefaultValue$ {
|
|
2430
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
|
|
2431
|
+
export const inboundSchema = AgentToolInputRunDefaultValue$inboundSchema;
|
|
2432
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
|
|
2433
|
+
export const outboundSchema = AgentToolInputRunDefaultValue$outboundSchema;
|
|
2434
|
+
/** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
|
|
2435
|
+
export type Outbound = AgentToolInputRunDefaultValue$Outbound;
|
|
2708
2436
|
}
|
|
2709
2437
|
|
|
2710
|
-
export function
|
|
2711
|
-
|
|
2438
|
+
export function agentToolInputRunDefaultValueToJSON(
|
|
2439
|
+
agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue,
|
|
2712
2440
|
): string {
|
|
2713
2441
|
return JSON.stringify(
|
|
2714
|
-
|
|
2715
|
-
|
|
2442
|
+
AgentToolInputRunDefaultValue$outboundSchema.parse(
|
|
2443
|
+
agentToolInputRunDefaultValue,
|
|
2716
2444
|
),
|
|
2717
2445
|
);
|
|
2718
2446
|
}
|
|
2719
2447
|
|
|
2720
|
-
export function
|
|
2448
|
+
export function agentToolInputRunDefaultValueFromJSON(
|
|
2721
2449
|
jsonString: string,
|
|
2722
|
-
): SafeParseResult<
|
|
2450
|
+
): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError> {
|
|
2723
2451
|
return safeParse(
|
|
2724
2452
|
jsonString,
|
|
2725
|
-
(x) =>
|
|
2726
|
-
`Failed to parse '
|
|
2453
|
+
(x) => AgentToolInputRunDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
2454
|
+
`Failed to parse 'AgentToolInputRunDefaultValue' from JSON`,
|
|
2727
2455
|
);
|
|
2728
2456
|
}
|
|
2729
2457
|
|
|
2730
2458
|
/** @internal */
|
|
2731
|
-
export const
|
|
2732
|
-
|
|
2459
|
+
export const AgentToolInputRunArguments$inboundSchema: z.ZodType<
|
|
2460
|
+
AgentToolInputRunArguments,
|
|
2733
2461
|
z.ZodTypeDef,
|
|
2734
2462
|
unknown
|
|
2735
2463
|
> = z.object({
|
|
2736
2464
|
type:
|
|
2737
|
-
|
|
2465
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
2738
2466
|
description: z.string(),
|
|
2739
2467
|
send_to_model: z.boolean().default(true),
|
|
2740
2468
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2746,7 +2474,7 @@ export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
|
|
|
2746
2474
|
});
|
|
2747
2475
|
|
|
2748
2476
|
/** @internal */
|
|
2749
|
-
export type
|
|
2477
|
+
export type AgentToolInputRunArguments$Outbound = {
|
|
2750
2478
|
type: string;
|
|
2751
2479
|
description: string;
|
|
2752
2480
|
send_to_model: boolean;
|
|
@@ -2754,13 +2482,13 @@ export type RunAgentRequestToolArguments$Outbound = {
|
|
|
2754
2482
|
};
|
|
2755
2483
|
|
|
2756
2484
|
/** @internal */
|
|
2757
|
-
export const
|
|
2758
|
-
|
|
2485
|
+
export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
|
|
2486
|
+
AgentToolInputRunArguments$Outbound,
|
|
2759
2487
|
z.ZodTypeDef,
|
|
2760
|
-
|
|
2488
|
+
AgentToolInputRunArguments
|
|
2761
2489
|
> = z.object({
|
|
2762
2490
|
type:
|
|
2763
|
-
|
|
2491
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
2764
2492
|
description: z.string(),
|
|
2765
2493
|
sendToModel: z.boolean().default(true),
|
|
2766
2494
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2775,62 +2503,58 @@ export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
|
|
|
2775
2503
|
* @internal
|
|
2776
2504
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2777
2505
|
*/
|
|
2778
|
-
export namespace
|
|
2779
|
-
/** @deprecated use `
|
|
2780
|
-
export const inboundSchema =
|
|
2781
|
-
/** @deprecated use `
|
|
2782
|
-
export const outboundSchema =
|
|
2783
|
-
/** @deprecated use `
|
|
2784
|
-
export type Outbound =
|
|
2506
|
+
export namespace AgentToolInputRunArguments$ {
|
|
2507
|
+
/** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
|
|
2508
|
+
export const inboundSchema = AgentToolInputRunArguments$inboundSchema;
|
|
2509
|
+
/** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
|
|
2510
|
+
export const outboundSchema = AgentToolInputRunArguments$outboundSchema;
|
|
2511
|
+
/** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
|
|
2512
|
+
export type Outbound = AgentToolInputRunArguments$Outbound;
|
|
2785
2513
|
}
|
|
2786
2514
|
|
|
2787
|
-
export function
|
|
2788
|
-
|
|
2515
|
+
export function agentToolInputRunArgumentsToJSON(
|
|
2516
|
+
agentToolInputRunArguments: AgentToolInputRunArguments,
|
|
2789
2517
|
): string {
|
|
2790
2518
|
return JSON.stringify(
|
|
2791
|
-
|
|
2792
|
-
runAgentRequestToolArguments,
|
|
2793
|
-
),
|
|
2519
|
+
AgentToolInputRunArguments$outboundSchema.parse(agentToolInputRunArguments),
|
|
2794
2520
|
);
|
|
2795
2521
|
}
|
|
2796
2522
|
|
|
2797
|
-
export function
|
|
2523
|
+
export function agentToolInputRunArgumentsFromJSON(
|
|
2798
2524
|
jsonString: string,
|
|
2799
|
-
): SafeParseResult<
|
|
2525
|
+
): SafeParseResult<AgentToolInputRunArguments, SDKValidationError> {
|
|
2800
2526
|
return safeParse(
|
|
2801
2527
|
jsonString,
|
|
2802
|
-
(x) =>
|
|
2803
|
-
`Failed to parse '
|
|
2528
|
+
(x) => AgentToolInputRunArguments$inboundSchema.parse(JSON.parse(x)),
|
|
2529
|
+
`Failed to parse 'AgentToolInputRunArguments' from JSON`,
|
|
2804
2530
|
);
|
|
2805
2531
|
}
|
|
2806
2532
|
|
|
2807
2533
|
/** @internal */
|
|
2808
|
-
export const
|
|
2809
|
-
|
|
2534
|
+
export const AgentToolInputRunHttp$inboundSchema: z.ZodType<
|
|
2535
|
+
AgentToolInputRunHttp,
|
|
2810
2536
|
z.ZodTypeDef,
|
|
2811
2537
|
unknown
|
|
2812
2538
|
> = z.object({
|
|
2813
|
-
blueprint: z.lazy(() =>
|
|
2814
|
-
arguments: z.record(z.lazy(() =>
|
|
2539
|
+
blueprint: z.lazy(() => AgentToolInputRunBlueprint$inboundSchema),
|
|
2540
|
+
arguments: z.record(z.lazy(() => AgentToolInputRunArguments$inboundSchema))
|
|
2815
2541
|
.optional(),
|
|
2816
2542
|
});
|
|
2817
2543
|
|
|
2818
2544
|
/** @internal */
|
|
2819
|
-
export type
|
|
2820
|
-
blueprint:
|
|
2821
|
-
arguments?:
|
|
2822
|
-
| { [k: string]: RunAgentRequestToolArguments$Outbound }
|
|
2823
|
-
| undefined;
|
|
2545
|
+
export type AgentToolInputRunHttp$Outbound = {
|
|
2546
|
+
blueprint: AgentToolInputRunBlueprint$Outbound;
|
|
2547
|
+
arguments?: { [k: string]: AgentToolInputRunArguments$Outbound } | undefined;
|
|
2824
2548
|
};
|
|
2825
2549
|
|
|
2826
2550
|
/** @internal */
|
|
2827
|
-
export const
|
|
2828
|
-
|
|
2551
|
+
export const AgentToolInputRunHttp$outboundSchema: z.ZodType<
|
|
2552
|
+
AgentToolInputRunHttp$Outbound,
|
|
2829
2553
|
z.ZodTypeDef,
|
|
2830
|
-
|
|
2554
|
+
AgentToolInputRunHttp
|
|
2831
2555
|
> = z.object({
|
|
2832
|
-
blueprint: z.lazy(() =>
|
|
2833
|
-
arguments: z.record(z.lazy(() =>
|
|
2556
|
+
blueprint: z.lazy(() => AgentToolInputRunBlueprint$outboundSchema),
|
|
2557
|
+
arguments: z.record(z.lazy(() => AgentToolInputRunArguments$outboundSchema))
|
|
2834
2558
|
.optional(),
|
|
2835
2559
|
});
|
|
2836
2560
|
|
|
@@ -2838,78 +2562,83 @@ export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
|
|
|
2838
2562
|
* @internal
|
|
2839
2563
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2840
2564
|
*/
|
|
2841
|
-
export namespace
|
|
2842
|
-
/** @deprecated use `
|
|
2843
|
-
export const inboundSchema =
|
|
2844
|
-
/** @deprecated use `
|
|
2845
|
-
export const outboundSchema =
|
|
2846
|
-
/** @deprecated use `
|
|
2847
|
-
export type Outbound =
|
|
2565
|
+
export namespace AgentToolInputRunHttp$ {
|
|
2566
|
+
/** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
|
|
2567
|
+
export const inboundSchema = AgentToolInputRunHttp$inboundSchema;
|
|
2568
|
+
/** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
|
|
2569
|
+
export const outboundSchema = AgentToolInputRunHttp$outboundSchema;
|
|
2570
|
+
/** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
|
|
2571
|
+
export type Outbound = AgentToolInputRunHttp$Outbound;
|
|
2848
2572
|
}
|
|
2849
2573
|
|
|
2850
|
-
export function
|
|
2851
|
-
|
|
2574
|
+
export function agentToolInputRunHttpToJSON(
|
|
2575
|
+
agentToolInputRunHttp: AgentToolInputRunHttp,
|
|
2852
2576
|
): string {
|
|
2853
2577
|
return JSON.stringify(
|
|
2854
|
-
|
|
2578
|
+
AgentToolInputRunHttp$outboundSchema.parse(agentToolInputRunHttp),
|
|
2855
2579
|
);
|
|
2856
2580
|
}
|
|
2857
2581
|
|
|
2858
|
-
export function
|
|
2582
|
+
export function agentToolInputRunHttpFromJSON(
|
|
2859
2583
|
jsonString: string,
|
|
2860
|
-
): SafeParseResult<
|
|
2584
|
+
): SafeParseResult<AgentToolInputRunHttp, SDKValidationError> {
|
|
2861
2585
|
return safeParse(
|
|
2862
2586
|
jsonString,
|
|
2863
|
-
(x) =>
|
|
2864
|
-
`Failed to parse '
|
|
2587
|
+
(x) => AgentToolInputRunHttp$inboundSchema.parse(JSON.parse(x)),
|
|
2588
|
+
`Failed to parse 'AgentToolInputRunHttp' from JSON`,
|
|
2865
2589
|
);
|
|
2866
2590
|
}
|
|
2867
2591
|
|
|
2868
2592
|
/** @internal */
|
|
2869
|
-
export const
|
|
2870
|
-
|
|
2593
|
+
export const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<
|
|
2594
|
+
AgentToolInputRunHTTPToolRun,
|
|
2871
2595
|
z.ZodTypeDef,
|
|
2872
2596
|
unknown
|
|
2873
2597
|
> = z.object({
|
|
2598
|
+
type:
|
|
2599
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2874
2600
|
key: z.string(),
|
|
2875
|
-
|
|
2601
|
+
_id: z.string().optional(),
|
|
2602
|
+
display_name: z.string().optional(),
|
|
2876
2603
|
description: z.string(),
|
|
2877
|
-
|
|
2878
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2879
|
-
http: z.lazy(() => RunAgentRequestToolHttp$inboundSchema),
|
|
2604
|
+
http: z.lazy(() => AgentToolInputRunHttp$inboundSchema),
|
|
2880
2605
|
requires_approval: z.boolean().default(false),
|
|
2881
2606
|
}).transform((v) => {
|
|
2882
2607
|
return remap$(v, {
|
|
2608
|
+
"_id": "id",
|
|
2883
2609
|
"display_name": "displayName",
|
|
2884
2610
|
"requires_approval": "requiresApproval",
|
|
2885
2611
|
});
|
|
2886
2612
|
});
|
|
2887
2613
|
|
|
2888
2614
|
/** @internal */
|
|
2889
|
-
export type
|
|
2615
|
+
export type AgentToolInputRunHTTPToolRun$Outbound = {
|
|
2616
|
+
type: string;
|
|
2890
2617
|
key: string;
|
|
2891
|
-
|
|
2618
|
+
_id?: string | undefined;
|
|
2619
|
+
display_name?: string | undefined;
|
|
2892
2620
|
description: string;
|
|
2893
|
-
|
|
2894
|
-
http: RunAgentRequestToolHttp$Outbound;
|
|
2621
|
+
http: AgentToolInputRunHttp$Outbound;
|
|
2895
2622
|
requires_approval: boolean;
|
|
2896
2623
|
};
|
|
2897
2624
|
|
|
2898
2625
|
/** @internal */
|
|
2899
|
-
export const
|
|
2900
|
-
|
|
2626
|
+
export const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<
|
|
2627
|
+
AgentToolInputRunHTTPToolRun$Outbound,
|
|
2901
2628
|
z.ZodTypeDef,
|
|
2902
|
-
|
|
2629
|
+
AgentToolInputRunHTTPToolRun
|
|
2903
2630
|
> = z.object({
|
|
2631
|
+
type:
|
|
2632
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2904
2633
|
key: z.string(),
|
|
2905
|
-
|
|
2634
|
+
id: z.string().optional(),
|
|
2635
|
+
displayName: z.string().optional(),
|
|
2906
2636
|
description: z.string(),
|
|
2907
|
-
|
|
2908
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2909
|
-
http: z.lazy(() => RunAgentRequestToolHttp$outboundSchema),
|
|
2637
|
+
http: z.lazy(() => AgentToolInputRunHttp$outboundSchema),
|
|
2910
2638
|
requiresApproval: z.boolean().default(false),
|
|
2911
2639
|
}).transform((v) => {
|
|
2912
2640
|
return remap$(v, {
|
|
2641
|
+
id: "_id",
|
|
2913
2642
|
displayName: "display_name",
|
|
2914
2643
|
requiresApproval: "requires_approval",
|
|
2915
2644
|
});
|
|
@@ -2919,192 +2648,203 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
|
|
|
2919
2648
|
* @internal
|
|
2920
2649
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2921
2650
|
*/
|
|
2922
|
-
export namespace
|
|
2923
|
-
/** @deprecated use `
|
|
2924
|
-
export const inboundSchema =
|
|
2925
|
-
/** @deprecated use `
|
|
2926
|
-
export const outboundSchema =
|
|
2927
|
-
/** @deprecated use `
|
|
2928
|
-
export type Outbound =
|
|
2651
|
+
export namespace AgentToolInputRunHTTPToolRun$ {
|
|
2652
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
|
|
2653
|
+
export const inboundSchema = AgentToolInputRunHTTPToolRun$inboundSchema;
|
|
2654
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
|
|
2655
|
+
export const outboundSchema = AgentToolInputRunHTTPToolRun$outboundSchema;
|
|
2656
|
+
/** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
|
|
2657
|
+
export type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
|
|
2929
2658
|
}
|
|
2930
2659
|
|
|
2931
|
-
export function
|
|
2932
|
-
|
|
2660
|
+
export function agentToolInputRunHTTPToolRunToJSON(
|
|
2661
|
+
agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun,
|
|
2933
2662
|
): string {
|
|
2934
2663
|
return JSON.stringify(
|
|
2935
|
-
|
|
2936
|
-
|
|
2664
|
+
AgentToolInputRunHTTPToolRun$outboundSchema.parse(
|
|
2665
|
+
agentToolInputRunHTTPToolRun,
|
|
2937
2666
|
),
|
|
2938
2667
|
);
|
|
2939
2668
|
}
|
|
2940
2669
|
|
|
2941
|
-
export function
|
|
2670
|
+
export function agentToolInputRunHTTPToolRunFromJSON(
|
|
2942
2671
|
jsonString: string,
|
|
2943
|
-
): SafeParseResult<
|
|
2672
|
+
): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError> {
|
|
2944
2673
|
return safeParse(
|
|
2945
2674
|
jsonString,
|
|
2946
|
-
(x) =>
|
|
2947
|
-
`Failed to parse '
|
|
2675
|
+
(x) => AgentToolInputRunHTTPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2676
|
+
`Failed to parse 'AgentToolInputRunHTTPToolRun' from JSON`,
|
|
2948
2677
|
);
|
|
2949
2678
|
}
|
|
2950
2679
|
|
|
2951
2680
|
/** @internal */
|
|
2952
|
-
export const
|
|
2681
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2953
2682
|
z.ZodNativeEnum<
|
|
2954
|
-
typeof
|
|
2683
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2955
2684
|
> = z.nativeEnum(
|
|
2956
|
-
|
|
2685
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
|
|
2957
2686
|
);
|
|
2958
2687
|
|
|
2959
2688
|
/** @internal */
|
|
2960
|
-
export const
|
|
2689
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2961
2690
|
z.ZodNativeEnum<
|
|
2962
|
-
typeof
|
|
2691
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2963
2692
|
> =
|
|
2964
|
-
|
|
2693
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2965
2694
|
|
|
2966
2695
|
/**
|
|
2967
2696
|
* @internal
|
|
2968
2697
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2969
2698
|
*/
|
|
2970
|
-
export namespace
|
|
2971
|
-
/** @deprecated use `
|
|
2699
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2700
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2972
2701
|
export const inboundSchema =
|
|
2973
|
-
|
|
2974
|
-
/** @deprecated use `
|
|
2702
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2703
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2975
2704
|
export const outboundSchema =
|
|
2976
|
-
|
|
2705
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2977
2706
|
}
|
|
2978
2707
|
|
|
2979
2708
|
/** @internal */
|
|
2980
|
-
export const
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2709
|
+
export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
|
|
2710
|
+
z.ZodType<
|
|
2711
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2712
|
+
z.ZodTypeDef,
|
|
2713
|
+
unknown
|
|
2714
|
+
> = z.object({
|
|
2715
|
+
type:
|
|
2716
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2717
|
+
requires_approval: z.boolean().default(false),
|
|
2718
|
+
}).transform((v) => {
|
|
2719
|
+
return remap$(v, {
|
|
2720
|
+
"requires_approval": "requiresApproval",
|
|
2721
|
+
});
|
|
2991
2722
|
});
|
|
2992
|
-
});
|
|
2993
2723
|
|
|
2994
2724
|
/** @internal */
|
|
2995
|
-
export type
|
|
2725
|
+
export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
|
|
2996
2726
|
type: string;
|
|
2997
2727
|
requires_approval: boolean;
|
|
2998
2728
|
};
|
|
2999
2729
|
|
|
3000
2730
|
/** @internal */
|
|
3001
|
-
export const
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
2731
|
+
export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
|
|
2732
|
+
z.ZodType<
|
|
2733
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
|
|
2734
|
+
z.ZodTypeDef,
|
|
2735
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool
|
|
2736
|
+
> = z.object({
|
|
2737
|
+
type:
|
|
2738
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2739
|
+
requiresApproval: z.boolean().default(false),
|
|
2740
|
+
}).transform((v) => {
|
|
2741
|
+
return remap$(v, {
|
|
2742
|
+
requiresApproval: "requires_approval",
|
|
2743
|
+
});
|
|
3012
2744
|
});
|
|
3013
|
-
});
|
|
3014
2745
|
|
|
3015
2746
|
/**
|
|
3016
2747
|
* @internal
|
|
3017
2748
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3018
2749
|
*/
|
|
3019
|
-
export namespace
|
|
3020
|
-
/** @deprecated use `
|
|
3021
|
-
export const inboundSchema =
|
|
3022
|
-
|
|
2750
|
+
export namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
|
|
2751
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
2752
|
+
export const inboundSchema =
|
|
2753
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema;
|
|
2754
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
3023
2755
|
export const outboundSchema =
|
|
3024
|
-
|
|
3025
|
-
/** @deprecated use `
|
|
3026
|
-
export type Outbound =
|
|
2756
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema;
|
|
2757
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
|
|
2758
|
+
export type Outbound =
|
|
2759
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
|
|
3027
2760
|
}
|
|
3028
2761
|
|
|
3029
|
-
export function
|
|
3030
|
-
|
|
2762
|
+
export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
|
|
2763
|
+
streamRunAgentAgentToolInputRunCurrentDateTool:
|
|
2764
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
3031
2765
|
): string {
|
|
3032
2766
|
return JSON.stringify(
|
|
3033
|
-
|
|
3034
|
-
|
|
2767
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
|
|
2768
|
+
streamRunAgentAgentToolInputRunCurrentDateTool,
|
|
3035
2769
|
),
|
|
3036
2770
|
);
|
|
3037
2771
|
}
|
|
3038
2772
|
|
|
3039
|
-
export function
|
|
2773
|
+
export function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(
|
|
3040
2774
|
jsonString: string,
|
|
3041
|
-
): SafeParseResult<
|
|
2775
|
+
): SafeParseResult<
|
|
2776
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool,
|
|
2777
|
+
SDKValidationError
|
|
2778
|
+
> {
|
|
3042
2779
|
return safeParse(
|
|
3043
2780
|
jsonString,
|
|
3044
2781
|
(x) =>
|
|
3045
|
-
|
|
3046
|
-
|
|
2782
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema.parse(
|
|
2783
|
+
JSON.parse(x),
|
|
2784
|
+
),
|
|
2785
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunCurrentDateTool' from JSON`,
|
|
3047
2786
|
);
|
|
3048
2787
|
}
|
|
3049
2788
|
|
|
3050
2789
|
/** @internal */
|
|
3051
|
-
export const
|
|
2790
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
3052
2791
|
z.ZodNativeEnum<
|
|
3053
|
-
typeof
|
|
2792
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
3054
2793
|
> = z.nativeEnum(
|
|
3055
|
-
|
|
2794
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
|
|
3056
2795
|
);
|
|
3057
2796
|
|
|
3058
2797
|
/** @internal */
|
|
3059
|
-
export const
|
|
2798
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
3060
2799
|
z.ZodNativeEnum<
|
|
3061
|
-
typeof
|
|
2800
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
3062
2801
|
> =
|
|
3063
|
-
|
|
2802
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
3064
2803
|
|
|
3065
2804
|
/**
|
|
3066
2805
|
* @internal
|
|
3067
2806
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3068
2807
|
*/
|
|
3069
|
-
export namespace
|
|
3070
|
-
/** @deprecated use `
|
|
2808
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2809
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
3071
2810
|
export const inboundSchema =
|
|
3072
|
-
|
|
3073
|
-
/** @deprecated use `
|
|
2811
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2812
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
3074
2813
|
export const outboundSchema =
|
|
3075
|
-
|
|
2814
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
3076
2815
|
}
|
|
3077
2816
|
|
|
3078
2817
|
/** @internal */
|
|
3079
|
-
export const
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
2818
|
+
export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema:
|
|
2819
|
+
z.ZodType<
|
|
2820
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
2821
|
+
z.ZodTypeDef,
|
|
2822
|
+
unknown
|
|
2823
|
+
> = z.object({
|
|
2824
|
+
type:
|
|
2825
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2826
|
+
requires_approval: z.boolean().default(false),
|
|
2827
|
+
}).transform((v) => {
|
|
2828
|
+
return remap$(v, {
|
|
2829
|
+
"requires_approval": "requiresApproval",
|
|
2830
|
+
});
|
|
3090
2831
|
});
|
|
3091
|
-
});
|
|
3092
2832
|
|
|
3093
2833
|
/** @internal */
|
|
3094
|
-
export type
|
|
2834
|
+
export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
|
|
3095
2835
|
type: string;
|
|
3096
2836
|
requires_approval: boolean;
|
|
3097
2837
|
};
|
|
3098
2838
|
|
|
3099
2839
|
/** @internal */
|
|
3100
|
-
export const
|
|
2840
|
+
export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
|
|
3101
2841
|
z.ZodType<
|
|
3102
|
-
|
|
2842
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
|
|
3103
2843
|
z.ZodTypeDef,
|
|
3104
|
-
|
|
2844
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
|
|
3105
2845
|
> = z.object({
|
|
3106
2846
|
type:
|
|
3107
|
-
|
|
2847
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
3108
2848
|
requiresApproval: z.boolean().default(false),
|
|
3109
2849
|
}).transform((v) => {
|
|
3110
2850
|
return remap$(v, {
|
|
@@ -3116,81 +2856,82 @@ export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
|
|
|
3116
2856
|
* @internal
|
|
3117
2857
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3118
2858
|
*/
|
|
3119
|
-
export namespace
|
|
3120
|
-
/** @deprecated use `
|
|
2859
|
+
export namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
|
|
2860
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
3121
2861
|
export const inboundSchema =
|
|
3122
|
-
|
|
3123
|
-
/** @deprecated use `
|
|
2862
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
2863
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
3124
2864
|
export const outboundSchema =
|
|
3125
|
-
|
|
3126
|
-
/** @deprecated use `
|
|
3127
|
-
export type Outbound =
|
|
2865
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
2866
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
|
|
2867
|
+
export type Outbound =
|
|
2868
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
|
|
3128
2869
|
}
|
|
3129
2870
|
|
|
3130
|
-
export function
|
|
3131
|
-
|
|
3132
|
-
|
|
2871
|
+
export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
|
|
2872
|
+
streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
|
|
2873
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3133
2874
|
): string {
|
|
3134
2875
|
return JSON.stringify(
|
|
3135
|
-
|
|
3136
|
-
|
|
2876
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
2877
|
+
streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3137
2878
|
),
|
|
3138
2879
|
);
|
|
3139
2880
|
}
|
|
3140
2881
|
|
|
3141
|
-
export function
|
|
2882
|
+
export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(
|
|
3142
2883
|
jsonString: string,
|
|
3143
2884
|
): SafeParseResult<
|
|
3144
|
-
|
|
2885
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
|
|
3145
2886
|
SDKValidationError
|
|
3146
2887
|
> {
|
|
3147
2888
|
return safeParse(
|
|
3148
2889
|
jsonString,
|
|
3149
2890
|
(x) =>
|
|
3150
|
-
|
|
2891
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
3151
2892
|
JSON.parse(x),
|
|
3152
2893
|
),
|
|
3153
|
-
`Failed to parse '
|
|
2894
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
|
|
3154
2895
|
);
|
|
3155
2896
|
}
|
|
3156
2897
|
|
|
3157
2898
|
/** @internal */
|
|
3158
|
-
export const
|
|
2899
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
3159
2900
|
z.ZodNativeEnum<
|
|
3160
|
-
typeof
|
|
2901
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3161
2902
|
> = z.nativeEnum(
|
|
3162
|
-
|
|
2903
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
|
|
3163
2904
|
);
|
|
3164
2905
|
|
|
3165
2906
|
/** @internal */
|
|
3166
|
-
export const
|
|
2907
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
3167
2908
|
z.ZodNativeEnum<
|
|
3168
|
-
typeof
|
|
2909
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3169
2910
|
> =
|
|
3170
|
-
|
|
2911
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
3171
2912
|
|
|
3172
2913
|
/**
|
|
3173
2914
|
* @internal
|
|
3174
2915
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3175
2916
|
*/
|
|
3176
|
-
export namespace
|
|
3177
|
-
/** @deprecated use `
|
|
2917
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2918
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
3178
2919
|
export const inboundSchema =
|
|
3179
|
-
|
|
3180
|
-
/** @deprecated use `
|
|
2920
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2921
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
3181
2922
|
export const outboundSchema =
|
|
3182
|
-
|
|
2923
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
3183
2924
|
}
|
|
3184
2925
|
|
|
3185
2926
|
/** @internal */
|
|
3186
|
-
export const
|
|
2927
|
+
export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
|
|
3187
2928
|
z.ZodType<
|
|
3188
|
-
|
|
2929
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3189
2930
|
z.ZodTypeDef,
|
|
3190
2931
|
unknown
|
|
3191
2932
|
> = z.object({
|
|
3192
2933
|
type:
|
|
3193
|
-
|
|
2934
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
3194
2935
|
requires_approval: z.boolean().default(false),
|
|
3195
2936
|
}).transform((v) => {
|
|
3196
2937
|
return remap$(v, {
|
|
@@ -3199,20 +2940,21 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
|
|
|
3199
2940
|
});
|
|
3200
2941
|
|
|
3201
2942
|
/** @internal */
|
|
3202
|
-
export type
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
2943
|
+
export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
|
|
2944
|
+
{
|
|
2945
|
+
type: string;
|
|
2946
|
+
requires_approval: boolean;
|
|
2947
|
+
};
|
|
3206
2948
|
|
|
3207
2949
|
/** @internal */
|
|
3208
|
-
export const
|
|
2950
|
+
export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
|
|
3209
2951
|
z.ZodType<
|
|
3210
|
-
|
|
2952
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
|
|
3211
2953
|
z.ZodTypeDef,
|
|
3212
|
-
|
|
2954
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
|
|
3213
2955
|
> = z.object({
|
|
3214
2956
|
type:
|
|
3215
|
-
|
|
2957
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
3216
2958
|
requiresApproval: z.boolean().default(false),
|
|
3217
2959
|
}).transform((v) => {
|
|
3218
2960
|
return remap$(v, {
|
|
@@ -3224,187 +2966,187 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
|
|
|
3224
2966
|
* @internal
|
|
3225
2967
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3226
2968
|
*/
|
|
3227
|
-
export namespace
|
|
3228
|
-
/** @deprecated use `
|
|
2969
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
|
|
2970
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
3229
2971
|
export const inboundSchema =
|
|
3230
|
-
|
|
3231
|
-
/** @deprecated use `
|
|
2972
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
2973
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
3232
2974
|
export const outboundSchema =
|
|
3233
|
-
|
|
3234
|
-
/** @deprecated use `
|
|
3235
|
-
export type Outbound =
|
|
2975
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
2976
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2977
|
+
export type Outbound =
|
|
2978
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
|
|
3236
2979
|
}
|
|
3237
2980
|
|
|
3238
|
-
export function
|
|
3239
|
-
|
|
3240
|
-
|
|
2981
|
+
export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
|
|
2982
|
+
streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
|
|
2983
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3241
2984
|
): string {
|
|
3242
2985
|
return JSON.stringify(
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
),
|
|
2986
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
2987
|
+
.parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
|
|
3246
2988
|
);
|
|
3247
2989
|
}
|
|
3248
2990
|
|
|
3249
|
-
export function
|
|
2991
|
+
export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
|
|
3250
2992
|
jsonString: string,
|
|
3251
2993
|
): SafeParseResult<
|
|
3252
|
-
|
|
2994
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3253
2995
|
SDKValidationError
|
|
3254
2996
|
> {
|
|
3255
2997
|
return safeParse(
|
|
3256
2998
|
jsonString,
|
|
3257
2999
|
(x) =>
|
|
3258
|
-
|
|
3259
|
-
JSON.parse(x),
|
|
3260
|
-
|
|
3261
|
-
`Failed to parse 'RunAgentRequestToolRetrieveKnowledgeBasesTool' from JSON`,
|
|
3000
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
3001
|
+
.parse(JSON.parse(x)),
|
|
3002
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
|
|
3262
3003
|
);
|
|
3263
3004
|
}
|
|
3264
3005
|
|
|
3265
3006
|
/** @internal */
|
|
3266
|
-
export const
|
|
3007
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
3267
3008
|
z.ZodNativeEnum<
|
|
3268
|
-
typeof
|
|
3009
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3269
3010
|
> = z.nativeEnum(
|
|
3270
|
-
|
|
3011
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
|
|
3271
3012
|
);
|
|
3272
3013
|
|
|
3273
3014
|
/** @internal */
|
|
3274
|
-
export const
|
|
3015
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
3275
3016
|
z.ZodNativeEnum<
|
|
3276
|
-
typeof
|
|
3017
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3277
3018
|
> =
|
|
3278
|
-
|
|
3019
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3279
3020
|
|
|
3280
3021
|
/**
|
|
3281
3022
|
* @internal
|
|
3282
3023
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3283
3024
|
*/
|
|
3284
|
-
export namespace
|
|
3285
|
-
/** @deprecated use `
|
|
3025
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
|
|
3026
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
3286
3027
|
export const inboundSchema =
|
|
3287
|
-
|
|
3288
|
-
/** @deprecated use `
|
|
3028
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3029
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
3289
3030
|
export const outboundSchema =
|
|
3290
|
-
|
|
3031
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
3291
3032
|
}
|
|
3292
3033
|
|
|
3293
3034
|
/** @internal */
|
|
3294
|
-
export const
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3035
|
+
export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema:
|
|
3036
|
+
z.ZodType<
|
|
3037
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3038
|
+
z.ZodTypeDef,
|
|
3039
|
+
unknown
|
|
3040
|
+
> = z.object({
|
|
3041
|
+
type:
|
|
3042
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
3043
|
+
requires_approval: z.boolean().default(false),
|
|
3044
|
+
}).transform((v) => {
|
|
3045
|
+
return remap$(v, {
|
|
3046
|
+
"requires_approval": "requiresApproval",
|
|
3047
|
+
});
|
|
3305
3048
|
});
|
|
3306
|
-
});
|
|
3307
3049
|
|
|
3308
3050
|
/** @internal */
|
|
3309
|
-
export type
|
|
3051
|
+
export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
|
|
3310
3052
|
type: string;
|
|
3311
3053
|
requires_approval: boolean;
|
|
3312
3054
|
};
|
|
3313
3055
|
|
|
3314
3056
|
/** @internal */
|
|
3315
|
-
export const
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3057
|
+
export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
|
|
3058
|
+
z.ZodType<
|
|
3059
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
|
|
3060
|
+
z.ZodTypeDef,
|
|
3061
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
|
|
3062
|
+
> = z.object({
|
|
3063
|
+
type:
|
|
3064
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
3065
|
+
requiresApproval: z.boolean().default(false),
|
|
3066
|
+
}).transform((v) => {
|
|
3067
|
+
return remap$(v, {
|
|
3068
|
+
requiresApproval: "requires_approval",
|
|
3069
|
+
});
|
|
3326
3070
|
});
|
|
3327
|
-
});
|
|
3328
3071
|
|
|
3329
3072
|
/**
|
|
3330
3073
|
* @internal
|
|
3331
3074
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3332
3075
|
*/
|
|
3333
|
-
export namespace
|
|
3334
|
-
/** @deprecated use `
|
|
3076
|
+
export namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
|
|
3077
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
3335
3078
|
export const inboundSchema =
|
|
3336
|
-
|
|
3337
|
-
/** @deprecated use `
|
|
3079
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
3080
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
3338
3081
|
export const outboundSchema =
|
|
3339
|
-
|
|
3340
|
-
/** @deprecated use `
|
|
3341
|
-
export type Outbound =
|
|
3082
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
3083
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
|
|
3084
|
+
export type Outbound =
|
|
3085
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
|
|
3342
3086
|
}
|
|
3343
3087
|
|
|
3344
|
-
export function
|
|
3345
|
-
|
|
3346
|
-
|
|
3088
|
+
export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
|
|
3089
|
+
streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
|
|
3090
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3347
3091
|
): string {
|
|
3348
3092
|
return JSON.stringify(
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
),
|
|
3093
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
3094
|
+
.parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
|
|
3352
3095
|
);
|
|
3353
3096
|
}
|
|
3354
3097
|
|
|
3355
|
-
export function
|
|
3098
|
+
export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(
|
|
3356
3099
|
jsonString: string,
|
|
3357
3100
|
): SafeParseResult<
|
|
3358
|
-
|
|
3101
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
|
|
3359
3102
|
SDKValidationError
|
|
3360
3103
|
> {
|
|
3361
3104
|
return safeParse(
|
|
3362
3105
|
jsonString,
|
|
3363
3106
|
(x) =>
|
|
3364
|
-
|
|
3365
|
-
JSON.parse(x),
|
|
3366
|
-
|
|
3367
|
-
`Failed to parse 'RunAgentRequestToolDeleteMemoryStoreTool' from JSON`,
|
|
3107
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
3108
|
+
.parse(JSON.parse(x)),
|
|
3109
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
|
|
3368
3110
|
);
|
|
3369
3111
|
}
|
|
3370
3112
|
|
|
3371
3113
|
/** @internal */
|
|
3372
|
-
export const
|
|
3114
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
|
|
3373
3115
|
z.ZodNativeEnum<
|
|
3374
|
-
typeof
|
|
3116
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
3375
3117
|
> = z.nativeEnum(
|
|
3376
|
-
|
|
3118
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type,
|
|
3377
3119
|
);
|
|
3378
3120
|
|
|
3379
3121
|
/** @internal */
|
|
3380
|
-
export const
|
|
3122
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
|
|
3381
3123
|
z.ZodNativeEnum<
|
|
3382
|
-
typeof
|
|
3124
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
|
|
3383
3125
|
> =
|
|
3384
|
-
|
|
3126
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
3385
3127
|
|
|
3386
3128
|
/**
|
|
3387
3129
|
* @internal
|
|
3388
3130
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3389
3131
|
*/
|
|
3390
|
-
export namespace
|
|
3391
|
-
/** @deprecated use `
|
|
3132
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
|
|
3133
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
|
|
3392
3134
|
export const inboundSchema =
|
|
3393
|
-
|
|
3394
|
-
/** @deprecated use `
|
|
3135
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
|
|
3136
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
|
|
3395
3137
|
export const outboundSchema =
|
|
3396
|
-
|
|
3138
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
|
|
3397
3139
|
}
|
|
3398
3140
|
|
|
3399
3141
|
/** @internal */
|
|
3400
|
-
export const
|
|
3142
|
+
export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema:
|
|
3401
3143
|
z.ZodType<
|
|
3402
|
-
|
|
3144
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3403
3145
|
z.ZodTypeDef,
|
|
3404
3146
|
unknown
|
|
3405
3147
|
> = z.object({
|
|
3406
3148
|
type:
|
|
3407
|
-
|
|
3149
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
|
|
3408
3150
|
requires_approval: z.boolean().default(false),
|
|
3409
3151
|
}).transform((v) => {
|
|
3410
3152
|
return remap$(v, {
|
|
@@ -3413,20 +3155,20 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
|
|
|
3413
3155
|
});
|
|
3414
3156
|
|
|
3415
3157
|
/** @internal */
|
|
3416
|
-
export type
|
|
3158
|
+
export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
|
|
3417
3159
|
type: string;
|
|
3418
3160
|
requires_approval: boolean;
|
|
3419
3161
|
};
|
|
3420
3162
|
|
|
3421
3163
|
/** @internal */
|
|
3422
|
-
export const
|
|
3164
|
+
export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
|
|
3423
3165
|
z.ZodType<
|
|
3424
|
-
|
|
3166
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
|
|
3425
3167
|
z.ZodTypeDef,
|
|
3426
|
-
|
|
3168
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
|
|
3427
3169
|
> = z.object({
|
|
3428
3170
|
type:
|
|
3429
|
-
|
|
3171
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
|
|
3430
3172
|
requiresApproval: z.boolean().default(false),
|
|
3431
3173
|
}).transform((v) => {
|
|
3432
3174
|
return remap$(v, {
|
|
@@ -3438,726 +3180,789 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
|
|
|
3438
3180
|
* @internal
|
|
3439
3181
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3440
3182
|
*/
|
|
3441
|
-
export namespace
|
|
3442
|
-
/** @deprecated use `
|
|
3183
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
|
|
3184
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3443
3185
|
export const inboundSchema =
|
|
3444
|
-
|
|
3445
|
-
/** @deprecated use `
|
|
3186
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
3187
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3446
3188
|
export const outboundSchema =
|
|
3447
|
-
|
|
3448
|
-
/** @deprecated use `
|
|
3449
|
-
export type Outbound =
|
|
3189
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
3190
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
|
|
3191
|
+
export type Outbound =
|
|
3192
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
|
|
3450
3193
|
}
|
|
3451
3194
|
|
|
3452
|
-
export function
|
|
3453
|
-
|
|
3454
|
-
|
|
3195
|
+
export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
|
|
3196
|
+
streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
|
|
3197
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3455
3198
|
): string {
|
|
3456
3199
|
return JSON.stringify(
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
),
|
|
3200
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
3201
|
+
.parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
|
|
3460
3202
|
);
|
|
3461
3203
|
}
|
|
3462
3204
|
|
|
3463
|
-
export function
|
|
3205
|
+
export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(
|
|
3464
3206
|
jsonString: string,
|
|
3465
3207
|
): SafeParseResult<
|
|
3466
|
-
|
|
3208
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
|
|
3467
3209
|
SDKValidationError
|
|
3468
3210
|
> {
|
|
3469
3211
|
return safeParse(
|
|
3470
3212
|
jsonString,
|
|
3471
3213
|
(x) =>
|
|
3472
|
-
|
|
3473
|
-
JSON.parse(x),
|
|
3474
|
-
|
|
3475
|
-
`Failed to parse 'RunAgentRequestToolRetrieveMemoryStoresTool' from JSON`,
|
|
3214
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
3215
|
+
.parse(JSON.parse(x)),
|
|
3216
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
|
|
3476
3217
|
);
|
|
3477
3218
|
}
|
|
3478
3219
|
|
|
3479
3220
|
/** @internal */
|
|
3480
|
-
export const
|
|
3221
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3481
3222
|
z.ZodNativeEnum<
|
|
3482
|
-
typeof
|
|
3223
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3483
3224
|
> = z.nativeEnum(
|
|
3484
|
-
|
|
3225
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
|
|
3485
3226
|
);
|
|
3486
3227
|
|
|
3487
3228
|
/** @internal */
|
|
3488
|
-
export const
|
|
3229
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3489
3230
|
z.ZodNativeEnum<
|
|
3490
|
-
typeof
|
|
3231
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3491
3232
|
> =
|
|
3492
|
-
|
|
3233
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3493
3234
|
|
|
3494
3235
|
/**
|
|
3495
3236
|
* @internal
|
|
3496
3237
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3497
3238
|
*/
|
|
3498
|
-
export namespace
|
|
3499
|
-
/** @deprecated use `
|
|
3239
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
|
|
3240
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3500
3241
|
export const inboundSchema =
|
|
3501
|
-
|
|
3502
|
-
/** @deprecated use `
|
|
3242
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3243
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3503
3244
|
export const outboundSchema =
|
|
3504
|
-
|
|
3245
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3505
3246
|
}
|
|
3506
3247
|
|
|
3507
3248
|
/** @internal */
|
|
3508
|
-
export const
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3249
|
+
export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
|
|
3250
|
+
z.ZodType<
|
|
3251
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3252
|
+
z.ZodTypeDef,
|
|
3253
|
+
unknown
|
|
3254
|
+
> = z.object({
|
|
3255
|
+
type:
|
|
3256
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3257
|
+
requires_approval: z.boolean().default(false),
|
|
3258
|
+
}).transform((v) => {
|
|
3259
|
+
return remap$(v, {
|
|
3260
|
+
"requires_approval": "requiresApproval",
|
|
3261
|
+
});
|
|
3519
3262
|
});
|
|
3520
|
-
});
|
|
3521
3263
|
|
|
3522
3264
|
/** @internal */
|
|
3523
|
-
export type
|
|
3265
|
+
export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
|
|
3524
3266
|
type: string;
|
|
3525
3267
|
requires_approval: boolean;
|
|
3526
3268
|
};
|
|
3527
3269
|
|
|
3528
3270
|
/** @internal */
|
|
3529
|
-
export const
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3271
|
+
export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
|
|
3272
|
+
z.ZodType<
|
|
3273
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
|
|
3274
|
+
z.ZodTypeDef,
|
|
3275
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
|
|
3276
|
+
> = z.object({
|
|
3277
|
+
type:
|
|
3278
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3279
|
+
requiresApproval: z.boolean().default(false),
|
|
3280
|
+
}).transform((v) => {
|
|
3281
|
+
return remap$(v, {
|
|
3282
|
+
requiresApproval: "requires_approval",
|
|
3283
|
+
});
|
|
3540
3284
|
});
|
|
3541
|
-
});
|
|
3542
3285
|
|
|
3543
3286
|
/**
|
|
3544
3287
|
* @internal
|
|
3545
3288
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3546
3289
|
*/
|
|
3547
|
-
export namespace
|
|
3548
|
-
/** @deprecated use `
|
|
3290
|
+
export namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
|
|
3291
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
3549
3292
|
export const inboundSchema =
|
|
3550
|
-
|
|
3551
|
-
/** @deprecated use `
|
|
3293
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
3294
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
3552
3295
|
export const outboundSchema =
|
|
3553
|
-
|
|
3554
|
-
/** @deprecated use `
|
|
3555
|
-
export type Outbound =
|
|
3296
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
3297
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
|
|
3298
|
+
export type Outbound =
|
|
3299
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
|
|
3556
3300
|
}
|
|
3557
3301
|
|
|
3558
|
-
export function
|
|
3559
|
-
|
|
3560
|
-
|
|
3302
|
+
export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
|
|
3303
|
+
streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
|
|
3304
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3561
3305
|
): string {
|
|
3562
3306
|
return JSON.stringify(
|
|
3563
|
-
|
|
3564
|
-
|
|
3307
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
|
|
3308
|
+
streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3565
3309
|
),
|
|
3566
3310
|
);
|
|
3567
3311
|
}
|
|
3568
3312
|
|
|
3569
|
-
export function
|
|
3313
|
+
export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(
|
|
3570
3314
|
jsonString: string,
|
|
3571
3315
|
): SafeParseResult<
|
|
3572
|
-
|
|
3316
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
|
|
3573
3317
|
SDKValidationError
|
|
3574
3318
|
> {
|
|
3575
3319
|
return safeParse(
|
|
3576
3320
|
jsonString,
|
|
3577
3321
|
(x) =>
|
|
3578
|
-
|
|
3322
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(
|
|
3579
3323
|
JSON.parse(x),
|
|
3580
3324
|
),
|
|
3581
|
-
`Failed to parse '
|
|
3325
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunWriteMemoryStoreTool' from JSON`,
|
|
3582
3326
|
);
|
|
3583
3327
|
}
|
|
3584
3328
|
|
|
3585
3329
|
/** @internal */
|
|
3586
|
-
export const
|
|
3330
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3587
3331
|
z.ZodNativeEnum<
|
|
3588
|
-
typeof
|
|
3332
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3589
3333
|
> = z.nativeEnum(
|
|
3590
|
-
|
|
3334
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
|
|
3591
3335
|
);
|
|
3592
3336
|
|
|
3593
3337
|
/** @internal */
|
|
3594
|
-
export const
|
|
3338
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3595
3339
|
z.ZodNativeEnum<
|
|
3596
|
-
typeof
|
|
3340
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3597
3341
|
> =
|
|
3598
|
-
|
|
3342
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3599
3343
|
|
|
3600
3344
|
/**
|
|
3601
3345
|
* @internal
|
|
3602
3346
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3603
3347
|
*/
|
|
3604
|
-
export namespace
|
|
3605
|
-
/** @deprecated use `
|
|
3348
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
|
|
3349
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3606
3350
|
export const inboundSchema =
|
|
3607
|
-
|
|
3608
|
-
/** @deprecated use `
|
|
3351
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3352
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3609
3353
|
export const outboundSchema =
|
|
3610
|
-
|
|
3354
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3611
3355
|
}
|
|
3612
3356
|
|
|
3613
3357
|
/** @internal */
|
|
3614
|
-
export const
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3358
|
+
export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
|
|
3359
|
+
z.ZodType<
|
|
3360
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3361
|
+
z.ZodTypeDef,
|
|
3362
|
+
unknown
|
|
3363
|
+
> = z.object({
|
|
3364
|
+
type:
|
|
3365
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3366
|
+
requires_approval: z.boolean().default(false),
|
|
3367
|
+
}).transform((v) => {
|
|
3368
|
+
return remap$(v, {
|
|
3369
|
+
"requires_approval": "requiresApproval",
|
|
3370
|
+
});
|
|
3625
3371
|
});
|
|
3626
|
-
});
|
|
3627
3372
|
|
|
3628
3373
|
/** @internal */
|
|
3629
|
-
export type
|
|
3374
|
+
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
|
|
3630
3375
|
type: string;
|
|
3631
3376
|
requires_approval: boolean;
|
|
3632
3377
|
};
|
|
3633
3378
|
|
|
3634
3379
|
/** @internal */
|
|
3635
|
-
export const
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3380
|
+
export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
|
|
3381
|
+
z.ZodType<
|
|
3382
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
|
|
3383
|
+
z.ZodTypeDef,
|
|
3384
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
|
|
3385
|
+
> = z.object({
|
|
3386
|
+
type:
|
|
3387
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3388
|
+
requiresApproval: z.boolean().default(false),
|
|
3389
|
+
}).transform((v) => {
|
|
3390
|
+
return remap$(v, {
|
|
3391
|
+
requiresApproval: "requires_approval",
|
|
3392
|
+
});
|
|
3646
3393
|
});
|
|
3647
|
-
});
|
|
3648
3394
|
|
|
3649
3395
|
/**
|
|
3650
3396
|
* @internal
|
|
3651
3397
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3652
3398
|
*/
|
|
3653
|
-
export namespace
|
|
3654
|
-
/** @deprecated use `
|
|
3399
|
+
export namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
|
|
3400
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
3655
3401
|
export const inboundSchema =
|
|
3656
|
-
|
|
3657
|
-
/** @deprecated use `
|
|
3402
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
3403
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
3658
3404
|
export const outboundSchema =
|
|
3659
|
-
|
|
3660
|
-
/** @deprecated use `
|
|
3661
|
-
export type Outbound =
|
|
3405
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
3406
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
|
|
3407
|
+
export type Outbound =
|
|
3408
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
|
|
3662
3409
|
}
|
|
3663
3410
|
|
|
3664
|
-
export function
|
|
3665
|
-
|
|
3666
|
-
|
|
3411
|
+
export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
|
|
3412
|
+
streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
|
|
3413
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3667
3414
|
): string {
|
|
3668
3415
|
return JSON.stringify(
|
|
3669
|
-
|
|
3670
|
-
|
|
3416
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
|
|
3417
|
+
streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3671
3418
|
),
|
|
3672
3419
|
);
|
|
3673
3420
|
}
|
|
3674
3421
|
|
|
3675
|
-
export function
|
|
3422
|
+
export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(
|
|
3676
3423
|
jsonString: string,
|
|
3677
3424
|
): SafeParseResult<
|
|
3678
|
-
|
|
3425
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
|
|
3679
3426
|
SDKValidationError
|
|
3680
3427
|
> {
|
|
3681
3428
|
return safeParse(
|
|
3682
3429
|
jsonString,
|
|
3683
3430
|
(x) =>
|
|
3684
|
-
|
|
3431
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(
|
|
3685
3432
|
JSON.parse(x),
|
|
3686
3433
|
),
|
|
3687
|
-
`Failed to parse '
|
|
3434
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunQueryMemoryStoreTool' from JSON`,
|
|
3688
3435
|
);
|
|
3689
3436
|
}
|
|
3690
3437
|
|
|
3691
3438
|
/** @internal */
|
|
3692
|
-
export const
|
|
3439
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
|
|
3693
3440
|
z.ZodNativeEnum<
|
|
3694
|
-
typeof
|
|
3695
|
-
> = z.nativeEnum(
|
|
3696
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType,
|
|
3697
|
-
);
|
|
3441
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3442
|
+
> = z.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
3698
3443
|
|
|
3699
3444
|
/** @internal */
|
|
3700
|
-
export const
|
|
3445
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
|
|
3701
3446
|
z.ZodNativeEnum<
|
|
3702
|
-
typeof
|
|
3703
|
-
> =
|
|
3704
|
-
StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
|
|
3447
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3448
|
+
> = StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3705
3449
|
|
|
3706
3450
|
/**
|
|
3707
3451
|
* @internal
|
|
3708
3452
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3709
3453
|
*/
|
|
3710
|
-
export namespace
|
|
3711
|
-
/** @deprecated use `
|
|
3454
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
|
|
3455
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3712
3456
|
export const inboundSchema =
|
|
3713
|
-
|
|
3714
|
-
/** @deprecated use `
|
|
3457
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3458
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3715
3459
|
export const outboundSchema =
|
|
3716
|
-
|
|
3460
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
3717
3461
|
}
|
|
3718
3462
|
|
|
3719
3463
|
/** @internal */
|
|
3720
|
-
export const
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3464
|
+
export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
|
|
3465
|
+
z.ZodType<
|
|
3466
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3467
|
+
z.ZodTypeDef,
|
|
3468
|
+
unknown
|
|
3469
|
+
> = z.object({
|
|
3470
|
+
type:
|
|
3471
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
3472
|
+
requires_approval: z.boolean().default(false),
|
|
3473
|
+
}).transform((v) => {
|
|
3474
|
+
return remap$(v, {
|
|
3475
|
+
"requires_approval": "requiresApproval",
|
|
3476
|
+
});
|
|
3731
3477
|
});
|
|
3732
|
-
});
|
|
3733
3478
|
|
|
3734
3479
|
/** @internal */
|
|
3735
|
-
export type
|
|
3480
|
+
export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
|
|
3736
3481
|
type: string;
|
|
3737
3482
|
requires_approval: boolean;
|
|
3738
3483
|
};
|
|
3739
3484
|
|
|
3740
3485
|
/** @internal */
|
|
3741
|
-
export const
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3486
|
+
export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
|
|
3487
|
+
z.ZodType<
|
|
3488
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
|
|
3489
|
+
z.ZodTypeDef,
|
|
3490
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool
|
|
3491
|
+
> = z.object({
|
|
3492
|
+
type:
|
|
3493
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
3494
|
+
requiresApproval: z.boolean().default(false),
|
|
3495
|
+
}).transform((v) => {
|
|
3496
|
+
return remap$(v, {
|
|
3497
|
+
requiresApproval: "requires_approval",
|
|
3498
|
+
});
|
|
3752
3499
|
});
|
|
3753
|
-
});
|
|
3754
3500
|
|
|
3755
3501
|
/**
|
|
3756
3502
|
* @internal
|
|
3757
3503
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3758
3504
|
*/
|
|
3759
|
-
export namespace
|
|
3760
|
-
/** @deprecated use `
|
|
3505
|
+
export namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
|
|
3506
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
3761
3507
|
export const inboundSchema =
|
|
3762
|
-
|
|
3763
|
-
/** @deprecated use `
|
|
3508
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
3509
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
3764
3510
|
export const outboundSchema =
|
|
3765
|
-
|
|
3766
|
-
/** @deprecated use `
|
|
3767
|
-
export type Outbound =
|
|
3511
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
3512
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
|
|
3513
|
+
export type Outbound =
|
|
3514
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
|
|
3768
3515
|
}
|
|
3769
3516
|
|
|
3770
|
-
export function
|
|
3771
|
-
|
|
3517
|
+
export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
|
|
3518
|
+
streamRunAgentAgentToolInputRunRetrieveAgentsTool:
|
|
3519
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3772
3520
|
): string {
|
|
3773
3521
|
return JSON.stringify(
|
|
3774
|
-
|
|
3775
|
-
|
|
3522
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
|
|
3523
|
+
streamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3776
3524
|
),
|
|
3777
3525
|
);
|
|
3778
3526
|
}
|
|
3779
3527
|
|
|
3780
|
-
export function
|
|
3528
|
+
export function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(
|
|
3781
3529
|
jsonString: string,
|
|
3782
|
-
): SafeParseResult<
|
|
3530
|
+
): SafeParseResult<
|
|
3531
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
|
|
3532
|
+
SDKValidationError
|
|
3533
|
+
> {
|
|
3783
3534
|
return safeParse(
|
|
3784
3535
|
jsonString,
|
|
3785
3536
|
(x) =>
|
|
3786
|
-
|
|
3787
|
-
|
|
3537
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(
|
|
3538
|
+
JSON.parse(x),
|
|
3539
|
+
),
|
|
3540
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveAgentsTool' from JSON`,
|
|
3788
3541
|
);
|
|
3789
3542
|
}
|
|
3790
3543
|
|
|
3791
3544
|
/** @internal */
|
|
3792
|
-
export const
|
|
3793
|
-
z.ZodNativeEnum<typeof
|
|
3794
|
-
.nativeEnum(
|
|
3545
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
|
|
3546
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> = z
|
|
3547
|
+
.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestType);
|
|
3795
3548
|
|
|
3796
3549
|
/** @internal */
|
|
3797
|
-
export const
|
|
3798
|
-
z.ZodNativeEnum<typeof
|
|
3799
|
-
|
|
3550
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
|
|
3551
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> =
|
|
3552
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3800
3553
|
|
|
3801
3554
|
/**
|
|
3802
3555
|
* @internal
|
|
3803
3556
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3804
3557
|
*/
|
|
3805
|
-
export namespace
|
|
3806
|
-
/** @deprecated use `
|
|
3558
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
|
|
3559
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
3807
3560
|
export const inboundSchema =
|
|
3808
|
-
|
|
3809
|
-
/** @deprecated use `
|
|
3561
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3562
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
3810
3563
|
export const outboundSchema =
|
|
3811
|
-
|
|
3564
|
+
StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
3812
3565
|
}
|
|
3813
3566
|
|
|
3814
3567
|
/** @internal */
|
|
3815
|
-
export const
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3568
|
+
export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
|
|
3569
|
+
z.ZodType<
|
|
3570
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3571
|
+
z.ZodTypeDef,
|
|
3572
|
+
unknown
|
|
3573
|
+
> = z.object({
|
|
3574
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
3575
|
+
requires_approval: z.boolean().default(false),
|
|
3576
|
+
}).transform((v) => {
|
|
3577
|
+
return remap$(v, {
|
|
3578
|
+
"requires_approval": "requiresApproval",
|
|
3579
|
+
});
|
|
3825
3580
|
});
|
|
3826
|
-
});
|
|
3827
3581
|
|
|
3828
3582
|
/** @internal */
|
|
3829
|
-
export type
|
|
3583
|
+
export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
|
|
3830
3584
|
type: string;
|
|
3831
3585
|
requires_approval: boolean;
|
|
3832
3586
|
};
|
|
3833
3587
|
|
|
3834
3588
|
/** @internal */
|
|
3835
|
-
export const
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3589
|
+
export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
|
|
3590
|
+
z.ZodType<
|
|
3591
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
|
|
3592
|
+
z.ZodTypeDef,
|
|
3593
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool
|
|
3594
|
+
> = z.object({
|
|
3595
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
3596
|
+
requiresApproval: z.boolean().default(false),
|
|
3597
|
+
}).transform((v) => {
|
|
3598
|
+
return remap$(v, {
|
|
3599
|
+
requiresApproval: "requires_approval",
|
|
3600
|
+
});
|
|
3845
3601
|
});
|
|
3846
|
-
});
|
|
3847
3602
|
|
|
3848
3603
|
/**
|
|
3849
3604
|
* @internal
|
|
3850
3605
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3851
3606
|
*/
|
|
3852
|
-
export namespace
|
|
3853
|
-
/** @deprecated use `
|
|
3607
|
+
export namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
|
|
3608
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
3854
3609
|
export const inboundSchema =
|
|
3855
|
-
|
|
3856
|
-
/** @deprecated use `
|
|
3610
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
3611
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
3857
3612
|
export const outboundSchema =
|
|
3858
|
-
|
|
3859
|
-
/** @deprecated use `
|
|
3860
|
-
export type Outbound =
|
|
3613
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
3614
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
|
|
3615
|
+
export type Outbound =
|
|
3616
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
|
|
3861
3617
|
}
|
|
3862
3618
|
|
|
3863
|
-
export function
|
|
3864
|
-
|
|
3619
|
+
export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
|
|
3620
|
+
streamRunAgentAgentToolInputRunCallSubAgentTool:
|
|
3621
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3865
3622
|
): string {
|
|
3866
3623
|
return JSON.stringify(
|
|
3867
|
-
|
|
3868
|
-
|
|
3624
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
|
|
3625
|
+
streamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3869
3626
|
),
|
|
3870
3627
|
);
|
|
3871
3628
|
}
|
|
3872
3629
|
|
|
3873
|
-
export function
|
|
3630
|
+
export function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(
|
|
3874
3631
|
jsonString: string,
|
|
3875
|
-
): SafeParseResult<
|
|
3632
|
+
): SafeParseResult<
|
|
3633
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool,
|
|
3634
|
+
SDKValidationError
|
|
3635
|
+
> {
|
|
3876
3636
|
return safeParse(
|
|
3877
3637
|
jsonString,
|
|
3878
3638
|
(x) =>
|
|
3879
|
-
|
|
3880
|
-
|
|
3639
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema.parse(
|
|
3640
|
+
JSON.parse(x),
|
|
3641
|
+
),
|
|
3642
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunCallSubAgentTool' from JSON`,
|
|
3881
3643
|
);
|
|
3882
3644
|
}
|
|
3883
3645
|
|
|
3884
3646
|
/** @internal */
|
|
3885
|
-
export const
|
|
3886
|
-
z.ZodNativeEnum<typeof
|
|
3887
|
-
.nativeEnum(
|
|
3647
|
+
export const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema:
|
|
3648
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> = z
|
|
3649
|
+
.nativeEnum(StreamRunAgentAgentToolInputRunAgentsType);
|
|
3888
3650
|
|
|
3889
3651
|
/** @internal */
|
|
3890
|
-
export const
|
|
3891
|
-
z.ZodNativeEnum<typeof
|
|
3892
|
-
|
|
3652
|
+
export const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema:
|
|
3653
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> =
|
|
3654
|
+
StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3893
3655
|
|
|
3894
3656
|
/**
|
|
3895
3657
|
* @internal
|
|
3896
3658
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3897
3659
|
*/
|
|
3898
|
-
export namespace
|
|
3899
|
-
/** @deprecated use `
|
|
3660
|
+
export namespace StreamRunAgentAgentToolInputRunAgentsType$ {
|
|
3661
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
3900
3662
|
export const inboundSchema =
|
|
3901
|
-
|
|
3902
|
-
/** @deprecated use `
|
|
3663
|
+
StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3664
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
3903
3665
|
export const outboundSchema =
|
|
3904
|
-
|
|
3666
|
+
StreamRunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
3905
3667
|
}
|
|
3906
3668
|
|
|
3907
3669
|
/** @internal */
|
|
3908
|
-
export const
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3670
|
+
export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
|
|
3671
|
+
z.ZodType<
|
|
3672
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3673
|
+
z.ZodTypeDef,
|
|
3674
|
+
unknown
|
|
3675
|
+
> = z.object({
|
|
3676
|
+
type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
3677
|
+
requires_approval: z.boolean().default(false),
|
|
3678
|
+
}).transform((v) => {
|
|
3679
|
+
return remap$(v, {
|
|
3680
|
+
"requires_approval": "requiresApproval",
|
|
3681
|
+
});
|
|
3918
3682
|
});
|
|
3919
|
-
});
|
|
3920
3683
|
|
|
3921
3684
|
/** @internal */
|
|
3922
|
-
export type
|
|
3685
|
+
export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
|
|
3923
3686
|
type: string;
|
|
3924
3687
|
requires_approval: boolean;
|
|
3925
3688
|
};
|
|
3926
3689
|
|
|
3927
3690
|
/** @internal */
|
|
3928
|
-
export const
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3691
|
+
export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
|
|
3692
|
+
z.ZodType<
|
|
3693
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
|
|
3694
|
+
z.ZodTypeDef,
|
|
3695
|
+
StreamRunAgentAgentToolInputRunWebScraperTool
|
|
3696
|
+
> = z.object({
|
|
3697
|
+
type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
3698
|
+
requiresApproval: z.boolean().default(false),
|
|
3699
|
+
}).transform((v) => {
|
|
3700
|
+
return remap$(v, {
|
|
3701
|
+
requiresApproval: "requires_approval",
|
|
3702
|
+
});
|
|
3938
3703
|
});
|
|
3939
|
-
});
|
|
3940
3704
|
|
|
3941
3705
|
/**
|
|
3942
3706
|
* @internal
|
|
3943
3707
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3944
3708
|
*/
|
|
3945
|
-
export namespace
|
|
3946
|
-
/** @deprecated use `
|
|
3947
|
-
export const inboundSchema =
|
|
3948
|
-
|
|
3709
|
+
export namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
|
|
3710
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
3711
|
+
export const inboundSchema =
|
|
3712
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema;
|
|
3713
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
3949
3714
|
export const outboundSchema =
|
|
3950
|
-
|
|
3951
|
-
/** @deprecated use `
|
|
3952
|
-
export type Outbound =
|
|
3715
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema;
|
|
3716
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
|
|
3717
|
+
export type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
|
|
3953
3718
|
}
|
|
3954
3719
|
|
|
3955
|
-
export function
|
|
3956
|
-
|
|
3720
|
+
export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
|
|
3721
|
+
streamRunAgentAgentToolInputRunWebScraperTool:
|
|
3722
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3957
3723
|
): string {
|
|
3958
3724
|
return JSON.stringify(
|
|
3959
|
-
|
|
3960
|
-
|
|
3725
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
|
|
3726
|
+
streamRunAgentAgentToolInputRunWebScraperTool,
|
|
3961
3727
|
),
|
|
3962
3728
|
);
|
|
3963
3729
|
}
|
|
3964
3730
|
|
|
3965
|
-
export function
|
|
3731
|
+
export function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(
|
|
3966
3732
|
jsonString: string,
|
|
3967
|
-
): SafeParseResult<
|
|
3733
|
+
): SafeParseResult<
|
|
3734
|
+
StreamRunAgentAgentToolInputRunWebScraperTool,
|
|
3735
|
+
SDKValidationError
|
|
3736
|
+
> {
|
|
3968
3737
|
return safeParse(
|
|
3969
3738
|
jsonString,
|
|
3970
|
-
(x) =>
|
|
3971
|
-
|
|
3739
|
+
(x) =>
|
|
3740
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema.parse(
|
|
3741
|
+
JSON.parse(x),
|
|
3742
|
+
),
|
|
3743
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunWebScraperTool' from JSON`,
|
|
3972
3744
|
);
|
|
3973
3745
|
}
|
|
3974
3746
|
|
|
3975
3747
|
/** @internal */
|
|
3976
|
-
export const
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
);
|
|
3748
|
+
export const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3749
|
+
typeof StreamRunAgentAgentToolInputRunType
|
|
3750
|
+
> = z.nativeEnum(StreamRunAgentAgentToolInputRunType);
|
|
3980
3751
|
|
|
3981
3752
|
/** @internal */
|
|
3982
|
-
export const
|
|
3983
|
-
z.ZodNativeEnum<typeof
|
|
3984
|
-
|
|
3753
|
+
export const StreamRunAgentAgentToolInputRunType$outboundSchema:
|
|
3754
|
+
z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType> =
|
|
3755
|
+
StreamRunAgentAgentToolInputRunType$inboundSchema;
|
|
3985
3756
|
|
|
3986
3757
|
/**
|
|
3987
3758
|
* @internal
|
|
3988
3759
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3989
3760
|
*/
|
|
3990
|
-
export namespace
|
|
3991
|
-
/** @deprecated use `
|
|
3761
|
+
export namespace StreamRunAgentAgentToolInputRunType$ {
|
|
3762
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
3992
3763
|
export const inboundSchema =
|
|
3993
|
-
|
|
3994
|
-
/** @deprecated use `
|
|
3764
|
+
StreamRunAgentAgentToolInputRunType$inboundSchema;
|
|
3765
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
3995
3766
|
export const outboundSchema =
|
|
3996
|
-
|
|
3767
|
+
StreamRunAgentAgentToolInputRunType$outboundSchema;
|
|
3997
3768
|
}
|
|
3998
3769
|
|
|
3999
3770
|
/** @internal */
|
|
4000
|
-
export const
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
3771
|
+
export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
|
|
3772
|
+
z.ZodType<
|
|
3773
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
3774
|
+
z.ZodTypeDef,
|
|
3775
|
+
unknown
|
|
3776
|
+
> = z.object({
|
|
3777
|
+
type: StreamRunAgentAgentToolInputRunType$inboundSchema,
|
|
3778
|
+
requires_approval: z.boolean().default(false),
|
|
3779
|
+
}).transform((v) => {
|
|
3780
|
+
return remap$(v, {
|
|
3781
|
+
"requires_approval": "requiresApproval",
|
|
3782
|
+
});
|
|
4010
3783
|
});
|
|
4011
|
-
});
|
|
4012
3784
|
|
|
4013
3785
|
/** @internal */
|
|
4014
|
-
export type
|
|
3786
|
+
export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
|
|
4015
3787
|
type: string;
|
|
4016
3788
|
requires_approval: boolean;
|
|
4017
3789
|
};
|
|
4018
3790
|
|
|
4019
3791
|
/** @internal */
|
|
4020
|
-
export const
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3792
|
+
export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
|
|
3793
|
+
z.ZodType<
|
|
3794
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
|
|
3795
|
+
z.ZodTypeDef,
|
|
3796
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
3797
|
+
> = z.object({
|
|
3798
|
+
type: StreamRunAgentAgentToolInputRunType$outboundSchema,
|
|
3799
|
+
requiresApproval: z.boolean().default(false),
|
|
3800
|
+
}).transform((v) => {
|
|
3801
|
+
return remap$(v, {
|
|
3802
|
+
requiresApproval: "requires_approval",
|
|
3803
|
+
});
|
|
4030
3804
|
});
|
|
4031
|
-
});
|
|
4032
3805
|
|
|
4033
3806
|
/**
|
|
4034
3807
|
* @internal
|
|
4035
3808
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4036
3809
|
*/
|
|
4037
|
-
export namespace
|
|
4038
|
-
/** @deprecated use `
|
|
3810
|
+
export namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
|
|
3811
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
4039
3812
|
export const inboundSchema =
|
|
4040
|
-
|
|
4041
|
-
/** @deprecated use `
|
|
3813
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
3814
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
4042
3815
|
export const outboundSchema =
|
|
4043
|
-
|
|
4044
|
-
/** @deprecated use `
|
|
4045
|
-
export type Outbound =
|
|
3816
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
3817
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
|
|
3818
|
+
export type Outbound =
|
|
3819
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
|
|
4046
3820
|
}
|
|
4047
3821
|
|
|
4048
|
-
export function
|
|
4049
|
-
|
|
3822
|
+
export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
|
|
3823
|
+
streamRunAgentAgentToolInputRunGoogleSearchTool:
|
|
3824
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
4050
3825
|
): string {
|
|
4051
3826
|
return JSON.stringify(
|
|
4052
|
-
|
|
4053
|
-
|
|
3827
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
|
|
3828
|
+
streamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
4054
3829
|
),
|
|
4055
3830
|
);
|
|
4056
3831
|
}
|
|
4057
3832
|
|
|
4058
|
-
export function
|
|
3833
|
+
export function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
|
|
4059
3834
|
jsonString: string,
|
|
4060
|
-
): SafeParseResult<
|
|
3835
|
+
): SafeParseResult<
|
|
3836
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool,
|
|
3837
|
+
SDKValidationError
|
|
3838
|
+
> {
|
|
4061
3839
|
return safeParse(
|
|
4062
3840
|
jsonString,
|
|
4063
3841
|
(x) =>
|
|
4064
|
-
|
|
4065
|
-
|
|
3842
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema.parse(
|
|
3843
|
+
JSON.parse(x),
|
|
3844
|
+
),
|
|
3845
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunGoogleSearchTool' from JSON`,
|
|
4066
3846
|
);
|
|
4067
3847
|
}
|
|
4068
3848
|
|
|
4069
3849
|
/** @internal */
|
|
4070
|
-
export const
|
|
4071
|
-
|
|
3850
|
+
export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
|
|
3851
|
+
StreamRunAgentAgentToolInputRun,
|
|
4072
3852
|
z.ZodTypeDef,
|
|
4073
3853
|
unknown
|
|
4074
3854
|
> = z.union([
|
|
4075
|
-
z.lazy(() =>
|
|
4076
|
-
z.lazy(() =>
|
|
4077
|
-
z.lazy(() =>
|
|
4078
|
-
z.lazy(() =>
|
|
4079
|
-
z.lazy(() =>
|
|
4080
|
-
z.lazy(() =>
|
|
4081
|
-
z.lazy(() =>
|
|
4082
|
-
z.lazy(() =>
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
z.lazy(() =>
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
z.lazy(() =>
|
|
3855
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
3856
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
3857
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
3858
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3859
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
|
|
3860
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3861
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3862
|
+
z.lazy(() =>
|
|
3863
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
|
|
3864
|
+
),
|
|
3865
|
+
z.lazy(() =>
|
|
3866
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
|
|
3867
|
+
),
|
|
3868
|
+
z.lazy(() =>
|
|
3869
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
3870
|
+
),
|
|
3871
|
+
z.lazy(() =>
|
|
3872
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
3873
|
+
),
|
|
3874
|
+
z.lazy(() =>
|
|
3875
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
3876
|
+
),
|
|
3877
|
+
z.lazy(() =>
|
|
3878
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
|
|
3879
|
+
),
|
|
3880
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema),
|
|
4089
3881
|
]);
|
|
4090
3882
|
|
|
4091
3883
|
/** @internal */
|
|
4092
|
-
export type
|
|
4093
|
-
|
|
|
4094
|
-
|
|
|
4095
|
-
|
|
|
4096
|
-
|
|
|
4097
|
-
|
|
|
4098
|
-
|
|
|
4099
|
-
|
|
|
4100
|
-
|
|
|
4101
|
-
|
|
|
4102
|
-
|
|
|
4103
|
-
|
|
|
4104
|
-
|
|
|
4105
|
-
|
|
|
4106
|
-
|
|
|
4107
|
-
|
|
4108
|
-
/** @internal */
|
|
4109
|
-
export const
|
|
4110
|
-
|
|
3884
|
+
export type StreamRunAgentAgentToolInputRun$Outbound =
|
|
3885
|
+
| AgentToolInputRunHTTPToolRun$Outbound
|
|
3886
|
+
| AgentToolInputRunCodeToolRun$Outbound
|
|
3887
|
+
| AgentToolInputRunFunctionToolRun$Outbound
|
|
3888
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
3889
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
3890
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
|
|
3891
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3892
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3893
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3894
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3895
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3896
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3897
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3898
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
|
|
3899
|
+
|
|
3900
|
+
/** @internal */
|
|
3901
|
+
export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
|
|
3902
|
+
StreamRunAgentAgentToolInputRun$Outbound,
|
|
4111
3903
|
z.ZodTypeDef,
|
|
4112
|
-
|
|
3904
|
+
StreamRunAgentAgentToolInputRun
|
|
4113
3905
|
> = z.union([
|
|
4114
|
-
z.lazy(() =>
|
|
4115
|
-
z.lazy(() =>
|
|
4116
|
-
z.lazy(() =>
|
|
4117
|
-
z.lazy(() =>
|
|
4118
|
-
z.lazy(() =>
|
|
4119
|
-
z.lazy(() =>
|
|
4120
|
-
z.lazy(() =>
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
z.lazy(() =>
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
z.lazy(() =>
|
|
4127
|
-
|
|
3906
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
3907
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
3908
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
3909
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3910
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
|
|
3911
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3912
|
+
z.lazy(() =>
|
|
3913
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
|
|
3914
|
+
),
|
|
3915
|
+
z.lazy(() =>
|
|
3916
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
|
|
3917
|
+
),
|
|
3918
|
+
z.lazy(() =>
|
|
3919
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
|
|
3920
|
+
),
|
|
3921
|
+
z.lazy(() =>
|
|
3922
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
3923
|
+
),
|
|
3924
|
+
z.lazy(() =>
|
|
3925
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
3926
|
+
),
|
|
3927
|
+
z.lazy(() =>
|
|
3928
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
3929
|
+
),
|
|
3930
|
+
z.lazy(() =>
|
|
3931
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
|
|
3932
|
+
),
|
|
3933
|
+
z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
|
|
4128
3934
|
]);
|
|
4129
3935
|
|
|
4130
3936
|
/**
|
|
4131
3937
|
* @internal
|
|
4132
3938
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4133
3939
|
*/
|
|
4134
|
-
export namespace
|
|
4135
|
-
/** @deprecated use `
|
|
4136
|
-
export const inboundSchema =
|
|
4137
|
-
/** @deprecated use `
|
|
4138
|
-
export const outboundSchema =
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
export type Outbound = StreamRunAgentRunAgentRequestTool$Outbound;
|
|
3940
|
+
export namespace StreamRunAgentAgentToolInputRun$ {
|
|
3941
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
|
|
3942
|
+
export const inboundSchema = StreamRunAgentAgentToolInputRun$inboundSchema;
|
|
3943
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
|
|
3944
|
+
export const outboundSchema = StreamRunAgentAgentToolInputRun$outboundSchema;
|
|
3945
|
+
/** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
|
|
3946
|
+
export type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
|
|
4142
3947
|
}
|
|
4143
3948
|
|
|
4144
|
-
export function
|
|
4145
|
-
|
|
3949
|
+
export function streamRunAgentAgentToolInputRunToJSON(
|
|
3950
|
+
streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun,
|
|
4146
3951
|
): string {
|
|
4147
3952
|
return JSON.stringify(
|
|
4148
|
-
|
|
4149
|
-
|
|
3953
|
+
StreamRunAgentAgentToolInputRun$outboundSchema.parse(
|
|
3954
|
+
streamRunAgentAgentToolInputRun,
|
|
4150
3955
|
),
|
|
4151
3956
|
);
|
|
4152
3957
|
}
|
|
4153
3958
|
|
|
4154
|
-
export function
|
|
3959
|
+
export function streamRunAgentAgentToolInputRunFromJSON(
|
|
4155
3960
|
jsonString: string,
|
|
4156
|
-
): SafeParseResult<
|
|
3961
|
+
): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError> {
|
|
4157
3962
|
return safeParse(
|
|
4158
3963
|
jsonString,
|
|
4159
|
-
(x) =>
|
|
4160
|
-
`Failed to parse '
|
|
3964
|
+
(x) => StreamRunAgentAgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
|
|
3965
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRun' from JSON`,
|
|
4161
3966
|
);
|
|
4162
3967
|
}
|
|
4163
3968
|
|
|
@@ -4191,20 +3996,42 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
4191
3996
|
> = z.object({
|
|
4192
3997
|
tools: z.array(
|
|
4193
3998
|
z.union([
|
|
4194
|
-
z.lazy(() =>
|
|
4195
|
-
z.lazy(() =>
|
|
4196
|
-
z.lazy(() =>
|
|
4197
|
-
z.lazy(() =>
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
z.lazy(() =>
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
z.lazy(() =>
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
z.lazy(() =>
|
|
4207
|
-
|
|
3999
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
4000
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
4001
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
4002
|
+
z.lazy(() =>
|
|
4003
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
|
|
4004
|
+
),
|
|
4005
|
+
z.lazy(() =>
|
|
4006
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
|
|
4007
|
+
),
|
|
4008
|
+
z.lazy(() =>
|
|
4009
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
|
|
4010
|
+
),
|
|
4011
|
+
z.lazy(() =>
|
|
4012
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema
|
|
4013
|
+
),
|
|
4014
|
+
z.lazy(() =>
|
|
4015
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
|
|
4016
|
+
),
|
|
4017
|
+
z.lazy(() =>
|
|
4018
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
|
|
4019
|
+
),
|
|
4020
|
+
z.lazy(() =>
|
|
4021
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
|
|
4022
|
+
),
|
|
4023
|
+
z.lazy(() =>
|
|
4024
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
|
|
4025
|
+
),
|
|
4026
|
+
z.lazy(() =>
|
|
4027
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
|
|
4028
|
+
),
|
|
4029
|
+
z.lazy(() =>
|
|
4030
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
|
|
4031
|
+
),
|
|
4032
|
+
z.lazy(() =>
|
|
4033
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema
|
|
4034
|
+
),
|
|
4208
4035
|
]),
|
|
4209
4036
|
),
|
|
4210
4037
|
tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
|
|
@@ -4222,20 +4049,20 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
4222
4049
|
/** @internal */
|
|
4223
4050
|
export type StreamRunAgentSettings$Outbound = {
|
|
4224
4051
|
tools: Array<
|
|
4225
|
-
|
|
|
4226
|
-
|
|
|
4227
|
-
|
|
|
4228
|
-
|
|
|
4229
|
-
|
|
|
4230
|
-
|
|
|
4231
|
-
|
|
|
4232
|
-
|
|
|
4233
|
-
|
|
|
4234
|
-
|
|
|
4235
|
-
|
|
|
4236
|
-
|
|
|
4237
|
-
|
|
|
4238
|
-
|
|
|
4052
|
+
| AgentToolInputRunHTTPToolRun$Outbound
|
|
4053
|
+
| AgentToolInputRunCodeToolRun$Outbound
|
|
4054
|
+
| AgentToolInputRunFunctionToolRun$Outbound
|
|
4055
|
+
| StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
|
|
4056
|
+
| StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
|
|
4057
|
+
| StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
|
|
4058
|
+
| StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
|
|
4059
|
+
| StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
4060
|
+
| StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
4061
|
+
| StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
4062
|
+
| StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
4063
|
+
| StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
4064
|
+
| StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
4065
|
+
| StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
|
|
4239
4066
|
>;
|
|
4240
4067
|
tool_approval_required: string;
|
|
4241
4068
|
max_iterations: number;
|
|
@@ -4250,22 +4077,42 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
4250
4077
|
> = z.object({
|
|
4251
4078
|
tools: z.array(
|
|
4252
4079
|
z.union([
|
|
4253
|
-
z.lazy(() =>
|
|
4254
|
-
z.lazy(() =>
|
|
4255
|
-
z.lazy(() =>
|
|
4256
|
-
z.lazy(() =>
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
z.lazy(() =>
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
z.lazy(() =>
|
|
4263
|
-
|
|
4080
|
+
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
4081
|
+
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
4082
|
+
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
4083
|
+
z.lazy(() =>
|
|
4084
|
+
StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
|
|
4085
|
+
),
|
|
4086
|
+
z.lazy(() =>
|
|
4087
|
+
StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
|
|
4088
|
+
),
|
|
4089
|
+
z.lazy(() =>
|
|
4090
|
+
StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
|
|
4091
|
+
),
|
|
4092
|
+
z.lazy(() =>
|
|
4093
|
+
StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
|
|
4094
|
+
),
|
|
4264
4095
|
z.lazy(() =>
|
|
4265
|
-
|
|
4096
|
+
StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
|
|
4097
|
+
),
|
|
4098
|
+
z.lazy(() =>
|
|
4099
|
+
StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
|
|
4100
|
+
),
|
|
4101
|
+
z.lazy(() =>
|
|
4102
|
+
StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
|
|
4103
|
+
),
|
|
4104
|
+
z.lazy(() =>
|
|
4105
|
+
StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
|
|
4106
|
+
),
|
|
4107
|
+
z.lazy(() =>
|
|
4108
|
+
StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
|
|
4109
|
+
),
|
|
4110
|
+
z.lazy(() =>
|
|
4111
|
+
StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
|
|
4112
|
+
),
|
|
4113
|
+
z.lazy(() =>
|
|
4114
|
+
StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
|
|
4266
4115
|
),
|
|
4267
|
-
z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
|
|
4268
|
-
z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
|
|
4269
4116
|
]),
|
|
4270
4117
|
),
|
|
4271
4118
|
toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
|
|
@@ -4318,7 +4165,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4318
4165
|
unknown
|
|
4319
4166
|
> = z.object({
|
|
4320
4167
|
key: z.string(),
|
|
4321
|
-
|
|
4168
|
+
task_id: z.string().optional(),
|
|
4322
4169
|
model: z.string(),
|
|
4323
4170
|
fallback_models: z.array(z.string()).optional(),
|
|
4324
4171
|
role: z.string(),
|
|
@@ -4343,6 +4190,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4343
4190
|
stream_timeout_seconds: z.number().optional(),
|
|
4344
4191
|
}).transform((v) => {
|
|
4345
4192
|
return remap$(v, {
|
|
4193
|
+
"task_id": "taskId",
|
|
4346
4194
|
"fallback_models": "fallbackModels",
|
|
4347
4195
|
"system_prompt": "systemPrompt",
|
|
4348
4196
|
"memory_stores": "memoryStores",
|
|
@@ -4355,7 +4203,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4355
4203
|
/** @internal */
|
|
4356
4204
|
export type StreamRunAgentRequestBody$Outbound = {
|
|
4357
4205
|
key: string;
|
|
4358
|
-
|
|
4206
|
+
task_id?: string | undefined;
|
|
4359
4207
|
model: string;
|
|
4360
4208
|
fallback_models?: Array<string> | undefined;
|
|
4361
4209
|
role: string;
|
|
@@ -4407,6 +4255,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4407
4255
|
streamTimeoutSeconds: z.number().optional(),
|
|
4408
4256
|
}).transform((v) => {
|
|
4409
4257
|
return remap$(v, {
|
|
4258
|
+
taskId: "task_id",
|
|
4410
4259
|
fallbackModels: "fallback_models",
|
|
4411
4260
|
systemPrompt: "system_prompt",
|
|
4412
4261
|
memoryStores: "memory_stores",
|