@orq-ai/node 3.12.16 → 3.12.19
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/bin/mcp-server.js +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- 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 +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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/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 +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +107 -90
- package/packages/orq-rc/docs/sdks/tools/README.md +488 -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/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +13 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
- package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
- package/packages/orq-rc/src/models/components/deployments.ts +52 -45
- package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
- package/packages/orq-rc/src/models/components/httptool.ts +532 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
- package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +91 -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 +10 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
- package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
- package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
- package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
- 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 +10 -10
- package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
- package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
- 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/getoneknowledge.ts +9 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- 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 +6 -5
- 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/listknowledgebases.ts +9 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
- package/packages/orq-rc/src/models/operations/parse.ts +20 -335
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
- 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 +2303 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
- 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 +10 -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 +57 -57
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
- package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
- package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/tools.ts +117 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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 +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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/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 +16 -16
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
export const Role2 = {
|
|
@@ -236,30 +237,6 @@ export type TeamOfAgents = {
|
|
|
236
237
|
role?: string | undefined;
|
|
237
238
|
};
|
|
238
239
|
|
|
239
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings13Type = {
|
|
240
|
-
Function: "function",
|
|
241
|
-
} as const;
|
|
242
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings13Type = ClosedEnum<
|
|
243
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings13Type
|
|
244
|
-
>;
|
|
245
|
-
|
|
246
|
-
export type ToolsFunction = {
|
|
247
|
-
name: string;
|
|
248
|
-
description?: string | undefined;
|
|
249
|
-
strict?: boolean | undefined;
|
|
250
|
-
parameters?: { [k: string]: any } | undefined;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
export type Thirteen = {
|
|
254
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings13Type;
|
|
255
|
-
id?: string | undefined;
|
|
256
|
-
key: string;
|
|
257
|
-
displayName?: string | undefined;
|
|
258
|
-
description?: string | undefined;
|
|
259
|
-
requiresApproval?: boolean | undefined;
|
|
260
|
-
function: ToolsFunction;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
240
|
/**
|
|
264
241
|
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
265
242
|
*/
|
|
@@ -274,12 +251,10 @@ export const Status = {
|
|
|
274
251
|
*/
|
|
275
252
|
export type Status = ClosedEnum<typeof Status>;
|
|
276
253
|
|
|
277
|
-
export const
|
|
254
|
+
export const ToolsType = {
|
|
278
255
|
Http: "http",
|
|
279
256
|
} as const;
|
|
280
|
-
export type
|
|
281
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings12Type
|
|
282
|
-
>;
|
|
257
|
+
export type ToolsType = ClosedEnum<typeof ToolsType>;
|
|
283
258
|
|
|
284
259
|
/**
|
|
285
260
|
* The HTTP method to use.
|
|
@@ -320,7 +295,7 @@ export type Blueprint = {
|
|
|
320
295
|
/**
|
|
321
296
|
* The type of the argument.
|
|
322
297
|
*/
|
|
323
|
-
export const
|
|
298
|
+
export const RunAgentToolsType = {
|
|
324
299
|
String: "string",
|
|
325
300
|
Number: "number",
|
|
326
301
|
Boolean: "boolean",
|
|
@@ -328,8 +303,7 @@ export const RunAgentToolsAgentsRequestRequestBodySettings12HttpType = {
|
|
|
328
303
|
/**
|
|
329
304
|
* The type of the argument.
|
|
330
305
|
*/
|
|
331
|
-
export type
|
|
332
|
-
ClosedEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings12HttpType>;
|
|
306
|
+
export type RunAgentToolsType = ClosedEnum<typeof RunAgentToolsType>;
|
|
333
307
|
|
|
334
308
|
/**
|
|
335
309
|
* The default value of the argument.
|
|
@@ -340,7 +314,7 @@ export type Arguments = {
|
|
|
340
314
|
/**
|
|
341
315
|
* The type of the argument.
|
|
342
316
|
*/
|
|
343
|
-
type:
|
|
317
|
+
type: RunAgentToolsType;
|
|
344
318
|
/**
|
|
345
319
|
* A description of the argument.
|
|
346
320
|
*/
|
|
@@ -366,12 +340,15 @@ export type Http = {
|
|
|
366
340
|
arguments?: { [k: string]: Arguments } | undefined;
|
|
367
341
|
};
|
|
368
342
|
|
|
369
|
-
|
|
343
|
+
/**
|
|
344
|
+
* Makes HTTP requests to external APIs
|
|
345
|
+
*/
|
|
346
|
+
export type TwentyFour = {
|
|
370
347
|
id?: string | undefined;
|
|
371
348
|
/**
|
|
372
349
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
373
350
|
*/
|
|
374
|
-
path
|
|
351
|
+
path: string;
|
|
375
352
|
/**
|
|
376
353
|
* Unique key of the tool as it will be displayed in the UI
|
|
377
354
|
*/
|
|
@@ -389,153 +366,30 @@ export type Twelve = {
|
|
|
389
366
|
*/
|
|
390
367
|
status?: Status | undefined;
|
|
391
368
|
versionHash?: string | undefined;
|
|
392
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings12Type;
|
|
393
|
-
http: Http;
|
|
394
|
-
requiresApproval?: boolean | undefined;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings11Type = {
|
|
398
|
-
CurrentDate: "current_date",
|
|
399
|
-
} as const;
|
|
400
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings11Type = ClosedEnum<
|
|
401
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings11Type
|
|
402
|
-
>;
|
|
403
|
-
|
|
404
|
-
export type Eleven = {
|
|
405
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings11Type;
|
|
406
|
-
requiresApproval?: boolean | undefined;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings10Type = {
|
|
410
|
-
QueryKnowledgeBase: "query_knowledge_base",
|
|
411
|
-
} as const;
|
|
412
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings10Type = ClosedEnum<
|
|
413
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings10Type
|
|
414
|
-
>;
|
|
415
|
-
|
|
416
|
-
export type Ten = {
|
|
417
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings10Type;
|
|
418
|
-
requiresApproval?: boolean | undefined;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings9Type = {
|
|
422
|
-
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
423
|
-
} as const;
|
|
424
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings9Type = ClosedEnum<
|
|
425
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings9Type
|
|
426
|
-
>;
|
|
427
|
-
|
|
428
|
-
export type Nine = {
|
|
429
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings9Type;
|
|
430
|
-
requiresApproval?: boolean | undefined;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings8Type = {
|
|
434
|
-
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
435
|
-
} as const;
|
|
436
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings8Type = ClosedEnum<
|
|
437
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings8Type
|
|
438
|
-
>;
|
|
439
|
-
|
|
440
|
-
export type Eight = {
|
|
441
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings8Type;
|
|
442
|
-
requiresApproval?: boolean | undefined;
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings7Type = {
|
|
446
|
-
DeleteMemoryDocument: "delete_memory_document",
|
|
447
|
-
} as const;
|
|
448
|
-
export type RunAgentToolsAgentsRequestRequestBodySettings7Type = ClosedEnum<
|
|
449
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettings7Type
|
|
450
|
-
>;
|
|
451
|
-
|
|
452
|
-
export type Seven = {
|
|
453
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings7Type;
|
|
454
|
-
requiresApproval?: boolean | undefined;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
export const RunAgentToolsAgentsRequestRequestBodySettingsType = {
|
|
458
|
-
WriteMemoryStore: "write_memory_store",
|
|
459
|
-
} as const;
|
|
460
|
-
export type RunAgentToolsAgentsRequestRequestBodySettingsType = ClosedEnum<
|
|
461
|
-
typeof RunAgentToolsAgentsRequestRequestBodySettingsType
|
|
462
|
-
>;
|
|
463
|
-
|
|
464
|
-
export type Six = {
|
|
465
|
-
type: RunAgentToolsAgentsRequestRequestBodySettingsType;
|
|
466
|
-
requiresApproval?: boolean | undefined;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
export const RunAgentToolsAgentsRequestRequestBodyType = {
|
|
470
|
-
QueryMemoryStore: "query_memory_store",
|
|
471
|
-
} as const;
|
|
472
|
-
export type RunAgentToolsAgentsRequestRequestBodyType = ClosedEnum<
|
|
473
|
-
typeof RunAgentToolsAgentsRequestRequestBodyType
|
|
474
|
-
>;
|
|
475
|
-
|
|
476
|
-
export type Tools5 = {
|
|
477
|
-
type: RunAgentToolsAgentsRequestRequestBodyType;
|
|
478
|
-
requiresApproval?: boolean | undefined;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
export const RunAgentToolsAgentsRequestType = {
|
|
482
|
-
RetrieveAgents: "retrieve_agents",
|
|
483
|
-
} as const;
|
|
484
|
-
export type RunAgentToolsAgentsRequestType = ClosedEnum<
|
|
485
|
-
typeof RunAgentToolsAgentsRequestType
|
|
486
|
-
>;
|
|
487
|
-
|
|
488
|
-
export type Tools4 = {
|
|
489
|
-
type: RunAgentToolsAgentsRequestType;
|
|
490
|
-
requiresApproval?: boolean | undefined;
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
export const RunAgentToolsAgentsType = {
|
|
494
|
-
CallSubAgent: "call_sub_agent",
|
|
495
|
-
} as const;
|
|
496
|
-
export type RunAgentToolsAgentsType = ClosedEnum<
|
|
497
|
-
typeof RunAgentToolsAgentsType
|
|
498
|
-
>;
|
|
499
|
-
|
|
500
|
-
export type Tools3 = {
|
|
501
|
-
type: RunAgentToolsAgentsType;
|
|
502
|
-
requiresApproval?: boolean | undefined;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export const RunAgentToolsType = {
|
|
506
|
-
WebScraper: "web_scraper",
|
|
507
|
-
} as const;
|
|
508
|
-
export type RunAgentToolsType = ClosedEnum<typeof RunAgentToolsType>;
|
|
509
|
-
|
|
510
|
-
export type Tools2 = {
|
|
511
|
-
type: RunAgentToolsType;
|
|
512
|
-
requiresApproval?: boolean | undefined;
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
export const ToolsType = {
|
|
516
|
-
GoogleSearch: "google_search",
|
|
517
|
-
} as const;
|
|
518
|
-
export type ToolsType = ClosedEnum<typeof ToolsType>;
|
|
519
|
-
|
|
520
|
-
export type Tools1 = {
|
|
521
369
|
type: ToolsType;
|
|
370
|
+
http: Http;
|
|
522
371
|
requiresApproval?: boolean | undefined;
|
|
523
372
|
};
|
|
524
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
|
|
376
|
+
*/
|
|
525
377
|
export type Tools =
|
|
526
|
-
|
|
|
527
|
-
|
|
|
528
|
-
|
|
|
529
|
-
|
|
|
530
|
-
|
|
|
531
|
-
|
|
|
532
|
-
|
|
|
533
|
-
|
|
|
534
|
-
|
|
|
535
|
-
|
|
|
536
|
-
|
|
|
537
|
-
|
|
538
|
-
|
|
378
|
+
| (components.HttpTool & { type: "http" })
|
|
379
|
+
| (components.CodeExecutionTool & { type: "code" })
|
|
380
|
+
| (components.FunctionTool & { type: "function" })
|
|
381
|
+
| (components.GoogleSearchTool & { type: "google_search" })
|
|
382
|
+
| (components.WebScraperTool & { type: "web_scraper" })
|
|
383
|
+
| (components.CallSubAgentTool & { type: "call_sub_agent" })
|
|
384
|
+
| (components.RetrieveAgentsTool & { type: "retrieve_agents" })
|
|
385
|
+
| (components.QueryMemoryStoreTool & { type: "query_memory_store" })
|
|
386
|
+
| (components.WriteMemoryStoreTool & { type: "write_memory_store" })
|
|
387
|
+
| (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
|
|
388
|
+
| (components.RetrieveKnowledgeBasesTool & {
|
|
389
|
+
type: "retrieve_knowledge_bases";
|
|
390
|
+
})
|
|
391
|
+
| (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
|
|
392
|
+
| (components.CurrentDateTool & { type: "current_date" });
|
|
539
393
|
|
|
540
394
|
/**
|
|
541
395
|
* 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.
|
|
@@ -552,19 +406,21 @@ export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
|
552
406
|
|
|
553
407
|
export type Settings = {
|
|
554
408
|
tools: Array<
|
|
555
|
-
|
|
|
556
|
-
|
|
|
557
|
-
|
|
|
558
|
-
|
|
|
559
|
-
|
|
|
560
|
-
|
|
|
561
|
-
|
|
|
562
|
-
|
|
|
563
|
-
|
|
|
564
|
-
|
|
|
565
|
-
|
|
|
566
|
-
|
|
567
|
-
|
|
409
|
+
| (components.HttpTool & { type: "http" })
|
|
410
|
+
| (components.CodeExecutionTool & { type: "code" })
|
|
411
|
+
| (components.FunctionTool & { type: "function" })
|
|
412
|
+
| (components.GoogleSearchTool & { type: "google_search" })
|
|
413
|
+
| (components.WebScraperTool & { type: "web_scraper" })
|
|
414
|
+
| (components.CallSubAgentTool & { type: "call_sub_agent" })
|
|
415
|
+
| (components.RetrieveAgentsTool & { type: "retrieve_agents" })
|
|
416
|
+
| (components.QueryMemoryStoreTool & { type: "query_memory_store" })
|
|
417
|
+
| (components.WriteMemoryStoreTool & { type: "write_memory_store" })
|
|
418
|
+
| (components.RetrieveMemoryStoresTool & { type: "retrieve_memory_stores" })
|
|
419
|
+
| (components.RetrieveKnowledgeBasesTool & {
|
|
420
|
+
type: "retrieve_knowledge_bases";
|
|
421
|
+
})
|
|
422
|
+
| (components.QueryKnowledgeBaseTool & { type: "query_knowledge_base" })
|
|
423
|
+
| (components.CurrentDateTool & { type: "current_date" })
|
|
568
424
|
>;
|
|
569
425
|
/**
|
|
570
426
|
* 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.
|
|
@@ -2020,168 +1876,6 @@ export function teamOfAgentsFromJSON(
|
|
|
2020
1876
|
);
|
|
2021
1877
|
}
|
|
2022
1878
|
|
|
2023
|
-
/** @internal */
|
|
2024
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema:
|
|
2025
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
|
|
2026
|
-
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings13Type);
|
|
2027
|
-
|
|
2028
|
-
/** @internal */
|
|
2029
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema:
|
|
2030
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings13Type> =
|
|
2031
|
-
RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
2032
|
-
|
|
2033
|
-
/**
|
|
2034
|
-
* @internal
|
|
2035
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2036
|
-
*/
|
|
2037
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettings13Type$ {
|
|
2038
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema` instead. */
|
|
2039
|
-
export const inboundSchema =
|
|
2040
|
-
RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema;
|
|
2041
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema` instead. */
|
|
2042
|
-
export const outboundSchema =
|
|
2043
|
-
RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema;
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
/** @internal */
|
|
2047
|
-
export const ToolsFunction$inboundSchema: z.ZodType<
|
|
2048
|
-
ToolsFunction,
|
|
2049
|
-
z.ZodTypeDef,
|
|
2050
|
-
unknown
|
|
2051
|
-
> = z.object({
|
|
2052
|
-
name: z.string(),
|
|
2053
|
-
description: z.string().optional(),
|
|
2054
|
-
strict: z.boolean().optional(),
|
|
2055
|
-
parameters: z.record(z.any()).optional(),
|
|
2056
|
-
});
|
|
2057
|
-
|
|
2058
|
-
/** @internal */
|
|
2059
|
-
export type ToolsFunction$Outbound = {
|
|
2060
|
-
name: string;
|
|
2061
|
-
description?: string | undefined;
|
|
2062
|
-
strict?: boolean | undefined;
|
|
2063
|
-
parameters?: { [k: string]: any } | undefined;
|
|
2064
|
-
};
|
|
2065
|
-
|
|
2066
|
-
/** @internal */
|
|
2067
|
-
export const ToolsFunction$outboundSchema: z.ZodType<
|
|
2068
|
-
ToolsFunction$Outbound,
|
|
2069
|
-
z.ZodTypeDef,
|
|
2070
|
-
ToolsFunction
|
|
2071
|
-
> = z.object({
|
|
2072
|
-
name: z.string(),
|
|
2073
|
-
description: z.string().optional(),
|
|
2074
|
-
strict: z.boolean().optional(),
|
|
2075
|
-
parameters: z.record(z.any()).optional(),
|
|
2076
|
-
});
|
|
2077
|
-
|
|
2078
|
-
/**
|
|
2079
|
-
* @internal
|
|
2080
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2081
|
-
*/
|
|
2082
|
-
export namespace ToolsFunction$ {
|
|
2083
|
-
/** @deprecated use `ToolsFunction$inboundSchema` instead. */
|
|
2084
|
-
export const inboundSchema = ToolsFunction$inboundSchema;
|
|
2085
|
-
/** @deprecated use `ToolsFunction$outboundSchema` instead. */
|
|
2086
|
-
export const outboundSchema = ToolsFunction$outboundSchema;
|
|
2087
|
-
/** @deprecated use `ToolsFunction$Outbound` instead. */
|
|
2088
|
-
export type Outbound = ToolsFunction$Outbound;
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
export function toolsFunctionToJSON(toolsFunction: ToolsFunction): string {
|
|
2092
|
-
return JSON.stringify(ToolsFunction$outboundSchema.parse(toolsFunction));
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
export function toolsFunctionFromJSON(
|
|
2096
|
-
jsonString: string,
|
|
2097
|
-
): SafeParseResult<ToolsFunction, SDKValidationError> {
|
|
2098
|
-
return safeParse(
|
|
2099
|
-
jsonString,
|
|
2100
|
-
(x) => ToolsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2101
|
-
`Failed to parse 'ToolsFunction' from JSON`,
|
|
2102
|
-
);
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
/** @internal */
|
|
2106
|
-
export const Thirteen$inboundSchema: z.ZodType<
|
|
2107
|
-
Thirteen,
|
|
2108
|
-
z.ZodTypeDef,
|
|
2109
|
-
unknown
|
|
2110
|
-
> = z.object({
|
|
2111
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings13Type$inboundSchema,
|
|
2112
|
-
_id: z.string().optional(),
|
|
2113
|
-
key: z.string(),
|
|
2114
|
-
display_name: z.string().optional(),
|
|
2115
|
-
description: z.string().optional(),
|
|
2116
|
-
requires_approval: z.boolean().default(false),
|
|
2117
|
-
function: z.lazy(() => ToolsFunction$inboundSchema),
|
|
2118
|
-
}).transform((v) => {
|
|
2119
|
-
return remap$(v, {
|
|
2120
|
-
"_id": "id",
|
|
2121
|
-
"display_name": "displayName",
|
|
2122
|
-
"requires_approval": "requiresApproval",
|
|
2123
|
-
});
|
|
2124
|
-
});
|
|
2125
|
-
|
|
2126
|
-
/** @internal */
|
|
2127
|
-
export type Thirteen$Outbound = {
|
|
2128
|
-
type: string;
|
|
2129
|
-
_id?: string | undefined;
|
|
2130
|
-
key: string;
|
|
2131
|
-
display_name?: string | undefined;
|
|
2132
|
-
description?: string | undefined;
|
|
2133
|
-
requires_approval: boolean;
|
|
2134
|
-
function: ToolsFunction$Outbound;
|
|
2135
|
-
};
|
|
2136
|
-
|
|
2137
|
-
/** @internal */
|
|
2138
|
-
export const Thirteen$outboundSchema: z.ZodType<
|
|
2139
|
-
Thirteen$Outbound,
|
|
2140
|
-
z.ZodTypeDef,
|
|
2141
|
-
Thirteen
|
|
2142
|
-
> = z.object({
|
|
2143
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings13Type$outboundSchema,
|
|
2144
|
-
id: z.string().optional(),
|
|
2145
|
-
key: z.string(),
|
|
2146
|
-
displayName: z.string().optional(),
|
|
2147
|
-
description: z.string().optional(),
|
|
2148
|
-
requiresApproval: z.boolean().default(false),
|
|
2149
|
-
function: z.lazy(() => ToolsFunction$outboundSchema),
|
|
2150
|
-
}).transform((v) => {
|
|
2151
|
-
return remap$(v, {
|
|
2152
|
-
id: "_id",
|
|
2153
|
-
displayName: "display_name",
|
|
2154
|
-
requiresApproval: "requires_approval",
|
|
2155
|
-
});
|
|
2156
|
-
});
|
|
2157
|
-
|
|
2158
|
-
/**
|
|
2159
|
-
* @internal
|
|
2160
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2161
|
-
*/
|
|
2162
|
-
export namespace Thirteen$ {
|
|
2163
|
-
/** @deprecated use `Thirteen$inboundSchema` instead. */
|
|
2164
|
-
export const inboundSchema = Thirteen$inboundSchema;
|
|
2165
|
-
/** @deprecated use `Thirteen$outboundSchema` instead. */
|
|
2166
|
-
export const outboundSchema = Thirteen$outboundSchema;
|
|
2167
|
-
/** @deprecated use `Thirteen$Outbound` instead. */
|
|
2168
|
-
export type Outbound = Thirteen$Outbound;
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
export function thirteenToJSON(thirteen: Thirteen): string {
|
|
2172
|
-
return JSON.stringify(Thirteen$outboundSchema.parse(thirteen));
|
|
2173
|
-
}
|
|
2174
|
-
|
|
2175
|
-
export function thirteenFromJSON(
|
|
2176
|
-
jsonString: string,
|
|
2177
|
-
): SafeParseResult<Thirteen, SDKValidationError> {
|
|
2178
|
-
return safeParse(
|
|
2179
|
-
jsonString,
|
|
2180
|
-
(x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
|
|
2181
|
-
`Failed to parse 'Thirteen' from JSON`,
|
|
2182
|
-
);
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
1879
|
/** @internal */
|
|
2186
1880
|
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
2187
1881
|
.nativeEnum(Status);
|
|
@@ -2202,26 +1896,22 @@ export namespace Status$ {
|
|
|
2202
1896
|
}
|
|
2203
1897
|
|
|
2204
1898
|
/** @internal */
|
|
2205
|
-
export const
|
|
2206
|
-
|
|
2207
|
-
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12Type);
|
|
1899
|
+
export const ToolsType$inboundSchema: z.ZodNativeEnum<typeof ToolsType> = z
|
|
1900
|
+
.nativeEnum(ToolsType);
|
|
2208
1901
|
|
|
2209
1902
|
/** @internal */
|
|
2210
|
-
export const
|
|
2211
|
-
|
|
2212
|
-
RunAgentToolsAgentsRequestRequestBodySettings12Type$inboundSchema;
|
|
1903
|
+
export const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType> =
|
|
1904
|
+
ToolsType$inboundSchema;
|
|
2213
1905
|
|
|
2214
1906
|
/**
|
|
2215
1907
|
* @internal
|
|
2216
1908
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2217
1909
|
*/
|
|
2218
|
-
export namespace
|
|
2219
|
-
/** @deprecated use `
|
|
2220
|
-
export const inboundSchema =
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
export const outboundSchema =
|
|
2224
|
-
RunAgentToolsAgentsRequestRequestBodySettings12Type$outboundSchema;
|
|
1910
|
+
export namespace ToolsType$ {
|
|
1911
|
+
/** @deprecated use `ToolsType$inboundSchema` instead. */
|
|
1912
|
+
export const inboundSchema = ToolsType$inboundSchema;
|
|
1913
|
+
/** @deprecated use `ToolsType$outboundSchema` instead. */
|
|
1914
|
+
export const outboundSchema = ToolsType$outboundSchema;
|
|
2225
1915
|
}
|
|
2226
1916
|
|
|
2227
1917
|
/** @internal */
|
|
@@ -2303,28 +1993,24 @@ export function blueprintFromJSON(
|
|
|
2303
1993
|
}
|
|
2304
1994
|
|
|
2305
1995
|
/** @internal */
|
|
2306
|
-
export const
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
> = z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings12HttpType);
|
|
1996
|
+
export const RunAgentToolsType$inboundSchema: z.ZodNativeEnum<
|
|
1997
|
+
typeof RunAgentToolsType
|
|
1998
|
+
> = z.nativeEnum(RunAgentToolsType);
|
|
2310
1999
|
|
|
2311
2000
|
/** @internal */
|
|
2312
|
-
export const
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
> = RunAgentToolsAgentsRequestRequestBodySettings12HttpType$inboundSchema;
|
|
2001
|
+
export const RunAgentToolsType$outboundSchema: z.ZodNativeEnum<
|
|
2002
|
+
typeof RunAgentToolsType
|
|
2003
|
+
> = RunAgentToolsType$inboundSchema;
|
|
2316
2004
|
|
|
2317
2005
|
/**
|
|
2318
2006
|
* @internal
|
|
2319
2007
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2320
2008
|
*/
|
|
2321
|
-
export namespace
|
|
2322
|
-
/** @deprecated use `
|
|
2323
|
-
export const inboundSchema =
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
export const outboundSchema =
|
|
2327
|
-
RunAgentToolsAgentsRequestRequestBodySettings12HttpType$outboundSchema;
|
|
2009
|
+
export namespace RunAgentToolsType$ {
|
|
2010
|
+
/** @deprecated use `RunAgentToolsType$inboundSchema` instead. */
|
|
2011
|
+
export const inboundSchema = RunAgentToolsType$inboundSchema;
|
|
2012
|
+
/** @deprecated use `RunAgentToolsType$outboundSchema` instead. */
|
|
2013
|
+
export const outboundSchema = RunAgentToolsType$outboundSchema;
|
|
2328
2014
|
}
|
|
2329
2015
|
|
|
2330
2016
|
/** @internal */
|
|
@@ -2377,7 +2063,7 @@ export const Arguments$inboundSchema: z.ZodType<
|
|
|
2377
2063
|
z.ZodTypeDef,
|
|
2378
2064
|
unknown
|
|
2379
2065
|
> = z.object({
|
|
2380
|
-
type:
|
|
2066
|
+
type: RunAgentToolsType$inboundSchema,
|
|
2381
2067
|
description: z.string(),
|
|
2382
2068
|
send_to_model: z.boolean().default(true),
|
|
2383
2069
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2402,7 +2088,7 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
2402
2088
|
z.ZodTypeDef,
|
|
2403
2089
|
Arguments
|
|
2404
2090
|
> = z.object({
|
|
2405
|
-
type:
|
|
2091
|
+
type: RunAgentToolsType$outboundSchema,
|
|
2406
2092
|
description: z.string(),
|
|
2407
2093
|
sendToModel: z.boolean().default(true),
|
|
2408
2094
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -2488,31 +2174,34 @@ export function httpFromJSON(
|
|
|
2488
2174
|
}
|
|
2489
2175
|
|
|
2490
2176
|
/** @internal */
|
|
2491
|
-
export const
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2177
|
+
export const TwentyFour$inboundSchema: z.ZodType<
|
|
2178
|
+
TwentyFour,
|
|
2179
|
+
z.ZodTypeDef,
|
|
2180
|
+
unknown
|
|
2181
|
+
> = z.object({
|
|
2182
|
+
_id: z.string().default("01K60CGQ35YREFRTW8EPP79TWP"),
|
|
2183
|
+
path: z.string(),
|
|
2184
|
+
key: z.string(),
|
|
2185
|
+
display_name: z.string(),
|
|
2186
|
+
description: z.string(),
|
|
2187
|
+
status: Status$inboundSchema.default("live"),
|
|
2188
|
+
version_hash: z.string().optional(),
|
|
2189
|
+
type: ToolsType$inboundSchema,
|
|
2190
|
+
http: z.lazy(() => Http$inboundSchema),
|
|
2191
|
+
requires_approval: z.boolean().default(false),
|
|
2192
|
+
}).transform((v) => {
|
|
2193
|
+
return remap$(v, {
|
|
2194
|
+
"_id": "id",
|
|
2195
|
+
"display_name": "displayName",
|
|
2196
|
+
"version_hash": "versionHash",
|
|
2197
|
+
"requires_approval": "requiresApproval",
|
|
2510
2198
|
});
|
|
2199
|
+
});
|
|
2511
2200
|
|
|
2512
2201
|
/** @internal */
|
|
2513
|
-
export type
|
|
2202
|
+
export type TwentyFour$Outbound = {
|
|
2514
2203
|
_id: string;
|
|
2515
|
-
path
|
|
2204
|
+
path: string;
|
|
2516
2205
|
key: string;
|
|
2517
2206
|
display_name: string;
|
|
2518
2207
|
description: string;
|
|
@@ -2524,19 +2213,19 @@ export type Twelve$Outbound = {
|
|
|
2524
2213
|
};
|
|
2525
2214
|
|
|
2526
2215
|
/** @internal */
|
|
2527
|
-
export const
|
|
2528
|
-
|
|
2216
|
+
export const TwentyFour$outboundSchema: z.ZodType<
|
|
2217
|
+
TwentyFour$Outbound,
|
|
2529
2218
|
z.ZodTypeDef,
|
|
2530
|
-
|
|
2219
|
+
TwentyFour
|
|
2531
2220
|
> = z.object({
|
|
2532
|
-
id: z.string().default("
|
|
2533
|
-
path: z.string()
|
|
2221
|
+
id: z.string().default("01K60CGQ35YREFRTW8EPP79TWP"),
|
|
2222
|
+
path: z.string(),
|
|
2534
2223
|
key: z.string(),
|
|
2535
2224
|
displayName: z.string(),
|
|
2536
2225
|
description: z.string(),
|
|
2537
2226
|
status: Status$outboundSchema.default("live"),
|
|
2538
2227
|
versionHash: z.string().optional(),
|
|
2539
|
-
type:
|
|
2228
|
+
type: ToolsType$outboundSchema,
|
|
2540
2229
|
http: z.lazy(() => Http$outboundSchema),
|
|
2541
2230
|
requiresApproval: z.boolean().default(false),
|
|
2542
2231
|
}).transform((v) => {
|
|
@@ -2552,934 +2241,120 @@ export const Twelve$outboundSchema: z.ZodType<
|
|
|
2552
2241
|
* @internal
|
|
2553
2242
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2554
2243
|
*/
|
|
2555
|
-
export namespace
|
|
2556
|
-
/** @deprecated use `
|
|
2557
|
-
export const inboundSchema =
|
|
2558
|
-
/** @deprecated use `
|
|
2559
|
-
export const outboundSchema =
|
|
2560
|
-
/** @deprecated use `
|
|
2561
|
-
export type Outbound =
|
|
2244
|
+
export namespace TwentyFour$ {
|
|
2245
|
+
/** @deprecated use `TwentyFour$inboundSchema` instead. */
|
|
2246
|
+
export const inboundSchema = TwentyFour$inboundSchema;
|
|
2247
|
+
/** @deprecated use `TwentyFour$outboundSchema` instead. */
|
|
2248
|
+
export const outboundSchema = TwentyFour$outboundSchema;
|
|
2249
|
+
/** @deprecated use `TwentyFour$Outbound` instead. */
|
|
2250
|
+
export type Outbound = TwentyFour$Outbound;
|
|
2562
2251
|
}
|
|
2563
2252
|
|
|
2564
|
-
export function
|
|
2565
|
-
return JSON.stringify(
|
|
2253
|
+
export function twentyFourToJSON(twentyFour: TwentyFour): string {
|
|
2254
|
+
return JSON.stringify(TwentyFour$outboundSchema.parse(twentyFour));
|
|
2566
2255
|
}
|
|
2567
2256
|
|
|
2568
|
-
export function
|
|
2257
|
+
export function twentyFourFromJSON(
|
|
2569
2258
|
jsonString: string,
|
|
2570
|
-
): SafeParseResult<
|
|
2259
|
+
): SafeParseResult<TwentyFour, SDKValidationError> {
|
|
2571
2260
|
return safeParse(
|
|
2572
2261
|
jsonString,
|
|
2573
|
-
(x) =>
|
|
2574
|
-
`Failed to parse '
|
|
2262
|
+
(x) => TwentyFour$inboundSchema.parse(JSON.parse(x)),
|
|
2263
|
+
`Failed to parse 'TwentyFour' from JSON`,
|
|
2575
2264
|
);
|
|
2576
2265
|
}
|
|
2577
2266
|
|
|
2578
2267
|
/** @internal */
|
|
2579
|
-
export const
|
|
2580
|
-
|
|
2581
|
-
|
|
2268
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
2269
|
+
.union([
|
|
2270
|
+
components.HttpTool$inboundSchema.and(
|
|
2271
|
+
z.object({ type: z.literal("http") }).transform((v) => ({
|
|
2272
|
+
type: v.type,
|
|
2273
|
+
})),
|
|
2274
|
+
),
|
|
2275
|
+
components.CodeExecutionTool$inboundSchema.and(
|
|
2276
|
+
z.object({ type: z.literal("code") }).transform((v) => ({
|
|
2277
|
+
type: v.type,
|
|
2278
|
+
})),
|
|
2279
|
+
),
|
|
2280
|
+
components.FunctionTool$inboundSchema.and(
|
|
2281
|
+
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2282
|
+
type: v.type,
|
|
2283
|
+
})),
|
|
2284
|
+
),
|
|
2285
|
+
components.GoogleSearchTool$inboundSchema.and(
|
|
2286
|
+
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2287
|
+
type: v.type,
|
|
2288
|
+
})),
|
|
2289
|
+
),
|
|
2290
|
+
components.WebScraperTool$inboundSchema.and(
|
|
2291
|
+
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2292
|
+
type: v.type,
|
|
2293
|
+
})),
|
|
2294
|
+
),
|
|
2295
|
+
components.CallSubAgentTool$inboundSchema.and(
|
|
2296
|
+
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2297
|
+
type: v.type,
|
|
2298
|
+
})),
|
|
2299
|
+
),
|
|
2300
|
+
components.RetrieveAgentsTool$inboundSchema.and(
|
|
2301
|
+
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2302
|
+
type: v.type,
|
|
2303
|
+
})),
|
|
2304
|
+
),
|
|
2305
|
+
components.QueryMemoryStoreTool$inboundSchema.and(
|
|
2306
|
+
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2307
|
+
type: v.type,
|
|
2308
|
+
})),
|
|
2309
|
+
),
|
|
2310
|
+
components.WriteMemoryStoreTool$inboundSchema.and(
|
|
2311
|
+
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2312
|
+
type: v.type,
|
|
2313
|
+
})),
|
|
2314
|
+
),
|
|
2315
|
+
components.RetrieveMemoryStoresTool$inboundSchema.and(
|
|
2316
|
+
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2317
|
+
v,
|
|
2318
|
+
) => ({ type: v.type })),
|
|
2319
|
+
),
|
|
2320
|
+
components.RetrieveKnowledgeBasesTool$inboundSchema.and(
|
|
2321
|
+
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2322
|
+
v,
|
|
2323
|
+
) => ({ type: v.type })),
|
|
2324
|
+
),
|
|
2325
|
+
components.QueryKnowledgeBaseTool$inboundSchema.and(
|
|
2326
|
+
z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
|
|
2327
|
+
type: v.type,
|
|
2328
|
+
})),
|
|
2329
|
+
),
|
|
2330
|
+
components.CurrentDateTool$inboundSchema.and(
|
|
2331
|
+
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2332
|
+
type: v.type,
|
|
2333
|
+
})),
|
|
2334
|
+
),
|
|
2335
|
+
]);
|
|
2582
2336
|
|
|
2583
2337
|
/** @internal */
|
|
2584
|
-
export
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
.
|
|
2604
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings11Type$inboundSchema,
|
|
2605
|
-
requires_approval: z.boolean().default(false),
|
|
2606
|
-
}).transform((v) => {
|
|
2607
|
-
return remap$(v, {
|
|
2608
|
-
"requires_approval": "requiresApproval",
|
|
2609
|
-
});
|
|
2610
|
-
});
|
|
2611
|
-
|
|
2612
|
-
/** @internal */
|
|
2613
|
-
export type Eleven$Outbound = {
|
|
2614
|
-
type: string;
|
|
2615
|
-
requires_approval: boolean;
|
|
2616
|
-
};
|
|
2617
|
-
|
|
2618
|
-
/** @internal */
|
|
2619
|
-
export const Eleven$outboundSchema: z.ZodType<
|
|
2620
|
-
Eleven$Outbound,
|
|
2621
|
-
z.ZodTypeDef,
|
|
2622
|
-
Eleven
|
|
2623
|
-
> = z.object({
|
|
2624
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings11Type$outboundSchema,
|
|
2625
|
-
requiresApproval: z.boolean().default(false),
|
|
2626
|
-
}).transform((v) => {
|
|
2627
|
-
return remap$(v, {
|
|
2628
|
-
requiresApproval: "requires_approval",
|
|
2629
|
-
});
|
|
2630
|
-
});
|
|
2631
|
-
|
|
2632
|
-
/**
|
|
2633
|
-
* @internal
|
|
2634
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2635
|
-
*/
|
|
2636
|
-
export namespace Eleven$ {
|
|
2637
|
-
/** @deprecated use `Eleven$inboundSchema` instead. */
|
|
2638
|
-
export const inboundSchema = Eleven$inboundSchema;
|
|
2639
|
-
/** @deprecated use `Eleven$outboundSchema` instead. */
|
|
2640
|
-
export const outboundSchema = Eleven$outboundSchema;
|
|
2641
|
-
/** @deprecated use `Eleven$Outbound` instead. */
|
|
2642
|
-
export type Outbound = Eleven$Outbound;
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
export function elevenToJSON(eleven: Eleven): string {
|
|
2646
|
-
return JSON.stringify(Eleven$outboundSchema.parse(eleven));
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
export function elevenFromJSON(
|
|
2650
|
-
jsonString: string,
|
|
2651
|
-
): SafeParseResult<Eleven, SDKValidationError> {
|
|
2652
|
-
return safeParse(
|
|
2653
|
-
jsonString,
|
|
2654
|
-
(x) => Eleven$inboundSchema.parse(JSON.parse(x)),
|
|
2655
|
-
`Failed to parse 'Eleven' from JSON`,
|
|
2656
|
-
);
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
/** @internal */
|
|
2660
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema:
|
|
2661
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings10Type> =
|
|
2662
|
-
z.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings10Type);
|
|
2663
|
-
|
|
2664
|
-
/** @internal */
|
|
2665
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema:
|
|
2666
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings10Type> =
|
|
2667
|
-
RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
|
|
2668
|
-
|
|
2669
|
-
/**
|
|
2670
|
-
* @internal
|
|
2671
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2672
|
-
*/
|
|
2673
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettings10Type$ {
|
|
2674
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema` instead. */
|
|
2675
|
-
export const inboundSchema =
|
|
2676
|
-
RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema;
|
|
2677
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema` instead. */
|
|
2678
|
-
export const outboundSchema =
|
|
2679
|
-
RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
/** @internal */
|
|
2683
|
-
export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
|
|
2684
|
-
.object({
|
|
2685
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings10Type$inboundSchema,
|
|
2686
|
-
requires_approval: z.boolean().default(false),
|
|
2687
|
-
}).transform((v) => {
|
|
2688
|
-
return remap$(v, {
|
|
2689
|
-
"requires_approval": "requiresApproval",
|
|
2690
|
-
});
|
|
2691
|
-
});
|
|
2692
|
-
|
|
2693
|
-
/** @internal */
|
|
2694
|
-
export type Ten$Outbound = {
|
|
2695
|
-
type: string;
|
|
2696
|
-
requires_approval: boolean;
|
|
2697
|
-
};
|
|
2698
|
-
|
|
2699
|
-
/** @internal */
|
|
2700
|
-
export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
|
|
2701
|
-
.object({
|
|
2702
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings10Type$outboundSchema,
|
|
2703
|
-
requiresApproval: z.boolean().default(false),
|
|
2704
|
-
}).transform((v) => {
|
|
2705
|
-
return remap$(v, {
|
|
2706
|
-
requiresApproval: "requires_approval",
|
|
2707
|
-
});
|
|
2708
|
-
});
|
|
2709
|
-
|
|
2710
|
-
/**
|
|
2711
|
-
* @internal
|
|
2712
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2713
|
-
*/
|
|
2714
|
-
export namespace Ten$ {
|
|
2715
|
-
/** @deprecated use `Ten$inboundSchema` instead. */
|
|
2716
|
-
export const inboundSchema = Ten$inboundSchema;
|
|
2717
|
-
/** @deprecated use `Ten$outboundSchema` instead. */
|
|
2718
|
-
export const outboundSchema = Ten$outboundSchema;
|
|
2719
|
-
/** @deprecated use `Ten$Outbound` instead. */
|
|
2720
|
-
export type Outbound = Ten$Outbound;
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
export function tenToJSON(ten: Ten): string {
|
|
2724
|
-
return JSON.stringify(Ten$outboundSchema.parse(ten));
|
|
2725
|
-
}
|
|
2726
|
-
|
|
2727
|
-
export function tenFromJSON(
|
|
2728
|
-
jsonString: string,
|
|
2729
|
-
): SafeParseResult<Ten, SDKValidationError> {
|
|
2730
|
-
return safeParse(
|
|
2731
|
-
jsonString,
|
|
2732
|
-
(x) => Ten$inboundSchema.parse(JSON.parse(x)),
|
|
2733
|
-
`Failed to parse 'Ten' from JSON`,
|
|
2734
|
-
);
|
|
2735
|
-
}
|
|
2736
|
-
|
|
2737
|
-
/** @internal */
|
|
2738
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema:
|
|
2739
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings9Type> = z
|
|
2740
|
-
.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings9Type);
|
|
2741
|
-
|
|
2742
|
-
/** @internal */
|
|
2743
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema:
|
|
2744
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings9Type> =
|
|
2745
|
-
RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
|
|
2746
|
-
|
|
2747
|
-
/**
|
|
2748
|
-
* @internal
|
|
2749
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2750
|
-
*/
|
|
2751
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettings9Type$ {
|
|
2752
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema` instead. */
|
|
2753
|
-
export const inboundSchema =
|
|
2754
|
-
RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema;
|
|
2755
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema` instead. */
|
|
2756
|
-
export const outboundSchema =
|
|
2757
|
-
RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema;
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
/** @internal */
|
|
2761
|
-
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
|
|
2762
|
-
.object({
|
|
2763
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings9Type$inboundSchema,
|
|
2764
|
-
requires_approval: z.boolean().default(false),
|
|
2765
|
-
}).transform((v) => {
|
|
2766
|
-
return remap$(v, {
|
|
2767
|
-
"requires_approval": "requiresApproval",
|
|
2768
|
-
});
|
|
2769
|
-
});
|
|
2770
|
-
|
|
2771
|
-
/** @internal */
|
|
2772
|
-
export type Nine$Outbound = {
|
|
2773
|
-
type: string;
|
|
2774
|
-
requires_approval: boolean;
|
|
2775
|
-
};
|
|
2776
|
-
|
|
2777
|
-
/** @internal */
|
|
2778
|
-
export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
|
|
2779
|
-
z.object({
|
|
2780
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings9Type$outboundSchema,
|
|
2781
|
-
requiresApproval: z.boolean().default(false),
|
|
2782
|
-
}).transform((v) => {
|
|
2783
|
-
return remap$(v, {
|
|
2784
|
-
requiresApproval: "requires_approval",
|
|
2785
|
-
});
|
|
2786
|
-
});
|
|
2787
|
-
|
|
2788
|
-
/**
|
|
2789
|
-
* @internal
|
|
2790
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2791
|
-
*/
|
|
2792
|
-
export namespace Nine$ {
|
|
2793
|
-
/** @deprecated use `Nine$inboundSchema` instead. */
|
|
2794
|
-
export const inboundSchema = Nine$inboundSchema;
|
|
2795
|
-
/** @deprecated use `Nine$outboundSchema` instead. */
|
|
2796
|
-
export const outboundSchema = Nine$outboundSchema;
|
|
2797
|
-
/** @deprecated use `Nine$Outbound` instead. */
|
|
2798
|
-
export type Outbound = Nine$Outbound;
|
|
2799
|
-
}
|
|
2800
|
-
|
|
2801
|
-
export function nineToJSON(nine: Nine): string {
|
|
2802
|
-
return JSON.stringify(Nine$outboundSchema.parse(nine));
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
export function nineFromJSON(
|
|
2806
|
-
jsonString: string,
|
|
2807
|
-
): SafeParseResult<Nine, SDKValidationError> {
|
|
2808
|
-
return safeParse(
|
|
2809
|
-
jsonString,
|
|
2810
|
-
(x) => Nine$inboundSchema.parse(JSON.parse(x)),
|
|
2811
|
-
`Failed to parse 'Nine' from JSON`,
|
|
2812
|
-
);
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
/** @internal */
|
|
2816
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema:
|
|
2817
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings8Type> = z
|
|
2818
|
-
.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings8Type);
|
|
2819
|
-
|
|
2820
|
-
/** @internal */
|
|
2821
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema:
|
|
2822
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings8Type> =
|
|
2823
|
-
RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
|
|
2824
|
-
|
|
2825
|
-
/**
|
|
2826
|
-
* @internal
|
|
2827
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2828
|
-
*/
|
|
2829
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettings8Type$ {
|
|
2830
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema` instead. */
|
|
2831
|
-
export const inboundSchema =
|
|
2832
|
-
RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema;
|
|
2833
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema` instead. */
|
|
2834
|
-
export const outboundSchema =
|
|
2835
|
-
RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema;
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
/** @internal */
|
|
2839
|
-
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
2840
|
-
.object({
|
|
2841
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings8Type$inboundSchema,
|
|
2842
|
-
requires_approval: z.boolean().default(false),
|
|
2843
|
-
}).transform((v) => {
|
|
2844
|
-
return remap$(v, {
|
|
2845
|
-
"requires_approval": "requiresApproval",
|
|
2846
|
-
});
|
|
2847
|
-
});
|
|
2848
|
-
|
|
2849
|
-
/** @internal */
|
|
2850
|
-
export type Eight$Outbound = {
|
|
2851
|
-
type: string;
|
|
2852
|
-
requires_approval: boolean;
|
|
2853
|
-
};
|
|
2854
|
-
|
|
2855
|
-
/** @internal */
|
|
2856
|
-
export const Eight$outboundSchema: z.ZodType<
|
|
2857
|
-
Eight$Outbound,
|
|
2858
|
-
z.ZodTypeDef,
|
|
2859
|
-
Eight
|
|
2860
|
-
> = z.object({
|
|
2861
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings8Type$outboundSchema,
|
|
2862
|
-
requiresApproval: z.boolean().default(false),
|
|
2863
|
-
}).transform((v) => {
|
|
2864
|
-
return remap$(v, {
|
|
2865
|
-
requiresApproval: "requires_approval",
|
|
2866
|
-
});
|
|
2867
|
-
});
|
|
2868
|
-
|
|
2869
|
-
/**
|
|
2870
|
-
* @internal
|
|
2871
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2872
|
-
*/
|
|
2873
|
-
export namespace Eight$ {
|
|
2874
|
-
/** @deprecated use `Eight$inboundSchema` instead. */
|
|
2875
|
-
export const inboundSchema = Eight$inboundSchema;
|
|
2876
|
-
/** @deprecated use `Eight$outboundSchema` instead. */
|
|
2877
|
-
export const outboundSchema = Eight$outboundSchema;
|
|
2878
|
-
/** @deprecated use `Eight$Outbound` instead. */
|
|
2879
|
-
export type Outbound = Eight$Outbound;
|
|
2880
|
-
}
|
|
2881
|
-
|
|
2882
|
-
export function eightToJSON(eight: Eight): string {
|
|
2883
|
-
return JSON.stringify(Eight$outboundSchema.parse(eight));
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
|
-
export function eightFromJSON(
|
|
2887
|
-
jsonString: string,
|
|
2888
|
-
): SafeParseResult<Eight, SDKValidationError> {
|
|
2889
|
-
return safeParse(
|
|
2890
|
-
jsonString,
|
|
2891
|
-
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
2892
|
-
`Failed to parse 'Eight' from JSON`,
|
|
2893
|
-
);
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
/** @internal */
|
|
2897
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema:
|
|
2898
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings7Type> = z
|
|
2899
|
-
.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettings7Type);
|
|
2900
|
-
|
|
2901
|
-
/** @internal */
|
|
2902
|
-
export const RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema:
|
|
2903
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettings7Type> =
|
|
2904
|
-
RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
|
|
2905
|
-
|
|
2906
|
-
/**
|
|
2907
|
-
* @internal
|
|
2908
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2909
|
-
*/
|
|
2910
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettings7Type$ {
|
|
2911
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema` instead. */
|
|
2912
|
-
export const inboundSchema =
|
|
2913
|
-
RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema;
|
|
2914
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema` instead. */
|
|
2915
|
-
export const outboundSchema =
|
|
2916
|
-
RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema;
|
|
2917
|
-
}
|
|
2918
|
-
|
|
2919
|
-
/** @internal */
|
|
2920
|
-
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
2921
|
-
.object({
|
|
2922
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings7Type$inboundSchema,
|
|
2923
|
-
requires_approval: z.boolean().default(false),
|
|
2924
|
-
}).transform((v) => {
|
|
2925
|
-
return remap$(v, {
|
|
2926
|
-
"requires_approval": "requiresApproval",
|
|
2927
|
-
});
|
|
2928
|
-
});
|
|
2929
|
-
|
|
2930
|
-
/** @internal */
|
|
2931
|
-
export type Seven$Outbound = {
|
|
2932
|
-
type: string;
|
|
2933
|
-
requires_approval: boolean;
|
|
2934
|
-
};
|
|
2935
|
-
|
|
2936
|
-
/** @internal */
|
|
2937
|
-
export const Seven$outboundSchema: z.ZodType<
|
|
2938
|
-
Seven$Outbound,
|
|
2939
|
-
z.ZodTypeDef,
|
|
2940
|
-
Seven
|
|
2941
|
-
> = z.object({
|
|
2942
|
-
type: RunAgentToolsAgentsRequestRequestBodySettings7Type$outboundSchema,
|
|
2943
|
-
requiresApproval: z.boolean().default(false),
|
|
2944
|
-
}).transform((v) => {
|
|
2945
|
-
return remap$(v, {
|
|
2946
|
-
requiresApproval: "requires_approval",
|
|
2947
|
-
});
|
|
2948
|
-
});
|
|
2949
|
-
|
|
2950
|
-
/**
|
|
2951
|
-
* @internal
|
|
2952
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2953
|
-
*/
|
|
2954
|
-
export namespace Seven$ {
|
|
2955
|
-
/** @deprecated use `Seven$inboundSchema` instead. */
|
|
2956
|
-
export const inboundSchema = Seven$inboundSchema;
|
|
2957
|
-
/** @deprecated use `Seven$outboundSchema` instead. */
|
|
2958
|
-
export const outboundSchema = Seven$outboundSchema;
|
|
2959
|
-
/** @deprecated use `Seven$Outbound` instead. */
|
|
2960
|
-
export type Outbound = Seven$Outbound;
|
|
2961
|
-
}
|
|
2962
|
-
|
|
2963
|
-
export function sevenToJSON(seven: Seven): string {
|
|
2964
|
-
return JSON.stringify(Seven$outboundSchema.parse(seven));
|
|
2965
|
-
}
|
|
2966
|
-
|
|
2967
|
-
export function sevenFromJSON(
|
|
2968
|
-
jsonString: string,
|
|
2969
|
-
): SafeParseResult<Seven, SDKValidationError> {
|
|
2970
|
-
return safeParse(
|
|
2971
|
-
jsonString,
|
|
2972
|
-
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
2973
|
-
`Failed to parse 'Seven' from JSON`,
|
|
2974
|
-
);
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
/** @internal */
|
|
2978
|
-
export const RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
2979
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettingsType> = z
|
|
2980
|
-
.nativeEnum(RunAgentToolsAgentsRequestRequestBodySettingsType);
|
|
2981
|
-
|
|
2982
|
-
/** @internal */
|
|
2983
|
-
export const RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
2984
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodySettingsType> =
|
|
2985
|
-
RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
2986
|
-
|
|
2987
|
-
/**
|
|
2988
|
-
* @internal
|
|
2989
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2990
|
-
*/
|
|
2991
|
-
export namespace RunAgentToolsAgentsRequestRequestBodySettingsType$ {
|
|
2992
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
2993
|
-
export const inboundSchema =
|
|
2994
|
-
RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
2995
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
2996
|
-
export const outboundSchema =
|
|
2997
|
-
RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
/** @internal */
|
|
3001
|
-
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
3002
|
-
.object({
|
|
3003
|
-
type: RunAgentToolsAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
3004
|
-
requires_approval: z.boolean().default(false),
|
|
3005
|
-
}).transform((v) => {
|
|
3006
|
-
return remap$(v, {
|
|
3007
|
-
"requires_approval": "requiresApproval",
|
|
3008
|
-
});
|
|
3009
|
-
});
|
|
3010
|
-
|
|
3011
|
-
/** @internal */
|
|
3012
|
-
export type Six$Outbound = {
|
|
3013
|
-
type: string;
|
|
3014
|
-
requires_approval: boolean;
|
|
3015
|
-
};
|
|
3016
|
-
|
|
3017
|
-
/** @internal */
|
|
3018
|
-
export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
|
|
3019
|
-
.object({
|
|
3020
|
-
type: RunAgentToolsAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
3021
|
-
requiresApproval: z.boolean().default(false),
|
|
3022
|
-
}).transform((v) => {
|
|
3023
|
-
return remap$(v, {
|
|
3024
|
-
requiresApproval: "requires_approval",
|
|
3025
|
-
});
|
|
3026
|
-
});
|
|
3027
|
-
|
|
3028
|
-
/**
|
|
3029
|
-
* @internal
|
|
3030
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3031
|
-
*/
|
|
3032
|
-
export namespace Six$ {
|
|
3033
|
-
/** @deprecated use `Six$inboundSchema` instead. */
|
|
3034
|
-
export const inboundSchema = Six$inboundSchema;
|
|
3035
|
-
/** @deprecated use `Six$outboundSchema` instead. */
|
|
3036
|
-
export const outboundSchema = Six$outboundSchema;
|
|
3037
|
-
/** @deprecated use `Six$Outbound` instead. */
|
|
3038
|
-
export type Outbound = Six$Outbound;
|
|
3039
|
-
}
|
|
3040
|
-
|
|
3041
|
-
export function sixToJSON(six: Six): string {
|
|
3042
|
-
return JSON.stringify(Six$outboundSchema.parse(six));
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
export function sixFromJSON(
|
|
3046
|
-
jsonString: string,
|
|
3047
|
-
): SafeParseResult<Six, SDKValidationError> {
|
|
3048
|
-
return safeParse(
|
|
3049
|
-
jsonString,
|
|
3050
|
-
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
3051
|
-
`Failed to parse 'Six' from JSON`,
|
|
3052
|
-
);
|
|
3053
|
-
}
|
|
3054
|
-
|
|
3055
|
-
/** @internal */
|
|
3056
|
-
export const RunAgentToolsAgentsRequestRequestBodyType$inboundSchema:
|
|
3057
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodyType> = z
|
|
3058
|
-
.nativeEnum(RunAgentToolsAgentsRequestRequestBodyType);
|
|
3059
|
-
|
|
3060
|
-
/** @internal */
|
|
3061
|
-
export const RunAgentToolsAgentsRequestRequestBodyType$outboundSchema:
|
|
3062
|
-
z.ZodNativeEnum<typeof RunAgentToolsAgentsRequestRequestBodyType> =
|
|
3063
|
-
RunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
|
|
3064
|
-
|
|
3065
|
-
/**
|
|
3066
|
-
* @internal
|
|
3067
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3068
|
-
*/
|
|
3069
|
-
export namespace RunAgentToolsAgentsRequestRequestBodyType$ {
|
|
3070
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
3071
|
-
export const inboundSchema =
|
|
3072
|
-
RunAgentToolsAgentsRequestRequestBodyType$inboundSchema;
|
|
3073
|
-
/** @deprecated use `RunAgentToolsAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
3074
|
-
export const outboundSchema =
|
|
3075
|
-
RunAgentToolsAgentsRequestRequestBodyType$outboundSchema;
|
|
3076
|
-
}
|
|
3077
|
-
|
|
3078
|
-
/** @internal */
|
|
3079
|
-
export const Tools5$inboundSchema: z.ZodType<Tools5, z.ZodTypeDef, unknown> = z
|
|
3080
|
-
.object({
|
|
3081
|
-
type: RunAgentToolsAgentsRequestRequestBodyType$inboundSchema,
|
|
3082
|
-
requires_approval: z.boolean().default(false),
|
|
3083
|
-
}).transform((v) => {
|
|
3084
|
-
return remap$(v, {
|
|
3085
|
-
"requires_approval": "requiresApproval",
|
|
3086
|
-
});
|
|
3087
|
-
});
|
|
3088
|
-
|
|
3089
|
-
/** @internal */
|
|
3090
|
-
export type Tools5$Outbound = {
|
|
3091
|
-
type: string;
|
|
3092
|
-
requires_approval: boolean;
|
|
3093
|
-
};
|
|
3094
|
-
|
|
3095
|
-
/** @internal */
|
|
3096
|
-
export const Tools5$outboundSchema: z.ZodType<
|
|
3097
|
-
Tools5$Outbound,
|
|
3098
|
-
z.ZodTypeDef,
|
|
3099
|
-
Tools5
|
|
3100
|
-
> = z.object({
|
|
3101
|
-
type: RunAgentToolsAgentsRequestRequestBodyType$outboundSchema,
|
|
3102
|
-
requiresApproval: z.boolean().default(false),
|
|
3103
|
-
}).transform((v) => {
|
|
3104
|
-
return remap$(v, {
|
|
3105
|
-
requiresApproval: "requires_approval",
|
|
3106
|
-
});
|
|
3107
|
-
});
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* @internal
|
|
3111
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3112
|
-
*/
|
|
3113
|
-
export namespace Tools5$ {
|
|
3114
|
-
/** @deprecated use `Tools5$inboundSchema` instead. */
|
|
3115
|
-
export const inboundSchema = Tools5$inboundSchema;
|
|
3116
|
-
/** @deprecated use `Tools5$outboundSchema` instead. */
|
|
3117
|
-
export const outboundSchema = Tools5$outboundSchema;
|
|
3118
|
-
/** @deprecated use `Tools5$Outbound` instead. */
|
|
3119
|
-
export type Outbound = Tools5$Outbound;
|
|
3120
|
-
}
|
|
3121
|
-
|
|
3122
|
-
export function tools5ToJSON(tools5: Tools5): string {
|
|
3123
|
-
return JSON.stringify(Tools5$outboundSchema.parse(tools5));
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
|
-
export function tools5FromJSON(
|
|
3127
|
-
jsonString: string,
|
|
3128
|
-
): SafeParseResult<Tools5, SDKValidationError> {
|
|
3129
|
-
return safeParse(
|
|
3130
|
-
jsonString,
|
|
3131
|
-
(x) => Tools5$inboundSchema.parse(JSON.parse(x)),
|
|
3132
|
-
`Failed to parse 'Tools5' from JSON`,
|
|
3133
|
-
);
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
/** @internal */
|
|
3137
|
-
export const RunAgentToolsAgentsRequestType$inboundSchema: z.ZodNativeEnum<
|
|
3138
|
-
typeof RunAgentToolsAgentsRequestType
|
|
3139
|
-
> = z.nativeEnum(RunAgentToolsAgentsRequestType);
|
|
3140
|
-
|
|
3141
|
-
/** @internal */
|
|
3142
|
-
export const RunAgentToolsAgentsRequestType$outboundSchema: z.ZodNativeEnum<
|
|
3143
|
-
typeof RunAgentToolsAgentsRequestType
|
|
3144
|
-
> = RunAgentToolsAgentsRequestType$inboundSchema;
|
|
3145
|
-
|
|
3146
|
-
/**
|
|
3147
|
-
* @internal
|
|
3148
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3149
|
-
*/
|
|
3150
|
-
export namespace RunAgentToolsAgentsRequestType$ {
|
|
3151
|
-
/** @deprecated use `RunAgentToolsAgentsRequestType$inboundSchema` instead. */
|
|
3152
|
-
export const inboundSchema = RunAgentToolsAgentsRequestType$inboundSchema;
|
|
3153
|
-
/** @deprecated use `RunAgentToolsAgentsRequestType$outboundSchema` instead. */
|
|
3154
|
-
export const outboundSchema = RunAgentToolsAgentsRequestType$outboundSchema;
|
|
3155
|
-
}
|
|
3156
|
-
|
|
3157
|
-
/** @internal */
|
|
3158
|
-
export const Tools4$inboundSchema: z.ZodType<Tools4, z.ZodTypeDef, unknown> = z
|
|
3159
|
-
.object({
|
|
3160
|
-
type: RunAgentToolsAgentsRequestType$inboundSchema,
|
|
3161
|
-
requires_approval: z.boolean().default(false),
|
|
3162
|
-
}).transform((v) => {
|
|
3163
|
-
return remap$(v, {
|
|
3164
|
-
"requires_approval": "requiresApproval",
|
|
3165
|
-
});
|
|
3166
|
-
});
|
|
3167
|
-
|
|
3168
|
-
/** @internal */
|
|
3169
|
-
export type Tools4$Outbound = {
|
|
3170
|
-
type: string;
|
|
3171
|
-
requires_approval: boolean;
|
|
3172
|
-
};
|
|
3173
|
-
|
|
3174
|
-
/** @internal */
|
|
3175
|
-
export const Tools4$outboundSchema: z.ZodType<
|
|
3176
|
-
Tools4$Outbound,
|
|
3177
|
-
z.ZodTypeDef,
|
|
3178
|
-
Tools4
|
|
3179
|
-
> = z.object({
|
|
3180
|
-
type: RunAgentToolsAgentsRequestType$outboundSchema,
|
|
3181
|
-
requiresApproval: z.boolean().default(false),
|
|
3182
|
-
}).transform((v) => {
|
|
3183
|
-
return remap$(v, {
|
|
3184
|
-
requiresApproval: "requires_approval",
|
|
3185
|
-
});
|
|
3186
|
-
});
|
|
3187
|
-
|
|
3188
|
-
/**
|
|
3189
|
-
* @internal
|
|
3190
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3191
|
-
*/
|
|
3192
|
-
export namespace Tools4$ {
|
|
3193
|
-
/** @deprecated use `Tools4$inboundSchema` instead. */
|
|
3194
|
-
export const inboundSchema = Tools4$inboundSchema;
|
|
3195
|
-
/** @deprecated use `Tools4$outboundSchema` instead. */
|
|
3196
|
-
export const outboundSchema = Tools4$outboundSchema;
|
|
3197
|
-
/** @deprecated use `Tools4$Outbound` instead. */
|
|
3198
|
-
export type Outbound = Tools4$Outbound;
|
|
3199
|
-
}
|
|
3200
|
-
|
|
3201
|
-
export function tools4ToJSON(tools4: Tools4): string {
|
|
3202
|
-
return JSON.stringify(Tools4$outboundSchema.parse(tools4));
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
export function tools4FromJSON(
|
|
3206
|
-
jsonString: string,
|
|
3207
|
-
): SafeParseResult<Tools4, SDKValidationError> {
|
|
3208
|
-
return safeParse(
|
|
3209
|
-
jsonString,
|
|
3210
|
-
(x) => Tools4$inboundSchema.parse(JSON.parse(x)),
|
|
3211
|
-
`Failed to parse 'Tools4' from JSON`,
|
|
3212
|
-
);
|
|
3213
|
-
}
|
|
3214
|
-
|
|
3215
|
-
/** @internal */
|
|
3216
|
-
export const RunAgentToolsAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
3217
|
-
typeof RunAgentToolsAgentsType
|
|
3218
|
-
> = z.nativeEnum(RunAgentToolsAgentsType);
|
|
3219
|
-
|
|
3220
|
-
/** @internal */
|
|
3221
|
-
export const RunAgentToolsAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
3222
|
-
typeof RunAgentToolsAgentsType
|
|
3223
|
-
> = RunAgentToolsAgentsType$inboundSchema;
|
|
3224
|
-
|
|
3225
|
-
/**
|
|
3226
|
-
* @internal
|
|
3227
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3228
|
-
*/
|
|
3229
|
-
export namespace RunAgentToolsAgentsType$ {
|
|
3230
|
-
/** @deprecated use `RunAgentToolsAgentsType$inboundSchema` instead. */
|
|
3231
|
-
export const inboundSchema = RunAgentToolsAgentsType$inboundSchema;
|
|
3232
|
-
/** @deprecated use `RunAgentToolsAgentsType$outboundSchema` instead. */
|
|
3233
|
-
export const outboundSchema = RunAgentToolsAgentsType$outboundSchema;
|
|
3234
|
-
}
|
|
3235
|
-
|
|
3236
|
-
/** @internal */
|
|
3237
|
-
export const Tools3$inboundSchema: z.ZodType<Tools3, z.ZodTypeDef, unknown> = z
|
|
3238
|
-
.object({
|
|
3239
|
-
type: RunAgentToolsAgentsType$inboundSchema,
|
|
3240
|
-
requires_approval: z.boolean().default(false),
|
|
3241
|
-
}).transform((v) => {
|
|
3242
|
-
return remap$(v, {
|
|
3243
|
-
"requires_approval": "requiresApproval",
|
|
3244
|
-
});
|
|
3245
|
-
});
|
|
3246
|
-
|
|
3247
|
-
/** @internal */
|
|
3248
|
-
export type Tools3$Outbound = {
|
|
3249
|
-
type: string;
|
|
3250
|
-
requires_approval: boolean;
|
|
3251
|
-
};
|
|
3252
|
-
|
|
3253
|
-
/** @internal */
|
|
3254
|
-
export const Tools3$outboundSchema: z.ZodType<
|
|
3255
|
-
Tools3$Outbound,
|
|
3256
|
-
z.ZodTypeDef,
|
|
3257
|
-
Tools3
|
|
3258
|
-
> = z.object({
|
|
3259
|
-
type: RunAgentToolsAgentsType$outboundSchema,
|
|
3260
|
-
requiresApproval: z.boolean().default(false),
|
|
3261
|
-
}).transform((v) => {
|
|
3262
|
-
return remap$(v, {
|
|
3263
|
-
requiresApproval: "requires_approval",
|
|
3264
|
-
});
|
|
3265
|
-
});
|
|
3266
|
-
|
|
3267
|
-
/**
|
|
3268
|
-
* @internal
|
|
3269
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3270
|
-
*/
|
|
3271
|
-
export namespace Tools3$ {
|
|
3272
|
-
/** @deprecated use `Tools3$inboundSchema` instead. */
|
|
3273
|
-
export const inboundSchema = Tools3$inboundSchema;
|
|
3274
|
-
/** @deprecated use `Tools3$outboundSchema` instead. */
|
|
3275
|
-
export const outboundSchema = Tools3$outboundSchema;
|
|
3276
|
-
/** @deprecated use `Tools3$Outbound` instead. */
|
|
3277
|
-
export type Outbound = Tools3$Outbound;
|
|
3278
|
-
}
|
|
3279
|
-
|
|
3280
|
-
export function tools3ToJSON(tools3: Tools3): string {
|
|
3281
|
-
return JSON.stringify(Tools3$outboundSchema.parse(tools3));
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
export function tools3FromJSON(
|
|
3285
|
-
jsonString: string,
|
|
3286
|
-
): SafeParseResult<Tools3, SDKValidationError> {
|
|
3287
|
-
return safeParse(
|
|
3288
|
-
jsonString,
|
|
3289
|
-
(x) => Tools3$inboundSchema.parse(JSON.parse(x)),
|
|
3290
|
-
`Failed to parse 'Tools3' from JSON`,
|
|
3291
|
-
);
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
/** @internal */
|
|
3295
|
-
export const RunAgentToolsType$inboundSchema: z.ZodNativeEnum<
|
|
3296
|
-
typeof RunAgentToolsType
|
|
3297
|
-
> = z.nativeEnum(RunAgentToolsType);
|
|
3298
|
-
|
|
3299
|
-
/** @internal */
|
|
3300
|
-
export const RunAgentToolsType$outboundSchema: z.ZodNativeEnum<
|
|
3301
|
-
typeof RunAgentToolsType
|
|
3302
|
-
> = RunAgentToolsType$inboundSchema;
|
|
3303
|
-
|
|
3304
|
-
/**
|
|
3305
|
-
* @internal
|
|
3306
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3307
|
-
*/
|
|
3308
|
-
export namespace RunAgentToolsType$ {
|
|
3309
|
-
/** @deprecated use `RunAgentToolsType$inboundSchema` instead. */
|
|
3310
|
-
export const inboundSchema = RunAgentToolsType$inboundSchema;
|
|
3311
|
-
/** @deprecated use `RunAgentToolsType$outboundSchema` instead. */
|
|
3312
|
-
export const outboundSchema = RunAgentToolsType$outboundSchema;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
/** @internal */
|
|
3316
|
-
export const Tools2$inboundSchema: z.ZodType<Tools2, z.ZodTypeDef, unknown> = z
|
|
3317
|
-
.object({
|
|
3318
|
-
type: RunAgentToolsType$inboundSchema,
|
|
3319
|
-
requires_approval: z.boolean().default(false),
|
|
3320
|
-
}).transform((v) => {
|
|
3321
|
-
return remap$(v, {
|
|
3322
|
-
"requires_approval": "requiresApproval",
|
|
3323
|
-
});
|
|
3324
|
-
});
|
|
3325
|
-
|
|
3326
|
-
/** @internal */
|
|
3327
|
-
export type Tools2$Outbound = {
|
|
3328
|
-
type: string;
|
|
3329
|
-
requires_approval: boolean;
|
|
3330
|
-
};
|
|
3331
|
-
|
|
3332
|
-
/** @internal */
|
|
3333
|
-
export const Tools2$outboundSchema: z.ZodType<
|
|
3334
|
-
Tools2$Outbound,
|
|
3335
|
-
z.ZodTypeDef,
|
|
3336
|
-
Tools2
|
|
3337
|
-
> = z.object({
|
|
3338
|
-
type: RunAgentToolsType$outboundSchema,
|
|
3339
|
-
requiresApproval: z.boolean().default(false),
|
|
3340
|
-
}).transform((v) => {
|
|
3341
|
-
return remap$(v, {
|
|
3342
|
-
requiresApproval: "requires_approval",
|
|
3343
|
-
});
|
|
3344
|
-
});
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
* @internal
|
|
3348
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3349
|
-
*/
|
|
3350
|
-
export namespace Tools2$ {
|
|
3351
|
-
/** @deprecated use `Tools2$inboundSchema` instead. */
|
|
3352
|
-
export const inboundSchema = Tools2$inboundSchema;
|
|
3353
|
-
/** @deprecated use `Tools2$outboundSchema` instead. */
|
|
3354
|
-
export const outboundSchema = Tools2$outboundSchema;
|
|
3355
|
-
/** @deprecated use `Tools2$Outbound` instead. */
|
|
3356
|
-
export type Outbound = Tools2$Outbound;
|
|
3357
|
-
}
|
|
3358
|
-
|
|
3359
|
-
export function tools2ToJSON(tools2: Tools2): string {
|
|
3360
|
-
return JSON.stringify(Tools2$outboundSchema.parse(tools2));
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
export function tools2FromJSON(
|
|
3364
|
-
jsonString: string,
|
|
3365
|
-
): SafeParseResult<Tools2, SDKValidationError> {
|
|
3366
|
-
return safeParse(
|
|
3367
|
-
jsonString,
|
|
3368
|
-
(x) => Tools2$inboundSchema.parse(JSON.parse(x)),
|
|
3369
|
-
`Failed to parse 'Tools2' from JSON`,
|
|
3370
|
-
);
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
/** @internal */
|
|
3374
|
-
export const ToolsType$inboundSchema: z.ZodNativeEnum<typeof ToolsType> = z
|
|
3375
|
-
.nativeEnum(ToolsType);
|
|
3376
|
-
|
|
3377
|
-
/** @internal */
|
|
3378
|
-
export const ToolsType$outboundSchema: z.ZodNativeEnum<typeof ToolsType> =
|
|
3379
|
-
ToolsType$inboundSchema;
|
|
3380
|
-
|
|
3381
|
-
/**
|
|
3382
|
-
* @internal
|
|
3383
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3384
|
-
*/
|
|
3385
|
-
export namespace ToolsType$ {
|
|
3386
|
-
/** @deprecated use `ToolsType$inboundSchema` instead. */
|
|
3387
|
-
export const inboundSchema = ToolsType$inboundSchema;
|
|
3388
|
-
/** @deprecated use `ToolsType$outboundSchema` instead. */
|
|
3389
|
-
export const outboundSchema = ToolsType$outboundSchema;
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
|
-
/** @internal */
|
|
3393
|
-
export const Tools1$inboundSchema: z.ZodType<Tools1, z.ZodTypeDef, unknown> = z
|
|
3394
|
-
.object({
|
|
3395
|
-
type: ToolsType$inboundSchema,
|
|
3396
|
-
requires_approval: z.boolean().default(false),
|
|
3397
|
-
}).transform((v) => {
|
|
3398
|
-
return remap$(v, {
|
|
3399
|
-
"requires_approval": "requiresApproval",
|
|
3400
|
-
});
|
|
3401
|
-
});
|
|
3402
|
-
|
|
3403
|
-
/** @internal */
|
|
3404
|
-
export type Tools1$Outbound = {
|
|
3405
|
-
type: string;
|
|
3406
|
-
requires_approval: boolean;
|
|
3407
|
-
};
|
|
3408
|
-
|
|
3409
|
-
/** @internal */
|
|
3410
|
-
export const Tools1$outboundSchema: z.ZodType<
|
|
3411
|
-
Tools1$Outbound,
|
|
3412
|
-
z.ZodTypeDef,
|
|
3413
|
-
Tools1
|
|
3414
|
-
> = z.object({
|
|
3415
|
-
type: ToolsType$outboundSchema,
|
|
3416
|
-
requiresApproval: z.boolean().default(false),
|
|
3417
|
-
}).transform((v) => {
|
|
3418
|
-
return remap$(v, {
|
|
3419
|
-
requiresApproval: "requires_approval",
|
|
3420
|
-
});
|
|
3421
|
-
});
|
|
3422
|
-
|
|
3423
|
-
/**
|
|
3424
|
-
* @internal
|
|
3425
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3426
|
-
*/
|
|
3427
|
-
export namespace Tools1$ {
|
|
3428
|
-
/** @deprecated use `Tools1$inboundSchema` instead. */
|
|
3429
|
-
export const inboundSchema = Tools1$inboundSchema;
|
|
3430
|
-
/** @deprecated use `Tools1$outboundSchema` instead. */
|
|
3431
|
-
export const outboundSchema = Tools1$outboundSchema;
|
|
3432
|
-
/** @deprecated use `Tools1$Outbound` instead. */
|
|
3433
|
-
export type Outbound = Tools1$Outbound;
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
|
-
export function tools1ToJSON(tools1: Tools1): string {
|
|
3437
|
-
return JSON.stringify(Tools1$outboundSchema.parse(tools1));
|
|
3438
|
-
}
|
|
3439
|
-
|
|
3440
|
-
export function tools1FromJSON(
|
|
3441
|
-
jsonString: string,
|
|
3442
|
-
): SafeParseResult<Tools1, SDKValidationError> {
|
|
3443
|
-
return safeParse(
|
|
3444
|
-
jsonString,
|
|
3445
|
-
(x) => Tools1$inboundSchema.parse(JSON.parse(x)),
|
|
3446
|
-
`Failed to parse 'Tools1' from JSON`,
|
|
3447
|
-
);
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3450
|
-
/** @internal */
|
|
3451
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
3452
|
-
.union([
|
|
3453
|
-
z.lazy(() => Twelve$inboundSchema),
|
|
3454
|
-
z.lazy(() => Thirteen$inboundSchema),
|
|
3455
|
-
z.lazy(() => Tools1$inboundSchema),
|
|
3456
|
-
z.lazy(() => Tools2$inboundSchema),
|
|
3457
|
-
z.lazy(() => Tools3$inboundSchema),
|
|
3458
|
-
z.lazy(() => Tools4$inboundSchema),
|
|
3459
|
-
z.lazy(() => Tools5$inboundSchema),
|
|
3460
|
-
z.lazy(() => Six$inboundSchema),
|
|
3461
|
-
z.lazy(() => Seven$inboundSchema),
|
|
3462
|
-
z.lazy(() => Eight$inboundSchema),
|
|
3463
|
-
z.lazy(() => Nine$inboundSchema),
|
|
3464
|
-
z.lazy(() => Ten$inboundSchema),
|
|
3465
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
3466
|
-
]);
|
|
3467
|
-
|
|
3468
|
-
/** @internal */
|
|
3469
|
-
export type Tools$Outbound =
|
|
3470
|
-
| Twelve$Outbound
|
|
3471
|
-
| Thirteen$Outbound
|
|
3472
|
-
| Tools1$Outbound
|
|
3473
|
-
| Tools2$Outbound
|
|
3474
|
-
| Tools3$Outbound
|
|
3475
|
-
| Tools4$Outbound
|
|
3476
|
-
| Tools5$Outbound
|
|
3477
|
-
| Six$Outbound
|
|
3478
|
-
| Seven$Outbound
|
|
3479
|
-
| Eight$Outbound
|
|
3480
|
-
| Nine$Outbound
|
|
3481
|
-
| Ten$Outbound
|
|
3482
|
-
| Eleven$Outbound;
|
|
2338
|
+
export type Tools$Outbound =
|
|
2339
|
+
| (components.HttpTool$Outbound & { type: "http" })
|
|
2340
|
+
| (components.CodeExecutionTool$Outbound & { type: "code" })
|
|
2341
|
+
| (components.FunctionTool$Outbound & { type: "function" })
|
|
2342
|
+
| (components.GoogleSearchTool$Outbound & { type: "google_search" })
|
|
2343
|
+
| (components.WebScraperTool$Outbound & { type: "web_scraper" })
|
|
2344
|
+
| (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
|
|
2345
|
+
| (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
|
|
2346
|
+
| (components.QueryMemoryStoreTool$Outbound & { type: "query_memory_store" })
|
|
2347
|
+
| (components.WriteMemoryStoreTool$Outbound & { type: "write_memory_store" })
|
|
2348
|
+
| (components.RetrieveMemoryStoresTool$Outbound & {
|
|
2349
|
+
type: "retrieve_memory_stores";
|
|
2350
|
+
})
|
|
2351
|
+
| (components.RetrieveKnowledgeBasesTool$Outbound & {
|
|
2352
|
+
type: "retrieve_knowledge_bases";
|
|
2353
|
+
})
|
|
2354
|
+
| (components.QueryKnowledgeBaseTool$Outbound & {
|
|
2355
|
+
type: "query_knowledge_base";
|
|
2356
|
+
})
|
|
2357
|
+
| (components.CurrentDateTool$Outbound & { type: "current_date" });
|
|
3483
2358
|
|
|
3484
2359
|
/** @internal */
|
|
3485
2360
|
export const Tools$outboundSchema: z.ZodType<
|
|
@@ -3487,19 +2362,67 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3487
2362
|
z.ZodTypeDef,
|
|
3488
2363
|
Tools
|
|
3489
2364
|
> = z.union([
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
2365
|
+
components.HttpTool$outboundSchema.and(
|
|
2366
|
+
z.object({ type: z.literal("http") }).transform((v) => ({ type: v.type })),
|
|
2367
|
+
),
|
|
2368
|
+
components.CodeExecutionTool$outboundSchema.and(
|
|
2369
|
+
z.object({ type: z.literal("code") }).transform((v) => ({ type: v.type })),
|
|
2370
|
+
),
|
|
2371
|
+
components.FunctionTool$outboundSchema.and(
|
|
2372
|
+
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2373
|
+
type: v.type,
|
|
2374
|
+
})),
|
|
2375
|
+
),
|
|
2376
|
+
components.GoogleSearchTool$outboundSchema.and(
|
|
2377
|
+
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2378
|
+
type: v.type,
|
|
2379
|
+
})),
|
|
2380
|
+
),
|
|
2381
|
+
components.WebScraperTool$outboundSchema.and(
|
|
2382
|
+
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2383
|
+
type: v.type,
|
|
2384
|
+
})),
|
|
2385
|
+
),
|
|
2386
|
+
components.CallSubAgentTool$outboundSchema.and(
|
|
2387
|
+
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2388
|
+
type: v.type,
|
|
2389
|
+
})),
|
|
2390
|
+
),
|
|
2391
|
+
components.RetrieveAgentsTool$outboundSchema.and(
|
|
2392
|
+
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2393
|
+
type: v.type,
|
|
2394
|
+
})),
|
|
2395
|
+
),
|
|
2396
|
+
components.QueryMemoryStoreTool$outboundSchema.and(
|
|
2397
|
+
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2398
|
+
type: v.type,
|
|
2399
|
+
})),
|
|
2400
|
+
),
|
|
2401
|
+
components.WriteMemoryStoreTool$outboundSchema.and(
|
|
2402
|
+
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2403
|
+
type: v.type,
|
|
2404
|
+
})),
|
|
2405
|
+
),
|
|
2406
|
+
components.RetrieveMemoryStoresTool$outboundSchema.and(
|
|
2407
|
+
z.object({ type: z.literal("retrieve_memory_stores") }).transform((v) => ({
|
|
2408
|
+
type: v.type,
|
|
2409
|
+
})),
|
|
2410
|
+
),
|
|
2411
|
+
components.RetrieveKnowledgeBasesTool$outboundSchema.and(
|
|
2412
|
+
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2413
|
+
v,
|
|
2414
|
+
) => ({ type: v.type })),
|
|
2415
|
+
),
|
|
2416
|
+
components.QueryKnowledgeBaseTool$outboundSchema.and(
|
|
2417
|
+
z.object({ type: z.literal("query_knowledge_base") }).transform((v) => ({
|
|
2418
|
+
type: v.type,
|
|
2419
|
+
})),
|
|
2420
|
+
),
|
|
2421
|
+
components.CurrentDateTool$outboundSchema.and(
|
|
2422
|
+
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2423
|
+
type: v.type,
|
|
2424
|
+
})),
|
|
2425
|
+
),
|
|
3503
2426
|
]);
|
|
3504
2427
|
|
|
3505
2428
|
/**
|
|
@@ -3558,19 +2481,71 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
3558
2481
|
> = z.object({
|
|
3559
2482
|
tools: z.array(
|
|
3560
2483
|
z.union([
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
2484
|
+
components.HttpTool$inboundSchema.and(
|
|
2485
|
+
z.object({ type: z.literal("http") }).transform((v) => ({
|
|
2486
|
+
type: v.type,
|
|
2487
|
+
})),
|
|
2488
|
+
),
|
|
2489
|
+
components.CodeExecutionTool$inboundSchema.and(
|
|
2490
|
+
z.object({ type: z.literal("code") }).transform((v) => ({
|
|
2491
|
+
type: v.type,
|
|
2492
|
+
})),
|
|
2493
|
+
),
|
|
2494
|
+
components.FunctionTool$inboundSchema.and(
|
|
2495
|
+
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2496
|
+
type: v.type,
|
|
2497
|
+
})),
|
|
2498
|
+
),
|
|
2499
|
+
components.GoogleSearchTool$inboundSchema.and(
|
|
2500
|
+
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2501
|
+
type: v.type,
|
|
2502
|
+
})),
|
|
2503
|
+
),
|
|
2504
|
+
components.WebScraperTool$inboundSchema.and(
|
|
2505
|
+
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2506
|
+
type: v.type,
|
|
2507
|
+
})),
|
|
2508
|
+
),
|
|
2509
|
+
components.CallSubAgentTool$inboundSchema.and(
|
|
2510
|
+
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2511
|
+
type: v.type,
|
|
2512
|
+
})),
|
|
2513
|
+
),
|
|
2514
|
+
components.RetrieveAgentsTool$inboundSchema.and(
|
|
2515
|
+
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2516
|
+
type: v.type,
|
|
2517
|
+
})),
|
|
2518
|
+
),
|
|
2519
|
+
components.QueryMemoryStoreTool$inboundSchema.and(
|
|
2520
|
+
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2521
|
+
type: v.type,
|
|
2522
|
+
})),
|
|
2523
|
+
),
|
|
2524
|
+
components.WriteMemoryStoreTool$inboundSchema.and(
|
|
2525
|
+
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2526
|
+
type: v.type,
|
|
2527
|
+
})),
|
|
2528
|
+
),
|
|
2529
|
+
components.RetrieveMemoryStoresTool$inboundSchema.and(
|
|
2530
|
+
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2531
|
+
v,
|
|
2532
|
+
) => ({ type: v.type })),
|
|
2533
|
+
),
|
|
2534
|
+
components.RetrieveKnowledgeBasesTool$inboundSchema.and(
|
|
2535
|
+
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2536
|
+
v,
|
|
2537
|
+
) => ({ type: v.type })),
|
|
2538
|
+
),
|
|
2539
|
+
components.QueryKnowledgeBaseTool$inboundSchema.and(
|
|
2540
|
+
z.object({ type: z.literal("query_knowledge_base") }).transform((
|
|
2541
|
+
v,
|
|
2542
|
+
) => ({ type: v.type })),
|
|
2543
|
+
),
|
|
2544
|
+
components.CurrentDateTool$inboundSchema.and(
|
|
2545
|
+
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2546
|
+
type: v.type,
|
|
2547
|
+
})),
|
|
2548
|
+
),
|
|
3574
2549
|
]),
|
|
3575
2550
|
),
|
|
3576
2551
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
|
|
@@ -3587,19 +2562,29 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
3587
2562
|
/** @internal */
|
|
3588
2563
|
export type Settings$Outbound = {
|
|
3589
2564
|
tools: Array<
|
|
3590
|
-
|
|
|
3591
|
-
|
|
|
3592
|
-
|
|
|
3593
|
-
|
|
|
3594
|
-
|
|
|
3595
|
-
|
|
|
3596
|
-
|
|
|
3597
|
-
|
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
|
3601
|
-
|
|
3602
|
-
|
|
2565
|
+
| (components.HttpTool$Outbound & { type: "http" })
|
|
2566
|
+
| (components.CodeExecutionTool$Outbound & { type: "code" })
|
|
2567
|
+
| (components.FunctionTool$Outbound & { type: "function" })
|
|
2568
|
+
| (components.GoogleSearchTool$Outbound & { type: "google_search" })
|
|
2569
|
+
| (components.WebScraperTool$Outbound & { type: "web_scraper" })
|
|
2570
|
+
| (components.CallSubAgentTool$Outbound & { type: "call_sub_agent" })
|
|
2571
|
+
| (components.RetrieveAgentsTool$Outbound & { type: "retrieve_agents" })
|
|
2572
|
+
| (components.QueryMemoryStoreTool$Outbound & {
|
|
2573
|
+
type: "query_memory_store";
|
|
2574
|
+
})
|
|
2575
|
+
| (components.WriteMemoryStoreTool$Outbound & {
|
|
2576
|
+
type: "write_memory_store";
|
|
2577
|
+
})
|
|
2578
|
+
| (components.RetrieveMemoryStoresTool$Outbound & {
|
|
2579
|
+
type: "retrieve_memory_stores";
|
|
2580
|
+
})
|
|
2581
|
+
| (components.RetrieveKnowledgeBasesTool$Outbound & {
|
|
2582
|
+
type: "retrieve_knowledge_bases";
|
|
2583
|
+
})
|
|
2584
|
+
| (components.QueryKnowledgeBaseTool$Outbound & {
|
|
2585
|
+
type: "query_knowledge_base";
|
|
2586
|
+
})
|
|
2587
|
+
| (components.CurrentDateTool$Outbound & { type: "current_date" })
|
|
3603
2588
|
>;
|
|
3604
2589
|
tool_approval_required: string;
|
|
3605
2590
|
max_iterations: number;
|
|
@@ -3614,19 +2599,71 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
3614
2599
|
> = z.object({
|
|
3615
2600
|
tools: z.array(
|
|
3616
2601
|
z.union([
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
2602
|
+
components.HttpTool$outboundSchema.and(
|
|
2603
|
+
z.object({ type: z.literal("http") }).transform((v) => ({
|
|
2604
|
+
type: v.type,
|
|
2605
|
+
})),
|
|
2606
|
+
),
|
|
2607
|
+
components.CodeExecutionTool$outboundSchema.and(
|
|
2608
|
+
z.object({ type: z.literal("code") }).transform((v) => ({
|
|
2609
|
+
type: v.type,
|
|
2610
|
+
})),
|
|
2611
|
+
),
|
|
2612
|
+
components.FunctionTool$outboundSchema.and(
|
|
2613
|
+
z.object({ type: z.literal("function") }).transform((v) => ({
|
|
2614
|
+
type: v.type,
|
|
2615
|
+
})),
|
|
2616
|
+
),
|
|
2617
|
+
components.GoogleSearchTool$outboundSchema.and(
|
|
2618
|
+
z.object({ type: z.literal("google_search") }).transform((v) => ({
|
|
2619
|
+
type: v.type,
|
|
2620
|
+
})),
|
|
2621
|
+
),
|
|
2622
|
+
components.WebScraperTool$outboundSchema.and(
|
|
2623
|
+
z.object({ type: z.literal("web_scraper") }).transform((v) => ({
|
|
2624
|
+
type: v.type,
|
|
2625
|
+
})),
|
|
2626
|
+
),
|
|
2627
|
+
components.CallSubAgentTool$outboundSchema.and(
|
|
2628
|
+
z.object({ type: z.literal("call_sub_agent") }).transform((v) => ({
|
|
2629
|
+
type: v.type,
|
|
2630
|
+
})),
|
|
2631
|
+
),
|
|
2632
|
+
components.RetrieveAgentsTool$outboundSchema.and(
|
|
2633
|
+
z.object({ type: z.literal("retrieve_agents") }).transform((v) => ({
|
|
2634
|
+
type: v.type,
|
|
2635
|
+
})),
|
|
2636
|
+
),
|
|
2637
|
+
components.QueryMemoryStoreTool$outboundSchema.and(
|
|
2638
|
+
z.object({ type: z.literal("query_memory_store") }).transform((v) => ({
|
|
2639
|
+
type: v.type,
|
|
2640
|
+
})),
|
|
2641
|
+
),
|
|
2642
|
+
components.WriteMemoryStoreTool$outboundSchema.and(
|
|
2643
|
+
z.object({ type: z.literal("write_memory_store") }).transform((v) => ({
|
|
2644
|
+
type: v.type,
|
|
2645
|
+
})),
|
|
2646
|
+
),
|
|
2647
|
+
components.RetrieveMemoryStoresTool$outboundSchema.and(
|
|
2648
|
+
z.object({ type: z.literal("retrieve_memory_stores") }).transform((
|
|
2649
|
+
v,
|
|
2650
|
+
) => ({ type: v.type })),
|
|
2651
|
+
),
|
|
2652
|
+
components.RetrieveKnowledgeBasesTool$outboundSchema.and(
|
|
2653
|
+
z.object({ type: z.literal("retrieve_knowledge_bases") }).transform((
|
|
2654
|
+
v,
|
|
2655
|
+
) => ({ type: v.type })),
|
|
2656
|
+
),
|
|
2657
|
+
components.QueryKnowledgeBaseTool$outboundSchema.and(
|
|
2658
|
+
z.object({ type: z.literal("query_knowledge_base") }).transform((
|
|
2659
|
+
v,
|
|
2660
|
+
) => ({ type: v.type })),
|
|
2661
|
+
),
|
|
2662
|
+
components.CurrentDateTool$outboundSchema.and(
|
|
2663
|
+
z.object({ type: z.literal("current_date") }).transform((v) => ({
|
|
2664
|
+
type: v.type,
|
|
2665
|
+
})),
|
|
2666
|
+
),
|
|
3630
2667
|
]),
|
|
3631
2668
|
),
|
|
3632
2669
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
|