@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
|
@@ -212,47 +212,11 @@ export type RunAgentMemory = {
|
|
|
212
212
|
entityId: string;
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
export
|
|
216
|
-
Query: "query",
|
|
217
|
-
} as const;
|
|
218
|
-
export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<
|
|
219
|
-
typeof RunAgentKnowledgeBaseConfigurationType
|
|
220
|
-
>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Defines the configuration settings for a static query.
|
|
224
|
-
*/
|
|
225
|
-
export type KnowledgeBaseStaticQuery = {
|
|
226
|
-
type: RunAgentKnowledgeBaseConfigurationType;
|
|
227
|
-
query: string;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export const KnowledgeBaseConfigurationType = {
|
|
231
|
-
LastUserMessage: "last_user_message",
|
|
232
|
-
} as const;
|
|
233
|
-
export type KnowledgeBaseConfigurationType = ClosedEnum<
|
|
234
|
-
typeof KnowledgeBaseConfigurationType
|
|
235
|
-
>;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Defines the configuration settings for a last user message type retrieval.
|
|
239
|
-
*/
|
|
240
|
-
export type KnowledgeBaseLastUserMessage = {
|
|
241
|
-
type: KnowledgeBaseConfigurationType;
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Defines the configuration settings which can either be for a user message or a text entry.
|
|
246
|
-
*/
|
|
247
|
-
export type KnowledgeBaseConfiguration =
|
|
248
|
-
| KnowledgeBaseStaticQuery
|
|
249
|
-
| KnowledgeBaseLastUserMessage;
|
|
250
|
-
|
|
251
|
-
export type KnowledgeBases = {
|
|
215
|
+
export type RunAgentKnowledgeBases = {
|
|
252
216
|
/**
|
|
253
|
-
*
|
|
217
|
+
* Unique identifier of the knowledge base to search
|
|
254
218
|
*/
|
|
255
|
-
|
|
219
|
+
knowledgeId: string;
|
|
256
220
|
};
|
|
257
221
|
|
|
258
222
|
export type TeamOfAgents = {
|
|
@@ -266,42 +230,57 @@ export type TeamOfAgents = {
|
|
|
266
230
|
role?: string | undefined;
|
|
267
231
|
};
|
|
268
232
|
|
|
269
|
-
export const
|
|
233
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
270
234
|
{
|
|
271
235
|
Function: "function",
|
|
272
236
|
} as const;
|
|
273
|
-
export type
|
|
237
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
|
|
274
238
|
ClosedEnum<
|
|
275
|
-
typeof
|
|
239
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
276
240
|
>;
|
|
277
241
|
|
|
278
|
-
export type
|
|
242
|
+
export type AgentToolInputRunFunction = {
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
*/
|
|
279
246
|
name: string;
|
|
247
|
+
/**
|
|
248
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
249
|
+
*/
|
|
280
250
|
description?: string | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* 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.
|
|
253
|
+
*/
|
|
281
254
|
strict?: boolean | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* 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.
|
|
257
|
+
*/
|
|
282
258
|
parameters?: { [k: string]: any } | undefined;
|
|
283
259
|
};
|
|
284
260
|
|
|
285
261
|
/**
|
|
286
|
-
*
|
|
262
|
+
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
287
263
|
*/
|
|
288
|
-
export type
|
|
289
|
-
type:
|
|
290
|
-
|
|
264
|
+
export type FunctionToolRun = {
|
|
265
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
266
|
+
/**
|
|
267
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
268
|
+
*/
|
|
291
269
|
key: string;
|
|
270
|
+
id?: string | undefined;
|
|
292
271
|
displayName?: string | undefined;
|
|
293
272
|
description?: string | undefined;
|
|
273
|
+
function: AgentToolInputRunFunction;
|
|
294
274
|
requiresApproval?: boolean | undefined;
|
|
295
|
-
function: RunAgentRequestToolFunction;
|
|
296
275
|
};
|
|
297
276
|
|
|
298
|
-
export const
|
|
277
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
299
278
|
{
|
|
300
279
|
Code: "code",
|
|
301
280
|
} as const;
|
|
302
|
-
export type
|
|
281
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
|
|
303
282
|
ClosedEnum<
|
|
304
|
-
typeof
|
|
283
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
305
284
|
>;
|
|
306
285
|
|
|
307
286
|
export const Language = {
|
|
@@ -322,34 +301,31 @@ export type CodeTool = {
|
|
|
322
301
|
};
|
|
323
302
|
|
|
324
303
|
/**
|
|
325
|
-
*
|
|
304
|
+
* Code execution tool with inline definition for on-the-fly creation in run endpoint
|
|
326
305
|
*/
|
|
327
|
-
export type
|
|
306
|
+
export type CodeToolRun = {
|
|
307
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
328
308
|
/**
|
|
329
309
|
* Unique key of the tool as it will be displayed in the UI
|
|
330
310
|
*/
|
|
331
311
|
key: string;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
*/
|
|
335
|
-
displayName: string;
|
|
312
|
+
id?: string | undefined;
|
|
313
|
+
displayName?: string | undefined;
|
|
336
314
|
/**
|
|
337
315
|
* 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.
|
|
338
316
|
*/
|
|
339
317
|
description: string;
|
|
340
|
-
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
|
|
341
318
|
codeTool: CodeTool;
|
|
342
|
-
id?: string | undefined;
|
|
343
319
|
requiresApproval?: boolean | undefined;
|
|
344
320
|
};
|
|
345
321
|
|
|
346
|
-
export const
|
|
322
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
347
323
|
{
|
|
348
324
|
Http: "http",
|
|
349
325
|
} as const;
|
|
350
|
-
export type
|
|
326
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
|
|
351
327
|
ClosedEnum<
|
|
352
|
-
typeof
|
|
328
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
353
329
|
>;
|
|
354
330
|
|
|
355
331
|
/**
|
|
@@ -391,7 +367,7 @@ export type Blueprint = {
|
|
|
391
367
|
/**
|
|
392
368
|
* The type of the argument.
|
|
393
369
|
*/
|
|
394
|
-
export const
|
|
370
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
395
371
|
{
|
|
396
372
|
String: "string",
|
|
397
373
|
Number: "number",
|
|
@@ -400,9 +376,9 @@ export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12H
|
|
|
400
376
|
/**
|
|
401
377
|
* The type of the argument.
|
|
402
378
|
*/
|
|
403
|
-
export type
|
|
379
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
|
|
404
380
|
ClosedEnum<
|
|
405
|
-
typeof
|
|
381
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
406
382
|
>;
|
|
407
383
|
|
|
408
384
|
/**
|
|
@@ -415,7 +391,7 @@ export type Arguments = {
|
|
|
415
391
|
* The type of the argument.
|
|
416
392
|
*/
|
|
417
393
|
type:
|
|
418
|
-
|
|
394
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
419
395
|
/**
|
|
420
396
|
* A description of the argument.
|
|
421
397
|
*/
|
|
@@ -442,224 +418,254 @@ export type Http = {
|
|
|
442
418
|
};
|
|
443
419
|
|
|
444
420
|
/**
|
|
445
|
-
*
|
|
421
|
+
* HTTP tool with inline definition for on-the-fly creation in run endpoint
|
|
446
422
|
*/
|
|
447
|
-
export type
|
|
423
|
+
export type HTTPToolRun = {
|
|
424
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
448
425
|
/**
|
|
449
426
|
* Unique key of the tool as it will be displayed in the UI
|
|
450
427
|
*/
|
|
451
428
|
key: string;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
*/
|
|
455
|
-
displayName: string;
|
|
429
|
+
id?: string | undefined;
|
|
430
|
+
displayName?: string | undefined;
|
|
456
431
|
/**
|
|
457
432
|
* 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.
|
|
458
433
|
*/
|
|
459
434
|
description: string;
|
|
460
|
-
type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
|
|
461
435
|
http: Http;
|
|
462
436
|
requiresApproval?: boolean | undefined;
|
|
463
437
|
};
|
|
464
438
|
|
|
465
|
-
export const
|
|
439
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
466
440
|
{
|
|
467
441
|
CurrentDate: "current_date",
|
|
468
442
|
} as const;
|
|
469
|
-
export type
|
|
443
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
|
|
470
444
|
ClosedEnum<
|
|
471
|
-
typeof
|
|
445
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
472
446
|
>;
|
|
473
447
|
|
|
474
448
|
/**
|
|
475
|
-
*
|
|
449
|
+
* Returns the current date and time
|
|
476
450
|
*/
|
|
477
|
-
export type
|
|
478
|
-
type:
|
|
451
|
+
export type AgentToolInputRunCurrentDateTool = {
|
|
452
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
453
|
+
/**
|
|
454
|
+
* Whether this tool requires approval before execution
|
|
455
|
+
*/
|
|
479
456
|
requiresApproval?: boolean | undefined;
|
|
480
457
|
};
|
|
481
458
|
|
|
482
|
-
export const
|
|
459
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
483
460
|
{
|
|
484
461
|
QueryKnowledgeBase: "query_knowledge_base",
|
|
485
462
|
} as const;
|
|
486
|
-
export type
|
|
463
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
|
|
487
464
|
ClosedEnum<
|
|
488
|
-
typeof
|
|
465
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
489
466
|
>;
|
|
490
467
|
|
|
491
468
|
/**
|
|
492
469
|
* Queries knowledge bases for information
|
|
493
470
|
*/
|
|
494
|
-
export type
|
|
495
|
-
type:
|
|
471
|
+
export type AgentToolInputRunQueryKnowledgeBaseTool = {
|
|
472
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
473
|
+
/**
|
|
474
|
+
* Whether this tool requires approval before execution
|
|
475
|
+
*/
|
|
496
476
|
requiresApproval?: boolean | undefined;
|
|
497
477
|
};
|
|
498
478
|
|
|
499
|
-
export const
|
|
479
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
500
480
|
{
|
|
501
481
|
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
502
482
|
} as const;
|
|
503
|
-
export type
|
|
483
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
|
|
504
484
|
ClosedEnum<
|
|
505
|
-
typeof
|
|
485
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
506
486
|
>;
|
|
507
487
|
|
|
508
488
|
/**
|
|
509
489
|
* Lists available knowledge bases
|
|
510
490
|
*/
|
|
511
|
-
export type
|
|
512
|
-
type:
|
|
491
|
+
export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
492
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
493
|
+
/**
|
|
494
|
+
* Whether this tool requires approval before execution
|
|
495
|
+
*/
|
|
513
496
|
requiresApproval?: boolean | undefined;
|
|
514
497
|
};
|
|
515
498
|
|
|
516
|
-
export const
|
|
499
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
517
500
|
{
|
|
518
501
|
DeleteMemoryDocument: "delete_memory_document",
|
|
519
502
|
} as const;
|
|
520
|
-
export type
|
|
503
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
|
|
521
504
|
ClosedEnum<
|
|
522
|
-
typeof
|
|
505
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
523
506
|
>;
|
|
524
507
|
|
|
525
508
|
/**
|
|
526
|
-
* Deletes
|
|
509
|
+
* Deletes documents from memory stores
|
|
527
510
|
*/
|
|
528
|
-
export type
|
|
529
|
-
type:
|
|
511
|
+
export type AgentToolInputRunDeleteMemoryDocumentTool = {
|
|
512
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
513
|
+
/**
|
|
514
|
+
* Whether this tool requires approval before execution
|
|
515
|
+
*/
|
|
530
516
|
requiresApproval?: boolean | undefined;
|
|
531
517
|
};
|
|
532
518
|
|
|
533
|
-
export const
|
|
519
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
534
520
|
{
|
|
535
521
|
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
536
522
|
} as const;
|
|
537
|
-
export type
|
|
523
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
|
|
538
524
|
ClosedEnum<
|
|
539
|
-
typeof
|
|
525
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
540
526
|
>;
|
|
541
527
|
|
|
542
528
|
/**
|
|
543
529
|
* Lists available memory stores
|
|
544
530
|
*/
|
|
545
|
-
export type
|
|
546
|
-
type:
|
|
531
|
+
export type AgentToolInputRunRetrieveMemoryStoresTool = {
|
|
532
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
533
|
+
/**
|
|
534
|
+
* Whether this tool requires approval before execution
|
|
535
|
+
*/
|
|
547
536
|
requiresApproval?: boolean | undefined;
|
|
548
537
|
};
|
|
549
538
|
|
|
550
|
-
export const
|
|
539
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
|
|
551
540
|
WriteMemoryStore: "write_memory_store",
|
|
552
541
|
} as const;
|
|
553
|
-
export type
|
|
542
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
|
|
554
543
|
ClosedEnum<
|
|
555
|
-
typeof
|
|
544
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
556
545
|
>;
|
|
557
546
|
|
|
558
547
|
/**
|
|
559
548
|
* Writes information to agent memory stores
|
|
560
549
|
*/
|
|
561
|
-
export type
|
|
562
|
-
type:
|
|
550
|
+
export type AgentToolInputRunWriteMemoryStoreTool = {
|
|
551
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
552
|
+
/**
|
|
553
|
+
* Whether this tool requires approval before execution
|
|
554
|
+
*/
|
|
563
555
|
requiresApproval?: boolean | undefined;
|
|
564
556
|
};
|
|
565
557
|
|
|
566
|
-
export const
|
|
558
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
567
559
|
QueryMemoryStore: "query_memory_store",
|
|
568
560
|
} as const;
|
|
569
|
-
export type
|
|
570
|
-
|
|
561
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<
|
|
562
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
563
|
+
>;
|
|
571
564
|
|
|
572
565
|
/**
|
|
573
566
|
* Queries agent memory stores for context
|
|
574
567
|
*/
|
|
575
|
-
export type
|
|
576
|
-
type:
|
|
568
|
+
export type AgentToolInputRunQueryMemoryStoreTool = {
|
|
569
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
570
|
+
/**
|
|
571
|
+
* Whether this tool requires approval before execution
|
|
572
|
+
*/
|
|
577
573
|
requiresApproval?: boolean | undefined;
|
|
578
574
|
};
|
|
579
575
|
|
|
580
|
-
export const
|
|
576
|
+
export const RunAgentAgentToolInputRunAgentsRequestType = {
|
|
581
577
|
RetrieveAgents: "retrieve_agents",
|
|
582
578
|
} as const;
|
|
583
|
-
export type
|
|
584
|
-
typeof
|
|
579
|
+
export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
|
|
580
|
+
typeof RunAgentAgentToolInputRunAgentsRequestType
|
|
585
581
|
>;
|
|
586
582
|
|
|
587
583
|
/**
|
|
588
584
|
* Retrieves available agents in the system
|
|
589
585
|
*/
|
|
590
|
-
export type
|
|
591
|
-
type:
|
|
586
|
+
export type AgentToolInputRunRetrieveAgentsTool = {
|
|
587
|
+
type: RunAgentAgentToolInputRunAgentsRequestType;
|
|
588
|
+
/**
|
|
589
|
+
* Whether this tool requires approval before execution
|
|
590
|
+
*/
|
|
592
591
|
requiresApproval?: boolean | undefined;
|
|
593
592
|
};
|
|
594
593
|
|
|
595
|
-
export const
|
|
594
|
+
export const RunAgentAgentToolInputRunAgentsType = {
|
|
596
595
|
CallSubAgent: "call_sub_agent",
|
|
597
596
|
} as const;
|
|
598
|
-
export type
|
|
599
|
-
typeof
|
|
597
|
+
export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<
|
|
598
|
+
typeof RunAgentAgentToolInputRunAgentsType
|
|
600
599
|
>;
|
|
601
600
|
|
|
602
601
|
/**
|
|
603
602
|
* Delegates tasks to specialized sub-agents
|
|
604
603
|
*/
|
|
605
|
-
export type
|
|
606
|
-
type:
|
|
604
|
+
export type AgentToolInputRunCallSubAgentTool = {
|
|
605
|
+
type: RunAgentAgentToolInputRunAgentsType;
|
|
606
|
+
/**
|
|
607
|
+
* Whether this tool requires approval before execution
|
|
608
|
+
*/
|
|
607
609
|
requiresApproval?: boolean | undefined;
|
|
608
610
|
};
|
|
609
611
|
|
|
610
|
-
export const
|
|
612
|
+
export const RunAgentAgentToolInputRunType = {
|
|
611
613
|
WebScraper: "web_scraper",
|
|
612
614
|
} as const;
|
|
613
|
-
export type
|
|
614
|
-
typeof
|
|
615
|
+
export type RunAgentAgentToolInputRunType = ClosedEnum<
|
|
616
|
+
typeof RunAgentAgentToolInputRunType
|
|
615
617
|
>;
|
|
616
618
|
|
|
617
619
|
/**
|
|
618
620
|
* Scrapes and extracts content from web pages
|
|
619
621
|
*/
|
|
620
|
-
export type
|
|
621
|
-
type:
|
|
622
|
+
export type AgentToolInputRunWebScraperTool = {
|
|
623
|
+
type: RunAgentAgentToolInputRunType;
|
|
624
|
+
/**
|
|
625
|
+
* Whether this tool requires approval before execution
|
|
626
|
+
*/
|
|
622
627
|
requiresApproval?: boolean | undefined;
|
|
623
628
|
};
|
|
624
629
|
|
|
625
|
-
export const
|
|
630
|
+
export const AgentToolInputRunType = {
|
|
626
631
|
GoogleSearch: "google_search",
|
|
627
632
|
} as const;
|
|
628
|
-
export type
|
|
629
|
-
typeof RunAgentRequestToolType
|
|
630
|
-
>;
|
|
633
|
+
export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
|
|
631
634
|
|
|
632
635
|
/**
|
|
633
636
|
* Performs Google searches to retrieve web content
|
|
634
637
|
*/
|
|
635
|
-
export type
|
|
636
|
-
type:
|
|
638
|
+
export type AgentToolInputRunGoogleSearchTool = {
|
|
639
|
+
type: AgentToolInputRunType;
|
|
640
|
+
/**
|
|
641
|
+
* Whether this tool requires approval before execution
|
|
642
|
+
*/
|
|
637
643
|
requiresApproval?: boolean | undefined;
|
|
638
644
|
};
|
|
639
645
|
|
|
640
646
|
/**
|
|
641
|
-
*
|
|
647
|
+
* 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.
|
|
642
648
|
*/
|
|
643
|
-
export type
|
|
644
|
-
|
|
|
645
|
-
|
|
|
646
|
-
|
|
|
647
|
-
|
|
|
648
|
-
|
|
|
649
|
-
|
|
|
650
|
-
|
|
|
651
|
-
|
|
|
652
|
-
|
|
|
653
|
-
|
|
|
654
|
-
|
|
|
655
|
-
|
|
|
656
|
-
|
|
|
657
|
-
|
|
|
649
|
+
export type AgentToolInputRun =
|
|
650
|
+
| HTTPToolRun
|
|
651
|
+
| CodeToolRun
|
|
652
|
+
| FunctionToolRun
|
|
653
|
+
| AgentToolInputRunGoogleSearchTool
|
|
654
|
+
| AgentToolInputRunWebScraperTool
|
|
655
|
+
| AgentToolInputRunCallSubAgentTool
|
|
656
|
+
| AgentToolInputRunRetrieveAgentsTool
|
|
657
|
+
| AgentToolInputRunQueryMemoryStoreTool
|
|
658
|
+
| AgentToolInputRunWriteMemoryStoreTool
|
|
659
|
+
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
660
|
+
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
661
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
662
|
+
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
663
|
+
| AgentToolInputRunCurrentDateTool;
|
|
658
664
|
|
|
659
665
|
/**
|
|
660
666
|
* 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.
|
|
661
667
|
*/
|
|
662
|
-
export const
|
|
668
|
+
export const RunAgentToolApprovalRequired = {
|
|
663
669
|
All: "all",
|
|
664
670
|
RespectTool: "respect_tool",
|
|
665
671
|
None: "none",
|
|
@@ -667,32 +673,34 @@ export const ToolApprovalRequired = {
|
|
|
667
673
|
/**
|
|
668
674
|
* 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.
|
|
669
675
|
*/
|
|
670
|
-
export type
|
|
676
|
+
export type RunAgentToolApprovalRequired = ClosedEnum<
|
|
677
|
+
typeof RunAgentToolApprovalRequired
|
|
678
|
+
>;
|
|
671
679
|
|
|
672
|
-
export type
|
|
680
|
+
export type RunAgentSettings = {
|
|
673
681
|
/**
|
|
674
682
|
* Tools available to the agent
|
|
675
683
|
*/
|
|
676
684
|
tools: Array<
|
|
677
|
-
|
|
|
678
|
-
|
|
|
679
|
-
|
|
|
680
|
-
|
|
|
681
|
-
|
|
|
682
|
-
|
|
|
683
|
-
|
|
|
684
|
-
|
|
|
685
|
-
|
|
|
686
|
-
|
|
|
687
|
-
|
|
|
688
|
-
|
|
|
689
|
-
|
|
|
690
|
-
|
|
|
685
|
+
| HTTPToolRun
|
|
686
|
+
| CodeToolRun
|
|
687
|
+
| FunctionToolRun
|
|
688
|
+
| AgentToolInputRunGoogleSearchTool
|
|
689
|
+
| AgentToolInputRunWebScraperTool
|
|
690
|
+
| AgentToolInputRunCallSubAgentTool
|
|
691
|
+
| AgentToolInputRunRetrieveAgentsTool
|
|
692
|
+
| AgentToolInputRunQueryMemoryStoreTool
|
|
693
|
+
| AgentToolInputRunWriteMemoryStoreTool
|
|
694
|
+
| AgentToolInputRunRetrieveMemoryStoresTool
|
|
695
|
+
| AgentToolInputRunDeleteMemoryDocumentTool
|
|
696
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
697
|
+
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
698
|
+
| AgentToolInputRunCurrentDateTool
|
|
691
699
|
>;
|
|
692
700
|
/**
|
|
693
701
|
* 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.
|
|
694
702
|
*/
|
|
695
|
-
toolApprovalRequired?:
|
|
703
|
+
toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
|
|
696
704
|
/**
|
|
697
705
|
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
698
706
|
*/
|
|
@@ -770,12 +778,15 @@ export type RunAgentRequestBody = {
|
|
|
770
778
|
* The list of keys of the memory stores that are accessible to the agent.
|
|
771
779
|
*/
|
|
772
780
|
memoryStores?: Array<string> | undefined;
|
|
773
|
-
|
|
781
|
+
/**
|
|
782
|
+
* Knowledge base configurations for the agent to access
|
|
783
|
+
*/
|
|
784
|
+
knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
|
|
774
785
|
/**
|
|
775
786
|
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
776
787
|
*/
|
|
777
788
|
teamOfAgents?: Array<TeamOfAgents> | undefined;
|
|
778
|
-
settings:
|
|
789
|
+
settings: RunAgentSettings;
|
|
779
790
|
/**
|
|
780
791
|
* Optional metadata for the agent run as key-value pairs that will be included in traces
|
|
781
792
|
*/
|
|
@@ -871,7 +882,7 @@ export type RunAgentResponseBody = {
|
|
|
871
882
|
*/
|
|
872
883
|
id: string;
|
|
873
884
|
/**
|
|
874
|
-
* The
|
|
885
|
+
* The correlation ID for this execution
|
|
875
886
|
*/
|
|
876
887
|
contextId: string;
|
|
877
888
|
/**
|
|
@@ -883,7 +894,7 @@ export type RunAgentResponseBody = {
|
|
|
883
894
|
*/
|
|
884
895
|
status: RunAgentStatus;
|
|
885
896
|
/**
|
|
886
|
-
* Task metadata
|
|
897
|
+
* Task metadata containing workspace_id and trace_id for feedback
|
|
887
898
|
*/
|
|
888
899
|
metadata?: { [k: string]: any } | undefined;
|
|
889
900
|
};
|
|
@@ -1749,274 +1760,64 @@ export function runAgentMemoryFromJSON(
|
|
|
1749
1760
|
}
|
|
1750
1761
|
|
|
1751
1762
|
/** @internal */
|
|
1752
|
-
export const
|
|
1753
|
-
|
|
1754
|
-
RunAgentKnowledgeBaseConfigurationType,
|
|
1755
|
-
);
|
|
1756
|
-
|
|
1757
|
-
/** @internal */
|
|
1758
|
-
export const RunAgentKnowledgeBaseConfigurationType$outboundSchema:
|
|
1759
|
-
z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> =
|
|
1760
|
-
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1761
|
-
|
|
1762
|
-
/**
|
|
1763
|
-
* @internal
|
|
1764
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1765
|
-
*/
|
|
1766
|
-
export namespace RunAgentKnowledgeBaseConfigurationType$ {
|
|
1767
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1768
|
-
export const inboundSchema =
|
|
1769
|
-
RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
1770
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1771
|
-
export const outboundSchema =
|
|
1772
|
-
RunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
/** @internal */
|
|
1776
|
-
export const KnowledgeBaseStaticQuery$inboundSchema: z.ZodType<
|
|
1777
|
-
KnowledgeBaseStaticQuery,
|
|
1763
|
+
export const RunAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
1764
|
+
RunAgentKnowledgeBases,
|
|
1778
1765
|
z.ZodTypeDef,
|
|
1779
1766
|
unknown
|
|
1780
1767
|
> = z.object({
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
export type KnowledgeBaseStaticQuery$Outbound = {
|
|
1787
|
-
type: string;
|
|
1788
|
-
query: string;
|
|
1789
|
-
};
|
|
1790
|
-
|
|
1791
|
-
/** @internal */
|
|
1792
|
-
export const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<
|
|
1793
|
-
KnowledgeBaseStaticQuery$Outbound,
|
|
1794
|
-
z.ZodTypeDef,
|
|
1795
|
-
KnowledgeBaseStaticQuery
|
|
1796
|
-
> = z.object({
|
|
1797
|
-
type: RunAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
1798
|
-
query: z.string(),
|
|
1799
|
-
});
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* @internal
|
|
1803
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1804
|
-
*/
|
|
1805
|
-
export namespace KnowledgeBaseStaticQuery$ {
|
|
1806
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
1807
|
-
export const inboundSchema = KnowledgeBaseStaticQuery$inboundSchema;
|
|
1808
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
1809
|
-
export const outboundSchema = KnowledgeBaseStaticQuery$outboundSchema;
|
|
1810
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
|
|
1811
|
-
export type Outbound = KnowledgeBaseStaticQuery$Outbound;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export function knowledgeBaseStaticQueryToJSON(
|
|
1815
|
-
knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery,
|
|
1816
|
-
): string {
|
|
1817
|
-
return JSON.stringify(
|
|
1818
|
-
KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery),
|
|
1819
|
-
);
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
export function knowledgeBaseStaticQueryFromJSON(
|
|
1823
|
-
jsonString: string,
|
|
1824
|
-
): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError> {
|
|
1825
|
-
return safeParse(
|
|
1826
|
-
jsonString,
|
|
1827
|
-
(x) => KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)),
|
|
1828
|
-
`Failed to parse 'KnowledgeBaseStaticQuery' from JSON`,
|
|
1829
|
-
);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
/** @internal */
|
|
1833
|
-
export const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
1834
|
-
typeof KnowledgeBaseConfigurationType
|
|
1835
|
-
> = z.nativeEnum(KnowledgeBaseConfigurationType);
|
|
1836
|
-
|
|
1837
|
-
/** @internal */
|
|
1838
|
-
export const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
1839
|
-
typeof KnowledgeBaseConfigurationType
|
|
1840
|
-
> = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* @internal
|
|
1844
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1845
|
-
*/
|
|
1846
|
-
export namespace KnowledgeBaseConfigurationType$ {
|
|
1847
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
1848
|
-
export const inboundSchema = KnowledgeBaseConfigurationType$inboundSchema;
|
|
1849
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
1850
|
-
export const outboundSchema = KnowledgeBaseConfigurationType$outboundSchema;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
/** @internal */
|
|
1854
|
-
export const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<
|
|
1855
|
-
KnowledgeBaseLastUserMessage,
|
|
1856
|
-
z.ZodTypeDef,
|
|
1857
|
-
unknown
|
|
1858
|
-
> = z.object({
|
|
1859
|
-
type: KnowledgeBaseConfigurationType$inboundSchema,
|
|
1768
|
+
knowledge_id: z.string(),
|
|
1769
|
+
}).transform((v) => {
|
|
1770
|
+
return remap$(v, {
|
|
1771
|
+
"knowledge_id": "knowledgeId",
|
|
1772
|
+
});
|
|
1860
1773
|
});
|
|
1861
1774
|
|
|
1862
1775
|
/** @internal */
|
|
1863
|
-
export type
|
|
1864
|
-
|
|
1776
|
+
export type RunAgentKnowledgeBases$Outbound = {
|
|
1777
|
+
knowledge_id: string;
|
|
1865
1778
|
};
|
|
1866
1779
|
|
|
1867
1780
|
/** @internal */
|
|
1868
|
-
export const
|
|
1869
|
-
|
|
1781
|
+
export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
1782
|
+
RunAgentKnowledgeBases$Outbound,
|
|
1870
1783
|
z.ZodTypeDef,
|
|
1871
|
-
|
|
1784
|
+
RunAgentKnowledgeBases
|
|
1872
1785
|
> = z.object({
|
|
1873
|
-
|
|
1786
|
+
knowledgeId: z.string(),
|
|
1787
|
+
}).transform((v) => {
|
|
1788
|
+
return remap$(v, {
|
|
1789
|
+
knowledgeId: "knowledge_id",
|
|
1790
|
+
});
|
|
1874
1791
|
});
|
|
1875
1792
|
|
|
1876
1793
|
/**
|
|
1877
1794
|
* @internal
|
|
1878
1795
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1879
1796
|
*/
|
|
1880
|
-
export namespace
|
|
1881
|
-
/** @deprecated use `
|
|
1882
|
-
export const inboundSchema =
|
|
1883
|
-
/** @deprecated use `
|
|
1884
|
-
export const outboundSchema =
|
|
1885
|
-
/** @deprecated use `
|
|
1886
|
-
export type Outbound =
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
export function knowledgeBaseLastUserMessageToJSON(
|
|
1890
|
-
knowledgeBaseLastUserMessage: KnowledgeBaseLastUserMessage,
|
|
1891
|
-
): string {
|
|
1892
|
-
return JSON.stringify(
|
|
1893
|
-
KnowledgeBaseLastUserMessage$outboundSchema.parse(
|
|
1894
|
-
knowledgeBaseLastUserMessage,
|
|
1895
|
-
),
|
|
1896
|
-
);
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
export function knowledgeBaseLastUserMessageFromJSON(
|
|
1900
|
-
jsonString: string,
|
|
1901
|
-
): SafeParseResult<KnowledgeBaseLastUserMessage, SDKValidationError> {
|
|
1902
|
-
return safeParse(
|
|
1903
|
-
jsonString,
|
|
1904
|
-
(x) => KnowledgeBaseLastUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1905
|
-
`Failed to parse 'KnowledgeBaseLastUserMessage' from JSON`,
|
|
1906
|
-
);
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
/** @internal */
|
|
1910
|
-
export const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<
|
|
1911
|
-
KnowledgeBaseConfiguration,
|
|
1912
|
-
z.ZodTypeDef,
|
|
1913
|
-
unknown
|
|
1914
|
-
> = z.union([
|
|
1915
|
-
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1916
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1917
|
-
]);
|
|
1918
|
-
|
|
1919
|
-
/** @internal */
|
|
1920
|
-
export type KnowledgeBaseConfiguration$Outbound =
|
|
1921
|
-
| KnowledgeBaseStaticQuery$Outbound
|
|
1922
|
-
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1923
|
-
|
|
1924
|
-
/** @internal */
|
|
1925
|
-
export const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<
|
|
1926
|
-
KnowledgeBaseConfiguration$Outbound,
|
|
1927
|
-
z.ZodTypeDef,
|
|
1928
|
-
KnowledgeBaseConfiguration
|
|
1929
|
-
> = z.union([
|
|
1930
|
-
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1931
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1932
|
-
]);
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* @internal
|
|
1936
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1937
|
-
*/
|
|
1938
|
-
export namespace KnowledgeBaseConfiguration$ {
|
|
1939
|
-
/** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
1940
|
-
export const inboundSchema = KnowledgeBaseConfiguration$inboundSchema;
|
|
1941
|
-
/** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
1942
|
-
export const outboundSchema = KnowledgeBaseConfiguration$outboundSchema;
|
|
1943
|
-
/** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
|
|
1944
|
-
export type Outbound = KnowledgeBaseConfiguration$Outbound;
|
|
1797
|
+
export namespace RunAgentKnowledgeBases$ {
|
|
1798
|
+
/** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
|
|
1799
|
+
export const inboundSchema = RunAgentKnowledgeBases$inboundSchema;
|
|
1800
|
+
/** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
|
|
1801
|
+
export const outboundSchema = RunAgentKnowledgeBases$outboundSchema;
|
|
1802
|
+
/** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
|
|
1803
|
+
export type Outbound = RunAgentKnowledgeBases$Outbound;
|
|
1945
1804
|
}
|
|
1946
1805
|
|
|
1947
|
-
export function
|
|
1948
|
-
|
|
1806
|
+
export function runAgentKnowledgeBasesToJSON(
|
|
1807
|
+
runAgentKnowledgeBases: RunAgentKnowledgeBases,
|
|
1949
1808
|
): string {
|
|
1950
1809
|
return JSON.stringify(
|
|
1951
|
-
|
|
1810
|
+
RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
|
|
1952
1811
|
);
|
|
1953
1812
|
}
|
|
1954
1813
|
|
|
1955
|
-
export function
|
|
1814
|
+
export function runAgentKnowledgeBasesFromJSON(
|
|
1956
1815
|
jsonString: string,
|
|
1957
|
-
): SafeParseResult<
|
|
1816
|
+
): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError> {
|
|
1958
1817
|
return safeParse(
|
|
1959
1818
|
jsonString,
|
|
1960
|
-
(x) =>
|
|
1961
|
-
`Failed to parse '
|
|
1962
|
-
);
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
/** @internal */
|
|
1966
|
-
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
1967
|
-
KnowledgeBases,
|
|
1968
|
-
z.ZodTypeDef,
|
|
1969
|
-
unknown
|
|
1970
|
-
> = z.object({
|
|
1971
|
-
configuration: z.union([
|
|
1972
|
-
z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
|
|
1973
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
1974
|
-
]),
|
|
1975
|
-
});
|
|
1976
|
-
|
|
1977
|
-
/** @internal */
|
|
1978
|
-
export type KnowledgeBases$Outbound = {
|
|
1979
|
-
configuration:
|
|
1980
|
-
| KnowledgeBaseStaticQuery$Outbound
|
|
1981
|
-
| KnowledgeBaseLastUserMessage$Outbound;
|
|
1982
|
-
};
|
|
1983
|
-
|
|
1984
|
-
/** @internal */
|
|
1985
|
-
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
1986
|
-
KnowledgeBases$Outbound,
|
|
1987
|
-
z.ZodTypeDef,
|
|
1988
|
-
KnowledgeBases
|
|
1989
|
-
> = z.object({
|
|
1990
|
-
configuration: z.union([
|
|
1991
|
-
z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
|
|
1992
|
-
z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
|
|
1993
|
-
]),
|
|
1994
|
-
});
|
|
1995
|
-
|
|
1996
|
-
/**
|
|
1997
|
-
* @internal
|
|
1998
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1999
|
-
*/
|
|
2000
|
-
export namespace KnowledgeBases$ {
|
|
2001
|
-
/** @deprecated use `KnowledgeBases$inboundSchema` instead. */
|
|
2002
|
-
export const inboundSchema = KnowledgeBases$inboundSchema;
|
|
2003
|
-
/** @deprecated use `KnowledgeBases$outboundSchema` instead. */
|
|
2004
|
-
export const outboundSchema = KnowledgeBases$outboundSchema;
|
|
2005
|
-
/** @deprecated use `KnowledgeBases$Outbound` instead. */
|
|
2006
|
-
export type Outbound = KnowledgeBases$Outbound;
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
2010
|
-
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
export function knowledgeBasesFromJSON(
|
|
2014
|
-
jsonString: string,
|
|
2015
|
-
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
2016
|
-
return safeParse(
|
|
2017
|
-
jsonString,
|
|
2018
|
-
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
2019
|
-
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
1819
|
+
(x) => RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
1820
|
+
`Failed to parse 'RunAgentKnowledgeBases' from JSON`,
|
|
2020
1821
|
);
|
|
2021
1822
|
}
|
|
2022
1823
|
|
|
@@ -2074,36 +1875,36 @@ export function teamOfAgentsFromJSON(
|
|
|
2074
1875
|
}
|
|
2075
1876
|
|
|
2076
1877
|
/** @internal */
|
|
2077
|
-
export const
|
|
1878
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
2078
1879
|
z.ZodNativeEnum<
|
|
2079
|
-
typeof
|
|
1880
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2080
1881
|
> = z.nativeEnum(
|
|
2081
|
-
|
|
1882
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
|
|
2082
1883
|
);
|
|
2083
1884
|
|
|
2084
1885
|
/** @internal */
|
|
2085
|
-
export const
|
|
1886
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
2086
1887
|
z.ZodNativeEnum<
|
|
2087
|
-
typeof
|
|
1888
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
|
|
2088
1889
|
> =
|
|
2089
|
-
|
|
1890
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
2090
1891
|
|
|
2091
1892
|
/**
|
|
2092
1893
|
* @internal
|
|
2093
1894
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2094
1895
|
*/
|
|
2095
|
-
export namespace
|
|
2096
|
-
/** @deprecated use `
|
|
1896
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
|
|
1897
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
2097
1898
|
export const inboundSchema =
|
|
2098
|
-
|
|
2099
|
-
/** @deprecated use `
|
|
1899
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
1900
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
2100
1901
|
export const outboundSchema =
|
|
2101
|
-
|
|
1902
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
2102
1903
|
}
|
|
2103
1904
|
|
|
2104
1905
|
/** @internal */
|
|
2105
|
-
export const
|
|
2106
|
-
|
|
1906
|
+
export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
|
|
1907
|
+
AgentToolInputRunFunction,
|
|
2107
1908
|
z.ZodTypeDef,
|
|
2108
1909
|
unknown
|
|
2109
1910
|
> = z.object({
|
|
@@ -2114,7 +1915,7 @@ export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
|
|
|
2114
1915
|
});
|
|
2115
1916
|
|
|
2116
1917
|
/** @internal */
|
|
2117
|
-
export type
|
|
1918
|
+
export type AgentToolInputRunFunction$Outbound = {
|
|
2118
1919
|
name: string;
|
|
2119
1920
|
description?: string | undefined;
|
|
2120
1921
|
strict?: boolean | undefined;
|
|
@@ -2122,10 +1923,10 @@ export type RunAgentRequestToolFunction$Outbound = {
|
|
|
2122
1923
|
};
|
|
2123
1924
|
|
|
2124
1925
|
/** @internal */
|
|
2125
|
-
export const
|
|
2126
|
-
|
|
1926
|
+
export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
|
|
1927
|
+
AgentToolInputRunFunction$Outbound,
|
|
2127
1928
|
z.ZodTypeDef,
|
|
2128
|
-
|
|
1929
|
+
AgentToolInputRunFunction
|
|
2129
1930
|
> = z.object({
|
|
2130
1931
|
name: z.string(),
|
|
2131
1932
|
description: z.string().optional(),
|
|
@@ -2137,49 +1938,47 @@ export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
|
|
|
2137
1938
|
* @internal
|
|
2138
1939
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2139
1940
|
*/
|
|
2140
|
-
export namespace
|
|
2141
|
-
/** @deprecated use `
|
|
2142
|
-
export const inboundSchema =
|
|
2143
|
-
/** @deprecated use `
|
|
2144
|
-
export const outboundSchema =
|
|
2145
|
-
/** @deprecated use `
|
|
2146
|
-
export type Outbound =
|
|
1941
|
+
export namespace AgentToolInputRunFunction$ {
|
|
1942
|
+
/** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
|
|
1943
|
+
export const inboundSchema = AgentToolInputRunFunction$inboundSchema;
|
|
1944
|
+
/** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
|
|
1945
|
+
export const outboundSchema = AgentToolInputRunFunction$outboundSchema;
|
|
1946
|
+
/** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
|
|
1947
|
+
export type Outbound = AgentToolInputRunFunction$Outbound;
|
|
2147
1948
|
}
|
|
2148
1949
|
|
|
2149
|
-
export function
|
|
2150
|
-
|
|
1950
|
+
export function agentToolInputRunFunctionToJSON(
|
|
1951
|
+
agentToolInputRunFunction: AgentToolInputRunFunction,
|
|
2151
1952
|
): string {
|
|
2152
1953
|
return JSON.stringify(
|
|
2153
|
-
|
|
2154
|
-
runAgentRequestToolFunction,
|
|
2155
|
-
),
|
|
1954
|
+
AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
|
|
2156
1955
|
);
|
|
2157
1956
|
}
|
|
2158
1957
|
|
|
2159
|
-
export function
|
|
1958
|
+
export function agentToolInputRunFunctionFromJSON(
|
|
2160
1959
|
jsonString: string,
|
|
2161
|
-
): SafeParseResult<
|
|
1960
|
+
): SafeParseResult<AgentToolInputRunFunction, SDKValidationError> {
|
|
2162
1961
|
return safeParse(
|
|
2163
1962
|
jsonString,
|
|
2164
|
-
(x) =>
|
|
2165
|
-
`Failed to parse '
|
|
1963
|
+
(x) => AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1964
|
+
`Failed to parse 'AgentToolInputRunFunction' from JSON`,
|
|
2166
1965
|
);
|
|
2167
1966
|
}
|
|
2168
1967
|
|
|
2169
1968
|
/** @internal */
|
|
2170
|
-
export const
|
|
2171
|
-
|
|
1969
|
+
export const FunctionToolRun$inboundSchema: z.ZodType<
|
|
1970
|
+
FunctionToolRun,
|
|
2172
1971
|
z.ZodTypeDef,
|
|
2173
1972
|
unknown
|
|
2174
1973
|
> = z.object({
|
|
2175
1974
|
type:
|
|
2176
|
-
|
|
2177
|
-
_id: z.string().optional(),
|
|
1975
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
2178
1976
|
key: z.string(),
|
|
1977
|
+
_id: z.string().optional(),
|
|
2179
1978
|
display_name: z.string().optional(),
|
|
2180
1979
|
description: z.string().optional(),
|
|
1980
|
+
function: z.lazy(() => AgentToolInputRunFunction$inboundSchema),
|
|
2181
1981
|
requires_approval: z.boolean().default(false),
|
|
2182
|
-
function: z.lazy(() => RunAgentRequestToolFunction$inboundSchema),
|
|
2183
1982
|
}).transform((v) => {
|
|
2184
1983
|
return remap$(v, {
|
|
2185
1984
|
"_id": "id",
|
|
@@ -2189,30 +1988,30 @@ export const FunctionTool$inboundSchema: z.ZodType<
|
|
|
2189
1988
|
});
|
|
2190
1989
|
|
|
2191
1990
|
/** @internal */
|
|
2192
|
-
export type
|
|
1991
|
+
export type FunctionToolRun$Outbound = {
|
|
2193
1992
|
type: string;
|
|
2194
|
-
_id?: string | undefined;
|
|
2195
1993
|
key: string;
|
|
1994
|
+
_id?: string | undefined;
|
|
2196
1995
|
display_name?: string | undefined;
|
|
2197
1996
|
description?: string | undefined;
|
|
1997
|
+
function: AgentToolInputRunFunction$Outbound;
|
|
2198
1998
|
requires_approval: boolean;
|
|
2199
|
-
function: RunAgentRequestToolFunction$Outbound;
|
|
2200
1999
|
};
|
|
2201
2000
|
|
|
2202
2001
|
/** @internal */
|
|
2203
|
-
export const
|
|
2204
|
-
|
|
2002
|
+
export const FunctionToolRun$outboundSchema: z.ZodType<
|
|
2003
|
+
FunctionToolRun$Outbound,
|
|
2205
2004
|
z.ZodTypeDef,
|
|
2206
|
-
|
|
2005
|
+
FunctionToolRun
|
|
2207
2006
|
> = z.object({
|
|
2208
2007
|
type:
|
|
2209
|
-
|
|
2210
|
-
id: z.string().optional(),
|
|
2008
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
2211
2009
|
key: z.string(),
|
|
2010
|
+
id: z.string().optional(),
|
|
2212
2011
|
displayName: z.string().optional(),
|
|
2213
2012
|
description: z.string().optional(),
|
|
2013
|
+
function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
|
|
2214
2014
|
requiresApproval: z.boolean().default(false),
|
|
2215
|
-
function: z.lazy(() => RunAgentRequestToolFunction$outboundSchema),
|
|
2216
2015
|
}).transform((v) => {
|
|
2217
2016
|
return remap$(v, {
|
|
2218
2017
|
id: "_id",
|
|
@@ -2225,55 +2024,57 @@ export const FunctionTool$outboundSchema: z.ZodType<
|
|
|
2225
2024
|
* @internal
|
|
2226
2025
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2227
2026
|
*/
|
|
2228
|
-
export namespace
|
|
2229
|
-
/** @deprecated use `
|
|
2230
|
-
export const inboundSchema =
|
|
2231
|
-
/** @deprecated use `
|
|
2232
|
-
export const outboundSchema =
|
|
2233
|
-
/** @deprecated use `
|
|
2234
|
-
export type Outbound =
|
|
2027
|
+
export namespace FunctionToolRun$ {
|
|
2028
|
+
/** @deprecated use `FunctionToolRun$inboundSchema` instead. */
|
|
2029
|
+
export const inboundSchema = FunctionToolRun$inboundSchema;
|
|
2030
|
+
/** @deprecated use `FunctionToolRun$outboundSchema` instead. */
|
|
2031
|
+
export const outboundSchema = FunctionToolRun$outboundSchema;
|
|
2032
|
+
/** @deprecated use `FunctionToolRun$Outbound` instead. */
|
|
2033
|
+
export type Outbound = FunctionToolRun$Outbound;
|
|
2235
2034
|
}
|
|
2236
2035
|
|
|
2237
|
-
export function
|
|
2238
|
-
|
|
2036
|
+
export function functionToolRunToJSON(
|
|
2037
|
+
functionToolRun: FunctionToolRun,
|
|
2038
|
+
): string {
|
|
2039
|
+
return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
|
|
2239
2040
|
}
|
|
2240
2041
|
|
|
2241
|
-
export function
|
|
2042
|
+
export function functionToolRunFromJSON(
|
|
2242
2043
|
jsonString: string,
|
|
2243
|
-
): SafeParseResult<
|
|
2044
|
+
): SafeParseResult<FunctionToolRun, SDKValidationError> {
|
|
2244
2045
|
return safeParse(
|
|
2245
2046
|
jsonString,
|
|
2246
|
-
(x) =>
|
|
2247
|
-
`Failed to parse '
|
|
2047
|
+
(x) => FunctionToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2048
|
+
`Failed to parse 'FunctionToolRun' from JSON`,
|
|
2248
2049
|
);
|
|
2249
2050
|
}
|
|
2250
2051
|
|
|
2251
2052
|
/** @internal */
|
|
2252
|
-
export const
|
|
2053
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
2253
2054
|
z.ZodNativeEnum<
|
|
2254
|
-
typeof
|
|
2055
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2255
2056
|
> = z.nativeEnum(
|
|
2256
|
-
|
|
2057
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
|
|
2257
2058
|
);
|
|
2258
2059
|
|
|
2259
2060
|
/** @internal */
|
|
2260
|
-
export const
|
|
2061
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
2261
2062
|
z.ZodNativeEnum<
|
|
2262
|
-
typeof
|
|
2063
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
|
|
2263
2064
|
> =
|
|
2264
|
-
|
|
2065
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2265
2066
|
|
|
2266
2067
|
/**
|
|
2267
2068
|
* @internal
|
|
2268
2069
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2269
2070
|
*/
|
|
2270
|
-
export namespace
|
|
2271
|
-
/** @deprecated use `
|
|
2071
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
|
|
2072
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
2272
2073
|
export const inboundSchema =
|
|
2273
|
-
|
|
2274
|
-
/** @deprecated use `
|
|
2074
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
2075
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
2275
2076
|
export const outboundSchema =
|
|
2276
|
-
|
|
2077
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
2277
2078
|
}
|
|
2278
2079
|
|
|
2279
2080
|
/** @internal */
|
|
@@ -2352,58 +2153,58 @@ export function codeToolFromJSON(
|
|
|
2352
2153
|
}
|
|
2353
2154
|
|
|
2354
2155
|
/** @internal */
|
|
2355
|
-
export const
|
|
2356
|
-
|
|
2156
|
+
export const CodeToolRun$inboundSchema: z.ZodType<
|
|
2157
|
+
CodeToolRun,
|
|
2357
2158
|
z.ZodTypeDef,
|
|
2358
2159
|
unknown
|
|
2359
2160
|
> = z.object({
|
|
2161
|
+
type:
|
|
2162
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2360
2163
|
key: z.string(),
|
|
2361
|
-
|
|
2164
|
+
_id: z.string().optional(),
|
|
2165
|
+
display_name: z.string().optional(),
|
|
2362
2166
|
description: z.string(),
|
|
2363
|
-
type:
|
|
2364
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
2365
2167
|
code_tool: z.lazy(() => CodeTool$inboundSchema),
|
|
2366
|
-
_id: z.string().optional(),
|
|
2367
2168
|
requires_approval: z.boolean().default(false),
|
|
2368
2169
|
}).transform((v) => {
|
|
2369
2170
|
return remap$(v, {
|
|
2171
|
+
"_id": "id",
|
|
2370
2172
|
"display_name": "displayName",
|
|
2371
2173
|
"code_tool": "codeTool",
|
|
2372
|
-
"_id": "id",
|
|
2373
2174
|
"requires_approval": "requiresApproval",
|
|
2374
2175
|
});
|
|
2375
2176
|
});
|
|
2376
2177
|
|
|
2377
2178
|
/** @internal */
|
|
2378
|
-
export type
|
|
2179
|
+
export type CodeToolRun$Outbound = {
|
|
2180
|
+
type: string;
|
|
2379
2181
|
key: string;
|
|
2380
|
-
|
|
2182
|
+
_id?: string | undefined;
|
|
2183
|
+
display_name?: string | undefined;
|
|
2381
2184
|
description: string;
|
|
2382
|
-
type: string;
|
|
2383
2185
|
code_tool: CodeTool$Outbound;
|
|
2384
|
-
_id?: string | undefined;
|
|
2385
2186
|
requires_approval: boolean;
|
|
2386
2187
|
};
|
|
2387
2188
|
|
|
2388
2189
|
/** @internal */
|
|
2389
|
-
export const
|
|
2390
|
-
|
|
2190
|
+
export const CodeToolRun$outboundSchema: z.ZodType<
|
|
2191
|
+
CodeToolRun$Outbound,
|
|
2391
2192
|
z.ZodTypeDef,
|
|
2392
|
-
|
|
2193
|
+
CodeToolRun
|
|
2393
2194
|
> = z.object({
|
|
2195
|
+
type:
|
|
2196
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2394
2197
|
key: z.string(),
|
|
2395
|
-
|
|
2198
|
+
id: z.string().optional(),
|
|
2199
|
+
displayName: z.string().optional(),
|
|
2396
2200
|
description: z.string(),
|
|
2397
|
-
type:
|
|
2398
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
2399
2201
|
codeTool: z.lazy(() => CodeTool$outboundSchema),
|
|
2400
|
-
id: z.string().optional(),
|
|
2401
2202
|
requiresApproval: z.boolean().default(false),
|
|
2402
2203
|
}).transform((v) => {
|
|
2403
2204
|
return remap$(v, {
|
|
2205
|
+
id: "_id",
|
|
2404
2206
|
displayName: "display_name",
|
|
2405
2207
|
codeTool: "code_tool",
|
|
2406
|
-
id: "_id",
|
|
2407
2208
|
requiresApproval: "requires_approval",
|
|
2408
2209
|
});
|
|
2409
2210
|
});
|
|
@@ -2412,59 +2213,55 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2412
2213
|
* @internal
|
|
2413
2214
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2414
2215
|
*/
|
|
2415
|
-
export namespace
|
|
2416
|
-
/** @deprecated use `
|
|
2417
|
-
export const inboundSchema =
|
|
2418
|
-
/** @deprecated use `
|
|
2419
|
-
export const outboundSchema =
|
|
2420
|
-
/** @deprecated use `
|
|
2421
|
-
export type Outbound =
|
|
2216
|
+
export namespace CodeToolRun$ {
|
|
2217
|
+
/** @deprecated use `CodeToolRun$inboundSchema` instead. */
|
|
2218
|
+
export const inboundSchema = CodeToolRun$inboundSchema;
|
|
2219
|
+
/** @deprecated use `CodeToolRun$outboundSchema` instead. */
|
|
2220
|
+
export const outboundSchema = CodeToolRun$outboundSchema;
|
|
2221
|
+
/** @deprecated use `CodeToolRun$Outbound` instead. */
|
|
2222
|
+
export type Outbound = CodeToolRun$Outbound;
|
|
2422
2223
|
}
|
|
2423
2224
|
|
|
2424
|
-
export function
|
|
2425
|
-
|
|
2426
|
-
): string {
|
|
2427
|
-
return JSON.stringify(
|
|
2428
|
-
CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
|
|
2429
|
-
);
|
|
2225
|
+
export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
|
|
2226
|
+
return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
|
|
2430
2227
|
}
|
|
2431
2228
|
|
|
2432
|
-
export function
|
|
2229
|
+
export function codeToolRunFromJSON(
|
|
2433
2230
|
jsonString: string,
|
|
2434
|
-
): SafeParseResult<
|
|
2231
|
+
): SafeParseResult<CodeToolRun, SDKValidationError> {
|
|
2435
2232
|
return safeParse(
|
|
2436
2233
|
jsonString,
|
|
2437
|
-
(x) =>
|
|
2438
|
-
`Failed to parse '
|
|
2234
|
+
(x) => CodeToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2235
|
+
`Failed to parse 'CodeToolRun' from JSON`,
|
|
2439
2236
|
);
|
|
2440
2237
|
}
|
|
2441
2238
|
|
|
2442
2239
|
/** @internal */
|
|
2443
|
-
export const
|
|
2240
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
2444
2241
|
z.ZodNativeEnum<
|
|
2445
|
-
typeof
|
|
2242
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2446
2243
|
> = z.nativeEnum(
|
|
2447
|
-
|
|
2244
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
|
|
2448
2245
|
);
|
|
2449
2246
|
|
|
2450
2247
|
/** @internal */
|
|
2451
|
-
export const
|
|
2248
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
2452
2249
|
z.ZodNativeEnum<
|
|
2453
|
-
typeof
|
|
2250
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
|
|
2454
2251
|
> =
|
|
2455
|
-
|
|
2252
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2456
2253
|
|
|
2457
2254
|
/**
|
|
2458
2255
|
* @internal
|
|
2459
2256
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2460
2257
|
*/
|
|
2461
|
-
export namespace
|
|
2462
|
-
/** @deprecated use `
|
|
2258
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
|
|
2259
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
2463
2260
|
export const inboundSchema =
|
|
2464
|
-
|
|
2465
|
-
/** @deprecated use `
|
|
2261
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
2262
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
2466
2263
|
export const outboundSchema =
|
|
2467
|
-
|
|
2264
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
2468
2265
|
}
|
|
2469
2266
|
|
|
2470
2267
|
/** @internal */
|
|
@@ -2546,31 +2343,31 @@ export function blueprintFromJSON(
|
|
|
2546
2343
|
}
|
|
2547
2344
|
|
|
2548
2345
|
/** @internal */
|
|
2549
|
-
export const
|
|
2346
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
|
|
2550
2347
|
z.ZodNativeEnum<
|
|
2551
|
-
typeof
|
|
2348
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2552
2349
|
> = z.nativeEnum(
|
|
2553
|
-
|
|
2350
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
|
|
2554
2351
|
);
|
|
2555
2352
|
|
|
2556
2353
|
/** @internal */
|
|
2557
|
-
export const
|
|
2354
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
|
|
2558
2355
|
z.ZodNativeEnum<
|
|
2559
|
-
typeof
|
|
2356
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
|
|
2560
2357
|
> =
|
|
2561
|
-
|
|
2358
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2562
2359
|
|
|
2563
2360
|
/**
|
|
2564
2361
|
* @internal
|
|
2565
2362
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2566
2363
|
*/
|
|
2567
|
-
export namespace
|
|
2568
|
-
/** @deprecated use `
|
|
2364
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
|
|
2365
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
2569
2366
|
export const inboundSchema =
|
|
2570
|
-
|
|
2571
|
-
/** @deprecated use `
|
|
2367
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
2368
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
2572
2369
|
export const outboundSchema =
|
|
2573
|
-
|
|
2370
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
2574
2371
|
}
|
|
2575
2372
|
|
|
2576
2373
|
/** @internal */
|
|
@@ -2624,7 +2421,7 @@ export const Arguments$inboundSchema: z.ZodType<
|
|
|
2624
2421
|
unknown
|
|
2625
2422
|
> = z.object({
|
|
2626
2423
|
type:
|
|
2627
|
-
|
|
2424
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
2628
2425
|
description: z.string(),
|
|
2629
2426
|
send_to_model: z.boolean().default(true),
|
|
2630
2427
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2650,7 +2447,7 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
2650
2447
|
Arguments
|
|
2651
2448
|
> = z.object({
|
|
2652
2449
|
type:
|
|
2653
|
-
|
|
2450
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
2654
2451
|
description: z.string(),
|
|
2655
2452
|
sendToModel: z.boolean().default(true),
|
|
2656
2453
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2736,50 +2533,55 @@ export function httpFromJSON(
|
|
|
2736
2533
|
}
|
|
2737
2534
|
|
|
2738
2535
|
/** @internal */
|
|
2739
|
-
export const
|
|
2740
|
-
|
|
2536
|
+
export const HTTPToolRun$inboundSchema: z.ZodType<
|
|
2537
|
+
HTTPToolRun,
|
|
2741
2538
|
z.ZodTypeDef,
|
|
2742
2539
|
unknown
|
|
2743
2540
|
> = z.object({
|
|
2541
|
+
type:
|
|
2542
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2744
2543
|
key: z.string(),
|
|
2745
|
-
|
|
2544
|
+
_id: z.string().optional(),
|
|
2545
|
+
display_name: z.string().optional(),
|
|
2746
2546
|
description: z.string(),
|
|
2747
|
-
type:
|
|
2748
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
2749
2547
|
http: z.lazy(() => Http$inboundSchema),
|
|
2750
2548
|
requires_approval: z.boolean().default(false),
|
|
2751
2549
|
}).transform((v) => {
|
|
2752
2550
|
return remap$(v, {
|
|
2551
|
+
"_id": "id",
|
|
2753
2552
|
"display_name": "displayName",
|
|
2754
2553
|
"requires_approval": "requiresApproval",
|
|
2755
2554
|
});
|
|
2756
2555
|
});
|
|
2757
2556
|
|
|
2758
2557
|
/** @internal */
|
|
2759
|
-
export type
|
|
2558
|
+
export type HTTPToolRun$Outbound = {
|
|
2559
|
+
type: string;
|
|
2760
2560
|
key: string;
|
|
2761
|
-
|
|
2561
|
+
_id?: string | undefined;
|
|
2562
|
+
display_name?: string | undefined;
|
|
2762
2563
|
description: string;
|
|
2763
|
-
type: string;
|
|
2764
2564
|
http: Http$Outbound;
|
|
2765
2565
|
requires_approval: boolean;
|
|
2766
2566
|
};
|
|
2767
2567
|
|
|
2768
2568
|
/** @internal */
|
|
2769
|
-
export const
|
|
2770
|
-
|
|
2569
|
+
export const HTTPToolRun$outboundSchema: z.ZodType<
|
|
2570
|
+
HTTPToolRun$Outbound,
|
|
2771
2571
|
z.ZodTypeDef,
|
|
2772
|
-
|
|
2572
|
+
HTTPToolRun
|
|
2773
2573
|
> = z.object({
|
|
2574
|
+
type:
|
|
2575
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2774
2576
|
key: z.string(),
|
|
2775
|
-
|
|
2577
|
+
id: z.string().optional(),
|
|
2578
|
+
displayName: z.string().optional(),
|
|
2776
2579
|
description: z.string(),
|
|
2777
|
-
type:
|
|
2778
|
-
RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
2779
2580
|
http: z.lazy(() => Http$outboundSchema),
|
|
2780
2581
|
requiresApproval: z.boolean().default(false),
|
|
2781
2582
|
}).transform((v) => {
|
|
2782
2583
|
return remap$(v, {
|
|
2584
|
+
id: "_id",
|
|
2783
2585
|
displayName: "display_name",
|
|
2784
2586
|
requiresApproval: "requires_approval",
|
|
2785
2587
|
});
|
|
@@ -2789,65 +2591,65 @@ export const HTTPTool$outboundSchema: z.ZodType<
|
|
|
2789
2591
|
* @internal
|
|
2790
2592
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2791
2593
|
*/
|
|
2792
|
-
export namespace
|
|
2793
|
-
/** @deprecated use `
|
|
2794
|
-
export const inboundSchema =
|
|
2795
|
-
/** @deprecated use `
|
|
2796
|
-
export const outboundSchema =
|
|
2797
|
-
/** @deprecated use `
|
|
2798
|
-
export type Outbound =
|
|
2594
|
+
export namespace HTTPToolRun$ {
|
|
2595
|
+
/** @deprecated use `HTTPToolRun$inboundSchema` instead. */
|
|
2596
|
+
export const inboundSchema = HTTPToolRun$inboundSchema;
|
|
2597
|
+
/** @deprecated use `HTTPToolRun$outboundSchema` instead. */
|
|
2598
|
+
export const outboundSchema = HTTPToolRun$outboundSchema;
|
|
2599
|
+
/** @deprecated use `HTTPToolRun$Outbound` instead. */
|
|
2600
|
+
export type Outbound = HTTPToolRun$Outbound;
|
|
2799
2601
|
}
|
|
2800
2602
|
|
|
2801
|
-
export function
|
|
2802
|
-
return JSON.stringify(
|
|
2603
|
+
export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
|
|
2604
|
+
return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
|
|
2803
2605
|
}
|
|
2804
2606
|
|
|
2805
|
-
export function
|
|
2607
|
+
export function httpToolRunFromJSON(
|
|
2806
2608
|
jsonString: string,
|
|
2807
|
-
): SafeParseResult<
|
|
2609
|
+
): SafeParseResult<HTTPToolRun, SDKValidationError> {
|
|
2808
2610
|
return safeParse(
|
|
2809
2611
|
jsonString,
|
|
2810
|
-
(x) =>
|
|
2811
|
-
`Failed to parse '
|
|
2612
|
+
(x) => HTTPToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
2613
|
+
`Failed to parse 'HTTPToolRun' from JSON`,
|
|
2812
2614
|
);
|
|
2813
2615
|
}
|
|
2814
2616
|
|
|
2815
2617
|
/** @internal */
|
|
2816
|
-
export const
|
|
2618
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
2817
2619
|
z.ZodNativeEnum<
|
|
2818
|
-
typeof
|
|
2620
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2819
2621
|
> = z.nativeEnum(
|
|
2820
|
-
|
|
2622
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
|
|
2821
2623
|
);
|
|
2822
2624
|
|
|
2823
2625
|
/** @internal */
|
|
2824
|
-
export const
|
|
2626
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
2825
2627
|
z.ZodNativeEnum<
|
|
2826
|
-
typeof
|
|
2628
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
|
|
2827
2629
|
> =
|
|
2828
|
-
|
|
2630
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2829
2631
|
|
|
2830
2632
|
/**
|
|
2831
2633
|
* @internal
|
|
2832
2634
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2833
2635
|
*/
|
|
2834
|
-
export namespace
|
|
2835
|
-
/** @deprecated use `
|
|
2636
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
|
|
2637
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
2836
2638
|
export const inboundSchema =
|
|
2837
|
-
|
|
2838
|
-
/** @deprecated use `
|
|
2639
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
2640
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
2839
2641
|
export const outboundSchema =
|
|
2840
|
-
|
|
2642
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
2841
2643
|
}
|
|
2842
2644
|
|
|
2843
2645
|
/** @internal */
|
|
2844
|
-
export const
|
|
2845
|
-
|
|
2646
|
+
export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
|
|
2647
|
+
AgentToolInputRunCurrentDateTool,
|
|
2846
2648
|
z.ZodTypeDef,
|
|
2847
2649
|
unknown
|
|
2848
2650
|
> = z.object({
|
|
2849
2651
|
type:
|
|
2850
|
-
|
|
2652
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
2851
2653
|
requires_approval: z.boolean().default(false),
|
|
2852
2654
|
}).transform((v) => {
|
|
2853
2655
|
return remap$(v, {
|
|
@@ -2856,19 +2658,19 @@ export const CurrentDateTool$inboundSchema: z.ZodType<
|
|
|
2856
2658
|
});
|
|
2857
2659
|
|
|
2858
2660
|
/** @internal */
|
|
2859
|
-
export type
|
|
2661
|
+
export type AgentToolInputRunCurrentDateTool$Outbound = {
|
|
2860
2662
|
type: string;
|
|
2861
2663
|
requires_approval: boolean;
|
|
2862
2664
|
};
|
|
2863
2665
|
|
|
2864
2666
|
/** @internal */
|
|
2865
|
-
export const
|
|
2866
|
-
|
|
2667
|
+
export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
|
|
2668
|
+
AgentToolInputRunCurrentDateTool$Outbound,
|
|
2867
2669
|
z.ZodTypeDef,
|
|
2868
|
-
|
|
2670
|
+
AgentToolInputRunCurrentDateTool
|
|
2869
2671
|
> = z.object({
|
|
2870
2672
|
type:
|
|
2871
|
-
|
|
2673
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
2872
2674
|
requiresApproval: z.boolean().default(false),
|
|
2873
2675
|
}).transform((v) => {
|
|
2874
2676
|
return remap$(v, {
|
|
@@ -2880,67 +2682,71 @@ export const CurrentDateTool$outboundSchema: z.ZodType<
|
|
|
2880
2682
|
* @internal
|
|
2881
2683
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2882
2684
|
*/
|
|
2883
|
-
export namespace
|
|
2884
|
-
/** @deprecated use `
|
|
2885
|
-
export const inboundSchema =
|
|
2886
|
-
/** @deprecated use `
|
|
2887
|
-
export const outboundSchema =
|
|
2888
|
-
/** @deprecated use `
|
|
2889
|
-
export type Outbound =
|
|
2685
|
+
export namespace AgentToolInputRunCurrentDateTool$ {
|
|
2686
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
2687
|
+
export const inboundSchema = AgentToolInputRunCurrentDateTool$inboundSchema;
|
|
2688
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
2689
|
+
export const outboundSchema = AgentToolInputRunCurrentDateTool$outboundSchema;
|
|
2690
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
|
|
2691
|
+
export type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
|
|
2890
2692
|
}
|
|
2891
2693
|
|
|
2892
|
-
export function
|
|
2893
|
-
|
|
2694
|
+
export function agentToolInputRunCurrentDateToolToJSON(
|
|
2695
|
+
agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
|
|
2894
2696
|
): string {
|
|
2895
|
-
return JSON.stringify(
|
|
2697
|
+
return JSON.stringify(
|
|
2698
|
+
AgentToolInputRunCurrentDateTool$outboundSchema.parse(
|
|
2699
|
+
agentToolInputRunCurrentDateTool,
|
|
2700
|
+
),
|
|
2701
|
+
);
|
|
2896
2702
|
}
|
|
2897
2703
|
|
|
2898
|
-
export function
|
|
2704
|
+
export function agentToolInputRunCurrentDateToolFromJSON(
|
|
2899
2705
|
jsonString: string,
|
|
2900
|
-
): SafeParseResult<
|
|
2706
|
+
): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError> {
|
|
2901
2707
|
return safeParse(
|
|
2902
2708
|
jsonString,
|
|
2903
|
-
(x) =>
|
|
2904
|
-
`Failed to parse '
|
|
2709
|
+
(x) => AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
|
|
2710
|
+
`Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`,
|
|
2905
2711
|
);
|
|
2906
2712
|
}
|
|
2907
2713
|
|
|
2908
2714
|
/** @internal */
|
|
2909
|
-
export const
|
|
2715
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
2910
2716
|
z.ZodNativeEnum<
|
|
2911
|
-
typeof
|
|
2717
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2912
2718
|
> = z.nativeEnum(
|
|
2913
|
-
|
|
2719
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
|
|
2914
2720
|
);
|
|
2915
2721
|
|
|
2916
2722
|
/** @internal */
|
|
2917
|
-
export const
|
|
2723
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
2918
2724
|
z.ZodNativeEnum<
|
|
2919
|
-
typeof
|
|
2725
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
|
|
2920
2726
|
> =
|
|
2921
|
-
|
|
2727
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2922
2728
|
|
|
2923
2729
|
/**
|
|
2924
2730
|
* @internal
|
|
2925
2731
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2926
2732
|
*/
|
|
2927
|
-
export namespace
|
|
2928
|
-
/** @deprecated use `
|
|
2733
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
|
|
2734
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
2929
2735
|
export const inboundSchema =
|
|
2930
|
-
|
|
2931
|
-
/** @deprecated use `
|
|
2736
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
2737
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
2932
2738
|
export const outboundSchema =
|
|
2933
|
-
|
|
2739
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
2934
2740
|
}
|
|
2935
2741
|
|
|
2936
2742
|
/** @internal */
|
|
2937
|
-
export const
|
|
2938
|
-
|
|
2743
|
+
export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
2744
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2939
2745
|
z.ZodTypeDef,
|
|
2940
2746
|
unknown
|
|
2941
2747
|
> = z.object({
|
|
2942
2748
|
type:
|
|
2943
|
-
|
|
2749
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
2944
2750
|
requires_approval: z.boolean().default(false),
|
|
2945
2751
|
}).transform((v) => {
|
|
2946
2752
|
return remap$(v, {
|
|
@@ -2949,19 +2755,19 @@ export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
|
2949
2755
|
});
|
|
2950
2756
|
|
|
2951
2757
|
/** @internal */
|
|
2952
|
-
export type
|
|
2758
|
+
export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
|
|
2953
2759
|
type: string;
|
|
2954
2760
|
requires_approval: boolean;
|
|
2955
2761
|
};
|
|
2956
2762
|
|
|
2957
2763
|
/** @internal */
|
|
2958
|
-
export const
|
|
2959
|
-
|
|
2764
|
+
export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
2765
|
+
AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
|
|
2960
2766
|
z.ZodTypeDef,
|
|
2961
|
-
|
|
2767
|
+
AgentToolInputRunQueryKnowledgeBaseTool
|
|
2962
2768
|
> = z.object({
|
|
2963
2769
|
type:
|
|
2964
|
-
|
|
2770
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
2965
2771
|
requiresApproval: z.boolean().default(false),
|
|
2966
2772
|
}).transform((v) => {
|
|
2967
2773
|
return remap$(v, {
|
|
@@ -2973,164 +2779,188 @@ export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
|
2973
2779
|
* @internal
|
|
2974
2780
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2975
2781
|
*/
|
|
2976
|
-
export namespace
|
|
2977
|
-
/** @deprecated use `
|
|
2978
|
-
export const inboundSchema =
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2782
|
+
export namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
|
|
2783
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
2784
|
+
export const inboundSchema =
|
|
2785
|
+
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
2786
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
2787
|
+
export const outboundSchema =
|
|
2788
|
+
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
2789
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
|
|
2790
|
+
export type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
|
|
2983
2791
|
}
|
|
2984
2792
|
|
|
2985
|
-
export function
|
|
2986
|
-
|
|
2793
|
+
export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
|
|
2794
|
+
agentToolInputRunQueryKnowledgeBaseTool:
|
|
2795
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2987
2796
|
): string {
|
|
2988
2797
|
return JSON.stringify(
|
|
2989
|
-
|
|
2798
|
+
AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
|
|
2799
|
+
agentToolInputRunQueryKnowledgeBaseTool,
|
|
2800
|
+
),
|
|
2990
2801
|
);
|
|
2991
2802
|
}
|
|
2992
2803
|
|
|
2993
|
-
export function
|
|
2804
|
+
export function agentToolInputRunQueryKnowledgeBaseToolFromJSON(
|
|
2994
2805
|
jsonString: string,
|
|
2995
|
-
): SafeParseResult<
|
|
2806
|
+
): SafeParseResult<
|
|
2807
|
+
AgentToolInputRunQueryKnowledgeBaseTool,
|
|
2808
|
+
SDKValidationError
|
|
2809
|
+
> {
|
|
2996
2810
|
return safeParse(
|
|
2997
2811
|
jsonString,
|
|
2998
|
-
(x) =>
|
|
2999
|
-
|
|
2812
|
+
(x) =>
|
|
2813
|
+
AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
|
|
2814
|
+
JSON.parse(x),
|
|
2815
|
+
),
|
|
2816
|
+
`Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
|
|
3000
2817
|
);
|
|
3001
2818
|
}
|
|
3002
2819
|
|
|
3003
2820
|
/** @internal */
|
|
3004
|
-
export const
|
|
2821
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
3005
2822
|
z.ZodNativeEnum<
|
|
3006
|
-
typeof
|
|
2823
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3007
2824
|
> = z.nativeEnum(
|
|
3008
|
-
|
|
2825
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
|
|
3009
2826
|
);
|
|
3010
2827
|
|
|
3011
2828
|
/** @internal */
|
|
3012
|
-
export const
|
|
2829
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
3013
2830
|
z.ZodNativeEnum<
|
|
3014
|
-
typeof
|
|
2831
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
|
|
3015
2832
|
> =
|
|
3016
|
-
|
|
2833
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
3017
2834
|
|
|
3018
2835
|
/**
|
|
3019
2836
|
* @internal
|
|
3020
2837
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3021
2838
|
*/
|
|
3022
|
-
export namespace
|
|
3023
|
-
/** @deprecated use `
|
|
2839
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
|
|
2840
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
3024
2841
|
export const inboundSchema =
|
|
3025
|
-
|
|
3026
|
-
/** @deprecated use `
|
|
2842
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
2843
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
3027
2844
|
export const outboundSchema =
|
|
3028
|
-
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
/** @internal */
|
|
3032
|
-
export const
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
2845
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
/** @internal */
|
|
2849
|
+
export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
|
|
2850
|
+
z.ZodType<
|
|
2851
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2852
|
+
z.ZodTypeDef,
|
|
2853
|
+
unknown
|
|
2854
|
+
> = z.object({
|
|
2855
|
+
type:
|
|
2856
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
2857
|
+
requires_approval: z.boolean().default(false),
|
|
2858
|
+
}).transform((v) => {
|
|
2859
|
+
return remap$(v, {
|
|
2860
|
+
"requires_approval": "requiresApproval",
|
|
2861
|
+
});
|
|
3043
2862
|
});
|
|
3044
|
-
});
|
|
3045
2863
|
|
|
3046
2864
|
/** @internal */
|
|
3047
|
-
export type
|
|
2865
|
+
export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
|
|
3048
2866
|
type: string;
|
|
3049
2867
|
requires_approval: boolean;
|
|
3050
2868
|
};
|
|
3051
2869
|
|
|
3052
2870
|
/** @internal */
|
|
3053
|
-
export const
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
2871
|
+
export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
|
|
2872
|
+
z.ZodType<
|
|
2873
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
|
|
2874
|
+
z.ZodTypeDef,
|
|
2875
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
2876
|
+
> = z.object({
|
|
2877
|
+
type:
|
|
2878
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
2879
|
+
requiresApproval: z.boolean().default(false),
|
|
2880
|
+
}).transform((v) => {
|
|
2881
|
+
return remap$(v, {
|
|
2882
|
+
requiresApproval: "requires_approval",
|
|
2883
|
+
});
|
|
3064
2884
|
});
|
|
3065
|
-
});
|
|
3066
2885
|
|
|
3067
2886
|
/**
|
|
3068
2887
|
* @internal
|
|
3069
2888
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3070
2889
|
*/
|
|
3071
|
-
export namespace
|
|
3072
|
-
/** @deprecated use `
|
|
3073
|
-
export const inboundSchema =
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
2890
|
+
export namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
|
|
2891
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
2892
|
+
export const inboundSchema =
|
|
2893
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
2894
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
2895
|
+
export const outboundSchema =
|
|
2896
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
2897
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
|
|
2898
|
+
export type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
|
|
3078
2899
|
}
|
|
3079
2900
|
|
|
3080
|
-
export function
|
|
3081
|
-
|
|
2901
|
+
export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
|
|
2902
|
+
agentToolInputRunRetrieveKnowledgeBasesTool:
|
|
2903
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
3082
2904
|
): string {
|
|
3083
2905
|
return JSON.stringify(
|
|
3084
|
-
|
|
2906
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
|
|
2907
|
+
agentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2908
|
+
),
|
|
3085
2909
|
);
|
|
3086
2910
|
}
|
|
3087
2911
|
|
|
3088
|
-
export function
|
|
2912
|
+
export function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
|
|
3089
2913
|
jsonString: string,
|
|
3090
|
-
): SafeParseResult<
|
|
2914
|
+
): SafeParseResult<
|
|
2915
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool,
|
|
2916
|
+
SDKValidationError
|
|
2917
|
+
> {
|
|
3091
2918
|
return safeParse(
|
|
3092
2919
|
jsonString,
|
|
3093
|
-
(x) =>
|
|
3094
|
-
|
|
2920
|
+
(x) =>
|
|
2921
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(
|
|
2922
|
+
JSON.parse(x),
|
|
2923
|
+
),
|
|
2924
|
+
`Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
|
|
3095
2925
|
);
|
|
3096
2926
|
}
|
|
3097
2927
|
|
|
3098
2928
|
/** @internal */
|
|
3099
|
-
export const
|
|
2929
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
3100
2930
|
z.ZodNativeEnum<
|
|
3101
|
-
typeof
|
|
2931
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3102
2932
|
> = z.nativeEnum(
|
|
3103
|
-
|
|
2933
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
|
|
3104
2934
|
);
|
|
3105
2935
|
|
|
3106
2936
|
/** @internal */
|
|
3107
|
-
export const
|
|
2937
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
3108
2938
|
z.ZodNativeEnum<
|
|
3109
|
-
typeof
|
|
2939
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
|
|
3110
2940
|
> =
|
|
3111
|
-
|
|
2941
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
3112
2942
|
|
|
3113
2943
|
/**
|
|
3114
2944
|
* @internal
|
|
3115
2945
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3116
2946
|
*/
|
|
3117
|
-
export namespace
|
|
3118
|
-
/** @deprecated use `
|
|
2947
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
|
|
2948
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
3119
2949
|
export const inboundSchema =
|
|
3120
|
-
|
|
3121
|
-
/** @deprecated use `
|
|
2950
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
2951
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
3122
2952
|
export const outboundSchema =
|
|
3123
|
-
|
|
2953
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
3124
2954
|
}
|
|
3125
2955
|
|
|
3126
2956
|
/** @internal */
|
|
3127
|
-
export const
|
|
3128
|
-
|
|
2957
|
+
export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
|
|
2958
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3129
2959
|
z.ZodTypeDef,
|
|
3130
2960
|
unknown
|
|
3131
2961
|
> = z.object({
|
|
3132
2962
|
type:
|
|
3133
|
-
|
|
2963
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
3134
2964
|
requires_approval: z.boolean().default(false),
|
|
3135
2965
|
}).transform((v) => {
|
|
3136
2966
|
return remap$(v, {
|
|
@@ -3139,93 +2969,105 @@ export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3139
2969
|
});
|
|
3140
2970
|
|
|
3141
2971
|
/** @internal */
|
|
3142
|
-
export type
|
|
2972
|
+
export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
|
|
3143
2973
|
type: string;
|
|
3144
2974
|
requires_approval: boolean;
|
|
3145
2975
|
};
|
|
3146
2976
|
|
|
3147
2977
|
/** @internal */
|
|
3148
|
-
export const
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
2978
|
+
export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
|
|
2979
|
+
z.ZodType<
|
|
2980
|
+
AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
|
|
2981
|
+
z.ZodTypeDef,
|
|
2982
|
+
AgentToolInputRunDeleteMemoryDocumentTool
|
|
2983
|
+
> = z.object({
|
|
2984
|
+
type:
|
|
2985
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
2986
|
+
requiresApproval: z.boolean().default(false),
|
|
2987
|
+
}).transform((v) => {
|
|
2988
|
+
return remap$(v, {
|
|
2989
|
+
requiresApproval: "requires_approval",
|
|
2990
|
+
});
|
|
3159
2991
|
});
|
|
3160
|
-
});
|
|
3161
2992
|
|
|
3162
2993
|
/**
|
|
3163
2994
|
* @internal
|
|
3164
2995
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3165
2996
|
*/
|
|
3166
|
-
export namespace
|
|
3167
|
-
/** @deprecated use `
|
|
3168
|
-
export const inboundSchema =
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
2997
|
+
export namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
|
|
2998
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
2999
|
+
export const inboundSchema =
|
|
3000
|
+
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
3001
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
3002
|
+
export const outboundSchema =
|
|
3003
|
+
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
3004
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
|
|
3005
|
+
export type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
|
|
3173
3006
|
}
|
|
3174
3007
|
|
|
3175
|
-
export function
|
|
3176
|
-
|
|
3008
|
+
export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
|
|
3009
|
+
agentToolInputRunDeleteMemoryDocumentTool:
|
|
3010
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3177
3011
|
): string {
|
|
3178
3012
|
return JSON.stringify(
|
|
3179
|
-
|
|
3013
|
+
AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
|
|
3014
|
+
agentToolInputRunDeleteMemoryDocumentTool,
|
|
3015
|
+
),
|
|
3180
3016
|
);
|
|
3181
3017
|
}
|
|
3182
3018
|
|
|
3183
|
-
export function
|
|
3019
|
+
export function agentToolInputRunDeleteMemoryDocumentToolFromJSON(
|
|
3184
3020
|
jsonString: string,
|
|
3185
|
-
): SafeParseResult<
|
|
3021
|
+
): SafeParseResult<
|
|
3022
|
+
AgentToolInputRunDeleteMemoryDocumentTool,
|
|
3023
|
+
SDKValidationError
|
|
3024
|
+
> {
|
|
3186
3025
|
return safeParse(
|
|
3187
3026
|
jsonString,
|
|
3188
|
-
(x) =>
|
|
3189
|
-
|
|
3027
|
+
(x) =>
|
|
3028
|
+
AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(
|
|
3029
|
+
JSON.parse(x),
|
|
3030
|
+
),
|
|
3031
|
+
`Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
|
|
3190
3032
|
);
|
|
3191
3033
|
}
|
|
3192
3034
|
|
|
3193
3035
|
/** @internal */
|
|
3194
|
-
export const
|
|
3036
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
3195
3037
|
z.ZodNativeEnum<
|
|
3196
|
-
typeof
|
|
3038
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3197
3039
|
> = z.nativeEnum(
|
|
3198
|
-
|
|
3040
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
|
|
3199
3041
|
);
|
|
3200
3042
|
|
|
3201
3043
|
/** @internal */
|
|
3202
|
-
export const
|
|
3044
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
3203
3045
|
z.ZodNativeEnum<
|
|
3204
|
-
typeof
|
|
3046
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
|
|
3205
3047
|
> =
|
|
3206
|
-
|
|
3048
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3207
3049
|
|
|
3208
3050
|
/**
|
|
3209
3051
|
* @internal
|
|
3210
3052
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3211
3053
|
*/
|
|
3212
|
-
export namespace
|
|
3213
|
-
/** @deprecated use `
|
|
3054
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
|
|
3055
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
3214
3056
|
export const inboundSchema =
|
|
3215
|
-
|
|
3216
|
-
/** @deprecated use `
|
|
3057
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
3058
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
3217
3059
|
export const outboundSchema =
|
|
3218
|
-
|
|
3060
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
3219
3061
|
}
|
|
3220
3062
|
|
|
3221
3063
|
/** @internal */
|
|
3222
|
-
export const
|
|
3223
|
-
|
|
3064
|
+
export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
3065
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3224
3066
|
z.ZodTypeDef,
|
|
3225
3067
|
unknown
|
|
3226
3068
|
> = z.object({
|
|
3227
3069
|
type:
|
|
3228
|
-
|
|
3070
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
3229
3071
|
requires_approval: z.boolean().default(false),
|
|
3230
3072
|
}).transform((v) => {
|
|
3231
3073
|
return remap$(v, {
|
|
@@ -3234,93 +3076,105 @@ export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
|
3234
3076
|
});
|
|
3235
3077
|
|
|
3236
3078
|
/** @internal */
|
|
3237
|
-
export type
|
|
3079
|
+
export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
|
|
3238
3080
|
type: string;
|
|
3239
3081
|
requires_approval: boolean;
|
|
3240
3082
|
};
|
|
3241
3083
|
|
|
3242
3084
|
/** @internal */
|
|
3243
|
-
export const
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3085
|
+
export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
|
|
3086
|
+
z.ZodType<
|
|
3087
|
+
AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
|
|
3088
|
+
z.ZodTypeDef,
|
|
3089
|
+
AgentToolInputRunRetrieveMemoryStoresTool
|
|
3090
|
+
> = z.object({
|
|
3091
|
+
type:
|
|
3092
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
3093
|
+
requiresApproval: z.boolean().default(false),
|
|
3094
|
+
}).transform((v) => {
|
|
3095
|
+
return remap$(v, {
|
|
3096
|
+
requiresApproval: "requires_approval",
|
|
3097
|
+
});
|
|
3254
3098
|
});
|
|
3255
|
-
});
|
|
3256
3099
|
|
|
3257
3100
|
/**
|
|
3258
3101
|
* @internal
|
|
3259
3102
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3260
3103
|
*/
|
|
3261
|
-
export namespace
|
|
3262
|
-
/** @deprecated use `
|
|
3263
|
-
export const inboundSchema =
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3104
|
+
export namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
|
|
3105
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
3106
|
+
export const inboundSchema =
|
|
3107
|
+
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
3108
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
3109
|
+
export const outboundSchema =
|
|
3110
|
+
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
3111
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
|
|
3112
|
+
export type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
|
|
3268
3113
|
}
|
|
3269
3114
|
|
|
3270
|
-
export function
|
|
3271
|
-
|
|
3115
|
+
export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
|
|
3116
|
+
agentToolInputRunRetrieveMemoryStoresTool:
|
|
3117
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3272
3118
|
): string {
|
|
3273
3119
|
return JSON.stringify(
|
|
3274
|
-
|
|
3120
|
+
AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
|
|
3121
|
+
agentToolInputRunRetrieveMemoryStoresTool,
|
|
3122
|
+
),
|
|
3275
3123
|
);
|
|
3276
3124
|
}
|
|
3277
3125
|
|
|
3278
|
-
export function
|
|
3126
|
+
export function agentToolInputRunRetrieveMemoryStoresToolFromJSON(
|
|
3279
3127
|
jsonString: string,
|
|
3280
|
-
): SafeParseResult<
|
|
3128
|
+
): SafeParseResult<
|
|
3129
|
+
AgentToolInputRunRetrieveMemoryStoresTool,
|
|
3130
|
+
SDKValidationError
|
|
3131
|
+
> {
|
|
3281
3132
|
return safeParse(
|
|
3282
3133
|
jsonString,
|
|
3283
|
-
(x) =>
|
|
3284
|
-
|
|
3134
|
+
(x) =>
|
|
3135
|
+
AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(
|
|
3136
|
+
JSON.parse(x),
|
|
3137
|
+
),
|
|
3138
|
+
`Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
|
|
3285
3139
|
);
|
|
3286
3140
|
}
|
|
3287
3141
|
|
|
3288
3142
|
/** @internal */
|
|
3289
|
-
export const
|
|
3143
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
3290
3144
|
z.ZodNativeEnum<
|
|
3291
|
-
typeof
|
|
3145
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3292
3146
|
> = z.nativeEnum(
|
|
3293
|
-
|
|
3147
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
|
|
3294
3148
|
);
|
|
3295
3149
|
|
|
3296
3150
|
/** @internal */
|
|
3297
|
-
export const
|
|
3151
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
3298
3152
|
z.ZodNativeEnum<
|
|
3299
|
-
typeof
|
|
3153
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
|
|
3300
3154
|
> =
|
|
3301
|
-
|
|
3155
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3302
3156
|
|
|
3303
3157
|
/**
|
|
3304
3158
|
* @internal
|
|
3305
3159
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3306
3160
|
*/
|
|
3307
|
-
export namespace
|
|
3308
|
-
/** @deprecated use `
|
|
3161
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
|
|
3162
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
3309
3163
|
export const inboundSchema =
|
|
3310
|
-
|
|
3311
|
-
/** @deprecated use `
|
|
3164
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
3165
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
3312
3166
|
export const outboundSchema =
|
|
3313
|
-
|
|
3167
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
3314
3168
|
}
|
|
3315
3169
|
|
|
3316
3170
|
/** @internal */
|
|
3317
|
-
export const
|
|
3318
|
-
|
|
3171
|
+
export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3172
|
+
AgentToolInputRunWriteMemoryStoreTool,
|
|
3319
3173
|
z.ZodTypeDef,
|
|
3320
3174
|
unknown
|
|
3321
3175
|
> = z.object({
|
|
3322
3176
|
type:
|
|
3323
|
-
|
|
3177
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3324
3178
|
requires_approval: z.boolean().default(false),
|
|
3325
3179
|
}).transform((v) => {
|
|
3326
3180
|
return remap$(v, {
|
|
@@ -3329,19 +3183,19 @@ export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3329
3183
|
});
|
|
3330
3184
|
|
|
3331
3185
|
/** @internal */
|
|
3332
|
-
export type
|
|
3186
|
+
export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
|
|
3333
3187
|
type: string;
|
|
3334
3188
|
requires_approval: boolean;
|
|
3335
3189
|
};
|
|
3336
3190
|
|
|
3337
3191
|
/** @internal */
|
|
3338
|
-
export const
|
|
3339
|
-
|
|
3192
|
+
export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3193
|
+
AgentToolInputRunWriteMemoryStoreTool$Outbound,
|
|
3340
3194
|
z.ZodTypeDef,
|
|
3341
|
-
|
|
3195
|
+
AgentToolInputRunWriteMemoryStoreTool
|
|
3342
3196
|
> = z.object({
|
|
3343
3197
|
type:
|
|
3344
|
-
|
|
3198
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3345
3199
|
requiresApproval: z.boolean().default(false),
|
|
3346
3200
|
}).transform((v) => {
|
|
3347
3201
|
return remap$(v, {
|
|
@@ -3353,65 +3207,70 @@ export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
3353
3207
|
* @internal
|
|
3354
3208
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3355
3209
|
*/
|
|
3356
|
-
export namespace
|
|
3357
|
-
/** @deprecated use `
|
|
3358
|
-
export const inboundSchema =
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3210
|
+
export namespace AgentToolInputRunWriteMemoryStoreTool$ {
|
|
3211
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
3212
|
+
export const inboundSchema =
|
|
3213
|
+
AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
3214
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
3215
|
+
export const outboundSchema =
|
|
3216
|
+
AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
3217
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
|
|
3218
|
+
export type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
|
|
3363
3219
|
}
|
|
3364
3220
|
|
|
3365
|
-
export function
|
|
3366
|
-
|
|
3221
|
+
export function agentToolInputRunWriteMemoryStoreToolToJSON(
|
|
3222
|
+
agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
|
|
3367
3223
|
): string {
|
|
3368
3224
|
return JSON.stringify(
|
|
3369
|
-
|
|
3225
|
+
AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
|
|
3226
|
+
agentToolInputRunWriteMemoryStoreTool,
|
|
3227
|
+
),
|
|
3370
3228
|
);
|
|
3371
3229
|
}
|
|
3372
3230
|
|
|
3373
|
-
export function
|
|
3231
|
+
export function agentToolInputRunWriteMemoryStoreToolFromJSON(
|
|
3374
3232
|
jsonString: string,
|
|
3375
|
-
): SafeParseResult<
|
|
3233
|
+
): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError> {
|
|
3376
3234
|
return safeParse(
|
|
3377
3235
|
jsonString,
|
|
3378
|
-
(x) =>
|
|
3379
|
-
|
|
3236
|
+
(x) =>
|
|
3237
|
+
AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3238
|
+
`Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`,
|
|
3380
3239
|
);
|
|
3381
3240
|
}
|
|
3382
3241
|
|
|
3383
3242
|
/** @internal */
|
|
3384
|
-
export const
|
|
3243
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
|
|
3385
3244
|
z.ZodNativeEnum<
|
|
3386
|
-
typeof
|
|
3387
|
-
> = z.nativeEnum(
|
|
3245
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3246
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
3388
3247
|
|
|
3389
3248
|
/** @internal */
|
|
3390
|
-
export const
|
|
3249
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
|
|
3391
3250
|
z.ZodNativeEnum<
|
|
3392
|
-
typeof
|
|
3393
|
-
> =
|
|
3251
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
|
|
3252
|
+
> = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3394
3253
|
|
|
3395
3254
|
/**
|
|
3396
3255
|
* @internal
|
|
3397
3256
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3398
3257
|
*/
|
|
3399
|
-
export namespace
|
|
3400
|
-
/** @deprecated use `
|
|
3258
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
|
|
3259
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3401
3260
|
export const inboundSchema =
|
|
3402
|
-
|
|
3403
|
-
/** @deprecated use `
|
|
3261
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
3262
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3404
3263
|
export const outboundSchema =
|
|
3405
|
-
|
|
3264
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
3406
3265
|
}
|
|
3407
3266
|
|
|
3408
3267
|
/** @internal */
|
|
3409
|
-
export const
|
|
3410
|
-
|
|
3268
|
+
export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
3269
|
+
AgentToolInputRunQueryMemoryStoreTool,
|
|
3411
3270
|
z.ZodTypeDef,
|
|
3412
3271
|
unknown
|
|
3413
3272
|
> = z.object({
|
|
3414
|
-
type:
|
|
3273
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
3415
3274
|
requires_approval: z.boolean().default(false),
|
|
3416
3275
|
}).transform((v) => {
|
|
3417
3276
|
return remap$(v, {
|
|
@@ -3420,18 +3279,18 @@ export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
3420
3279
|
});
|
|
3421
3280
|
|
|
3422
3281
|
/** @internal */
|
|
3423
|
-
export type
|
|
3282
|
+
export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
|
|
3424
3283
|
type: string;
|
|
3425
3284
|
requires_approval: boolean;
|
|
3426
3285
|
};
|
|
3427
3286
|
|
|
3428
3287
|
/** @internal */
|
|
3429
|
-
export const
|
|
3430
|
-
|
|
3288
|
+
export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
3289
|
+
AgentToolInputRunQueryMemoryStoreTool$Outbound,
|
|
3431
3290
|
z.ZodTypeDef,
|
|
3432
|
-
|
|
3291
|
+
AgentToolInputRunQueryMemoryStoreTool
|
|
3433
3292
|
> = z.object({
|
|
3434
|
-
type:
|
|
3293
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
3435
3294
|
requiresApproval: z.boolean().default(false),
|
|
3436
3295
|
}).transform((v) => {
|
|
3437
3296
|
return remap$(v, {
|
|
@@ -3443,63 +3302,68 @@ export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
3443
3302
|
* @internal
|
|
3444
3303
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3445
3304
|
*/
|
|
3446
|
-
export namespace
|
|
3447
|
-
/** @deprecated use `
|
|
3448
|
-
export const inboundSchema =
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3305
|
+
export namespace AgentToolInputRunQueryMemoryStoreTool$ {
|
|
3306
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
3307
|
+
export const inboundSchema =
|
|
3308
|
+
AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
3309
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
3310
|
+
export const outboundSchema =
|
|
3311
|
+
AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
3312
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
|
|
3313
|
+
export type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
|
|
3453
3314
|
}
|
|
3454
3315
|
|
|
3455
|
-
export function
|
|
3456
|
-
|
|
3316
|
+
export function agentToolInputRunQueryMemoryStoreToolToJSON(
|
|
3317
|
+
agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
|
|
3457
3318
|
): string {
|
|
3458
3319
|
return JSON.stringify(
|
|
3459
|
-
|
|
3320
|
+
AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
|
|
3321
|
+
agentToolInputRunQueryMemoryStoreTool,
|
|
3322
|
+
),
|
|
3460
3323
|
);
|
|
3461
3324
|
}
|
|
3462
3325
|
|
|
3463
|
-
export function
|
|
3326
|
+
export function agentToolInputRunQueryMemoryStoreToolFromJSON(
|
|
3464
3327
|
jsonString: string,
|
|
3465
|
-
): SafeParseResult<
|
|
3328
|
+
): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError> {
|
|
3466
3329
|
return safeParse(
|
|
3467
3330
|
jsonString,
|
|
3468
|
-
(x) =>
|
|
3469
|
-
|
|
3331
|
+
(x) =>
|
|
3332
|
+
AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
|
|
3333
|
+
`Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`,
|
|
3470
3334
|
);
|
|
3471
3335
|
}
|
|
3472
3336
|
|
|
3473
3337
|
/** @internal */
|
|
3474
|
-
export const
|
|
3475
|
-
z.ZodNativeEnum<typeof
|
|
3476
|
-
.nativeEnum(
|
|
3338
|
+
export const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
|
|
3339
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
|
|
3340
|
+
.nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
|
|
3477
3341
|
|
|
3478
3342
|
/** @internal */
|
|
3479
|
-
export const
|
|
3480
|
-
z.ZodNativeEnum<typeof
|
|
3481
|
-
|
|
3343
|
+
export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
|
|
3344
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> =
|
|
3345
|
+
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3482
3346
|
|
|
3483
3347
|
/**
|
|
3484
3348
|
* @internal
|
|
3485
3349
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3486
3350
|
*/
|
|
3487
|
-
export namespace
|
|
3488
|
-
/** @deprecated use `
|
|
3351
|
+
export namespace RunAgentAgentToolInputRunAgentsRequestType$ {
|
|
3352
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
3489
3353
|
export const inboundSchema =
|
|
3490
|
-
|
|
3491
|
-
/** @deprecated use `
|
|
3354
|
+
RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
3355
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
3492
3356
|
export const outboundSchema =
|
|
3493
|
-
|
|
3357
|
+
RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
3494
3358
|
}
|
|
3495
3359
|
|
|
3496
3360
|
/** @internal */
|
|
3497
|
-
export const
|
|
3498
|
-
|
|
3361
|
+
export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
3362
|
+
AgentToolInputRunRetrieveAgentsTool,
|
|
3499
3363
|
z.ZodTypeDef,
|
|
3500
3364
|
unknown
|
|
3501
3365
|
> = z.object({
|
|
3502
|
-
type:
|
|
3366
|
+
type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
3503
3367
|
requires_approval: z.boolean().default(false),
|
|
3504
3368
|
}).transform((v) => {
|
|
3505
3369
|
return remap$(v, {
|
|
@@ -3508,18 +3372,18 @@ export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
|
3508
3372
|
});
|
|
3509
3373
|
|
|
3510
3374
|
/** @internal */
|
|
3511
|
-
export type
|
|
3375
|
+
export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
|
|
3512
3376
|
type: string;
|
|
3513
3377
|
requires_approval: boolean;
|
|
3514
3378
|
};
|
|
3515
3379
|
|
|
3516
3380
|
/** @internal */
|
|
3517
|
-
export const
|
|
3518
|
-
|
|
3381
|
+
export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
3382
|
+
AgentToolInputRunRetrieveAgentsTool$Outbound,
|
|
3519
3383
|
z.ZodTypeDef,
|
|
3520
|
-
|
|
3384
|
+
AgentToolInputRunRetrieveAgentsTool
|
|
3521
3385
|
> = z.object({
|
|
3522
|
-
type:
|
|
3386
|
+
type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
3523
3387
|
requiresApproval: z.boolean().default(false),
|
|
3524
3388
|
}).transform((v) => {
|
|
3525
3389
|
return remap$(v, {
|
|
@@ -3531,64 +3395,68 @@ export const RetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
|
3531
3395
|
* @internal
|
|
3532
3396
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3533
3397
|
*/
|
|
3534
|
-
export namespace
|
|
3535
|
-
/** @deprecated use `
|
|
3536
|
-
export const inboundSchema =
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3398
|
+
export namespace AgentToolInputRunRetrieveAgentsTool$ {
|
|
3399
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
3400
|
+
export const inboundSchema =
|
|
3401
|
+
AgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
3402
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
3403
|
+
export const outboundSchema =
|
|
3404
|
+
AgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
3405
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
|
|
3406
|
+
export type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
|
|
3541
3407
|
}
|
|
3542
3408
|
|
|
3543
|
-
export function
|
|
3544
|
-
|
|
3409
|
+
export function agentToolInputRunRetrieveAgentsToolToJSON(
|
|
3410
|
+
agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
|
|
3545
3411
|
): string {
|
|
3546
3412
|
return JSON.stringify(
|
|
3547
|
-
|
|
3413
|
+
AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
|
|
3414
|
+
agentToolInputRunRetrieveAgentsTool,
|
|
3415
|
+
),
|
|
3548
3416
|
);
|
|
3549
3417
|
}
|
|
3550
3418
|
|
|
3551
|
-
export function
|
|
3419
|
+
export function agentToolInputRunRetrieveAgentsToolFromJSON(
|
|
3552
3420
|
jsonString: string,
|
|
3553
|
-
): SafeParseResult<
|
|
3421
|
+
): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError> {
|
|
3554
3422
|
return safeParse(
|
|
3555
3423
|
jsonString,
|
|
3556
|
-
(x) =>
|
|
3557
|
-
|
|
3424
|
+
(x) =>
|
|
3425
|
+
AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
|
|
3426
|
+
`Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`,
|
|
3558
3427
|
);
|
|
3559
3428
|
}
|
|
3560
3429
|
|
|
3561
3430
|
/** @internal */
|
|
3562
|
-
export const
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
);
|
|
3431
|
+
export const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
3432
|
+
typeof RunAgentAgentToolInputRunAgentsType
|
|
3433
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunAgentsType);
|
|
3566
3434
|
|
|
3567
3435
|
/** @internal */
|
|
3568
|
-
export const
|
|
3569
|
-
z.ZodNativeEnum<typeof
|
|
3570
|
-
|
|
3436
|
+
export const RunAgentAgentToolInputRunAgentsType$outboundSchema:
|
|
3437
|
+
z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType> =
|
|
3438
|
+
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3571
3439
|
|
|
3572
3440
|
/**
|
|
3573
3441
|
* @internal
|
|
3574
3442
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3575
3443
|
*/
|
|
3576
|
-
export namespace
|
|
3577
|
-
/** @deprecated use `
|
|
3444
|
+
export namespace RunAgentAgentToolInputRunAgentsType$ {
|
|
3445
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
3578
3446
|
export const inboundSchema =
|
|
3579
|
-
|
|
3580
|
-
/** @deprecated use `
|
|
3447
|
+
RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
3448
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
3581
3449
|
export const outboundSchema =
|
|
3582
|
-
|
|
3450
|
+
RunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
3583
3451
|
}
|
|
3584
3452
|
|
|
3585
3453
|
/** @internal */
|
|
3586
|
-
export const
|
|
3587
|
-
|
|
3454
|
+
export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
|
|
3455
|
+
AgentToolInputRunCallSubAgentTool,
|
|
3588
3456
|
z.ZodTypeDef,
|
|
3589
3457
|
unknown
|
|
3590
3458
|
> = z.object({
|
|
3591
|
-
type:
|
|
3459
|
+
type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
3592
3460
|
requires_approval: z.boolean().default(false),
|
|
3593
3461
|
}).transform((v) => {
|
|
3594
3462
|
return remap$(v, {
|
|
@@ -3597,18 +3465,18 @@ export const CallSubAgentTool$inboundSchema: z.ZodType<
|
|
|
3597
3465
|
});
|
|
3598
3466
|
|
|
3599
3467
|
/** @internal */
|
|
3600
|
-
export type
|
|
3468
|
+
export type AgentToolInputRunCallSubAgentTool$Outbound = {
|
|
3601
3469
|
type: string;
|
|
3602
3470
|
requires_approval: boolean;
|
|
3603
3471
|
};
|
|
3604
3472
|
|
|
3605
3473
|
/** @internal */
|
|
3606
|
-
export const
|
|
3607
|
-
|
|
3474
|
+
export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
|
|
3475
|
+
AgentToolInputRunCallSubAgentTool$Outbound,
|
|
3608
3476
|
z.ZodTypeDef,
|
|
3609
|
-
|
|
3477
|
+
AgentToolInputRunCallSubAgentTool
|
|
3610
3478
|
> = z.object({
|
|
3611
|
-
type:
|
|
3479
|
+
type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
3612
3480
|
requiresApproval: z.boolean().default(false),
|
|
3613
3481
|
}).transform((v) => {
|
|
3614
3482
|
return remap$(v, {
|
|
@@ -3620,61 +3488,64 @@ export const CallSubAgentTool$outboundSchema: z.ZodType<
|
|
|
3620
3488
|
* @internal
|
|
3621
3489
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3622
3490
|
*/
|
|
3623
|
-
export namespace
|
|
3624
|
-
/** @deprecated use `
|
|
3625
|
-
export const inboundSchema =
|
|
3626
|
-
/** @deprecated use `
|
|
3627
|
-
export const outboundSchema =
|
|
3628
|
-
|
|
3629
|
-
|
|
3491
|
+
export namespace AgentToolInputRunCallSubAgentTool$ {
|
|
3492
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
3493
|
+
export const inboundSchema = AgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
3494
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
3495
|
+
export const outboundSchema =
|
|
3496
|
+
AgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
3497
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
|
|
3498
|
+
export type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
|
|
3630
3499
|
}
|
|
3631
3500
|
|
|
3632
|
-
export function
|
|
3633
|
-
|
|
3501
|
+
export function agentToolInputRunCallSubAgentToolToJSON(
|
|
3502
|
+
agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
|
|
3634
3503
|
): string {
|
|
3635
3504
|
return JSON.stringify(
|
|
3636
|
-
|
|
3505
|
+
AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
|
|
3506
|
+
agentToolInputRunCallSubAgentTool,
|
|
3507
|
+
),
|
|
3637
3508
|
);
|
|
3638
3509
|
}
|
|
3639
3510
|
|
|
3640
|
-
export function
|
|
3511
|
+
export function agentToolInputRunCallSubAgentToolFromJSON(
|
|
3641
3512
|
jsonString: string,
|
|
3642
|
-
): SafeParseResult<
|
|
3513
|
+
): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError> {
|
|
3643
3514
|
return safeParse(
|
|
3644
3515
|
jsonString,
|
|
3645
|
-
(x) =>
|
|
3646
|
-
`Failed to parse '
|
|
3516
|
+
(x) => AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
|
|
3517
|
+
`Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`,
|
|
3647
3518
|
);
|
|
3648
3519
|
}
|
|
3649
3520
|
|
|
3650
3521
|
/** @internal */
|
|
3651
|
-
export const
|
|
3652
|
-
typeof
|
|
3653
|
-
> = z.nativeEnum(
|
|
3522
|
+
export const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3523
|
+
typeof RunAgentAgentToolInputRunType
|
|
3524
|
+
> = z.nativeEnum(RunAgentAgentToolInputRunType);
|
|
3654
3525
|
|
|
3655
3526
|
/** @internal */
|
|
3656
|
-
export const
|
|
3657
|
-
typeof
|
|
3658
|
-
> =
|
|
3527
|
+
export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3528
|
+
typeof RunAgentAgentToolInputRunType
|
|
3529
|
+
> = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3659
3530
|
|
|
3660
3531
|
/**
|
|
3661
3532
|
* @internal
|
|
3662
3533
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3663
3534
|
*/
|
|
3664
|
-
export namespace
|
|
3665
|
-
/** @deprecated use `
|
|
3666
|
-
export const inboundSchema =
|
|
3667
|
-
/** @deprecated use `
|
|
3668
|
-
export const outboundSchema =
|
|
3535
|
+
export namespace RunAgentAgentToolInputRunType$ {
|
|
3536
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
3537
|
+
export const inboundSchema = RunAgentAgentToolInputRunType$inboundSchema;
|
|
3538
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
3539
|
+
export const outboundSchema = RunAgentAgentToolInputRunType$outboundSchema;
|
|
3669
3540
|
}
|
|
3670
3541
|
|
|
3671
3542
|
/** @internal */
|
|
3672
|
-
export const
|
|
3673
|
-
|
|
3543
|
+
export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
|
|
3544
|
+
AgentToolInputRunWebScraperTool,
|
|
3674
3545
|
z.ZodTypeDef,
|
|
3675
3546
|
unknown
|
|
3676
3547
|
> = z.object({
|
|
3677
|
-
type:
|
|
3548
|
+
type: RunAgentAgentToolInputRunType$inboundSchema,
|
|
3678
3549
|
requires_approval: z.boolean().default(false),
|
|
3679
3550
|
}).transform((v) => {
|
|
3680
3551
|
return remap$(v, {
|
|
@@ -3683,18 +3554,18 @@ export const WebScraperTool$inboundSchema: z.ZodType<
|
|
|
3683
3554
|
});
|
|
3684
3555
|
|
|
3685
3556
|
/** @internal */
|
|
3686
|
-
export type
|
|
3557
|
+
export type AgentToolInputRunWebScraperTool$Outbound = {
|
|
3687
3558
|
type: string;
|
|
3688
3559
|
requires_approval: boolean;
|
|
3689
3560
|
};
|
|
3690
3561
|
|
|
3691
3562
|
/** @internal */
|
|
3692
|
-
export const
|
|
3693
|
-
|
|
3563
|
+
export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
|
|
3564
|
+
AgentToolInputRunWebScraperTool$Outbound,
|
|
3694
3565
|
z.ZodTypeDef,
|
|
3695
|
-
|
|
3566
|
+
AgentToolInputRunWebScraperTool
|
|
3696
3567
|
> = z.object({
|
|
3697
|
-
type:
|
|
3568
|
+
type: RunAgentAgentToolInputRunType$outboundSchema,
|
|
3698
3569
|
requiresApproval: z.boolean().default(false),
|
|
3699
3570
|
}).transform((v) => {
|
|
3700
3571
|
return remap$(v, {
|
|
@@ -3706,57 +3577,63 @@ export const WebScraperTool$outboundSchema: z.ZodType<
|
|
|
3706
3577
|
* @internal
|
|
3707
3578
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3708
3579
|
*/
|
|
3709
|
-
export namespace
|
|
3710
|
-
/** @deprecated use `
|
|
3711
|
-
export const inboundSchema =
|
|
3712
|
-
/** @deprecated use `
|
|
3713
|
-
export const outboundSchema =
|
|
3714
|
-
/** @deprecated use `
|
|
3715
|
-
export type Outbound =
|
|
3580
|
+
export namespace AgentToolInputRunWebScraperTool$ {
|
|
3581
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
3582
|
+
export const inboundSchema = AgentToolInputRunWebScraperTool$inboundSchema;
|
|
3583
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
3584
|
+
export const outboundSchema = AgentToolInputRunWebScraperTool$outboundSchema;
|
|
3585
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
|
|
3586
|
+
export type Outbound = AgentToolInputRunWebScraperTool$Outbound;
|
|
3716
3587
|
}
|
|
3717
3588
|
|
|
3718
|
-
export function
|
|
3719
|
-
|
|
3589
|
+
export function agentToolInputRunWebScraperToolToJSON(
|
|
3590
|
+
agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
|
|
3591
|
+
): string {
|
|
3592
|
+
return JSON.stringify(
|
|
3593
|
+
AgentToolInputRunWebScraperTool$outboundSchema.parse(
|
|
3594
|
+
agentToolInputRunWebScraperTool,
|
|
3595
|
+
),
|
|
3596
|
+
);
|
|
3720
3597
|
}
|
|
3721
3598
|
|
|
3722
|
-
export function
|
|
3599
|
+
export function agentToolInputRunWebScraperToolFromJSON(
|
|
3723
3600
|
jsonString: string,
|
|
3724
|
-
): SafeParseResult<
|
|
3601
|
+
): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError> {
|
|
3725
3602
|
return safeParse(
|
|
3726
3603
|
jsonString,
|
|
3727
|
-
(x) =>
|
|
3728
|
-
`Failed to parse '
|
|
3604
|
+
(x) => AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)),
|
|
3605
|
+
`Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`,
|
|
3729
3606
|
);
|
|
3730
3607
|
}
|
|
3731
3608
|
|
|
3732
3609
|
/** @internal */
|
|
3733
|
-
export const
|
|
3734
|
-
typeof
|
|
3735
|
-
> = z.nativeEnum(
|
|
3610
|
+
export const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
|
|
3611
|
+
typeof AgentToolInputRunType
|
|
3612
|
+
> = z.nativeEnum(AgentToolInputRunType);
|
|
3736
3613
|
|
|
3737
3614
|
/** @internal */
|
|
3738
|
-
export const
|
|
3739
|
-
typeof
|
|
3740
|
-
> =
|
|
3615
|
+
export const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
|
|
3616
|
+
typeof AgentToolInputRunType
|
|
3617
|
+
> = AgentToolInputRunType$inboundSchema;
|
|
3741
3618
|
|
|
3742
3619
|
/**
|
|
3743
3620
|
* @internal
|
|
3744
3621
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3745
3622
|
*/
|
|
3746
|
-
export namespace
|
|
3747
|
-
/** @deprecated use `
|
|
3748
|
-
export const inboundSchema =
|
|
3749
|
-
/** @deprecated use `
|
|
3750
|
-
export const outboundSchema =
|
|
3623
|
+
export namespace AgentToolInputRunType$ {
|
|
3624
|
+
/** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
|
|
3625
|
+
export const inboundSchema = AgentToolInputRunType$inboundSchema;
|
|
3626
|
+
/** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
|
|
3627
|
+
export const outboundSchema = AgentToolInputRunType$outboundSchema;
|
|
3751
3628
|
}
|
|
3752
3629
|
|
|
3753
3630
|
/** @internal */
|
|
3754
|
-
export const
|
|
3755
|
-
|
|
3631
|
+
export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
|
|
3632
|
+
AgentToolInputRunGoogleSearchTool,
|
|
3756
3633
|
z.ZodTypeDef,
|
|
3757
3634
|
unknown
|
|
3758
3635
|
> = z.object({
|
|
3759
|
-
type:
|
|
3636
|
+
type: AgentToolInputRunType$inboundSchema,
|
|
3760
3637
|
requires_approval: z.boolean().default(false),
|
|
3761
3638
|
}).transform((v) => {
|
|
3762
3639
|
return remap$(v, {
|
|
@@ -3765,18 +3642,18 @@ export const GoogleSearchTool$inboundSchema: z.ZodType<
|
|
|
3765
3642
|
});
|
|
3766
3643
|
|
|
3767
3644
|
/** @internal */
|
|
3768
|
-
export type
|
|
3645
|
+
export type AgentToolInputRunGoogleSearchTool$Outbound = {
|
|
3769
3646
|
type: string;
|
|
3770
3647
|
requires_approval: boolean;
|
|
3771
3648
|
};
|
|
3772
3649
|
|
|
3773
3650
|
/** @internal */
|
|
3774
|
-
export const
|
|
3775
|
-
|
|
3651
|
+
export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
|
|
3652
|
+
AgentToolInputRunGoogleSearchTool$Outbound,
|
|
3776
3653
|
z.ZodTypeDef,
|
|
3777
|
-
|
|
3654
|
+
AgentToolInputRunGoogleSearchTool
|
|
3778
3655
|
> = z.object({
|
|
3779
|
-
type:
|
|
3656
|
+
type: AgentToolInputRunType$outboundSchema,
|
|
3780
3657
|
requiresApproval: z.boolean().default(false),
|
|
3781
3658
|
}).transform((v) => {
|
|
3782
3659
|
return remap$(v, {
|
|
@@ -3788,171 +3665,176 @@ export const GoogleSearchTool$outboundSchema: z.ZodType<
|
|
|
3788
3665
|
* @internal
|
|
3789
3666
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3790
3667
|
*/
|
|
3791
|
-
export namespace
|
|
3792
|
-
/** @deprecated use `
|
|
3793
|
-
export const inboundSchema =
|
|
3794
|
-
/** @deprecated use `
|
|
3795
|
-
export const outboundSchema =
|
|
3796
|
-
|
|
3797
|
-
|
|
3668
|
+
export namespace AgentToolInputRunGoogleSearchTool$ {
|
|
3669
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
3670
|
+
export const inboundSchema = AgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
3671
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
3672
|
+
export const outboundSchema =
|
|
3673
|
+
AgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
3674
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
|
|
3675
|
+
export type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
|
|
3798
3676
|
}
|
|
3799
3677
|
|
|
3800
|
-
export function
|
|
3801
|
-
|
|
3678
|
+
export function agentToolInputRunGoogleSearchToolToJSON(
|
|
3679
|
+
agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
|
|
3802
3680
|
): string {
|
|
3803
3681
|
return JSON.stringify(
|
|
3804
|
-
|
|
3682
|
+
AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
|
|
3683
|
+
agentToolInputRunGoogleSearchTool,
|
|
3684
|
+
),
|
|
3805
3685
|
);
|
|
3806
3686
|
}
|
|
3807
3687
|
|
|
3808
|
-
export function
|
|
3688
|
+
export function agentToolInputRunGoogleSearchToolFromJSON(
|
|
3809
3689
|
jsonString: string,
|
|
3810
|
-
): SafeParseResult<
|
|
3690
|
+
): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError> {
|
|
3811
3691
|
return safeParse(
|
|
3812
3692
|
jsonString,
|
|
3813
|
-
(x) =>
|
|
3814
|
-
`Failed to parse '
|
|
3693
|
+
(x) => AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
|
|
3694
|
+
`Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`,
|
|
3815
3695
|
);
|
|
3816
3696
|
}
|
|
3817
3697
|
|
|
3818
3698
|
/** @internal */
|
|
3819
|
-
export const
|
|
3820
|
-
|
|
3699
|
+
export const AgentToolInputRun$inboundSchema: z.ZodType<
|
|
3700
|
+
AgentToolInputRun,
|
|
3821
3701
|
z.ZodTypeDef,
|
|
3822
3702
|
unknown
|
|
3823
3703
|
> = z.union([
|
|
3824
|
-
z.lazy(() =>
|
|
3825
|
-
z.lazy(() =>
|
|
3826
|
-
z.lazy(() =>
|
|
3827
|
-
z.lazy(() =>
|
|
3828
|
-
z.lazy(() =>
|
|
3829
|
-
z.lazy(() =>
|
|
3830
|
-
z.lazy(() =>
|
|
3831
|
-
z.lazy(() =>
|
|
3832
|
-
z.lazy(() =>
|
|
3833
|
-
z.lazy(() =>
|
|
3834
|
-
z.lazy(() =>
|
|
3835
|
-
z.lazy(() =>
|
|
3836
|
-
z.lazy(() =>
|
|
3837
|
-
z.lazy(() =>
|
|
3704
|
+
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3705
|
+
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3706
|
+
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3707
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3708
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3709
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3710
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3711
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3712
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3713
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3714
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3715
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3716
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3717
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3838
3718
|
]);
|
|
3839
3719
|
|
|
3840
3720
|
/** @internal */
|
|
3841
|
-
export type
|
|
3842
|
-
|
|
|
3843
|
-
|
|
|
3844
|
-
|
|
|
3845
|
-
|
|
|
3846
|
-
|
|
|
3847
|
-
|
|
|
3848
|
-
|
|
|
3849
|
-
|
|
|
3850
|
-
|
|
|
3851
|
-
|
|
|
3852
|
-
|
|
|
3853
|
-
|
|
|
3854
|
-
|
|
|
3855
|
-
|
|
|
3856
|
-
|
|
3857
|
-
/** @internal */
|
|
3858
|
-
export const
|
|
3859
|
-
|
|
3721
|
+
export type AgentToolInputRun$Outbound =
|
|
3722
|
+
| HTTPToolRun$Outbound
|
|
3723
|
+
| CodeToolRun$Outbound
|
|
3724
|
+
| FunctionToolRun$Outbound
|
|
3725
|
+
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3726
|
+
| AgentToolInputRunWebScraperTool$Outbound
|
|
3727
|
+
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3728
|
+
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3729
|
+
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3730
|
+
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3731
|
+
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3732
|
+
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3733
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3734
|
+
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3735
|
+
| AgentToolInputRunCurrentDateTool$Outbound;
|
|
3736
|
+
|
|
3737
|
+
/** @internal */
|
|
3738
|
+
export const AgentToolInputRun$outboundSchema: z.ZodType<
|
|
3739
|
+
AgentToolInputRun$Outbound,
|
|
3860
3740
|
z.ZodTypeDef,
|
|
3861
|
-
|
|
3741
|
+
AgentToolInputRun
|
|
3862
3742
|
> = z.union([
|
|
3863
|
-
z.lazy(() =>
|
|
3864
|
-
z.lazy(() =>
|
|
3865
|
-
z.lazy(() =>
|
|
3866
|
-
z.lazy(() =>
|
|
3867
|
-
z.lazy(() =>
|
|
3868
|
-
z.lazy(() =>
|
|
3869
|
-
z.lazy(() =>
|
|
3870
|
-
z.lazy(() =>
|
|
3871
|
-
z.lazy(() =>
|
|
3872
|
-
z.lazy(() =>
|
|
3873
|
-
z.lazy(() =>
|
|
3874
|
-
z.lazy(() =>
|
|
3875
|
-
z.lazy(() =>
|
|
3876
|
-
z.lazy(() =>
|
|
3743
|
+
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3744
|
+
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3745
|
+
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3746
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3747
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3748
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3749
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3750
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3751
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3752
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3753
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3754
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3755
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3756
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
3877
3757
|
]);
|
|
3878
3758
|
|
|
3879
3759
|
/**
|
|
3880
3760
|
* @internal
|
|
3881
3761
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3882
3762
|
*/
|
|
3883
|
-
export namespace
|
|
3884
|
-
/** @deprecated use `
|
|
3885
|
-
export const inboundSchema =
|
|
3886
|
-
/** @deprecated use `
|
|
3887
|
-
export const outboundSchema =
|
|
3888
|
-
/** @deprecated use `
|
|
3889
|
-
export type Outbound =
|
|
3763
|
+
export namespace AgentToolInputRun$ {
|
|
3764
|
+
/** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
|
|
3765
|
+
export const inboundSchema = AgentToolInputRun$inboundSchema;
|
|
3766
|
+
/** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
|
|
3767
|
+
export const outboundSchema = AgentToolInputRun$outboundSchema;
|
|
3768
|
+
/** @deprecated use `AgentToolInputRun$Outbound` instead. */
|
|
3769
|
+
export type Outbound = AgentToolInputRun$Outbound;
|
|
3890
3770
|
}
|
|
3891
3771
|
|
|
3892
|
-
export function
|
|
3893
|
-
|
|
3772
|
+
export function agentToolInputRunToJSON(
|
|
3773
|
+
agentToolInputRun: AgentToolInputRun,
|
|
3894
3774
|
): string {
|
|
3895
3775
|
return JSON.stringify(
|
|
3896
|
-
|
|
3776
|
+
AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
|
|
3897
3777
|
);
|
|
3898
3778
|
}
|
|
3899
3779
|
|
|
3900
|
-
export function
|
|
3780
|
+
export function agentToolInputRunFromJSON(
|
|
3901
3781
|
jsonString: string,
|
|
3902
|
-
): SafeParseResult<
|
|
3782
|
+
): SafeParseResult<AgentToolInputRun, SDKValidationError> {
|
|
3903
3783
|
return safeParse(
|
|
3904
3784
|
jsonString,
|
|
3905
|
-
(x) =>
|
|
3906
|
-
`Failed to parse '
|
|
3785
|
+
(x) => AgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
|
|
3786
|
+
`Failed to parse 'AgentToolInputRun' from JSON`,
|
|
3907
3787
|
);
|
|
3908
3788
|
}
|
|
3909
3789
|
|
|
3910
3790
|
/** @internal */
|
|
3911
|
-
export const
|
|
3912
|
-
typeof
|
|
3913
|
-
> = z.nativeEnum(
|
|
3791
|
+
export const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
3792
|
+
typeof RunAgentToolApprovalRequired
|
|
3793
|
+
> = z.nativeEnum(RunAgentToolApprovalRequired);
|
|
3914
3794
|
|
|
3915
3795
|
/** @internal */
|
|
3916
|
-
export const
|
|
3917
|
-
typeof
|
|
3918
|
-
> =
|
|
3796
|
+
export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
3797
|
+
typeof RunAgentToolApprovalRequired
|
|
3798
|
+
> = RunAgentToolApprovalRequired$inboundSchema;
|
|
3919
3799
|
|
|
3920
3800
|
/**
|
|
3921
3801
|
* @internal
|
|
3922
3802
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3923
3803
|
*/
|
|
3924
|
-
export namespace
|
|
3925
|
-
/** @deprecated use `
|
|
3926
|
-
export const inboundSchema =
|
|
3927
|
-
/** @deprecated use `
|
|
3928
|
-
export const outboundSchema =
|
|
3804
|
+
export namespace RunAgentToolApprovalRequired$ {
|
|
3805
|
+
/** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
|
|
3806
|
+
export const inboundSchema = RunAgentToolApprovalRequired$inboundSchema;
|
|
3807
|
+
/** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
|
|
3808
|
+
export const outboundSchema = RunAgentToolApprovalRequired$outboundSchema;
|
|
3929
3809
|
}
|
|
3930
3810
|
|
|
3931
3811
|
/** @internal */
|
|
3932
|
-
export const
|
|
3933
|
-
|
|
3812
|
+
export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
3813
|
+
RunAgentSettings,
|
|
3934
3814
|
z.ZodTypeDef,
|
|
3935
3815
|
unknown
|
|
3936
3816
|
> = z.object({
|
|
3937
3817
|
tools: z.array(
|
|
3938
3818
|
z.union([
|
|
3939
|
-
z.lazy(() =>
|
|
3940
|
-
z.lazy(() =>
|
|
3941
|
-
z.lazy(() =>
|
|
3942
|
-
z.lazy(() =>
|
|
3943
|
-
z.lazy(() =>
|
|
3944
|
-
z.lazy(() =>
|
|
3945
|
-
z.lazy(() =>
|
|
3946
|
-
z.lazy(() =>
|
|
3947
|
-
z.lazy(() =>
|
|
3948
|
-
z.lazy(() =>
|
|
3949
|
-
z.lazy(() =>
|
|
3950
|
-
z.lazy(() =>
|
|
3951
|
-
z.lazy(() =>
|
|
3952
|
-
z.lazy(() =>
|
|
3819
|
+
z.lazy(() => HTTPToolRun$inboundSchema),
|
|
3820
|
+
z.lazy(() => CodeToolRun$inboundSchema),
|
|
3821
|
+
z.lazy(() => FunctionToolRun$inboundSchema),
|
|
3822
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
3823
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
|
|
3824
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
3825
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
3826
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
3827
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
3828
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
3829
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
3830
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
3831
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
3832
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
3953
3833
|
]),
|
|
3954
3834
|
),
|
|
3955
|
-
tool_approval_required:
|
|
3835
|
+
tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
|
|
3836
|
+
"none",
|
|
3837
|
+
),
|
|
3956
3838
|
max_iterations: z.number().int().default(15),
|
|
3957
3839
|
max_execution_time: z.number().int().default(300),
|
|
3958
3840
|
}).transform((v) => {
|
|
@@ -3964,22 +3846,22 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
3964
3846
|
});
|
|
3965
3847
|
|
|
3966
3848
|
/** @internal */
|
|
3967
|
-
export type
|
|
3849
|
+
export type RunAgentSettings$Outbound = {
|
|
3968
3850
|
tools: Array<
|
|
3969
|
-
|
|
|
3970
|
-
|
|
|
3971
|
-
|
|
|
3972
|
-
|
|
|
3973
|
-
|
|
|
3974
|
-
|
|
|
3975
|
-
|
|
|
3976
|
-
|
|
|
3977
|
-
|
|
|
3978
|
-
|
|
|
3979
|
-
|
|
|
3980
|
-
|
|
|
3981
|
-
|
|
|
3982
|
-
|
|
|
3851
|
+
| HTTPToolRun$Outbound
|
|
3852
|
+
| CodeToolRun$Outbound
|
|
3853
|
+
| FunctionToolRun$Outbound
|
|
3854
|
+
| AgentToolInputRunGoogleSearchTool$Outbound
|
|
3855
|
+
| AgentToolInputRunWebScraperTool$Outbound
|
|
3856
|
+
| AgentToolInputRunCallSubAgentTool$Outbound
|
|
3857
|
+
| AgentToolInputRunRetrieveAgentsTool$Outbound
|
|
3858
|
+
| AgentToolInputRunQueryMemoryStoreTool$Outbound
|
|
3859
|
+
| AgentToolInputRunWriteMemoryStoreTool$Outbound
|
|
3860
|
+
| AgentToolInputRunRetrieveMemoryStoresTool$Outbound
|
|
3861
|
+
| AgentToolInputRunDeleteMemoryDocumentTool$Outbound
|
|
3862
|
+
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
3863
|
+
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
3864
|
+
| AgentToolInputRunCurrentDateTool$Outbound
|
|
3983
3865
|
>;
|
|
3984
3866
|
tool_approval_required: string;
|
|
3985
3867
|
max_iterations: number;
|
|
@@ -3987,30 +3869,32 @@ export type Settings$Outbound = {
|
|
|
3987
3869
|
};
|
|
3988
3870
|
|
|
3989
3871
|
/** @internal */
|
|
3990
|
-
export const
|
|
3991
|
-
|
|
3872
|
+
export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
3873
|
+
RunAgentSettings$Outbound,
|
|
3992
3874
|
z.ZodTypeDef,
|
|
3993
|
-
|
|
3875
|
+
RunAgentSettings
|
|
3994
3876
|
> = z.object({
|
|
3995
3877
|
tools: z.array(
|
|
3996
3878
|
z.union([
|
|
3997
|
-
z.lazy(() =>
|
|
3998
|
-
z.lazy(() =>
|
|
3999
|
-
z.lazy(() =>
|
|
4000
|
-
z.lazy(() =>
|
|
4001
|
-
z.lazy(() =>
|
|
4002
|
-
z.lazy(() =>
|
|
4003
|
-
z.lazy(() =>
|
|
4004
|
-
z.lazy(() =>
|
|
4005
|
-
z.lazy(() =>
|
|
4006
|
-
z.lazy(() =>
|
|
4007
|
-
z.lazy(() =>
|
|
4008
|
-
z.lazy(() =>
|
|
4009
|
-
z.lazy(() =>
|
|
4010
|
-
z.lazy(() =>
|
|
3879
|
+
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
3880
|
+
z.lazy(() => CodeToolRun$outboundSchema),
|
|
3881
|
+
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
3882
|
+
z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
3883
|
+
z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
|
|
3884
|
+
z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
3885
|
+
z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
3886
|
+
z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
3887
|
+
z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
3888
|
+
z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
3889
|
+
z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
3890
|
+
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
3891
|
+
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
3892
|
+
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
4011
3893
|
]),
|
|
4012
3894
|
),
|
|
4013
|
-
toolApprovalRequired:
|
|
3895
|
+
toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
|
|
3896
|
+
"none",
|
|
3897
|
+
),
|
|
4014
3898
|
maxIterations: z.number().int().default(15),
|
|
4015
3899
|
maxExecutionTime: z.number().int().default(300),
|
|
4016
3900
|
}).transform((v) => {
|
|
@@ -4025,26 +3909,30 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
4025
3909
|
* @internal
|
|
4026
3910
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4027
3911
|
*/
|
|
4028
|
-
export namespace
|
|
4029
|
-
/** @deprecated use `
|
|
4030
|
-
export const inboundSchema =
|
|
4031
|
-
/** @deprecated use `
|
|
4032
|
-
export const outboundSchema =
|
|
4033
|
-
/** @deprecated use `
|
|
4034
|
-
export type Outbound =
|
|
3912
|
+
export namespace RunAgentSettings$ {
|
|
3913
|
+
/** @deprecated use `RunAgentSettings$inboundSchema` instead. */
|
|
3914
|
+
export const inboundSchema = RunAgentSettings$inboundSchema;
|
|
3915
|
+
/** @deprecated use `RunAgentSettings$outboundSchema` instead. */
|
|
3916
|
+
export const outboundSchema = RunAgentSettings$outboundSchema;
|
|
3917
|
+
/** @deprecated use `RunAgentSettings$Outbound` instead. */
|
|
3918
|
+
export type Outbound = RunAgentSettings$Outbound;
|
|
4035
3919
|
}
|
|
4036
3920
|
|
|
4037
|
-
export function
|
|
4038
|
-
|
|
3921
|
+
export function runAgentSettingsToJSON(
|
|
3922
|
+
runAgentSettings: RunAgentSettings,
|
|
3923
|
+
): string {
|
|
3924
|
+
return JSON.stringify(
|
|
3925
|
+
RunAgentSettings$outboundSchema.parse(runAgentSettings),
|
|
3926
|
+
);
|
|
4039
3927
|
}
|
|
4040
3928
|
|
|
4041
|
-
export function
|
|
3929
|
+
export function runAgentSettingsFromJSON(
|
|
4042
3930
|
jsonString: string,
|
|
4043
|
-
): SafeParseResult<
|
|
3931
|
+
): SafeParseResult<RunAgentSettings, SDKValidationError> {
|
|
4044
3932
|
return safeParse(
|
|
4045
3933
|
jsonString,
|
|
4046
|
-
(x) =>
|
|
4047
|
-
`Failed to parse '
|
|
3934
|
+
(x) => RunAgentSettings$inboundSchema.parse(JSON.parse(x)),
|
|
3935
|
+
`Failed to parse 'RunAgentSettings' from JSON`,
|
|
4048
3936
|
);
|
|
4049
3937
|
}
|
|
4050
3938
|
|
|
@@ -4055,7 +3943,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4055
3943
|
unknown
|
|
4056
3944
|
> = z.object({
|
|
4057
3945
|
key: z.string(),
|
|
4058
|
-
|
|
3946
|
+
task_id: z.string().optional(),
|
|
4059
3947
|
model: z.string(),
|
|
4060
3948
|
fallback_models: z.array(z.string()).optional(),
|
|
4061
3949
|
role: z.string(),
|
|
@@ -4069,13 +3957,14 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4069
3957
|
description: z.string().optional(),
|
|
4070
3958
|
system_prompt: z.string().optional(),
|
|
4071
3959
|
memory_stores: z.array(z.string()).optional(),
|
|
4072
|
-
knowledge_bases: z.array(z.lazy(() =>
|
|
3960
|
+
knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
|
|
4073
3961
|
.optional(),
|
|
4074
3962
|
team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
|
|
4075
|
-
settings: z.lazy(() =>
|
|
3963
|
+
settings: z.lazy(() => RunAgentSettings$inboundSchema),
|
|
4076
3964
|
metadata: z.record(z.any()).optional(),
|
|
4077
3965
|
}).transform((v) => {
|
|
4078
3966
|
return remap$(v, {
|
|
3967
|
+
"task_id": "taskId",
|
|
4079
3968
|
"fallback_models": "fallbackModels",
|
|
4080
3969
|
"system_prompt": "systemPrompt",
|
|
4081
3970
|
"memory_stores": "memoryStores",
|
|
@@ -4087,7 +3976,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
4087
3976
|
/** @internal */
|
|
4088
3977
|
export type RunAgentRequestBody$Outbound = {
|
|
4089
3978
|
key: string;
|
|
4090
|
-
|
|
3979
|
+
task_id?: string | undefined;
|
|
4091
3980
|
model: string;
|
|
4092
3981
|
fallback_models?: Array<string> | undefined;
|
|
4093
3982
|
role: string;
|
|
@@ -4101,9 +3990,9 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
4101
3990
|
description?: string | undefined;
|
|
4102
3991
|
system_prompt?: string | undefined;
|
|
4103
3992
|
memory_stores?: Array<string> | undefined;
|
|
4104
|
-
knowledge_bases?: Array<
|
|
3993
|
+
knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
|
|
4105
3994
|
team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
|
|
4106
|
-
settings:
|
|
3995
|
+
settings: RunAgentSettings$Outbound;
|
|
4107
3996
|
metadata?: { [k: string]: any } | undefined;
|
|
4108
3997
|
};
|
|
4109
3998
|
|
|
@@ -4128,13 +4017,14 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4128
4017
|
description: z.string().optional(),
|
|
4129
4018
|
systemPrompt: z.string().optional(),
|
|
4130
4019
|
memoryStores: z.array(z.string()).optional(),
|
|
4131
|
-
knowledgeBases: z.array(z.lazy(() =>
|
|
4020
|
+
knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
|
|
4132
4021
|
.optional(),
|
|
4133
4022
|
teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
|
|
4134
|
-
settings: z.lazy(() =>
|
|
4023
|
+
settings: z.lazy(() => RunAgentSettings$outboundSchema),
|
|
4135
4024
|
metadata: z.record(z.any()).optional(),
|
|
4136
4025
|
}).transform((v) => {
|
|
4137
4026
|
return remap$(v, {
|
|
4027
|
+
taskId: "task_id",
|
|
4138
4028
|
fallbackModels: "fallback_models",
|
|
4139
4029
|
systemPrompt: "system_prompt",
|
|
4140
4030
|
memoryStores: "memory_stores",
|