@orq-ai/node 3.13.9 → 3.13.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -93
- package/bin/mcp-server.js +43652 -40649
- package/bin/mcp-server.js.map +117 -98
- package/docs/sdks/agents/README.md +566 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +18 -0
- package/funcs/agentsCreate.d.ts.map +1 -0
- package/funcs/agentsCreate.js +120 -0
- package/funcs/agentsCreate.js.map +1 -0
- package/funcs/agentsDelete.d.ts +18 -0
- package/funcs/agentsDelete.d.ts.map +1 -0
- package/funcs/agentsDelete.js +124 -0
- package/funcs/agentsDelete.js.map +1 -0
- package/funcs/agentsInvoke.d.ts +17 -0
- package/funcs/agentsInvoke.d.ts.map +1 -0
- package/funcs/agentsInvoke.js +120 -0
- package/funcs/agentsInvoke.js.map +1 -0
- package/funcs/agentsStream.d.ts +19 -0
- package/funcs/agentsStream.d.ts.map +1 -0
- package/funcs/agentsStream.js +134 -0
- package/funcs/agentsStream.js.map +1 -0
- package/funcs/agentsUpdate.d.ts +18 -0
- package/funcs/agentsUpdate.d.ts.map +1 -0
- package/funcs/agentsUpdate.js +124 -0
- package/funcs/agentsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +8 -0
- package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsCreate.js +64 -0
- package/mcp-server/tools/agentsCreate.js.map +1 -0
- package/mcp-server/tools/agentsDelete.d.ts +8 -0
- package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
- package/mcp-server/tools/agentsDelete.js +63 -0
- package/mcp-server/tools/agentsDelete.js.map +1 -0
- package/mcp-server/tools/agentsInvoke.d.ts +8 -0
- package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/agentsInvoke.js +64 -0
- package/mcp-server/tools/agentsInvoke.js.map +1 -0
- package/mcp-server/tools/agentsStream.d.ts +8 -0
- package/mcp-server/tools/agentsStream.d.ts.map +1 -0
- package/mcp-server/tools/agentsStream.js +64 -0
- package/mcp-server/tools/agentsStream.js.map +1 -0
- package/mcp-server/tools/agentsUpdate.d.ts +8 -0
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/agentsUpdate.js +64 -0
- package/mcp-server/tools/agentsUpdate.js.map +1 -0
- package/models/errors/createagent.d.ts +41 -0
- package/models/errors/createagent.d.ts.map +1 -0
- package/models/errors/createagent.js +85 -0
- package/models/errors/createagent.js.map +1 -0
- package/models/errors/deleteagent.d.ts +41 -0
- package/models/errors/deleteagent.d.ts.map +1 -0
- package/models/errors/deleteagent.js +85 -0
- package/models/errors/deleteagent.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +4 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/streamagent.d.ts +41 -0
- package/models/errors/streamagent.d.ts.map +1 -0
- package/models/errors/streamagent.js +85 -0
- package/models/errors/streamagent.js.map +1 -0
- package/models/errors/updateagent.d.ts +41 -0
- package/models/errors/updateagent.d.ts.map +1 -0
- package/models/errors/updateagent.js +85 -0
- package/models/errors/updateagent.js.map +1 -0
- package/models/operations/createagent.d.ts +1504 -0
- package/models/operations/createagent.d.ts.map +1 -0
- package/models/operations/createagent.js +1530 -0
- package/models/operations/createagent.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +20 -20
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +34 -34
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deleteagent.d.ts +32 -0
- package/models/operations/deleteagent.d.ts.map +1 -0
- package/models/operations/deleteagent.js +78 -0
- package/models/operations/deleteagent.js.map +1 -0
- package/models/operations/duplicatetool.d.ts +10 -10
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +20 -20
- package/models/operations/duplicatetool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +44 -175
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +51 -184
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +20 -20
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +912 -0
- package/models/operations/invokeagent.d.ts.map +1 -0
- package/models/operations/invokeagent.js +824 -0
- package/models/operations/invokeagent.js.map +1 -0
- package/models/operations/listagents.d.ts +6 -137
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -139
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +5 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +2 -0
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +20 -20
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/runagent.d.ts +640 -721
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +817 -928
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +676 -0
- package/models/operations/streamagent.d.ts.map +1 -0
- package/models/operations/streamagent.js +670 -0
- package/models/operations/streamagent.js.map +1 -0
- package/models/operations/streamrunagent.d.ts +567 -648
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +721 -835
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +1515 -0
- package/models/operations/updateagent.d.ts.map +1 -0
- package/models/operations/updateagent.js +1576 -0
- package/models/operations/updateagent.js.map +1 -0
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.d.ts +18 -18
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +36 -36
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/README.md +103 -94
- package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +7 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
- package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
- package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
- package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
- package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
- package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
- package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
- package/packages/orq-rc/src/sdk/agents.ts +54 -0
- package/sdk/agents.d.ts +35 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +50 -0
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +172 -0
- package/src/funcs/agentsDelete.ts +176 -0
- package/src/funcs/agentsInvoke.ts +167 -0
- package/src/funcs/agentsStream.ts +191 -0
- package/src/funcs/agentsUpdate.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/agentsCreate.ts +37 -0
- package/src/mcp-server/tools/agentsDelete.ts +35 -0
- package/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/src/mcp-server/tools/agentsStream.ts +37 -0
- package/src/mcp-server/tools/agentsUpdate.ts +37 -0
- package/src/models/errors/createagent.ts +80 -0
- package/src/models/errors/deleteagent.ts +80 -0
- package/src/models/errors/index.ts +4 -0
- package/src/models/errors/streamagent.ts +80 -0
- package/src/models/errors/updateagent.ts +80 -0
- package/src/models/operations/createagent.ts +3021 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +54 -54
- package/src/models/operations/deleteagent.ts +78 -0
- package/src/models/operations/duplicatetool.ts +30 -30
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +87 -387
- package/src/models/operations/getalltools.ts +30 -30
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/invokeagent.ts +1569 -0
- package/src/models/operations/listagents.ts +8 -321
- package/src/models/operations/listagenttasks.ts +7 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +30 -30
- package/src/models/operations/runagent.ts +1441 -1488
- package/src/models/operations/streamagent.ts +1367 -0
- package/src/models/operations/streamrunagent.ts +1542 -1657
- package/src/models/operations/updateagent.ts +3227 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +60 -60
- package/src/sdk/agents.ts +90 -0
|
@@ -36,53 +36,47 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.RunAgentResponseBody$ = exports.RunAgentResponseBody$outboundSchema = exports.RunAgentResponseBody$inboundSchema = exports.RunAgentStatus$ = exports.RunAgentStatus$outboundSchema = exports.RunAgentStatus$inboundSchema = exports.
|
|
39
|
+
exports.FileBinaryFormat$outboundSchema = exports.FileBinaryFormat$inboundSchema = exports.FileFileInURIFormat$ = exports.FileFileInURIFormat$outboundSchema = exports.FileFileInURIFormat$inboundSchema = exports.RunAgentPublicMessagePartAgentsKind$ = exports.RunAgentPublicMessagePartAgentsKind$outboundSchema = exports.RunAgentPublicMessagePartAgentsKind$inboundSchema = exports.PublicMessagePartToolResultPart$ = exports.PublicMessagePartToolResultPart$outboundSchema = exports.PublicMessagePartToolResultPart$inboundSchema = exports.RunAgentPublicMessagePartAgentsRequestKind$ = exports.RunAgentPublicMessagePartAgentsRequestKind$outboundSchema = exports.RunAgentPublicMessagePartAgentsRequestKind$inboundSchema = exports.RunAgentRole$ = exports.RunAgentRole$outboundSchema = exports.RunAgentRole$inboundSchema = exports.RunAgentRoleUserMessage$ = exports.RunAgentRoleUserMessage$outboundSchema = exports.RunAgentRoleUserMessage$inboundSchema = exports.RunAgentRoleToolMessage$ = exports.RunAgentRoleToolMessage$outboundSchema = exports.RunAgentRoleToolMessage$inboundSchema = exports.RunAgentAgentsRole = exports.RunAgentAgentsKind = exports.RunAgentState = exports.RunAgentKind = exports.RunAgentToolApprovalRequired = exports.AgentToolInputRunType = exports.RunAgentAgentToolInputRunType = exports.RunAgentAgentToolInputRunAgentsType = exports.RunAgentAgentToolInputRunAgentsRequestType = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = exports.Method = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = exports.Language = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = exports.RunAgentPublicMessagePartKind = exports.RunAgentPublicMessagePartAgentsKind = exports.RunAgentPublicMessagePartAgentsRequestKind = exports.RunAgentRoleUserMessage = exports.RunAgentRoleToolMessage = void 0;
|
|
40
|
+
exports.CodeTool$inboundSchema = exports.Language$ = exports.Language$outboundSchema = exports.Language$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema = exports.FunctionToolRun$ = exports.FunctionToolRun$outboundSchema = exports.FunctionToolRun$inboundSchema = exports.AgentToolInputRunFunction$ = exports.AgentToolInputRunFunction$outboundSchema = exports.AgentToolInputRunFunction$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema = exports.TeamOfAgents$ = exports.TeamOfAgents$outboundSchema = exports.TeamOfAgents$inboundSchema = exports.RunAgentKnowledgeBases$ = exports.RunAgentKnowledgeBases$outboundSchema = exports.RunAgentKnowledgeBases$inboundSchema = exports.RunAgentMemory$ = exports.RunAgentMemory$outboundSchema = exports.RunAgentMemory$inboundSchema = exports.RunAgentThread$ = exports.RunAgentThread$outboundSchema = exports.RunAgentThread$inboundSchema = exports.RunAgentContact$ = exports.RunAgentContact$outboundSchema = exports.RunAgentContact$inboundSchema = exports.RunAgentMessage$ = exports.RunAgentMessage$outboundSchema = exports.RunAgentMessage$inboundSchema = exports.RunAgentPublicMessagePart$ = exports.RunAgentPublicMessagePart$outboundSchema = exports.RunAgentPublicMessagePart$inboundSchema = exports.PublicMessagePartTextPart$ = exports.PublicMessagePartTextPart$outboundSchema = exports.PublicMessagePartTextPart$inboundSchema = exports.RunAgentPublicMessagePartKind$ = exports.RunAgentPublicMessagePartKind$outboundSchema = exports.RunAgentPublicMessagePartKind$inboundSchema = exports.PublicMessagePartFilePart$ = exports.PublicMessagePartFilePart$outboundSchema = exports.PublicMessagePartFilePart$inboundSchema = exports.RunAgentPublicMessagePartFile$ = exports.RunAgentPublicMessagePartFile$outboundSchema = exports.RunAgentPublicMessagePartFile$inboundSchema = exports.FileBinaryFormat$ = void 0;
|
|
41
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema = exports.AgentToolInputRunRetrieveKnowledgeBasesTool$ = exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema = exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema = exports.AgentToolInputRunQueryKnowledgeBaseTool$ = exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema = exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema = exports.AgentToolInputRunCurrentDateTool$ = exports.AgentToolInputRunCurrentDateTool$outboundSchema = exports.AgentToolInputRunCurrentDateTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema = exports.HTTPToolRun$ = exports.HTTPToolRun$outboundSchema = exports.HTTPToolRun$inboundSchema = exports.Http$ = exports.Http$outboundSchema = exports.Http$inboundSchema = exports.Arguments$ = exports.Arguments$outboundSchema = exports.Arguments$inboundSchema = exports.DefaultValue$ = exports.DefaultValue$outboundSchema = exports.DefaultValue$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema = exports.Blueprint$ = exports.Blueprint$outboundSchema = exports.Blueprint$inboundSchema = exports.Method$ = exports.Method$outboundSchema = exports.Method$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema = exports.CodeToolRun$ = exports.CodeToolRun$outboundSchema = exports.CodeToolRun$inboundSchema = exports.CodeTool$ = exports.CodeTool$outboundSchema = void 0;
|
|
42
|
+
exports.RunAgentToolApprovalRequired$outboundSchema = exports.RunAgentToolApprovalRequired$inboundSchema = exports.AgentToolInputRun$ = exports.AgentToolInputRun$outboundSchema = exports.AgentToolInputRun$inboundSchema = exports.AgentToolInputRunGoogleSearchTool$ = exports.AgentToolInputRunGoogleSearchTool$outboundSchema = exports.AgentToolInputRunGoogleSearchTool$inboundSchema = exports.AgentToolInputRunType$ = exports.AgentToolInputRunType$outboundSchema = exports.AgentToolInputRunType$inboundSchema = exports.AgentToolInputRunWebScraperTool$ = exports.AgentToolInputRunWebScraperTool$outboundSchema = exports.AgentToolInputRunWebScraperTool$inboundSchema = exports.RunAgentAgentToolInputRunType$ = exports.RunAgentAgentToolInputRunType$outboundSchema = exports.RunAgentAgentToolInputRunType$inboundSchema = exports.AgentToolInputRunCallSubAgentTool$ = exports.AgentToolInputRunCallSubAgentTool$outboundSchema = exports.AgentToolInputRunCallSubAgentTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsType$ = exports.RunAgentAgentToolInputRunAgentsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsType$inboundSchema = exports.AgentToolInputRunRetrieveAgentsTool$ = exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema = exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestType$ = exports.RunAgentAgentToolInputRunAgentsRequestType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestType$inboundSchema = exports.AgentToolInputRunQueryMemoryStoreTool$ = exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema = exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema = exports.AgentToolInputRunWriteMemoryStoreTool$ = exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema = exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema = exports.AgentToolInputRunRetrieveMemoryStoresTool$ = exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema = exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema = exports.AgentToolInputRunDeleteMemoryDocumentTool$ = exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema = exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema = void 0;
|
|
43
|
+
exports.RunAgentResponseBody$ = exports.RunAgentResponseBody$outboundSchema = exports.RunAgentResponseBody$inboundSchema = exports.RunAgentStatus$ = exports.RunAgentStatus$outboundSchema = exports.RunAgentStatus$inboundSchema = exports.RunAgentAgentsMessage$ = exports.RunAgentAgentsMessage$outboundSchema = exports.RunAgentAgentsMessage$inboundSchema = exports.RunAgentAgentsRole$ = exports.RunAgentAgentsRole$outboundSchema = exports.RunAgentAgentsRole$inboundSchema = exports.RunAgentAgentsKind$ = exports.RunAgentAgentsKind$outboundSchema = exports.RunAgentAgentsKind$inboundSchema = exports.RunAgentState$ = exports.RunAgentState$outboundSchema = exports.RunAgentState$inboundSchema = exports.RunAgentKind$ = exports.RunAgentKind$outboundSchema = exports.RunAgentKind$inboundSchema = exports.RunAgentRequestBody$ = exports.RunAgentRequestBody$outboundSchema = exports.RunAgentRequestBody$inboundSchema = exports.RunAgentSettings$ = exports.RunAgentSettings$outboundSchema = exports.RunAgentSettings$inboundSchema = exports.RunAgentToolApprovalRequired$ = void 0;
|
|
44
44
|
exports.runAgentRoleToJSON = runAgentRoleToJSON;
|
|
45
45
|
exports.runAgentRoleFromJSON = runAgentRoleFromJSON;
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
46
|
+
exports.publicMessagePartToolResultPartToJSON = publicMessagePartToolResultPartToJSON;
|
|
47
|
+
exports.publicMessagePartToolResultPartFromJSON = publicMessagePartToolResultPartFromJSON;
|
|
48
|
+
exports.fileFileInURIFormatToJSON = fileFileInURIFormatToJSON;
|
|
49
|
+
exports.fileFileInURIFormatFromJSON = fileFileInURIFormatFromJSON;
|
|
50
|
+
exports.fileBinaryFormatToJSON = fileBinaryFormatToJSON;
|
|
51
|
+
exports.fileBinaryFormatFromJSON = fileBinaryFormatFromJSON;
|
|
52
|
+
exports.runAgentPublicMessagePartFileToJSON = runAgentPublicMessagePartFileToJSON;
|
|
53
|
+
exports.runAgentPublicMessagePartFileFromJSON = runAgentPublicMessagePartFileFromJSON;
|
|
54
|
+
exports.publicMessagePartFilePartToJSON = publicMessagePartFilePartToJSON;
|
|
55
|
+
exports.publicMessagePartFilePartFromJSON = publicMessagePartFilePartFromJSON;
|
|
56
|
+
exports.publicMessagePartTextPartToJSON = publicMessagePartTextPartToJSON;
|
|
57
|
+
exports.publicMessagePartTextPartFromJSON = publicMessagePartTextPartFromJSON;
|
|
58
|
+
exports.runAgentPublicMessagePartToJSON = runAgentPublicMessagePartToJSON;
|
|
59
|
+
exports.runAgentPublicMessagePartFromJSON = runAgentPublicMessagePartFromJSON;
|
|
60
|
+
exports.runAgentMessageToJSON = runAgentMessageToJSON;
|
|
61
|
+
exports.runAgentMessageFromJSON = runAgentMessageFromJSON;
|
|
62
|
+
exports.runAgentContactToJSON = runAgentContactToJSON;
|
|
63
|
+
exports.runAgentContactFromJSON = runAgentContactFromJSON;
|
|
64
64
|
exports.runAgentThreadToJSON = runAgentThreadToJSON;
|
|
65
65
|
exports.runAgentThreadFromJSON = runAgentThreadFromJSON;
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.knowledgeBaseLastUserMessageToJSON = knowledgeBaseLastUserMessageToJSON;
|
|
71
|
-
exports.knowledgeBaseLastUserMessageFromJSON = knowledgeBaseLastUserMessageFromJSON;
|
|
72
|
-
exports.knowledgeBaseConfigurationToJSON = knowledgeBaseConfigurationToJSON;
|
|
73
|
-
exports.knowledgeBaseConfigurationFromJSON = knowledgeBaseConfigurationFromJSON;
|
|
74
|
-
exports.knowledgeBasesToJSON = knowledgeBasesToJSON;
|
|
75
|
-
exports.knowledgeBasesFromJSON = knowledgeBasesFromJSON;
|
|
66
|
+
exports.runAgentMemoryToJSON = runAgentMemoryToJSON;
|
|
67
|
+
exports.runAgentMemoryFromJSON = runAgentMemoryFromJSON;
|
|
68
|
+
exports.runAgentKnowledgeBasesToJSON = runAgentKnowledgeBasesToJSON;
|
|
69
|
+
exports.runAgentKnowledgeBasesFromJSON = runAgentKnowledgeBasesFromJSON;
|
|
76
70
|
exports.teamOfAgentsToJSON = teamOfAgentsToJSON;
|
|
77
71
|
exports.teamOfAgentsFromJSON = teamOfAgentsFromJSON;
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
72
|
+
exports.agentToolInputRunFunctionToJSON = agentToolInputRunFunctionToJSON;
|
|
73
|
+
exports.agentToolInputRunFunctionFromJSON = agentToolInputRunFunctionFromJSON;
|
|
74
|
+
exports.functionToolRunToJSON = functionToolRunToJSON;
|
|
75
|
+
exports.functionToolRunFromJSON = functionToolRunFromJSON;
|
|
82
76
|
exports.codeToolToJSON = codeToolToJSON;
|
|
83
77
|
exports.codeToolFromJSON = codeToolFromJSON;
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
78
|
+
exports.codeToolRunToJSON = codeToolRunToJSON;
|
|
79
|
+
exports.codeToolRunFromJSON = codeToolRunFromJSON;
|
|
86
80
|
exports.blueprintToJSON = blueprintToJSON;
|
|
87
81
|
exports.blueprintFromJSON = blueprintFromJSON;
|
|
88
82
|
exports.defaultValueToJSON = defaultValueToJSON;
|
|
@@ -91,38 +85,38 @@ exports.argumentsToJSON = argumentsToJSON;
|
|
|
91
85
|
exports.argumentsFromJSON = argumentsFromJSON;
|
|
92
86
|
exports.httpToJSON = httpToJSON;
|
|
93
87
|
exports.httpFromJSON = httpFromJSON;
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
88
|
+
exports.httpToolRunToJSON = httpToolRunToJSON;
|
|
89
|
+
exports.httpToolRunFromJSON = httpToolRunFromJSON;
|
|
90
|
+
exports.agentToolInputRunCurrentDateToolToJSON = agentToolInputRunCurrentDateToolToJSON;
|
|
91
|
+
exports.agentToolInputRunCurrentDateToolFromJSON = agentToolInputRunCurrentDateToolFromJSON;
|
|
92
|
+
exports.agentToolInputRunQueryKnowledgeBaseToolToJSON = agentToolInputRunQueryKnowledgeBaseToolToJSON;
|
|
93
|
+
exports.agentToolInputRunQueryKnowledgeBaseToolFromJSON = agentToolInputRunQueryKnowledgeBaseToolFromJSON;
|
|
94
|
+
exports.agentToolInputRunRetrieveKnowledgeBasesToolToJSON = agentToolInputRunRetrieveKnowledgeBasesToolToJSON;
|
|
95
|
+
exports.agentToolInputRunRetrieveKnowledgeBasesToolFromJSON = agentToolInputRunRetrieveKnowledgeBasesToolFromJSON;
|
|
96
|
+
exports.agentToolInputRunDeleteMemoryDocumentToolToJSON = agentToolInputRunDeleteMemoryDocumentToolToJSON;
|
|
97
|
+
exports.agentToolInputRunDeleteMemoryDocumentToolFromJSON = agentToolInputRunDeleteMemoryDocumentToolFromJSON;
|
|
98
|
+
exports.agentToolInputRunRetrieveMemoryStoresToolToJSON = agentToolInputRunRetrieveMemoryStoresToolToJSON;
|
|
99
|
+
exports.agentToolInputRunRetrieveMemoryStoresToolFromJSON = agentToolInputRunRetrieveMemoryStoresToolFromJSON;
|
|
100
|
+
exports.agentToolInputRunWriteMemoryStoreToolToJSON = agentToolInputRunWriteMemoryStoreToolToJSON;
|
|
101
|
+
exports.agentToolInputRunWriteMemoryStoreToolFromJSON = agentToolInputRunWriteMemoryStoreToolFromJSON;
|
|
102
|
+
exports.agentToolInputRunQueryMemoryStoreToolToJSON = agentToolInputRunQueryMemoryStoreToolToJSON;
|
|
103
|
+
exports.agentToolInputRunQueryMemoryStoreToolFromJSON = agentToolInputRunQueryMemoryStoreToolFromJSON;
|
|
104
|
+
exports.agentToolInputRunRetrieveAgentsToolToJSON = agentToolInputRunRetrieveAgentsToolToJSON;
|
|
105
|
+
exports.agentToolInputRunRetrieveAgentsToolFromJSON = agentToolInputRunRetrieveAgentsToolFromJSON;
|
|
106
|
+
exports.agentToolInputRunCallSubAgentToolToJSON = agentToolInputRunCallSubAgentToolToJSON;
|
|
107
|
+
exports.agentToolInputRunCallSubAgentToolFromJSON = agentToolInputRunCallSubAgentToolFromJSON;
|
|
108
|
+
exports.agentToolInputRunWebScraperToolToJSON = agentToolInputRunWebScraperToolToJSON;
|
|
109
|
+
exports.agentToolInputRunWebScraperToolFromJSON = agentToolInputRunWebScraperToolFromJSON;
|
|
110
|
+
exports.agentToolInputRunGoogleSearchToolToJSON = agentToolInputRunGoogleSearchToolToJSON;
|
|
111
|
+
exports.agentToolInputRunGoogleSearchToolFromJSON = agentToolInputRunGoogleSearchToolFromJSON;
|
|
112
|
+
exports.agentToolInputRunToJSON = agentToolInputRunToJSON;
|
|
113
|
+
exports.agentToolInputRunFromJSON = agentToolInputRunFromJSON;
|
|
114
|
+
exports.runAgentSettingsToJSON = runAgentSettingsToJSON;
|
|
115
|
+
exports.runAgentSettingsFromJSON = runAgentSettingsFromJSON;
|
|
122
116
|
exports.runAgentRequestBodyToJSON = runAgentRequestBodyToJSON;
|
|
123
117
|
exports.runAgentRequestBodyFromJSON = runAgentRequestBodyFromJSON;
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
118
|
+
exports.runAgentAgentsMessageToJSON = runAgentAgentsMessageToJSON;
|
|
119
|
+
exports.runAgentAgentsMessageFromJSON = runAgentAgentsMessageFromJSON;
|
|
126
120
|
exports.runAgentStatusToJSON = runAgentStatusToJSON;
|
|
127
121
|
exports.runAgentStatusFromJSON = runAgentStatusFromJSON;
|
|
128
122
|
exports.runAgentResponseBodyToJSON = runAgentResponseBodyToJSON;
|
|
@@ -133,40 +127,34 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
133
127
|
/**
|
|
134
128
|
* Tool message
|
|
135
129
|
*/
|
|
136
|
-
exports.
|
|
130
|
+
exports.RunAgentRoleToolMessage = {
|
|
137
131
|
Tool: "tool",
|
|
138
132
|
};
|
|
139
133
|
/**
|
|
140
134
|
* User message
|
|
141
135
|
*/
|
|
142
|
-
exports.
|
|
136
|
+
exports.RunAgentRoleUserMessage = {
|
|
143
137
|
User: "user",
|
|
144
138
|
};
|
|
145
|
-
exports.
|
|
139
|
+
exports.RunAgentPublicMessagePartAgentsRequestKind = {
|
|
146
140
|
ToolResult: "tool_result",
|
|
147
141
|
};
|
|
148
|
-
exports.
|
|
142
|
+
exports.RunAgentPublicMessagePartAgentsKind = {
|
|
149
143
|
File: "file",
|
|
150
144
|
};
|
|
151
|
-
exports.
|
|
145
|
+
exports.RunAgentPublicMessagePartKind = {
|
|
152
146
|
Text: "text",
|
|
153
147
|
};
|
|
154
|
-
exports.
|
|
155
|
-
Query: "query",
|
|
156
|
-
};
|
|
157
|
-
exports.KnowledgeBaseConfigurationType = {
|
|
158
|
-
LastUserMessage: "last_user_message",
|
|
159
|
-
};
|
|
160
|
-
exports.RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type = {
|
|
148
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = {
|
|
161
149
|
Function: "function",
|
|
162
150
|
};
|
|
163
|
-
exports.
|
|
151
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = {
|
|
164
152
|
Code: "code",
|
|
165
153
|
};
|
|
166
154
|
exports.Language = {
|
|
167
155
|
Python: "python",
|
|
168
156
|
};
|
|
169
|
-
exports.
|
|
157
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = {
|
|
170
158
|
Http: "http",
|
|
171
159
|
};
|
|
172
160
|
/**
|
|
@@ -181,48 +169,48 @@ exports.Method = {
|
|
|
181
169
|
/**
|
|
182
170
|
* The type of the argument.
|
|
183
171
|
*/
|
|
184
|
-
exports.
|
|
172
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = {
|
|
185
173
|
String: "string",
|
|
186
174
|
Number: "number",
|
|
187
175
|
Boolean: "boolean",
|
|
188
176
|
};
|
|
189
|
-
exports.
|
|
177
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type = {
|
|
190
178
|
CurrentDate: "current_date",
|
|
191
179
|
};
|
|
192
|
-
exports.
|
|
180
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = {
|
|
193
181
|
QueryKnowledgeBase: "query_knowledge_base",
|
|
194
182
|
};
|
|
195
|
-
exports.
|
|
183
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = {
|
|
196
184
|
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
197
185
|
};
|
|
198
|
-
exports.
|
|
186
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = {
|
|
199
187
|
DeleteMemoryDocument: "delete_memory_document",
|
|
200
188
|
};
|
|
201
|
-
exports.
|
|
189
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = {
|
|
202
190
|
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
203
191
|
};
|
|
204
|
-
exports.
|
|
192
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
|
|
205
193
|
WriteMemoryStore: "write_memory_store",
|
|
206
194
|
};
|
|
207
|
-
exports.
|
|
195
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
|
|
208
196
|
QueryMemoryStore: "query_memory_store",
|
|
209
197
|
};
|
|
210
|
-
exports.
|
|
198
|
+
exports.RunAgentAgentToolInputRunAgentsRequestType = {
|
|
211
199
|
RetrieveAgents: "retrieve_agents",
|
|
212
200
|
};
|
|
213
|
-
exports.
|
|
201
|
+
exports.RunAgentAgentToolInputRunAgentsType = {
|
|
214
202
|
CallSubAgent: "call_sub_agent",
|
|
215
203
|
};
|
|
216
|
-
exports.
|
|
204
|
+
exports.RunAgentAgentToolInputRunType = {
|
|
217
205
|
WebScraper: "web_scraper",
|
|
218
206
|
};
|
|
219
|
-
exports.
|
|
207
|
+
exports.AgentToolInputRunType = {
|
|
220
208
|
GoogleSearch: "google_search",
|
|
221
209
|
};
|
|
222
210
|
/**
|
|
223
211
|
* 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.
|
|
224
212
|
*/
|
|
225
|
-
exports.
|
|
213
|
+
exports.RunAgentToolApprovalRequired = {
|
|
226
214
|
All: "all",
|
|
227
215
|
RespectTool: "respect_tool",
|
|
228
216
|
None: "none",
|
|
@@ -260,39 +248,45 @@ exports.RunAgentAgentsRole = {
|
|
|
260
248
|
System: "system",
|
|
261
249
|
};
|
|
262
250
|
/** @internal */
|
|
263
|
-
exports.
|
|
251
|
+
exports.RunAgentRoleToolMessage$inboundSchema = z.nativeEnum(exports.RunAgentRoleToolMessage);
|
|
264
252
|
/** @internal */
|
|
265
|
-
exports.
|
|
253
|
+
exports.RunAgentRoleToolMessage$outboundSchema = exports.RunAgentRoleToolMessage$inboundSchema;
|
|
266
254
|
/**
|
|
267
255
|
* @internal
|
|
268
256
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
269
257
|
*/
|
|
270
|
-
var
|
|
271
|
-
(function (
|
|
272
|
-
/** @deprecated use `
|
|
273
|
-
|
|
274
|
-
/** @deprecated use `
|
|
275
|
-
|
|
276
|
-
})(
|
|
258
|
+
var RunAgentRoleToolMessage$;
|
|
259
|
+
(function (RunAgentRoleToolMessage$) {
|
|
260
|
+
/** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
|
|
261
|
+
RunAgentRoleToolMessage$.inboundSchema = exports.RunAgentRoleToolMessage$inboundSchema;
|
|
262
|
+
/** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
|
|
263
|
+
RunAgentRoleToolMessage$.outboundSchema = exports.RunAgentRoleToolMessage$outboundSchema;
|
|
264
|
+
})(RunAgentRoleToolMessage$ || (exports.RunAgentRoleToolMessage$ = RunAgentRoleToolMessage$ = {}));
|
|
277
265
|
/** @internal */
|
|
278
|
-
exports.
|
|
266
|
+
exports.RunAgentRoleUserMessage$inboundSchema = z.nativeEnum(exports.RunAgentRoleUserMessage);
|
|
279
267
|
/** @internal */
|
|
280
|
-
exports.
|
|
268
|
+
exports.RunAgentRoleUserMessage$outboundSchema = exports.RunAgentRoleUserMessage$inboundSchema;
|
|
281
269
|
/**
|
|
282
270
|
* @internal
|
|
283
271
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
284
272
|
*/
|
|
285
|
-
var
|
|
286
|
-
(function (
|
|
287
|
-
/** @deprecated use `
|
|
288
|
-
|
|
289
|
-
/** @deprecated use `
|
|
290
|
-
|
|
291
|
-
})(
|
|
273
|
+
var RunAgentRoleUserMessage$;
|
|
274
|
+
(function (RunAgentRoleUserMessage$) {
|
|
275
|
+
/** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
|
|
276
|
+
RunAgentRoleUserMessage$.inboundSchema = exports.RunAgentRoleUserMessage$inboundSchema;
|
|
277
|
+
/** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
|
|
278
|
+
RunAgentRoleUserMessage$.outboundSchema = exports.RunAgentRoleUserMessage$outboundSchema;
|
|
279
|
+
})(RunAgentRoleUserMessage$ || (exports.RunAgentRoleUserMessage$ = RunAgentRoleUserMessage$ = {}));
|
|
292
280
|
/** @internal */
|
|
293
|
-
exports.RunAgentRole$inboundSchema = z.union([
|
|
281
|
+
exports.RunAgentRole$inboundSchema = z.union([
|
|
282
|
+
exports.RunAgentRoleUserMessage$inboundSchema,
|
|
283
|
+
exports.RunAgentRoleToolMessage$inboundSchema,
|
|
284
|
+
]);
|
|
294
285
|
/** @internal */
|
|
295
|
-
exports.RunAgentRole$outboundSchema = z.union([
|
|
286
|
+
exports.RunAgentRole$outboundSchema = z.union([
|
|
287
|
+
exports.RunAgentRoleUserMessage$outboundSchema,
|
|
288
|
+
exports.RunAgentRoleToolMessage$outboundSchema,
|
|
289
|
+
]);
|
|
296
290
|
/**
|
|
297
291
|
* @internal
|
|
298
292
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -311,23 +305,24 @@ function runAgentRoleFromJSON(jsonString) {
|
|
|
311
305
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentRole' from JSON`);
|
|
312
306
|
}
|
|
313
307
|
/** @internal */
|
|
314
|
-
exports.
|
|
308
|
+
exports.RunAgentPublicMessagePartAgentsRequestKind$inboundSchema = z
|
|
309
|
+
.nativeEnum(exports.RunAgentPublicMessagePartAgentsRequestKind);
|
|
315
310
|
/** @internal */
|
|
316
|
-
exports.
|
|
311
|
+
exports.RunAgentPublicMessagePartAgentsRequestKind$outboundSchema = exports.RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
317
312
|
/**
|
|
318
313
|
* @internal
|
|
319
314
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
320
315
|
*/
|
|
321
|
-
var
|
|
322
|
-
(function (
|
|
323
|
-
/** @deprecated use `
|
|
324
|
-
|
|
325
|
-
/** @deprecated use `
|
|
326
|
-
|
|
327
|
-
})(
|
|
316
|
+
var RunAgentPublicMessagePartAgentsRequestKind$;
|
|
317
|
+
(function (RunAgentPublicMessagePartAgentsRequestKind$) {
|
|
318
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
|
|
319
|
+
RunAgentPublicMessagePartAgentsRequestKind$.inboundSchema = exports.RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
320
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
|
|
321
|
+
RunAgentPublicMessagePartAgentsRequestKind$.outboundSchema = exports.RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
|
|
322
|
+
})(RunAgentPublicMessagePartAgentsRequestKind$ || (exports.RunAgentPublicMessagePartAgentsRequestKind$ = RunAgentPublicMessagePartAgentsRequestKind$ = {}));
|
|
328
323
|
/** @internal */
|
|
329
|
-
exports.
|
|
330
|
-
kind: exports.
|
|
324
|
+
exports.PublicMessagePartToolResultPart$inboundSchema = z.object({
|
|
325
|
+
kind: exports.RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
331
326
|
tool_call_id: z.string(),
|
|
332
327
|
result: z.any().optional(),
|
|
333
328
|
metadata: z.record(z.any()).optional(),
|
|
@@ -337,8 +332,8 @@ exports.ToolResultPart$inboundSchema = z.object({
|
|
|
337
332
|
});
|
|
338
333
|
});
|
|
339
334
|
/** @internal */
|
|
340
|
-
exports.
|
|
341
|
-
kind: exports.
|
|
335
|
+
exports.PublicMessagePartToolResultPart$outboundSchema = z.object({
|
|
336
|
+
kind: exports.RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
342
337
|
toolCallId: z.string(),
|
|
343
338
|
result: z.any().optional(),
|
|
344
339
|
metadata: z.record(z.any()).optional(),
|
|
@@ -351,42 +346,42 @@ exports.ToolResultPart$outboundSchema = z.object({
|
|
|
351
346
|
* @internal
|
|
352
347
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
353
348
|
*/
|
|
354
|
-
var
|
|
355
|
-
(function (
|
|
356
|
-
/** @deprecated use `
|
|
357
|
-
|
|
358
|
-
/** @deprecated use `
|
|
359
|
-
|
|
360
|
-
})(
|
|
361
|
-
function
|
|
362
|
-
return JSON.stringify(exports.
|
|
349
|
+
var PublicMessagePartToolResultPart$;
|
|
350
|
+
(function (PublicMessagePartToolResultPart$) {
|
|
351
|
+
/** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
352
|
+
PublicMessagePartToolResultPart$.inboundSchema = exports.PublicMessagePartToolResultPart$inboundSchema;
|
|
353
|
+
/** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
354
|
+
PublicMessagePartToolResultPart$.outboundSchema = exports.PublicMessagePartToolResultPart$outboundSchema;
|
|
355
|
+
})(PublicMessagePartToolResultPart$ || (exports.PublicMessagePartToolResultPart$ = PublicMessagePartToolResultPart$ = {}));
|
|
356
|
+
function publicMessagePartToolResultPartToJSON(publicMessagePartToolResultPart) {
|
|
357
|
+
return JSON.stringify(exports.PublicMessagePartToolResultPart$outboundSchema.parse(publicMessagePartToolResultPart));
|
|
363
358
|
}
|
|
364
|
-
function
|
|
365
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
359
|
+
function publicMessagePartToolResultPartFromJSON(jsonString) {
|
|
360
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePartToolResultPart' from JSON`);
|
|
366
361
|
}
|
|
367
362
|
/** @internal */
|
|
368
|
-
exports.
|
|
363
|
+
exports.RunAgentPublicMessagePartAgentsKind$inboundSchema = z.nativeEnum(exports.RunAgentPublicMessagePartAgentsKind);
|
|
369
364
|
/** @internal */
|
|
370
|
-
exports.
|
|
365
|
+
exports.RunAgentPublicMessagePartAgentsKind$outboundSchema = exports.RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
371
366
|
/**
|
|
372
367
|
* @internal
|
|
373
368
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
374
369
|
*/
|
|
375
|
-
var
|
|
376
|
-
(function (
|
|
377
|
-
/** @deprecated use `
|
|
378
|
-
|
|
379
|
-
/** @deprecated use `
|
|
380
|
-
|
|
381
|
-
})(
|
|
370
|
+
var RunAgentPublicMessagePartAgentsKind$;
|
|
371
|
+
(function (RunAgentPublicMessagePartAgentsKind$) {
|
|
372
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
|
|
373
|
+
RunAgentPublicMessagePartAgentsKind$.inboundSchema = exports.RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
374
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
|
|
375
|
+
RunAgentPublicMessagePartAgentsKind$.outboundSchema = exports.RunAgentPublicMessagePartAgentsKind$outboundSchema;
|
|
376
|
+
})(RunAgentPublicMessagePartAgentsKind$ || (exports.RunAgentPublicMessagePartAgentsKind$ = RunAgentPublicMessagePartAgentsKind$ = {}));
|
|
382
377
|
/** @internal */
|
|
383
|
-
exports.
|
|
378
|
+
exports.FileFileInURIFormat$inboundSchema = z.object({
|
|
384
379
|
uri: z.string(),
|
|
385
380
|
mimeType: z.string().optional(),
|
|
386
381
|
name: z.string().optional(),
|
|
387
382
|
});
|
|
388
383
|
/** @internal */
|
|
389
|
-
exports.
|
|
384
|
+
exports.FileFileInURIFormat$outboundSchema = z.object({
|
|
390
385
|
uri: z.string(),
|
|
391
386
|
mimeType: z.string().optional(),
|
|
392
387
|
name: z.string().optional(),
|
|
@@ -395,27 +390,27 @@ exports.FileInURIFormat$outboundSchema = z.object({
|
|
|
395
390
|
* @internal
|
|
396
391
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
397
392
|
*/
|
|
398
|
-
var
|
|
399
|
-
(function (
|
|
400
|
-
/** @deprecated use `
|
|
401
|
-
|
|
402
|
-
/** @deprecated use `
|
|
403
|
-
|
|
404
|
-
})(
|
|
405
|
-
function
|
|
406
|
-
return JSON.stringify(exports.
|
|
393
|
+
var FileFileInURIFormat$;
|
|
394
|
+
(function (FileFileInURIFormat$) {
|
|
395
|
+
/** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
|
|
396
|
+
FileFileInURIFormat$.inboundSchema = exports.FileFileInURIFormat$inboundSchema;
|
|
397
|
+
/** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
|
|
398
|
+
FileFileInURIFormat$.outboundSchema = exports.FileFileInURIFormat$outboundSchema;
|
|
399
|
+
})(FileFileInURIFormat$ || (exports.FileFileInURIFormat$ = FileFileInURIFormat$ = {}));
|
|
400
|
+
function fileFileInURIFormatToJSON(fileFileInURIFormat) {
|
|
401
|
+
return JSON.stringify(exports.FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat));
|
|
407
402
|
}
|
|
408
|
-
function
|
|
409
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
403
|
+
function fileFileInURIFormatFromJSON(jsonString) {
|
|
404
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileFileInURIFormat' from JSON`);
|
|
410
405
|
}
|
|
411
406
|
/** @internal */
|
|
412
|
-
exports.
|
|
407
|
+
exports.FileBinaryFormat$inboundSchema = z.object({
|
|
413
408
|
bytes: z.string(),
|
|
414
409
|
mimeType: z.string().optional(),
|
|
415
410
|
name: z.string().optional(),
|
|
416
411
|
});
|
|
417
412
|
/** @internal */
|
|
418
|
-
exports.
|
|
413
|
+
exports.FileBinaryFormat$outboundSchema = z.object({
|
|
419
414
|
bytes: z.string(),
|
|
420
415
|
mimeType: z.string().optional(),
|
|
421
416
|
name: z.string().optional(),
|
|
@@ -424,61 +419,61 @@ exports.BinaryFormat$outboundSchema = z.object({
|
|
|
424
419
|
* @internal
|
|
425
420
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
426
421
|
*/
|
|
427
|
-
var
|
|
428
|
-
(function (
|
|
429
|
-
/** @deprecated use `
|
|
430
|
-
|
|
431
|
-
/** @deprecated use `
|
|
432
|
-
|
|
433
|
-
})(
|
|
434
|
-
function
|
|
435
|
-
return JSON.stringify(exports.
|
|
422
|
+
var FileBinaryFormat$;
|
|
423
|
+
(function (FileBinaryFormat$) {
|
|
424
|
+
/** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
|
|
425
|
+
FileBinaryFormat$.inboundSchema = exports.FileBinaryFormat$inboundSchema;
|
|
426
|
+
/** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
|
|
427
|
+
FileBinaryFormat$.outboundSchema = exports.FileBinaryFormat$outboundSchema;
|
|
428
|
+
})(FileBinaryFormat$ || (exports.FileBinaryFormat$ = FileBinaryFormat$ = {}));
|
|
429
|
+
function fileBinaryFormatToJSON(fileBinaryFormat) {
|
|
430
|
+
return JSON.stringify(exports.FileBinaryFormat$outboundSchema.parse(fileBinaryFormat));
|
|
436
431
|
}
|
|
437
|
-
function
|
|
438
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
432
|
+
function fileBinaryFormatFromJSON(jsonString) {
|
|
433
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileBinaryFormat' from JSON`);
|
|
439
434
|
}
|
|
440
435
|
/** @internal */
|
|
441
|
-
exports.
|
|
442
|
-
z.lazy(() => exports.
|
|
443
|
-
z.lazy(() => exports.
|
|
436
|
+
exports.RunAgentPublicMessagePartFile$inboundSchema = z.union([
|
|
437
|
+
z.lazy(() => exports.FileBinaryFormat$inboundSchema),
|
|
438
|
+
z.lazy(() => exports.FileFileInURIFormat$inboundSchema),
|
|
444
439
|
]);
|
|
445
440
|
/** @internal */
|
|
446
|
-
exports.
|
|
447
|
-
z.lazy(() => exports.
|
|
448
|
-
z.lazy(() => exports.
|
|
441
|
+
exports.RunAgentPublicMessagePartFile$outboundSchema = z.union([
|
|
442
|
+
z.lazy(() => exports.FileBinaryFormat$outboundSchema),
|
|
443
|
+
z.lazy(() => exports.FileFileInURIFormat$outboundSchema),
|
|
449
444
|
]);
|
|
450
445
|
/**
|
|
451
446
|
* @internal
|
|
452
447
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
453
448
|
*/
|
|
454
|
-
var
|
|
455
|
-
(function (
|
|
456
|
-
/** @deprecated use `
|
|
457
|
-
|
|
458
|
-
/** @deprecated use `
|
|
459
|
-
|
|
460
|
-
})(
|
|
461
|
-
function
|
|
462
|
-
return JSON.stringify(exports.
|
|
449
|
+
var RunAgentPublicMessagePartFile$;
|
|
450
|
+
(function (RunAgentPublicMessagePartFile$) {
|
|
451
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
|
|
452
|
+
RunAgentPublicMessagePartFile$.inboundSchema = exports.RunAgentPublicMessagePartFile$inboundSchema;
|
|
453
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
|
|
454
|
+
RunAgentPublicMessagePartFile$.outboundSchema = exports.RunAgentPublicMessagePartFile$outboundSchema;
|
|
455
|
+
})(RunAgentPublicMessagePartFile$ || (exports.RunAgentPublicMessagePartFile$ = RunAgentPublicMessagePartFile$ = {}));
|
|
456
|
+
function runAgentPublicMessagePartFileToJSON(runAgentPublicMessagePartFile) {
|
|
457
|
+
return JSON.stringify(exports.RunAgentPublicMessagePartFile$outboundSchema.parse(runAgentPublicMessagePartFile));
|
|
463
458
|
}
|
|
464
|
-
function
|
|
465
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
459
|
+
function runAgentPublicMessagePartFileFromJSON(jsonString) {
|
|
460
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentPublicMessagePartFile' from JSON`);
|
|
466
461
|
}
|
|
467
462
|
/** @internal */
|
|
468
|
-
exports.
|
|
469
|
-
kind: exports.
|
|
463
|
+
exports.PublicMessagePartFilePart$inboundSchema = z.object({
|
|
464
|
+
kind: exports.RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
470
465
|
file: z.union([
|
|
471
|
-
z.lazy(() => exports.
|
|
472
|
-
z.lazy(() => exports.
|
|
466
|
+
z.lazy(() => exports.FileBinaryFormat$inboundSchema),
|
|
467
|
+
z.lazy(() => exports.FileFileInURIFormat$inboundSchema),
|
|
473
468
|
]),
|
|
474
469
|
metadata: z.record(z.any()).optional(),
|
|
475
470
|
});
|
|
476
471
|
/** @internal */
|
|
477
|
-
exports.
|
|
478
|
-
kind: exports.
|
|
472
|
+
exports.PublicMessagePartFilePart$outboundSchema = z.object({
|
|
473
|
+
kind: exports.RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
479
474
|
file: z.union([
|
|
480
|
-
z.lazy(() => exports.
|
|
481
|
-
z.lazy(() => exports.
|
|
475
|
+
z.lazy(() => exports.FileBinaryFormat$outboundSchema),
|
|
476
|
+
z.lazy(() => exports.FileFileInURIFormat$outboundSchema),
|
|
482
477
|
]),
|
|
483
478
|
metadata: z.record(z.any()).optional(),
|
|
484
479
|
});
|
|
@@ -486,135 +481,135 @@ exports.FilePart$outboundSchema = z.object({
|
|
|
486
481
|
* @internal
|
|
487
482
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
488
483
|
*/
|
|
489
|
-
var
|
|
490
|
-
(function (
|
|
491
|
-
/** @deprecated use `
|
|
492
|
-
|
|
493
|
-
/** @deprecated use `
|
|
494
|
-
|
|
495
|
-
})(
|
|
496
|
-
function
|
|
497
|
-
return JSON.stringify(exports.
|
|
484
|
+
var PublicMessagePartFilePart$;
|
|
485
|
+
(function (PublicMessagePartFilePart$) {
|
|
486
|
+
/** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
|
|
487
|
+
PublicMessagePartFilePart$.inboundSchema = exports.PublicMessagePartFilePart$inboundSchema;
|
|
488
|
+
/** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
|
|
489
|
+
PublicMessagePartFilePart$.outboundSchema = exports.PublicMessagePartFilePart$outboundSchema;
|
|
490
|
+
})(PublicMessagePartFilePart$ || (exports.PublicMessagePartFilePart$ = PublicMessagePartFilePart$ = {}));
|
|
491
|
+
function publicMessagePartFilePartToJSON(publicMessagePartFilePart) {
|
|
492
|
+
return JSON.stringify(exports.PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart));
|
|
498
493
|
}
|
|
499
|
-
function
|
|
500
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
494
|
+
function publicMessagePartFilePartFromJSON(jsonString) {
|
|
495
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePartFilePart' from JSON`);
|
|
501
496
|
}
|
|
502
497
|
/** @internal */
|
|
503
|
-
exports.
|
|
498
|
+
exports.RunAgentPublicMessagePartKind$inboundSchema = z.nativeEnum(exports.RunAgentPublicMessagePartKind);
|
|
504
499
|
/** @internal */
|
|
505
|
-
exports.
|
|
500
|
+
exports.RunAgentPublicMessagePartKind$outboundSchema = exports.RunAgentPublicMessagePartKind$inboundSchema;
|
|
506
501
|
/**
|
|
507
502
|
* @internal
|
|
508
503
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
509
504
|
*/
|
|
510
|
-
var
|
|
511
|
-
(function (
|
|
512
|
-
/** @deprecated use `
|
|
513
|
-
|
|
514
|
-
/** @deprecated use `
|
|
515
|
-
|
|
516
|
-
})(
|
|
505
|
+
var RunAgentPublicMessagePartKind$;
|
|
506
|
+
(function (RunAgentPublicMessagePartKind$) {
|
|
507
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
508
|
+
RunAgentPublicMessagePartKind$.inboundSchema = exports.RunAgentPublicMessagePartKind$inboundSchema;
|
|
509
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
510
|
+
RunAgentPublicMessagePartKind$.outboundSchema = exports.RunAgentPublicMessagePartKind$outboundSchema;
|
|
511
|
+
})(RunAgentPublicMessagePartKind$ || (exports.RunAgentPublicMessagePartKind$ = RunAgentPublicMessagePartKind$ = {}));
|
|
517
512
|
/** @internal */
|
|
518
|
-
exports.
|
|
519
|
-
kind: exports.
|
|
513
|
+
exports.PublicMessagePartTextPart$inboundSchema = z.object({
|
|
514
|
+
kind: exports.RunAgentPublicMessagePartKind$inboundSchema,
|
|
520
515
|
text: z.string(),
|
|
521
516
|
});
|
|
522
517
|
/** @internal */
|
|
523
|
-
exports.
|
|
524
|
-
kind: exports.
|
|
518
|
+
exports.PublicMessagePartTextPart$outboundSchema = z.object({
|
|
519
|
+
kind: exports.RunAgentPublicMessagePartKind$outboundSchema,
|
|
525
520
|
text: z.string(),
|
|
526
521
|
});
|
|
527
522
|
/**
|
|
528
523
|
* @internal
|
|
529
524
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
530
525
|
*/
|
|
531
|
-
var
|
|
532
|
-
(function (
|
|
533
|
-
/** @deprecated use `
|
|
534
|
-
|
|
535
|
-
/** @deprecated use `
|
|
536
|
-
|
|
537
|
-
})(
|
|
538
|
-
function
|
|
539
|
-
return JSON.stringify(exports.
|
|
526
|
+
var PublicMessagePartTextPart$;
|
|
527
|
+
(function (PublicMessagePartTextPart$) {
|
|
528
|
+
/** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
|
|
529
|
+
PublicMessagePartTextPart$.inboundSchema = exports.PublicMessagePartTextPart$inboundSchema;
|
|
530
|
+
/** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
|
|
531
|
+
PublicMessagePartTextPart$.outboundSchema = exports.PublicMessagePartTextPart$outboundSchema;
|
|
532
|
+
})(PublicMessagePartTextPart$ || (exports.PublicMessagePartTextPart$ = PublicMessagePartTextPart$ = {}));
|
|
533
|
+
function publicMessagePartTextPartToJSON(publicMessagePartTextPart) {
|
|
534
|
+
return JSON.stringify(exports.PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart));
|
|
540
535
|
}
|
|
541
|
-
function
|
|
542
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
536
|
+
function publicMessagePartTextPartFromJSON(jsonString) {
|
|
537
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicMessagePartTextPart' from JSON`);
|
|
543
538
|
}
|
|
544
539
|
/** @internal */
|
|
545
|
-
exports.
|
|
546
|
-
z.lazy(() => exports.
|
|
547
|
-
z.lazy(() => exports.
|
|
548
|
-
z.lazy(() => exports.
|
|
540
|
+
exports.RunAgentPublicMessagePart$inboundSchema = z.union([
|
|
541
|
+
z.lazy(() => exports.PublicMessagePartTextPart$inboundSchema),
|
|
542
|
+
z.lazy(() => exports.PublicMessagePartFilePart$inboundSchema),
|
|
543
|
+
z.lazy(() => exports.PublicMessagePartToolResultPart$inboundSchema),
|
|
549
544
|
]);
|
|
550
545
|
/** @internal */
|
|
551
|
-
exports.
|
|
552
|
-
z.lazy(() => exports.
|
|
553
|
-
z.lazy(() => exports.
|
|
554
|
-
z.lazy(() => exports.
|
|
546
|
+
exports.RunAgentPublicMessagePart$outboundSchema = z.union([
|
|
547
|
+
z.lazy(() => exports.PublicMessagePartTextPart$outboundSchema),
|
|
548
|
+
z.lazy(() => exports.PublicMessagePartFilePart$outboundSchema),
|
|
549
|
+
z.lazy(() => exports.PublicMessagePartToolResultPart$outboundSchema),
|
|
555
550
|
]);
|
|
556
551
|
/**
|
|
557
552
|
* @internal
|
|
558
553
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
559
554
|
*/
|
|
560
|
-
var
|
|
561
|
-
(function (
|
|
562
|
-
/** @deprecated use `
|
|
563
|
-
|
|
564
|
-
/** @deprecated use `
|
|
565
|
-
|
|
566
|
-
})(
|
|
567
|
-
function
|
|
568
|
-
return JSON.stringify(exports.
|
|
555
|
+
var RunAgentPublicMessagePart$;
|
|
556
|
+
(function (RunAgentPublicMessagePart$) {
|
|
557
|
+
/** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
|
|
558
|
+
RunAgentPublicMessagePart$.inboundSchema = exports.RunAgentPublicMessagePart$inboundSchema;
|
|
559
|
+
/** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
|
|
560
|
+
RunAgentPublicMessagePart$.outboundSchema = exports.RunAgentPublicMessagePart$outboundSchema;
|
|
561
|
+
})(RunAgentPublicMessagePart$ || (exports.RunAgentPublicMessagePart$ = RunAgentPublicMessagePart$ = {}));
|
|
562
|
+
function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart) {
|
|
563
|
+
return JSON.stringify(exports.RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart));
|
|
569
564
|
}
|
|
570
|
-
function
|
|
571
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
565
|
+
function runAgentPublicMessagePartFromJSON(jsonString) {
|
|
566
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentPublicMessagePart' from JSON`);
|
|
572
567
|
}
|
|
573
568
|
/** @internal */
|
|
574
|
-
exports.
|
|
569
|
+
exports.RunAgentMessage$inboundSchema = z.object({
|
|
575
570
|
messageId: z.string().optional(),
|
|
576
571
|
role: z.union([
|
|
577
|
-
exports.
|
|
578
|
-
exports.
|
|
572
|
+
exports.RunAgentRoleUserMessage$inboundSchema,
|
|
573
|
+
exports.RunAgentRoleToolMessage$inboundSchema,
|
|
579
574
|
]),
|
|
580
575
|
parts: z.array(z.union([
|
|
581
|
-
z.lazy(() => exports.
|
|
582
|
-
z.lazy(() => exports.
|
|
583
|
-
z.lazy(() => exports.
|
|
576
|
+
z.lazy(() => exports.PublicMessagePartTextPart$inboundSchema),
|
|
577
|
+
z.lazy(() => exports.PublicMessagePartFilePart$inboundSchema),
|
|
578
|
+
z.lazy(() => exports.PublicMessagePartToolResultPart$inboundSchema),
|
|
584
579
|
])),
|
|
585
580
|
});
|
|
586
581
|
/** @internal */
|
|
587
|
-
exports.
|
|
582
|
+
exports.RunAgentMessage$outboundSchema = z.object({
|
|
588
583
|
messageId: z.string().optional(),
|
|
589
584
|
role: z.union([
|
|
590
|
-
exports.
|
|
591
|
-
exports.
|
|
585
|
+
exports.RunAgentRoleUserMessage$outboundSchema,
|
|
586
|
+
exports.RunAgentRoleToolMessage$outboundSchema,
|
|
592
587
|
]),
|
|
593
588
|
parts: z.array(z.union([
|
|
594
|
-
z.lazy(() => exports.
|
|
595
|
-
z.lazy(() => exports.
|
|
596
|
-
z.lazy(() => exports.
|
|
589
|
+
z.lazy(() => exports.PublicMessagePartTextPart$outboundSchema),
|
|
590
|
+
z.lazy(() => exports.PublicMessagePartFilePart$outboundSchema),
|
|
591
|
+
z.lazy(() => exports.PublicMessagePartToolResultPart$outboundSchema),
|
|
597
592
|
])),
|
|
598
593
|
});
|
|
599
594
|
/**
|
|
600
595
|
* @internal
|
|
601
596
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
602
597
|
*/
|
|
603
|
-
var
|
|
604
|
-
(function (
|
|
605
|
-
/** @deprecated use `
|
|
606
|
-
|
|
607
|
-
/** @deprecated use `
|
|
608
|
-
|
|
609
|
-
})(
|
|
610
|
-
function
|
|
611
|
-
return JSON.stringify(exports.
|
|
598
|
+
var RunAgentMessage$;
|
|
599
|
+
(function (RunAgentMessage$) {
|
|
600
|
+
/** @deprecated use `RunAgentMessage$inboundSchema` instead. */
|
|
601
|
+
RunAgentMessage$.inboundSchema = exports.RunAgentMessage$inboundSchema;
|
|
602
|
+
/** @deprecated use `RunAgentMessage$outboundSchema` instead. */
|
|
603
|
+
RunAgentMessage$.outboundSchema = exports.RunAgentMessage$outboundSchema;
|
|
604
|
+
})(RunAgentMessage$ || (exports.RunAgentMessage$ = RunAgentMessage$ = {}));
|
|
605
|
+
function runAgentMessageToJSON(runAgentMessage) {
|
|
606
|
+
return JSON.stringify(exports.RunAgentMessage$outboundSchema.parse(runAgentMessage));
|
|
612
607
|
}
|
|
613
|
-
function
|
|
614
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
608
|
+
function runAgentMessageFromJSON(jsonString) {
|
|
609
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentMessage' from JSON`);
|
|
615
610
|
}
|
|
616
611
|
/** @internal */
|
|
617
|
-
exports.
|
|
612
|
+
exports.RunAgentContact$inboundSchema = z.object({
|
|
618
613
|
id: z.string(),
|
|
619
614
|
display_name: z.string().optional(),
|
|
620
615
|
email: z.string().optional(),
|
|
@@ -628,7 +623,7 @@ exports.Contact$inboundSchema = z.object({
|
|
|
628
623
|
});
|
|
629
624
|
});
|
|
630
625
|
/** @internal */
|
|
631
|
-
exports.
|
|
626
|
+
exports.RunAgentContact$outboundSchema = z.object({
|
|
632
627
|
id: z.string(),
|
|
633
628
|
displayName: z.string().optional(),
|
|
634
629
|
email: z.string().optional(),
|
|
@@ -645,18 +640,18 @@ exports.Contact$outboundSchema = z.object({
|
|
|
645
640
|
* @internal
|
|
646
641
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
647
642
|
*/
|
|
648
|
-
var
|
|
649
|
-
(function (
|
|
650
|
-
/** @deprecated use `
|
|
651
|
-
|
|
652
|
-
/** @deprecated use `
|
|
653
|
-
|
|
654
|
-
})(
|
|
655
|
-
function
|
|
656
|
-
return JSON.stringify(exports.
|
|
643
|
+
var RunAgentContact$;
|
|
644
|
+
(function (RunAgentContact$) {
|
|
645
|
+
/** @deprecated use `RunAgentContact$inboundSchema` instead. */
|
|
646
|
+
RunAgentContact$.inboundSchema = exports.RunAgentContact$inboundSchema;
|
|
647
|
+
/** @deprecated use `RunAgentContact$outboundSchema` instead. */
|
|
648
|
+
RunAgentContact$.outboundSchema = exports.RunAgentContact$outboundSchema;
|
|
649
|
+
})(RunAgentContact$ || (exports.RunAgentContact$ = RunAgentContact$ = {}));
|
|
650
|
+
function runAgentContactToJSON(runAgentContact) {
|
|
651
|
+
return JSON.stringify(exports.RunAgentContact$outboundSchema.parse(runAgentContact));
|
|
657
652
|
}
|
|
658
|
-
function
|
|
659
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
653
|
+
function runAgentContactFromJSON(jsonString) {
|
|
654
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentContact' from JSON`);
|
|
660
655
|
}
|
|
661
656
|
/** @internal */
|
|
662
657
|
exports.RunAgentThread$inboundSchema = z.object({
|
|
@@ -686,8 +681,7 @@ function runAgentThreadFromJSON(jsonString) {
|
|
|
686
681
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentThread$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentThread' from JSON`);
|
|
687
682
|
}
|
|
688
683
|
/** @internal */
|
|
689
|
-
exports.
|
|
690
|
-
.object({
|
|
684
|
+
exports.RunAgentMemory$inboundSchema = z.object({
|
|
691
685
|
entity_id: z.string(),
|
|
692
686
|
}).transform((v) => {
|
|
693
687
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -695,7 +689,7 @@ exports.Memory$inboundSchema = z
|
|
|
695
689
|
});
|
|
696
690
|
});
|
|
697
691
|
/** @internal */
|
|
698
|
-
exports.
|
|
692
|
+
exports.RunAgentMemory$outboundSchema = z.object({
|
|
699
693
|
entityId: z.string(),
|
|
700
694
|
}).transform((v) => {
|
|
701
695
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -706,158 +700,51 @@ exports.Memory$outboundSchema = z.object({
|
|
|
706
700
|
* @internal
|
|
707
701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
708
702
|
*/
|
|
709
|
-
var
|
|
710
|
-
(function (
|
|
711
|
-
/** @deprecated use `
|
|
712
|
-
|
|
713
|
-
/** @deprecated use `
|
|
714
|
-
|
|
715
|
-
})(
|
|
716
|
-
function
|
|
717
|
-
return JSON.stringify(exports.
|
|
718
|
-
}
|
|
719
|
-
function memoryFromJSON(jsonString) {
|
|
720
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Memory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Memory' from JSON`);
|
|
721
|
-
}
|
|
722
|
-
/** @internal */
|
|
723
|
-
exports.RunAgentKnowledgeBaseConfigurationType$inboundSchema = z.nativeEnum(exports.RunAgentKnowledgeBaseConfigurationType);
|
|
724
|
-
/** @internal */
|
|
725
|
-
exports.RunAgentKnowledgeBaseConfigurationType$outboundSchema = exports.RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
726
|
-
/**
|
|
727
|
-
* @internal
|
|
728
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
729
|
-
*/
|
|
730
|
-
var RunAgentKnowledgeBaseConfigurationType$;
|
|
731
|
-
(function (RunAgentKnowledgeBaseConfigurationType$) {
|
|
732
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
733
|
-
RunAgentKnowledgeBaseConfigurationType$.inboundSchema = exports.RunAgentKnowledgeBaseConfigurationType$inboundSchema;
|
|
734
|
-
/** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
735
|
-
RunAgentKnowledgeBaseConfigurationType$.outboundSchema = exports.RunAgentKnowledgeBaseConfigurationType$outboundSchema;
|
|
736
|
-
})(RunAgentKnowledgeBaseConfigurationType$ || (exports.RunAgentKnowledgeBaseConfigurationType$ = RunAgentKnowledgeBaseConfigurationType$ = {}));
|
|
737
|
-
/** @internal */
|
|
738
|
-
exports.KnowledgeBaseStaticQuery$inboundSchema = z.object({
|
|
739
|
-
type: exports.RunAgentKnowledgeBaseConfigurationType$inboundSchema,
|
|
740
|
-
query: z.string(),
|
|
741
|
-
});
|
|
742
|
-
/** @internal */
|
|
743
|
-
exports.KnowledgeBaseStaticQuery$outboundSchema = z.object({
|
|
744
|
-
type: exports.RunAgentKnowledgeBaseConfigurationType$outboundSchema,
|
|
745
|
-
query: z.string(),
|
|
746
|
-
});
|
|
747
|
-
/**
|
|
748
|
-
* @internal
|
|
749
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
750
|
-
*/
|
|
751
|
-
var KnowledgeBaseStaticQuery$;
|
|
752
|
-
(function (KnowledgeBaseStaticQuery$) {
|
|
753
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
|
|
754
|
-
KnowledgeBaseStaticQuery$.inboundSchema = exports.KnowledgeBaseStaticQuery$inboundSchema;
|
|
755
|
-
/** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
|
|
756
|
-
KnowledgeBaseStaticQuery$.outboundSchema = exports.KnowledgeBaseStaticQuery$outboundSchema;
|
|
757
|
-
})(KnowledgeBaseStaticQuery$ || (exports.KnowledgeBaseStaticQuery$ = KnowledgeBaseStaticQuery$ = {}));
|
|
758
|
-
function knowledgeBaseStaticQueryToJSON(knowledgeBaseStaticQuery) {
|
|
759
|
-
return JSON.stringify(exports.KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery));
|
|
760
|
-
}
|
|
761
|
-
function knowledgeBaseStaticQueryFromJSON(jsonString) {
|
|
762
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'KnowledgeBaseStaticQuery' from JSON`);
|
|
763
|
-
}
|
|
764
|
-
/** @internal */
|
|
765
|
-
exports.KnowledgeBaseConfigurationType$inboundSchema = z.nativeEnum(exports.KnowledgeBaseConfigurationType);
|
|
766
|
-
/** @internal */
|
|
767
|
-
exports.KnowledgeBaseConfigurationType$outboundSchema = exports.KnowledgeBaseConfigurationType$inboundSchema;
|
|
768
|
-
/**
|
|
769
|
-
* @internal
|
|
770
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
771
|
-
*/
|
|
772
|
-
var KnowledgeBaseConfigurationType$;
|
|
773
|
-
(function (KnowledgeBaseConfigurationType$) {
|
|
774
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
|
|
775
|
-
KnowledgeBaseConfigurationType$.inboundSchema = exports.KnowledgeBaseConfigurationType$inboundSchema;
|
|
776
|
-
/** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
|
|
777
|
-
KnowledgeBaseConfigurationType$.outboundSchema = exports.KnowledgeBaseConfigurationType$outboundSchema;
|
|
778
|
-
})(KnowledgeBaseConfigurationType$ || (exports.KnowledgeBaseConfigurationType$ = KnowledgeBaseConfigurationType$ = {}));
|
|
779
|
-
/** @internal */
|
|
780
|
-
exports.KnowledgeBaseLastUserMessage$inboundSchema = z.object({
|
|
781
|
-
type: exports.KnowledgeBaseConfigurationType$inboundSchema,
|
|
782
|
-
});
|
|
783
|
-
/** @internal */
|
|
784
|
-
exports.KnowledgeBaseLastUserMessage$outboundSchema = z.object({
|
|
785
|
-
type: exports.KnowledgeBaseConfigurationType$outboundSchema,
|
|
786
|
-
});
|
|
787
|
-
/**
|
|
788
|
-
* @internal
|
|
789
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
790
|
-
*/
|
|
791
|
-
var KnowledgeBaseLastUserMessage$;
|
|
792
|
-
(function (KnowledgeBaseLastUserMessage$) {
|
|
793
|
-
/** @deprecated use `KnowledgeBaseLastUserMessage$inboundSchema` instead. */
|
|
794
|
-
KnowledgeBaseLastUserMessage$.inboundSchema = exports.KnowledgeBaseLastUserMessage$inboundSchema;
|
|
795
|
-
/** @deprecated use `KnowledgeBaseLastUserMessage$outboundSchema` instead. */
|
|
796
|
-
KnowledgeBaseLastUserMessage$.outboundSchema = exports.KnowledgeBaseLastUserMessage$outboundSchema;
|
|
797
|
-
})(KnowledgeBaseLastUserMessage$ || (exports.KnowledgeBaseLastUserMessage$ = KnowledgeBaseLastUserMessage$ = {}));
|
|
798
|
-
function knowledgeBaseLastUserMessageToJSON(knowledgeBaseLastUserMessage) {
|
|
799
|
-
return JSON.stringify(exports.KnowledgeBaseLastUserMessage$outboundSchema.parse(knowledgeBaseLastUserMessage));
|
|
800
|
-
}
|
|
801
|
-
function knowledgeBaseLastUserMessageFromJSON(jsonString) {
|
|
802
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.KnowledgeBaseLastUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'KnowledgeBaseLastUserMessage' from JSON`);
|
|
803
|
-
}
|
|
804
|
-
/** @internal */
|
|
805
|
-
exports.KnowledgeBaseConfiguration$inboundSchema = z.union([
|
|
806
|
-
z.lazy(() => exports.KnowledgeBaseStaticQuery$inboundSchema),
|
|
807
|
-
z.lazy(() => exports.KnowledgeBaseLastUserMessage$inboundSchema),
|
|
808
|
-
]);
|
|
809
|
-
/** @internal */
|
|
810
|
-
exports.KnowledgeBaseConfiguration$outboundSchema = z.union([
|
|
811
|
-
z.lazy(() => exports.KnowledgeBaseStaticQuery$outboundSchema),
|
|
812
|
-
z.lazy(() => exports.KnowledgeBaseLastUserMessage$outboundSchema),
|
|
813
|
-
]);
|
|
814
|
-
/**
|
|
815
|
-
* @internal
|
|
816
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
817
|
-
*/
|
|
818
|
-
var KnowledgeBaseConfiguration$;
|
|
819
|
-
(function (KnowledgeBaseConfiguration$) {
|
|
820
|
-
/** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
|
|
821
|
-
KnowledgeBaseConfiguration$.inboundSchema = exports.KnowledgeBaseConfiguration$inboundSchema;
|
|
822
|
-
/** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
|
|
823
|
-
KnowledgeBaseConfiguration$.outboundSchema = exports.KnowledgeBaseConfiguration$outboundSchema;
|
|
824
|
-
})(KnowledgeBaseConfiguration$ || (exports.KnowledgeBaseConfiguration$ = KnowledgeBaseConfiguration$ = {}));
|
|
825
|
-
function knowledgeBaseConfigurationToJSON(knowledgeBaseConfiguration) {
|
|
826
|
-
return JSON.stringify(exports.KnowledgeBaseConfiguration$outboundSchema.parse(knowledgeBaseConfiguration));
|
|
703
|
+
var RunAgentMemory$;
|
|
704
|
+
(function (RunAgentMemory$) {
|
|
705
|
+
/** @deprecated use `RunAgentMemory$inboundSchema` instead. */
|
|
706
|
+
RunAgentMemory$.inboundSchema = exports.RunAgentMemory$inboundSchema;
|
|
707
|
+
/** @deprecated use `RunAgentMemory$outboundSchema` instead. */
|
|
708
|
+
RunAgentMemory$.outboundSchema = exports.RunAgentMemory$outboundSchema;
|
|
709
|
+
})(RunAgentMemory$ || (exports.RunAgentMemory$ = RunAgentMemory$ = {}));
|
|
710
|
+
function runAgentMemoryToJSON(runAgentMemory) {
|
|
711
|
+
return JSON.stringify(exports.RunAgentMemory$outboundSchema.parse(runAgentMemory));
|
|
827
712
|
}
|
|
828
|
-
function
|
|
829
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
713
|
+
function runAgentMemoryFromJSON(jsonString) {
|
|
714
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentMemory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentMemory' from JSON`);
|
|
830
715
|
}
|
|
831
716
|
/** @internal */
|
|
832
|
-
exports.
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
717
|
+
exports.RunAgentKnowledgeBases$inboundSchema = z.object({
|
|
718
|
+
knowledge_id: z.string(),
|
|
719
|
+
}).transform((v) => {
|
|
720
|
+
return (0, primitives_js_1.remap)(v, {
|
|
721
|
+
"knowledge_id": "knowledgeId",
|
|
722
|
+
});
|
|
837
723
|
});
|
|
838
724
|
/** @internal */
|
|
839
|
-
exports.
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
725
|
+
exports.RunAgentKnowledgeBases$outboundSchema = z.object({
|
|
726
|
+
knowledgeId: z.string(),
|
|
727
|
+
}).transform((v) => {
|
|
728
|
+
return (0, primitives_js_1.remap)(v, {
|
|
729
|
+
knowledgeId: "knowledge_id",
|
|
730
|
+
});
|
|
844
731
|
});
|
|
845
732
|
/**
|
|
846
733
|
* @internal
|
|
847
734
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
848
735
|
*/
|
|
849
|
-
var
|
|
850
|
-
(function (
|
|
851
|
-
/** @deprecated use `
|
|
852
|
-
|
|
853
|
-
/** @deprecated use `
|
|
854
|
-
|
|
855
|
-
})(
|
|
856
|
-
function
|
|
857
|
-
return JSON.stringify(exports.
|
|
736
|
+
var RunAgentKnowledgeBases$;
|
|
737
|
+
(function (RunAgentKnowledgeBases$) {
|
|
738
|
+
/** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
|
|
739
|
+
RunAgentKnowledgeBases$.inboundSchema = exports.RunAgentKnowledgeBases$inboundSchema;
|
|
740
|
+
/** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
|
|
741
|
+
RunAgentKnowledgeBases$.outboundSchema = exports.RunAgentKnowledgeBases$outboundSchema;
|
|
742
|
+
})(RunAgentKnowledgeBases$ || (exports.RunAgentKnowledgeBases$ = RunAgentKnowledgeBases$ = {}));
|
|
743
|
+
function runAgentKnowledgeBasesToJSON(runAgentKnowledgeBases) {
|
|
744
|
+
return JSON.stringify(exports.RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases));
|
|
858
745
|
}
|
|
859
|
-
function
|
|
860
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
746
|
+
function runAgentKnowledgeBasesFromJSON(jsonString) {
|
|
747
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentKnowledgeBases' from JSON`);
|
|
861
748
|
}
|
|
862
749
|
/** @internal */
|
|
863
750
|
exports.TeamOfAgents$inboundSchema = z.object({
|
|
@@ -887,29 +774,29 @@ function teamOfAgentsFromJSON(jsonString) {
|
|
|
887
774
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TeamOfAgents' from JSON`);
|
|
888
775
|
}
|
|
889
776
|
/** @internal */
|
|
890
|
-
exports.
|
|
777
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type);
|
|
891
778
|
/** @internal */
|
|
892
|
-
exports.
|
|
779
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
893
780
|
/**
|
|
894
781
|
* @internal
|
|
895
782
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
896
783
|
*/
|
|
897
|
-
var
|
|
898
|
-
(function (
|
|
899
|
-
/** @deprecated use `
|
|
900
|
-
|
|
901
|
-
/** @deprecated use `
|
|
902
|
-
|
|
903
|
-
})(
|
|
784
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$;
|
|
785
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$) {
|
|
786
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
|
|
787
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
788
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
|
|
789
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
|
|
790
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ = {}));
|
|
904
791
|
/** @internal */
|
|
905
|
-
exports.
|
|
792
|
+
exports.AgentToolInputRunFunction$inboundSchema = z.object({
|
|
906
793
|
name: z.string(),
|
|
907
794
|
description: z.string().optional(),
|
|
908
795
|
strict: z.boolean().optional(),
|
|
909
796
|
parameters: z.record(z.any()).optional(),
|
|
910
797
|
});
|
|
911
798
|
/** @internal */
|
|
912
|
-
exports.
|
|
799
|
+
exports.AgentToolInputRunFunction$outboundSchema = z.object({
|
|
913
800
|
name: z.string(),
|
|
914
801
|
description: z.string().optional(),
|
|
915
802
|
strict: z.boolean().optional(),
|
|
@@ -919,28 +806,28 @@ exports.RunAgentRequestToolFunction$outboundSchema = z.object({
|
|
|
919
806
|
* @internal
|
|
920
807
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
921
808
|
*/
|
|
922
|
-
var
|
|
923
|
-
(function (
|
|
924
|
-
/** @deprecated use `
|
|
925
|
-
|
|
926
|
-
/** @deprecated use `
|
|
927
|
-
|
|
928
|
-
})(
|
|
929
|
-
function
|
|
930
|
-
return JSON.stringify(exports.
|
|
809
|
+
var AgentToolInputRunFunction$;
|
|
810
|
+
(function (AgentToolInputRunFunction$) {
|
|
811
|
+
/** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
|
|
812
|
+
AgentToolInputRunFunction$.inboundSchema = exports.AgentToolInputRunFunction$inboundSchema;
|
|
813
|
+
/** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
|
|
814
|
+
AgentToolInputRunFunction$.outboundSchema = exports.AgentToolInputRunFunction$outboundSchema;
|
|
815
|
+
})(AgentToolInputRunFunction$ || (exports.AgentToolInputRunFunction$ = AgentToolInputRunFunction$ = {}));
|
|
816
|
+
function agentToolInputRunFunctionToJSON(agentToolInputRunFunction) {
|
|
817
|
+
return JSON.stringify(exports.AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction));
|
|
931
818
|
}
|
|
932
|
-
function
|
|
933
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
819
|
+
function agentToolInputRunFunctionFromJSON(jsonString) {
|
|
820
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunFunction' from JSON`);
|
|
934
821
|
}
|
|
935
822
|
/** @internal */
|
|
936
|
-
exports.
|
|
937
|
-
type: exports.
|
|
938
|
-
_id: z.string().optional(),
|
|
823
|
+
exports.FunctionToolRun$inboundSchema = z.object({
|
|
824
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
|
|
939
825
|
key: z.string(),
|
|
826
|
+
_id: z.string().optional(),
|
|
940
827
|
display_name: z.string().optional(),
|
|
941
828
|
description: z.string().optional(),
|
|
829
|
+
function: z.lazy(() => exports.AgentToolInputRunFunction$inboundSchema),
|
|
942
830
|
requires_approval: z.boolean().default(false),
|
|
943
|
-
function: z.lazy(() => exports.RunAgentRequestToolFunction$inboundSchema),
|
|
944
831
|
}).transform((v) => {
|
|
945
832
|
return (0, primitives_js_1.remap)(v, {
|
|
946
833
|
"_id": "id",
|
|
@@ -949,14 +836,14 @@ exports.FunctionTool$inboundSchema = z.object({
|
|
|
949
836
|
});
|
|
950
837
|
});
|
|
951
838
|
/** @internal */
|
|
952
|
-
exports.
|
|
953
|
-
type: exports.
|
|
954
|
-
id: z.string().optional(),
|
|
839
|
+
exports.FunctionToolRun$outboundSchema = z.object({
|
|
840
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
|
|
955
841
|
key: z.string(),
|
|
842
|
+
id: z.string().optional(),
|
|
956
843
|
displayName: z.string().optional(),
|
|
957
844
|
description: z.string().optional(),
|
|
845
|
+
function: z.lazy(() => exports.AgentToolInputRunFunction$outboundSchema),
|
|
958
846
|
requiresApproval: z.boolean().default(false),
|
|
959
|
-
function: z.lazy(() => exports.RunAgentRequestToolFunction$outboundSchema),
|
|
960
847
|
}).transform((v) => {
|
|
961
848
|
return (0, primitives_js_1.remap)(v, {
|
|
962
849
|
id: "_id",
|
|
@@ -968,34 +855,34 @@ exports.FunctionTool$outboundSchema = z.object({
|
|
|
968
855
|
* @internal
|
|
969
856
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
970
857
|
*/
|
|
971
|
-
var
|
|
972
|
-
(function (
|
|
973
|
-
/** @deprecated use `
|
|
974
|
-
|
|
975
|
-
/** @deprecated use `
|
|
976
|
-
|
|
977
|
-
})(
|
|
978
|
-
function
|
|
979
|
-
return JSON.stringify(exports.
|
|
858
|
+
var FunctionToolRun$;
|
|
859
|
+
(function (FunctionToolRun$) {
|
|
860
|
+
/** @deprecated use `FunctionToolRun$inboundSchema` instead. */
|
|
861
|
+
FunctionToolRun$.inboundSchema = exports.FunctionToolRun$inboundSchema;
|
|
862
|
+
/** @deprecated use `FunctionToolRun$outboundSchema` instead. */
|
|
863
|
+
FunctionToolRun$.outboundSchema = exports.FunctionToolRun$outboundSchema;
|
|
864
|
+
})(FunctionToolRun$ || (exports.FunctionToolRun$ = FunctionToolRun$ = {}));
|
|
865
|
+
function functionToolRunToJSON(functionToolRun) {
|
|
866
|
+
return JSON.stringify(exports.FunctionToolRun$outboundSchema.parse(functionToolRun));
|
|
980
867
|
}
|
|
981
|
-
function
|
|
982
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
868
|
+
function functionToolRunFromJSON(jsonString) {
|
|
869
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionToolRun$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionToolRun' from JSON`);
|
|
983
870
|
}
|
|
984
871
|
/** @internal */
|
|
985
|
-
exports.
|
|
872
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type);
|
|
986
873
|
/** @internal */
|
|
987
|
-
exports.
|
|
874
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
988
875
|
/**
|
|
989
876
|
* @internal
|
|
990
877
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
991
878
|
*/
|
|
992
|
-
var
|
|
993
|
-
(function (
|
|
994
|
-
/** @deprecated use `
|
|
995
|
-
|
|
996
|
-
/** @deprecated use `
|
|
997
|
-
|
|
998
|
-
})(
|
|
879
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$;
|
|
880
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$) {
|
|
881
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
|
|
882
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
883
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
|
|
884
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
|
|
885
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ = {}));
|
|
999
886
|
/** @internal */
|
|
1000
887
|
exports.Language$inboundSchema = z
|
|
1001
888
|
.nativeEnum(exports.Language);
|
|
@@ -1042,36 +929,36 @@ function codeToolFromJSON(jsonString) {
|
|
|
1042
929
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CodeTool' from JSON`);
|
|
1043
930
|
}
|
|
1044
931
|
/** @internal */
|
|
1045
|
-
exports.
|
|
932
|
+
exports.CodeToolRun$inboundSchema = z.object({
|
|
933
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
1046
934
|
key: z.string(),
|
|
1047
|
-
|
|
935
|
+
_id: z.string().optional(),
|
|
936
|
+
display_name: z.string().optional(),
|
|
1048
937
|
description: z.string(),
|
|
1049
|
-
type: exports.RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
|
|
1050
938
|
code_tool: z.lazy(() => exports.CodeTool$inboundSchema),
|
|
1051
|
-
_id: z.string().optional(),
|
|
1052
939
|
requires_approval: z.boolean().default(false),
|
|
1053
940
|
}).transform((v) => {
|
|
1054
941
|
return (0, primitives_js_1.remap)(v, {
|
|
942
|
+
"_id": "id",
|
|
1055
943
|
"display_name": "displayName",
|
|
1056
944
|
"code_tool": "codeTool",
|
|
1057
|
-
"_id": "id",
|
|
1058
945
|
"requires_approval": "requiresApproval",
|
|
1059
946
|
});
|
|
1060
947
|
});
|
|
1061
948
|
/** @internal */
|
|
1062
|
-
exports.
|
|
949
|
+
exports.CodeToolRun$outboundSchema = z.object({
|
|
950
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
1063
951
|
key: z.string(),
|
|
1064
|
-
|
|
952
|
+
id: z.string().optional(),
|
|
953
|
+
displayName: z.string().optional(),
|
|
1065
954
|
description: z.string(),
|
|
1066
|
-
type: exports.RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
|
|
1067
955
|
codeTool: z.lazy(() => exports.CodeTool$outboundSchema),
|
|
1068
|
-
id: z.string().optional(),
|
|
1069
956
|
requiresApproval: z.boolean().default(false),
|
|
1070
957
|
}).transform((v) => {
|
|
1071
958
|
return (0, primitives_js_1.remap)(v, {
|
|
959
|
+
id: "_id",
|
|
1072
960
|
displayName: "display_name",
|
|
1073
961
|
codeTool: "code_tool",
|
|
1074
|
-
id: "_id",
|
|
1075
962
|
requiresApproval: "requires_approval",
|
|
1076
963
|
});
|
|
1077
964
|
});
|
|
@@ -1079,34 +966,34 @@ exports.CodeExecutionTool$outboundSchema = z.object({
|
|
|
1079
966
|
* @internal
|
|
1080
967
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1081
968
|
*/
|
|
1082
|
-
var
|
|
1083
|
-
(function (
|
|
1084
|
-
/** @deprecated use `
|
|
1085
|
-
|
|
1086
|
-
/** @deprecated use `
|
|
1087
|
-
|
|
1088
|
-
})(
|
|
1089
|
-
function
|
|
1090
|
-
return JSON.stringify(exports.
|
|
969
|
+
var CodeToolRun$;
|
|
970
|
+
(function (CodeToolRun$) {
|
|
971
|
+
/** @deprecated use `CodeToolRun$inboundSchema` instead. */
|
|
972
|
+
CodeToolRun$.inboundSchema = exports.CodeToolRun$inboundSchema;
|
|
973
|
+
/** @deprecated use `CodeToolRun$outboundSchema` instead. */
|
|
974
|
+
CodeToolRun$.outboundSchema = exports.CodeToolRun$outboundSchema;
|
|
975
|
+
})(CodeToolRun$ || (exports.CodeToolRun$ = CodeToolRun$ = {}));
|
|
976
|
+
function codeToolRunToJSON(codeToolRun) {
|
|
977
|
+
return JSON.stringify(exports.CodeToolRun$outboundSchema.parse(codeToolRun));
|
|
1091
978
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
979
|
+
function codeToolRunFromJSON(jsonString) {
|
|
980
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CodeToolRun$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CodeToolRun' from JSON`);
|
|
1094
981
|
}
|
|
1095
982
|
/** @internal */
|
|
1096
|
-
exports.
|
|
983
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type);
|
|
1097
984
|
/** @internal */
|
|
1098
|
-
exports.
|
|
985
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
1099
986
|
/**
|
|
1100
987
|
* @internal
|
|
1101
988
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1102
989
|
*/
|
|
1103
|
-
var
|
|
1104
|
-
(function (
|
|
1105
|
-
/** @deprecated use `
|
|
1106
|
-
|
|
1107
|
-
/** @deprecated use `
|
|
1108
|
-
|
|
1109
|
-
})(
|
|
990
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$;
|
|
991
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$) {
|
|
992
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
|
|
993
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
994
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
|
|
995
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
|
|
996
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ = {}));
|
|
1110
997
|
/** @internal */
|
|
1111
998
|
exports.Method$inboundSchema = z
|
|
1112
999
|
.nativeEnum(exports.Method);
|
|
@@ -1155,20 +1042,20 @@ function blueprintFromJSON(jsonString) {
|
|
|
1155
1042
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Blueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Blueprint' from JSON`);
|
|
1156
1043
|
}
|
|
1157
1044
|
/** @internal */
|
|
1158
|
-
exports.
|
|
1045
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType);
|
|
1159
1046
|
/** @internal */
|
|
1160
|
-
exports.
|
|
1047
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
1161
1048
|
/**
|
|
1162
1049
|
* @internal
|
|
1163
1050
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1164
1051
|
*/
|
|
1165
|
-
var
|
|
1166
|
-
(function (
|
|
1167
|
-
/** @deprecated use `
|
|
1168
|
-
|
|
1169
|
-
/** @deprecated use `
|
|
1170
|
-
|
|
1171
|
-
})(
|
|
1052
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$;
|
|
1053
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$) {
|
|
1054
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
|
|
1055
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
|
|
1056
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
|
|
1057
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
|
|
1058
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ = {}));
|
|
1172
1059
|
/** @internal */
|
|
1173
1060
|
exports.DefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
|
|
1174
1061
|
/** @internal */
|
|
@@ -1192,7 +1079,7 @@ function defaultValueFromJSON(jsonString) {
|
|
|
1192
1079
|
}
|
|
1193
1080
|
/** @internal */
|
|
1194
1081
|
exports.Arguments$inboundSchema = z.object({
|
|
1195
|
-
type: exports.
|
|
1082
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
|
|
1196
1083
|
description: z.string(),
|
|
1197
1084
|
send_to_model: z.boolean().default(true),
|
|
1198
1085
|
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1204,7 +1091,7 @@ exports.Arguments$inboundSchema = z.object({
|
|
|
1204
1091
|
});
|
|
1205
1092
|
/** @internal */
|
|
1206
1093
|
exports.Arguments$outboundSchema = z.object({
|
|
1207
|
-
type: exports.
|
|
1094
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
|
|
1208
1095
|
description: z.string(),
|
|
1209
1096
|
sendToModel: z.boolean().default(true),
|
|
1210
1097
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -1260,12 +1147,12 @@ function httpFromJSON(jsonString) {
|
|
|
1260
1147
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Http$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Http' from JSON`);
|
|
1261
1148
|
}
|
|
1262
1149
|
/** @internal */
|
|
1263
|
-
exports.
|
|
1264
|
-
|
|
1150
|
+
exports.HTTPToolRun$inboundSchema = z.object({
|
|
1151
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
1265
1152
|
key: z.string(),
|
|
1266
|
-
|
|
1153
|
+
_id: z.string().optional(),
|
|
1154
|
+
display_name: z.string().optional(),
|
|
1267
1155
|
description: z.string(),
|
|
1268
|
-
type: exports.RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
|
|
1269
1156
|
http: z.lazy(() => exports.Http$inboundSchema),
|
|
1270
1157
|
requires_approval: z.boolean().default(false),
|
|
1271
1158
|
}).transform((v) => {
|
|
@@ -1276,12 +1163,12 @@ exports.HTTPTool$inboundSchema = z.object({
|
|
|
1276
1163
|
});
|
|
1277
1164
|
});
|
|
1278
1165
|
/** @internal */
|
|
1279
|
-
exports.
|
|
1280
|
-
|
|
1166
|
+
exports.HTTPToolRun$outboundSchema = z.object({
|
|
1167
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
1281
1168
|
key: z.string(),
|
|
1282
|
-
|
|
1169
|
+
id: z.string().optional(),
|
|
1170
|
+
displayName: z.string().optional(),
|
|
1283
1171
|
description: z.string(),
|
|
1284
|
-
type: exports.RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
1285
1172
|
http: z.lazy(() => exports.Http$outboundSchema),
|
|
1286
1173
|
requiresApproval: z.boolean().default(false),
|
|
1287
1174
|
}).transform((v) => {
|
|
@@ -1295,37 +1182,37 @@ exports.HTTPTool$outboundSchema = z.object({
|
|
|
1295
1182
|
* @internal
|
|
1296
1183
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1297
1184
|
*/
|
|
1298
|
-
var
|
|
1299
|
-
(function (
|
|
1300
|
-
/** @deprecated use `
|
|
1301
|
-
|
|
1302
|
-
/** @deprecated use `
|
|
1303
|
-
|
|
1304
|
-
})(
|
|
1305
|
-
function
|
|
1306
|
-
return JSON.stringify(exports.
|
|
1185
|
+
var HTTPToolRun$;
|
|
1186
|
+
(function (HTTPToolRun$) {
|
|
1187
|
+
/** @deprecated use `HTTPToolRun$inboundSchema` instead. */
|
|
1188
|
+
HTTPToolRun$.inboundSchema = exports.HTTPToolRun$inboundSchema;
|
|
1189
|
+
/** @deprecated use `HTTPToolRun$outboundSchema` instead. */
|
|
1190
|
+
HTTPToolRun$.outboundSchema = exports.HTTPToolRun$outboundSchema;
|
|
1191
|
+
})(HTTPToolRun$ || (exports.HTTPToolRun$ = HTTPToolRun$ = {}));
|
|
1192
|
+
function httpToolRunToJSON(httpToolRun) {
|
|
1193
|
+
return JSON.stringify(exports.HTTPToolRun$outboundSchema.parse(httpToolRun));
|
|
1307
1194
|
}
|
|
1308
|
-
function
|
|
1309
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1195
|
+
function httpToolRunFromJSON(jsonString) {
|
|
1196
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HTTPToolRun$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HTTPToolRun' from JSON`);
|
|
1310
1197
|
}
|
|
1311
1198
|
/** @internal */
|
|
1312
|
-
exports.
|
|
1199
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type);
|
|
1313
1200
|
/** @internal */
|
|
1314
|
-
exports.
|
|
1201
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
1315
1202
|
/**
|
|
1316
1203
|
* @internal
|
|
1317
1204
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1318
1205
|
*/
|
|
1319
|
-
var
|
|
1320
|
-
(function (
|
|
1321
|
-
/** @deprecated use `
|
|
1322
|
-
|
|
1323
|
-
/** @deprecated use `
|
|
1324
|
-
|
|
1325
|
-
})(
|
|
1206
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$;
|
|
1207
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$) {
|
|
1208
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
|
|
1209
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
1210
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
|
|
1211
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
|
|
1212
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ = {}));
|
|
1326
1213
|
/** @internal */
|
|
1327
|
-
exports.
|
|
1328
|
-
type: exports.
|
|
1214
|
+
exports.AgentToolInputRunCurrentDateTool$inboundSchema = z.object({
|
|
1215
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
1329
1216
|
requires_approval: z.boolean().default(false),
|
|
1330
1217
|
}).transform((v) => {
|
|
1331
1218
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1333,8 +1220,8 @@ exports.CurrentDateTool$inboundSchema = z.object({
|
|
|
1333
1220
|
});
|
|
1334
1221
|
});
|
|
1335
1222
|
/** @internal */
|
|
1336
|
-
exports.
|
|
1337
|
-
type: exports.
|
|
1223
|
+
exports.AgentToolInputRunCurrentDateTool$outboundSchema = z.object({
|
|
1224
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
1338
1225
|
requiresApproval: z.boolean().default(false),
|
|
1339
1226
|
}).transform((v) => {
|
|
1340
1227
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1345,37 +1232,37 @@ exports.CurrentDateTool$outboundSchema = z.object({
|
|
|
1345
1232
|
* @internal
|
|
1346
1233
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1347
1234
|
*/
|
|
1348
|
-
var
|
|
1349
|
-
(function (
|
|
1350
|
-
/** @deprecated use `
|
|
1351
|
-
|
|
1352
|
-
/** @deprecated use `
|
|
1353
|
-
|
|
1354
|
-
})(
|
|
1355
|
-
function
|
|
1356
|
-
return JSON.stringify(exports.
|
|
1235
|
+
var AgentToolInputRunCurrentDateTool$;
|
|
1236
|
+
(function (AgentToolInputRunCurrentDateTool$) {
|
|
1237
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
|
|
1238
|
+
AgentToolInputRunCurrentDateTool$.inboundSchema = exports.AgentToolInputRunCurrentDateTool$inboundSchema;
|
|
1239
|
+
/** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
|
|
1240
|
+
AgentToolInputRunCurrentDateTool$.outboundSchema = exports.AgentToolInputRunCurrentDateTool$outboundSchema;
|
|
1241
|
+
})(AgentToolInputRunCurrentDateTool$ || (exports.AgentToolInputRunCurrentDateTool$ = AgentToolInputRunCurrentDateTool$ = {}));
|
|
1242
|
+
function agentToolInputRunCurrentDateToolToJSON(agentToolInputRunCurrentDateTool) {
|
|
1243
|
+
return JSON.stringify(exports.AgentToolInputRunCurrentDateTool$outboundSchema.parse(agentToolInputRunCurrentDateTool));
|
|
1357
1244
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1245
|
+
function agentToolInputRunCurrentDateToolFromJSON(jsonString) {
|
|
1246
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`);
|
|
1360
1247
|
}
|
|
1361
1248
|
/** @internal */
|
|
1362
|
-
exports.
|
|
1249
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type);
|
|
1363
1250
|
/** @internal */
|
|
1364
|
-
exports.
|
|
1251
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
1365
1252
|
/**
|
|
1366
1253
|
* @internal
|
|
1367
1254
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1368
1255
|
*/
|
|
1369
|
-
var
|
|
1370
|
-
(function (
|
|
1371
|
-
/** @deprecated use `
|
|
1372
|
-
|
|
1373
|
-
/** @deprecated use `
|
|
1374
|
-
|
|
1375
|
-
})(
|
|
1256
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$;
|
|
1257
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$) {
|
|
1258
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
|
|
1259
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
1260
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
|
|
1261
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
|
|
1262
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ = {}));
|
|
1376
1263
|
/** @internal */
|
|
1377
|
-
exports.
|
|
1378
|
-
type: exports.
|
|
1264
|
+
exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema = z.object({
|
|
1265
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
1379
1266
|
requires_approval: z.boolean().default(false),
|
|
1380
1267
|
}).transform((v) => {
|
|
1381
1268
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1383,8 +1270,8 @@ exports.QueryKnowledgeBaseTool$inboundSchema = z.object({
|
|
|
1383
1270
|
});
|
|
1384
1271
|
});
|
|
1385
1272
|
/** @internal */
|
|
1386
|
-
exports.
|
|
1387
|
-
type: exports.
|
|
1273
|
+
exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema = z.object({
|
|
1274
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
1388
1275
|
requiresApproval: z.boolean().default(false),
|
|
1389
1276
|
}).transform((v) => {
|
|
1390
1277
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1395,37 +1282,37 @@ exports.QueryKnowledgeBaseTool$outboundSchema = z.object({
|
|
|
1395
1282
|
* @internal
|
|
1396
1283
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1397
1284
|
*/
|
|
1398
|
-
var
|
|
1399
|
-
(function (
|
|
1400
|
-
/** @deprecated use `
|
|
1401
|
-
|
|
1402
|
-
/** @deprecated use `
|
|
1403
|
-
|
|
1404
|
-
})(
|
|
1405
|
-
function
|
|
1406
|
-
return JSON.stringify(exports.
|
|
1285
|
+
var AgentToolInputRunQueryKnowledgeBaseTool$;
|
|
1286
|
+
(function (AgentToolInputRunQueryKnowledgeBaseTool$) {
|
|
1287
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
|
|
1288
|
+
AgentToolInputRunQueryKnowledgeBaseTool$.inboundSchema = exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
|
|
1289
|
+
/** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
|
|
1290
|
+
AgentToolInputRunQueryKnowledgeBaseTool$.outboundSchema = exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
|
|
1291
|
+
})(AgentToolInputRunQueryKnowledgeBaseTool$ || (exports.AgentToolInputRunQueryKnowledgeBaseTool$ = AgentToolInputRunQueryKnowledgeBaseTool$ = {}));
|
|
1292
|
+
function agentToolInputRunQueryKnowledgeBaseToolToJSON(agentToolInputRunQueryKnowledgeBaseTool) {
|
|
1293
|
+
return JSON.stringify(exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(agentToolInputRunQueryKnowledgeBaseTool));
|
|
1407
1294
|
}
|
|
1408
|
-
function
|
|
1409
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1295
|
+
function agentToolInputRunQueryKnowledgeBaseToolFromJSON(jsonString) {
|
|
1296
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`);
|
|
1410
1297
|
}
|
|
1411
1298
|
/** @internal */
|
|
1412
|
-
exports.
|
|
1299
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type);
|
|
1413
1300
|
/** @internal */
|
|
1414
|
-
exports.
|
|
1301
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
1415
1302
|
/**
|
|
1416
1303
|
* @internal
|
|
1417
1304
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1418
1305
|
*/
|
|
1419
|
-
var
|
|
1420
|
-
(function (
|
|
1421
|
-
/** @deprecated use `
|
|
1422
|
-
|
|
1423
|
-
/** @deprecated use `
|
|
1424
|
-
|
|
1425
|
-
})(
|
|
1306
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$;
|
|
1307
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$) {
|
|
1308
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
|
|
1309
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
1310
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
|
|
1311
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
|
|
1312
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ = {}));
|
|
1426
1313
|
/** @internal */
|
|
1427
|
-
exports.
|
|
1428
|
-
type: exports.
|
|
1314
|
+
exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema = z.object({
|
|
1315
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
1429
1316
|
requires_approval: z.boolean().default(false),
|
|
1430
1317
|
}).transform((v) => {
|
|
1431
1318
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1433,8 +1320,8 @@ exports.RetrieveKnowledgeBasesTool$inboundSchema = z.object({
|
|
|
1433
1320
|
});
|
|
1434
1321
|
});
|
|
1435
1322
|
/** @internal */
|
|
1436
|
-
exports.
|
|
1437
|
-
type: exports.
|
|
1323
|
+
exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema = z.object({
|
|
1324
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
1438
1325
|
requiresApproval: z.boolean().default(false),
|
|
1439
1326
|
}).transform((v) => {
|
|
1440
1327
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1445,37 +1332,37 @@ exports.RetrieveKnowledgeBasesTool$outboundSchema = z.object({
|
|
|
1445
1332
|
* @internal
|
|
1446
1333
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1447
1334
|
*/
|
|
1448
|
-
var
|
|
1449
|
-
(function (
|
|
1450
|
-
/** @deprecated use `
|
|
1451
|
-
|
|
1452
|
-
/** @deprecated use `
|
|
1453
|
-
|
|
1454
|
-
})(
|
|
1455
|
-
function
|
|
1456
|
-
return JSON.stringify(exports.
|
|
1335
|
+
var AgentToolInputRunRetrieveKnowledgeBasesTool$;
|
|
1336
|
+
(function (AgentToolInputRunRetrieveKnowledgeBasesTool$) {
|
|
1337
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
|
|
1338
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$.inboundSchema = exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
|
|
1339
|
+
/** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
|
|
1340
|
+
AgentToolInputRunRetrieveKnowledgeBasesTool$.outboundSchema = exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
|
|
1341
|
+
})(AgentToolInputRunRetrieveKnowledgeBasesTool$ || (exports.AgentToolInputRunRetrieveKnowledgeBasesTool$ = AgentToolInputRunRetrieveKnowledgeBasesTool$ = {}));
|
|
1342
|
+
function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(agentToolInputRunRetrieveKnowledgeBasesTool) {
|
|
1343
|
+
return JSON.stringify(exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(agentToolInputRunRetrieveKnowledgeBasesTool));
|
|
1457
1344
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1345
|
+
function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(jsonString) {
|
|
1346
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`);
|
|
1460
1347
|
}
|
|
1461
1348
|
/** @internal */
|
|
1462
|
-
exports.
|
|
1349
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type);
|
|
1463
1350
|
/** @internal */
|
|
1464
|
-
exports.
|
|
1351
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
1465
1352
|
/**
|
|
1466
1353
|
* @internal
|
|
1467
1354
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1468
1355
|
*/
|
|
1469
|
-
var
|
|
1470
|
-
(function (
|
|
1471
|
-
/** @deprecated use `
|
|
1472
|
-
|
|
1473
|
-
/** @deprecated use `
|
|
1474
|
-
|
|
1475
|
-
})(
|
|
1356
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$;
|
|
1357
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$) {
|
|
1358
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
|
|
1359
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
1360
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
|
|
1361
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
|
|
1362
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ = {}));
|
|
1476
1363
|
/** @internal */
|
|
1477
|
-
exports.
|
|
1478
|
-
type: exports.
|
|
1364
|
+
exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema = z.object({
|
|
1365
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
1479
1366
|
requires_approval: z.boolean().default(false),
|
|
1480
1367
|
}).transform((v) => {
|
|
1481
1368
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1483,8 +1370,8 @@ exports.DeleteMemoryStoreTool$inboundSchema = z.object({
|
|
|
1483
1370
|
});
|
|
1484
1371
|
});
|
|
1485
1372
|
/** @internal */
|
|
1486
|
-
exports.
|
|
1487
|
-
type: exports.
|
|
1373
|
+
exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema = z.object({
|
|
1374
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
1488
1375
|
requiresApproval: z.boolean().default(false),
|
|
1489
1376
|
}).transform((v) => {
|
|
1490
1377
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1495,37 +1382,37 @@ exports.DeleteMemoryStoreTool$outboundSchema = z.object({
|
|
|
1495
1382
|
* @internal
|
|
1496
1383
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1497
1384
|
*/
|
|
1498
|
-
var
|
|
1499
|
-
(function (
|
|
1500
|
-
/** @deprecated use `
|
|
1501
|
-
|
|
1502
|
-
/** @deprecated use `
|
|
1503
|
-
|
|
1504
|
-
})(
|
|
1505
|
-
function
|
|
1506
|
-
return JSON.stringify(exports.
|
|
1385
|
+
var AgentToolInputRunDeleteMemoryDocumentTool$;
|
|
1386
|
+
(function (AgentToolInputRunDeleteMemoryDocumentTool$) {
|
|
1387
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
|
|
1388
|
+
AgentToolInputRunDeleteMemoryDocumentTool$.inboundSchema = exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
|
|
1389
|
+
/** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
|
|
1390
|
+
AgentToolInputRunDeleteMemoryDocumentTool$.outboundSchema = exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
|
|
1391
|
+
})(AgentToolInputRunDeleteMemoryDocumentTool$ || (exports.AgentToolInputRunDeleteMemoryDocumentTool$ = AgentToolInputRunDeleteMemoryDocumentTool$ = {}));
|
|
1392
|
+
function agentToolInputRunDeleteMemoryDocumentToolToJSON(agentToolInputRunDeleteMemoryDocumentTool) {
|
|
1393
|
+
return JSON.stringify(exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(agentToolInputRunDeleteMemoryDocumentTool));
|
|
1507
1394
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1395
|
+
function agentToolInputRunDeleteMemoryDocumentToolFromJSON(jsonString) {
|
|
1396
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`);
|
|
1510
1397
|
}
|
|
1511
1398
|
/** @internal */
|
|
1512
|
-
exports.
|
|
1399
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType);
|
|
1513
1400
|
/** @internal */
|
|
1514
|
-
exports.
|
|
1401
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
1515
1402
|
/**
|
|
1516
1403
|
* @internal
|
|
1517
1404
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1518
1405
|
*/
|
|
1519
|
-
var
|
|
1520
|
-
(function (
|
|
1521
|
-
/** @deprecated use `
|
|
1522
|
-
|
|
1523
|
-
/** @deprecated use `
|
|
1524
|
-
|
|
1525
|
-
})(
|
|
1406
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$;
|
|
1407
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$) {
|
|
1408
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
|
|
1409
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
1410
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
|
|
1411
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
|
|
1412
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ = {}));
|
|
1526
1413
|
/** @internal */
|
|
1527
|
-
exports.
|
|
1528
|
-
type: exports.
|
|
1414
|
+
exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema = z.object({
|
|
1415
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
1529
1416
|
requires_approval: z.boolean().default(false),
|
|
1530
1417
|
}).transform((v) => {
|
|
1531
1418
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1533,8 +1420,8 @@ exports.RetrieveMemoryStoresTool$inboundSchema = z.object({
|
|
|
1533
1420
|
});
|
|
1534
1421
|
});
|
|
1535
1422
|
/** @internal */
|
|
1536
|
-
exports.
|
|
1537
|
-
type: exports.
|
|
1423
|
+
exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema = z.object({
|
|
1424
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
1538
1425
|
requiresApproval: z.boolean().default(false),
|
|
1539
1426
|
}).transform((v) => {
|
|
1540
1427
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1545,37 +1432,37 @@ exports.RetrieveMemoryStoresTool$outboundSchema = z.object({
|
|
|
1545
1432
|
* @internal
|
|
1546
1433
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1547
1434
|
*/
|
|
1548
|
-
var
|
|
1549
|
-
(function (
|
|
1550
|
-
/** @deprecated use `
|
|
1551
|
-
|
|
1552
|
-
/** @deprecated use `
|
|
1553
|
-
|
|
1554
|
-
})(
|
|
1555
|
-
function
|
|
1556
|
-
return JSON.stringify(exports.
|
|
1435
|
+
var AgentToolInputRunRetrieveMemoryStoresTool$;
|
|
1436
|
+
(function (AgentToolInputRunRetrieveMemoryStoresTool$) {
|
|
1437
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
|
|
1438
|
+
AgentToolInputRunRetrieveMemoryStoresTool$.inboundSchema = exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
|
|
1439
|
+
/** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
|
|
1440
|
+
AgentToolInputRunRetrieveMemoryStoresTool$.outboundSchema = exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
|
|
1441
|
+
})(AgentToolInputRunRetrieveMemoryStoresTool$ || (exports.AgentToolInputRunRetrieveMemoryStoresTool$ = AgentToolInputRunRetrieveMemoryStoresTool$ = {}));
|
|
1442
|
+
function agentToolInputRunRetrieveMemoryStoresToolToJSON(agentToolInputRunRetrieveMemoryStoresTool) {
|
|
1443
|
+
return JSON.stringify(exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(agentToolInputRunRetrieveMemoryStoresTool));
|
|
1557
1444
|
}
|
|
1558
|
-
function
|
|
1559
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1445
|
+
function agentToolInputRunRetrieveMemoryStoresToolFromJSON(jsonString) {
|
|
1446
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`);
|
|
1560
1447
|
}
|
|
1561
1448
|
/** @internal */
|
|
1562
|
-
exports.
|
|
1449
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType);
|
|
1563
1450
|
/** @internal */
|
|
1564
|
-
exports.
|
|
1451
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
1565
1452
|
/**
|
|
1566
1453
|
* @internal
|
|
1567
1454
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1568
1455
|
*/
|
|
1569
|
-
var
|
|
1570
|
-
(function (
|
|
1571
|
-
/** @deprecated use `
|
|
1572
|
-
|
|
1573
|
-
/** @deprecated use `
|
|
1574
|
-
|
|
1575
|
-
})(
|
|
1456
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$;
|
|
1457
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$) {
|
|
1458
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
|
|
1459
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
1460
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
|
|
1461
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
|
|
1462
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ = RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ = {}));
|
|
1576
1463
|
/** @internal */
|
|
1577
|
-
exports.
|
|
1578
|
-
type: exports.
|
|
1464
|
+
exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema = z.object({
|
|
1465
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
1579
1466
|
requires_approval: z.boolean().default(false),
|
|
1580
1467
|
}).transform((v) => {
|
|
1581
1468
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1583,8 +1470,8 @@ exports.WriteMemoryStoreTool$inboundSchema = z.object({
|
|
|
1583
1470
|
});
|
|
1584
1471
|
});
|
|
1585
1472
|
/** @internal */
|
|
1586
|
-
exports.
|
|
1587
|
-
type: exports.
|
|
1473
|
+
exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema = z.object({
|
|
1474
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
1588
1475
|
requiresApproval: z.boolean().default(false),
|
|
1589
1476
|
}).transform((v) => {
|
|
1590
1477
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1595,37 +1482,37 @@ exports.WriteMemoryStoreTool$outboundSchema = z.object({
|
|
|
1595
1482
|
* @internal
|
|
1596
1483
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1597
1484
|
*/
|
|
1598
|
-
var
|
|
1599
|
-
(function (
|
|
1600
|
-
/** @deprecated use `
|
|
1601
|
-
|
|
1602
|
-
/** @deprecated use `
|
|
1603
|
-
|
|
1604
|
-
})(
|
|
1605
|
-
function
|
|
1606
|
-
return JSON.stringify(exports.
|
|
1485
|
+
var AgentToolInputRunWriteMemoryStoreTool$;
|
|
1486
|
+
(function (AgentToolInputRunWriteMemoryStoreTool$) {
|
|
1487
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
|
|
1488
|
+
AgentToolInputRunWriteMemoryStoreTool$.inboundSchema = exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
|
|
1489
|
+
/** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
|
|
1490
|
+
AgentToolInputRunWriteMemoryStoreTool$.outboundSchema = exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
|
|
1491
|
+
})(AgentToolInputRunWriteMemoryStoreTool$ || (exports.AgentToolInputRunWriteMemoryStoreTool$ = AgentToolInputRunWriteMemoryStoreTool$ = {}));
|
|
1492
|
+
function agentToolInputRunWriteMemoryStoreToolToJSON(agentToolInputRunWriteMemoryStoreTool) {
|
|
1493
|
+
return JSON.stringify(exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(agentToolInputRunWriteMemoryStoreTool));
|
|
1607
1494
|
}
|
|
1608
|
-
function
|
|
1609
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1495
|
+
function agentToolInputRunWriteMemoryStoreToolFromJSON(jsonString) {
|
|
1496
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`);
|
|
1610
1497
|
}
|
|
1611
1498
|
/** @internal */
|
|
1612
|
-
exports.
|
|
1499
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
|
|
1613
1500
|
/** @internal */
|
|
1614
|
-
exports.
|
|
1501
|
+
exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
1615
1502
|
/**
|
|
1616
1503
|
* @internal
|
|
1617
1504
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1618
1505
|
*/
|
|
1619
|
-
var
|
|
1620
|
-
(function (
|
|
1621
|
-
/** @deprecated use `
|
|
1622
|
-
|
|
1623
|
-
/** @deprecated use `
|
|
1624
|
-
|
|
1625
|
-
})(
|
|
1506
|
+
var RunAgentAgentToolInputRunAgentsRequestRequestBodyType$;
|
|
1507
|
+
(function (RunAgentAgentToolInputRunAgentsRequestRequestBodyType$) {
|
|
1508
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
1509
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
|
|
1510
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
1511
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodyType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
|
|
1512
|
+
})(RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ || (exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ = {}));
|
|
1626
1513
|
/** @internal */
|
|
1627
|
-
exports.
|
|
1628
|
-
type: exports.
|
|
1514
|
+
exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema = z.object({
|
|
1515
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
|
|
1629
1516
|
requires_approval: z.boolean().default(false),
|
|
1630
1517
|
}).transform((v) => {
|
|
1631
1518
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1633,8 +1520,8 @@ exports.QueryMemoryStoreTool$inboundSchema = z.object({
|
|
|
1633
1520
|
});
|
|
1634
1521
|
});
|
|
1635
1522
|
/** @internal */
|
|
1636
|
-
exports.
|
|
1637
|
-
type: exports.
|
|
1523
|
+
exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema = z.object({
|
|
1524
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
|
|
1638
1525
|
requiresApproval: z.boolean().default(false),
|
|
1639
1526
|
}).transform((v) => {
|
|
1640
1527
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1645,38 +1532,38 @@ exports.QueryMemoryStoreTool$outboundSchema = z.object({
|
|
|
1645
1532
|
* @internal
|
|
1646
1533
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1647
1534
|
*/
|
|
1648
|
-
var
|
|
1649
|
-
(function (
|
|
1650
|
-
/** @deprecated use `
|
|
1651
|
-
|
|
1652
|
-
/** @deprecated use `
|
|
1653
|
-
|
|
1654
|
-
})(
|
|
1655
|
-
function
|
|
1656
|
-
return JSON.stringify(exports.
|
|
1535
|
+
var AgentToolInputRunQueryMemoryStoreTool$;
|
|
1536
|
+
(function (AgentToolInputRunQueryMemoryStoreTool$) {
|
|
1537
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
|
|
1538
|
+
AgentToolInputRunQueryMemoryStoreTool$.inboundSchema = exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
|
|
1539
|
+
/** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
|
|
1540
|
+
AgentToolInputRunQueryMemoryStoreTool$.outboundSchema = exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
|
|
1541
|
+
})(AgentToolInputRunQueryMemoryStoreTool$ || (exports.AgentToolInputRunQueryMemoryStoreTool$ = AgentToolInputRunQueryMemoryStoreTool$ = {}));
|
|
1542
|
+
function agentToolInputRunQueryMemoryStoreToolToJSON(agentToolInputRunQueryMemoryStoreTool) {
|
|
1543
|
+
return JSON.stringify(exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(agentToolInputRunQueryMemoryStoreTool));
|
|
1657
1544
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1545
|
+
function agentToolInputRunQueryMemoryStoreToolFromJSON(jsonString) {
|
|
1546
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`);
|
|
1660
1547
|
}
|
|
1661
1548
|
/** @internal */
|
|
1662
|
-
exports.
|
|
1663
|
-
.nativeEnum(exports.
|
|
1549
|
+
exports.RunAgentAgentToolInputRunAgentsRequestType$inboundSchema = z
|
|
1550
|
+
.nativeEnum(exports.RunAgentAgentToolInputRunAgentsRequestType);
|
|
1664
1551
|
/** @internal */
|
|
1665
|
-
exports.
|
|
1552
|
+
exports.RunAgentAgentToolInputRunAgentsRequestType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
1666
1553
|
/**
|
|
1667
1554
|
* @internal
|
|
1668
1555
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1669
1556
|
*/
|
|
1670
|
-
var
|
|
1671
|
-
(function (
|
|
1672
|
-
/** @deprecated use `
|
|
1673
|
-
|
|
1674
|
-
/** @deprecated use `
|
|
1675
|
-
|
|
1676
|
-
})(
|
|
1557
|
+
var RunAgentAgentToolInputRunAgentsRequestType$;
|
|
1558
|
+
(function (RunAgentAgentToolInputRunAgentsRequestType$) {
|
|
1559
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
|
|
1560
|
+
RunAgentAgentToolInputRunAgentsRequestType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
|
|
1561
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
|
|
1562
|
+
RunAgentAgentToolInputRunAgentsRequestType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
|
|
1563
|
+
})(RunAgentAgentToolInputRunAgentsRequestType$ || (exports.RunAgentAgentToolInputRunAgentsRequestType$ = RunAgentAgentToolInputRunAgentsRequestType$ = {}));
|
|
1677
1564
|
/** @internal */
|
|
1678
|
-
exports.
|
|
1679
|
-
type: exports.
|
|
1565
|
+
exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema = z.object({
|
|
1566
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
|
|
1680
1567
|
requires_approval: z.boolean().default(false),
|
|
1681
1568
|
}).transform((v) => {
|
|
1682
1569
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1684,8 +1571,8 @@ exports.RetrieveAgentsTool$inboundSchema = z.object({
|
|
|
1684
1571
|
});
|
|
1685
1572
|
});
|
|
1686
1573
|
/** @internal */
|
|
1687
|
-
exports.
|
|
1688
|
-
type: exports.
|
|
1574
|
+
exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema = z.object({
|
|
1575
|
+
type: exports.RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
|
|
1689
1576
|
requiresApproval: z.boolean().default(false),
|
|
1690
1577
|
}).transform((v) => {
|
|
1691
1578
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1696,37 +1583,37 @@ exports.RetrieveAgentsTool$outboundSchema = z.object({
|
|
|
1696
1583
|
* @internal
|
|
1697
1584
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1698
1585
|
*/
|
|
1699
|
-
var
|
|
1700
|
-
(function (
|
|
1701
|
-
/** @deprecated use `
|
|
1702
|
-
|
|
1703
|
-
/** @deprecated use `
|
|
1704
|
-
|
|
1705
|
-
})(
|
|
1706
|
-
function
|
|
1707
|
-
return JSON.stringify(exports.
|
|
1586
|
+
var AgentToolInputRunRetrieveAgentsTool$;
|
|
1587
|
+
(function (AgentToolInputRunRetrieveAgentsTool$) {
|
|
1588
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
|
|
1589
|
+
AgentToolInputRunRetrieveAgentsTool$.inboundSchema = exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema;
|
|
1590
|
+
/** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
|
|
1591
|
+
AgentToolInputRunRetrieveAgentsTool$.outboundSchema = exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema;
|
|
1592
|
+
})(AgentToolInputRunRetrieveAgentsTool$ || (exports.AgentToolInputRunRetrieveAgentsTool$ = AgentToolInputRunRetrieveAgentsTool$ = {}));
|
|
1593
|
+
function agentToolInputRunRetrieveAgentsToolToJSON(agentToolInputRunRetrieveAgentsTool) {
|
|
1594
|
+
return JSON.stringify(exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(agentToolInputRunRetrieveAgentsTool));
|
|
1708
1595
|
}
|
|
1709
|
-
function
|
|
1710
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1596
|
+
function agentToolInputRunRetrieveAgentsToolFromJSON(jsonString) {
|
|
1597
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`);
|
|
1711
1598
|
}
|
|
1712
1599
|
/** @internal */
|
|
1713
|
-
exports.
|
|
1600
|
+
exports.RunAgentAgentToolInputRunAgentsType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunAgentsType);
|
|
1714
1601
|
/** @internal */
|
|
1715
|
-
exports.
|
|
1602
|
+
exports.RunAgentAgentToolInputRunAgentsType$outboundSchema = exports.RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
1716
1603
|
/**
|
|
1717
1604
|
* @internal
|
|
1718
1605
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1719
1606
|
*/
|
|
1720
|
-
var
|
|
1721
|
-
(function (
|
|
1722
|
-
/** @deprecated use `
|
|
1723
|
-
|
|
1724
|
-
/** @deprecated use `
|
|
1725
|
-
|
|
1726
|
-
})(
|
|
1607
|
+
var RunAgentAgentToolInputRunAgentsType$;
|
|
1608
|
+
(function (RunAgentAgentToolInputRunAgentsType$) {
|
|
1609
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
|
|
1610
|
+
RunAgentAgentToolInputRunAgentsType$.inboundSchema = exports.RunAgentAgentToolInputRunAgentsType$inboundSchema;
|
|
1611
|
+
/** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
|
|
1612
|
+
RunAgentAgentToolInputRunAgentsType$.outboundSchema = exports.RunAgentAgentToolInputRunAgentsType$outboundSchema;
|
|
1613
|
+
})(RunAgentAgentToolInputRunAgentsType$ || (exports.RunAgentAgentToolInputRunAgentsType$ = RunAgentAgentToolInputRunAgentsType$ = {}));
|
|
1727
1614
|
/** @internal */
|
|
1728
|
-
exports.
|
|
1729
|
-
type: exports.
|
|
1615
|
+
exports.AgentToolInputRunCallSubAgentTool$inboundSchema = z.object({
|
|
1616
|
+
type: exports.RunAgentAgentToolInputRunAgentsType$inboundSchema,
|
|
1730
1617
|
requires_approval: z.boolean().default(false),
|
|
1731
1618
|
}).transform((v) => {
|
|
1732
1619
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1734,8 +1621,8 @@ exports.CallSubAgentTool$inboundSchema = z.object({
|
|
|
1734
1621
|
});
|
|
1735
1622
|
});
|
|
1736
1623
|
/** @internal */
|
|
1737
|
-
exports.
|
|
1738
|
-
type: exports.
|
|
1624
|
+
exports.AgentToolInputRunCallSubAgentTool$outboundSchema = z.object({
|
|
1625
|
+
type: exports.RunAgentAgentToolInputRunAgentsType$outboundSchema,
|
|
1739
1626
|
requiresApproval: z.boolean().default(false),
|
|
1740
1627
|
}).transform((v) => {
|
|
1741
1628
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1746,37 +1633,37 @@ exports.CallSubAgentTool$outboundSchema = z.object({
|
|
|
1746
1633
|
* @internal
|
|
1747
1634
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1748
1635
|
*/
|
|
1749
|
-
var
|
|
1750
|
-
(function (
|
|
1751
|
-
/** @deprecated use `
|
|
1752
|
-
|
|
1753
|
-
/** @deprecated use `
|
|
1754
|
-
|
|
1755
|
-
})(
|
|
1756
|
-
function
|
|
1757
|
-
return JSON.stringify(exports.
|
|
1636
|
+
var AgentToolInputRunCallSubAgentTool$;
|
|
1637
|
+
(function (AgentToolInputRunCallSubAgentTool$) {
|
|
1638
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
|
|
1639
|
+
AgentToolInputRunCallSubAgentTool$.inboundSchema = exports.AgentToolInputRunCallSubAgentTool$inboundSchema;
|
|
1640
|
+
/** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
|
|
1641
|
+
AgentToolInputRunCallSubAgentTool$.outboundSchema = exports.AgentToolInputRunCallSubAgentTool$outboundSchema;
|
|
1642
|
+
})(AgentToolInputRunCallSubAgentTool$ || (exports.AgentToolInputRunCallSubAgentTool$ = AgentToolInputRunCallSubAgentTool$ = {}));
|
|
1643
|
+
function agentToolInputRunCallSubAgentToolToJSON(agentToolInputRunCallSubAgentTool) {
|
|
1644
|
+
return JSON.stringify(exports.AgentToolInputRunCallSubAgentTool$outboundSchema.parse(agentToolInputRunCallSubAgentTool));
|
|
1758
1645
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1646
|
+
function agentToolInputRunCallSubAgentToolFromJSON(jsonString) {
|
|
1647
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`);
|
|
1761
1648
|
}
|
|
1762
1649
|
/** @internal */
|
|
1763
|
-
exports.
|
|
1650
|
+
exports.RunAgentAgentToolInputRunType$inboundSchema = z.nativeEnum(exports.RunAgentAgentToolInputRunType);
|
|
1764
1651
|
/** @internal */
|
|
1765
|
-
exports.
|
|
1652
|
+
exports.RunAgentAgentToolInputRunType$outboundSchema = exports.RunAgentAgentToolInputRunType$inboundSchema;
|
|
1766
1653
|
/**
|
|
1767
1654
|
* @internal
|
|
1768
1655
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1769
1656
|
*/
|
|
1770
|
-
var
|
|
1771
|
-
(function (
|
|
1772
|
-
/** @deprecated use `
|
|
1773
|
-
|
|
1774
|
-
/** @deprecated use `
|
|
1775
|
-
|
|
1776
|
-
})(
|
|
1657
|
+
var RunAgentAgentToolInputRunType$;
|
|
1658
|
+
(function (RunAgentAgentToolInputRunType$) {
|
|
1659
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
|
|
1660
|
+
RunAgentAgentToolInputRunType$.inboundSchema = exports.RunAgentAgentToolInputRunType$inboundSchema;
|
|
1661
|
+
/** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
|
|
1662
|
+
RunAgentAgentToolInputRunType$.outboundSchema = exports.RunAgentAgentToolInputRunType$outboundSchema;
|
|
1663
|
+
})(RunAgentAgentToolInputRunType$ || (exports.RunAgentAgentToolInputRunType$ = RunAgentAgentToolInputRunType$ = {}));
|
|
1777
1664
|
/** @internal */
|
|
1778
|
-
exports.
|
|
1779
|
-
type: exports.
|
|
1665
|
+
exports.AgentToolInputRunWebScraperTool$inboundSchema = z.object({
|
|
1666
|
+
type: exports.RunAgentAgentToolInputRunType$inboundSchema,
|
|
1780
1667
|
requires_approval: z.boolean().default(false),
|
|
1781
1668
|
}).transform((v) => {
|
|
1782
1669
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1784,8 +1671,8 @@ exports.WebScraperTool$inboundSchema = z.object({
|
|
|
1784
1671
|
});
|
|
1785
1672
|
});
|
|
1786
1673
|
/** @internal */
|
|
1787
|
-
exports.
|
|
1788
|
-
type: exports.
|
|
1674
|
+
exports.AgentToolInputRunWebScraperTool$outboundSchema = z.object({
|
|
1675
|
+
type: exports.RunAgentAgentToolInputRunType$outboundSchema,
|
|
1789
1676
|
requiresApproval: z.boolean().default(false),
|
|
1790
1677
|
}).transform((v) => {
|
|
1791
1678
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1796,37 +1683,37 @@ exports.WebScraperTool$outboundSchema = z.object({
|
|
|
1796
1683
|
* @internal
|
|
1797
1684
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1798
1685
|
*/
|
|
1799
|
-
var
|
|
1800
|
-
(function (
|
|
1801
|
-
/** @deprecated use `
|
|
1802
|
-
|
|
1803
|
-
/** @deprecated use `
|
|
1804
|
-
|
|
1805
|
-
})(
|
|
1806
|
-
function
|
|
1807
|
-
return JSON.stringify(exports.
|
|
1686
|
+
var AgentToolInputRunWebScraperTool$;
|
|
1687
|
+
(function (AgentToolInputRunWebScraperTool$) {
|
|
1688
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
|
|
1689
|
+
AgentToolInputRunWebScraperTool$.inboundSchema = exports.AgentToolInputRunWebScraperTool$inboundSchema;
|
|
1690
|
+
/** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
|
|
1691
|
+
AgentToolInputRunWebScraperTool$.outboundSchema = exports.AgentToolInputRunWebScraperTool$outboundSchema;
|
|
1692
|
+
})(AgentToolInputRunWebScraperTool$ || (exports.AgentToolInputRunWebScraperTool$ = AgentToolInputRunWebScraperTool$ = {}));
|
|
1693
|
+
function agentToolInputRunWebScraperToolToJSON(agentToolInputRunWebScraperTool) {
|
|
1694
|
+
return JSON.stringify(exports.AgentToolInputRunWebScraperTool$outboundSchema.parse(agentToolInputRunWebScraperTool));
|
|
1808
1695
|
}
|
|
1809
|
-
function
|
|
1810
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1696
|
+
function agentToolInputRunWebScraperToolFromJSON(jsonString) {
|
|
1697
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`);
|
|
1811
1698
|
}
|
|
1812
1699
|
/** @internal */
|
|
1813
|
-
exports.
|
|
1700
|
+
exports.AgentToolInputRunType$inboundSchema = z.nativeEnum(exports.AgentToolInputRunType);
|
|
1814
1701
|
/** @internal */
|
|
1815
|
-
exports.
|
|
1702
|
+
exports.AgentToolInputRunType$outboundSchema = exports.AgentToolInputRunType$inboundSchema;
|
|
1816
1703
|
/**
|
|
1817
1704
|
* @internal
|
|
1818
1705
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1819
1706
|
*/
|
|
1820
|
-
var
|
|
1821
|
-
(function (
|
|
1822
|
-
/** @deprecated use `
|
|
1823
|
-
|
|
1824
|
-
/** @deprecated use `
|
|
1825
|
-
|
|
1826
|
-
})(
|
|
1707
|
+
var AgentToolInputRunType$;
|
|
1708
|
+
(function (AgentToolInputRunType$) {
|
|
1709
|
+
/** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
|
|
1710
|
+
AgentToolInputRunType$.inboundSchema = exports.AgentToolInputRunType$inboundSchema;
|
|
1711
|
+
/** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
|
|
1712
|
+
AgentToolInputRunType$.outboundSchema = exports.AgentToolInputRunType$outboundSchema;
|
|
1713
|
+
})(AgentToolInputRunType$ || (exports.AgentToolInputRunType$ = AgentToolInputRunType$ = {}));
|
|
1827
1714
|
/** @internal */
|
|
1828
|
-
exports.
|
|
1829
|
-
type: exports.
|
|
1715
|
+
exports.AgentToolInputRunGoogleSearchTool$inboundSchema = z.object({
|
|
1716
|
+
type: exports.AgentToolInputRunType$inboundSchema,
|
|
1830
1717
|
requires_approval: z.boolean().default(false),
|
|
1831
1718
|
}).transform((v) => {
|
|
1832
1719
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1834,8 +1721,8 @@ exports.GoogleSearchTool$inboundSchema = z.object({
|
|
|
1834
1721
|
});
|
|
1835
1722
|
});
|
|
1836
1723
|
/** @internal */
|
|
1837
|
-
exports.
|
|
1838
|
-
type: exports.
|
|
1724
|
+
exports.AgentToolInputRunGoogleSearchTool$outboundSchema = z.object({
|
|
1725
|
+
type: exports.AgentToolInputRunType$outboundSchema,
|
|
1839
1726
|
requiresApproval: z.boolean().default(false),
|
|
1840
1727
|
}).transform((v) => {
|
|
1841
1728
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1846,104 +1733,104 @@ exports.GoogleSearchTool$outboundSchema = z.object({
|
|
|
1846
1733
|
* @internal
|
|
1847
1734
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1848
1735
|
*/
|
|
1849
|
-
var
|
|
1850
|
-
(function (
|
|
1851
|
-
/** @deprecated use `
|
|
1852
|
-
|
|
1853
|
-
/** @deprecated use `
|
|
1854
|
-
|
|
1855
|
-
})(
|
|
1856
|
-
function
|
|
1857
|
-
return JSON.stringify(exports.
|
|
1736
|
+
var AgentToolInputRunGoogleSearchTool$;
|
|
1737
|
+
(function (AgentToolInputRunGoogleSearchTool$) {
|
|
1738
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
|
|
1739
|
+
AgentToolInputRunGoogleSearchTool$.inboundSchema = exports.AgentToolInputRunGoogleSearchTool$inboundSchema;
|
|
1740
|
+
/** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
|
|
1741
|
+
AgentToolInputRunGoogleSearchTool$.outboundSchema = exports.AgentToolInputRunGoogleSearchTool$outboundSchema;
|
|
1742
|
+
})(AgentToolInputRunGoogleSearchTool$ || (exports.AgentToolInputRunGoogleSearchTool$ = AgentToolInputRunGoogleSearchTool$ = {}));
|
|
1743
|
+
function agentToolInputRunGoogleSearchToolToJSON(agentToolInputRunGoogleSearchTool) {
|
|
1744
|
+
return JSON.stringify(exports.AgentToolInputRunGoogleSearchTool$outboundSchema.parse(agentToolInputRunGoogleSearchTool));
|
|
1858
1745
|
}
|
|
1859
|
-
function
|
|
1860
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1746
|
+
function agentToolInputRunGoogleSearchToolFromJSON(jsonString) {
|
|
1747
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`);
|
|
1861
1748
|
}
|
|
1862
1749
|
/** @internal */
|
|
1863
|
-
exports.
|
|
1864
|
-
z.lazy(() => exports.
|
|
1865
|
-
z.lazy(() => exports.
|
|
1866
|
-
z.lazy(() => exports.
|
|
1867
|
-
z.lazy(() => exports.
|
|
1868
|
-
z.lazy(() => exports.
|
|
1869
|
-
z.lazy(() => exports.
|
|
1870
|
-
z.lazy(() => exports.
|
|
1871
|
-
z.lazy(() => exports.
|
|
1872
|
-
z.lazy(() => exports.
|
|
1873
|
-
z.lazy(() => exports.
|
|
1874
|
-
z.lazy(() => exports.
|
|
1875
|
-
z.lazy(() => exports.
|
|
1876
|
-
z.lazy(() => exports.
|
|
1877
|
-
z.lazy(() => exports.
|
|
1750
|
+
exports.AgentToolInputRun$inboundSchema = z.union([
|
|
1751
|
+
z.lazy(() => exports.HTTPToolRun$inboundSchema),
|
|
1752
|
+
z.lazy(() => exports.CodeToolRun$inboundSchema),
|
|
1753
|
+
z.lazy(() => exports.FunctionToolRun$inboundSchema),
|
|
1754
|
+
z.lazy(() => exports.AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
1755
|
+
z.lazy(() => exports.AgentToolInputRunWebScraperTool$inboundSchema),
|
|
1756
|
+
z.lazy(() => exports.AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
1757
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
1758
|
+
z.lazy(() => exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
1759
|
+
z.lazy(() => exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
1760
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
1761
|
+
z.lazy(() => exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
1762
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
1763
|
+
z.lazy(() => exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
1764
|
+
z.lazy(() => exports.AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
1878
1765
|
]);
|
|
1879
1766
|
/** @internal */
|
|
1880
|
-
exports.
|
|
1881
|
-
z.lazy(() => exports.
|
|
1882
|
-
z.lazy(() => exports.
|
|
1883
|
-
z.lazy(() => exports.
|
|
1884
|
-
z.lazy(() => exports.
|
|
1885
|
-
z.lazy(() => exports.
|
|
1886
|
-
z.lazy(() => exports.
|
|
1887
|
-
z.lazy(() => exports.
|
|
1888
|
-
z.lazy(() => exports.
|
|
1889
|
-
z.lazy(() => exports.
|
|
1890
|
-
z.lazy(() => exports.
|
|
1891
|
-
z.lazy(() => exports.
|
|
1892
|
-
z.lazy(() => exports.
|
|
1893
|
-
z.lazy(() => exports.
|
|
1894
|
-
z.lazy(() => exports.
|
|
1767
|
+
exports.AgentToolInputRun$outboundSchema = z.union([
|
|
1768
|
+
z.lazy(() => exports.HTTPToolRun$outboundSchema),
|
|
1769
|
+
z.lazy(() => exports.CodeToolRun$outboundSchema),
|
|
1770
|
+
z.lazy(() => exports.FunctionToolRun$outboundSchema),
|
|
1771
|
+
z.lazy(() => exports.AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
1772
|
+
z.lazy(() => exports.AgentToolInputRunWebScraperTool$outboundSchema),
|
|
1773
|
+
z.lazy(() => exports.AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
1774
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
1775
|
+
z.lazy(() => exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
1776
|
+
z.lazy(() => exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
1777
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
1778
|
+
z.lazy(() => exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
1779
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
1780
|
+
z.lazy(() => exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
1781
|
+
z.lazy(() => exports.AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
1895
1782
|
]);
|
|
1896
1783
|
/**
|
|
1897
1784
|
* @internal
|
|
1898
1785
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1899
1786
|
*/
|
|
1900
|
-
var
|
|
1901
|
-
(function (
|
|
1902
|
-
/** @deprecated use `
|
|
1903
|
-
|
|
1904
|
-
/** @deprecated use `
|
|
1905
|
-
|
|
1906
|
-
})(
|
|
1907
|
-
function
|
|
1908
|
-
return JSON.stringify(exports.
|
|
1787
|
+
var AgentToolInputRun$;
|
|
1788
|
+
(function (AgentToolInputRun$) {
|
|
1789
|
+
/** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
|
|
1790
|
+
AgentToolInputRun$.inboundSchema = exports.AgentToolInputRun$inboundSchema;
|
|
1791
|
+
/** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
|
|
1792
|
+
AgentToolInputRun$.outboundSchema = exports.AgentToolInputRun$outboundSchema;
|
|
1793
|
+
})(AgentToolInputRun$ || (exports.AgentToolInputRun$ = AgentToolInputRun$ = {}));
|
|
1794
|
+
function agentToolInputRunToJSON(agentToolInputRun) {
|
|
1795
|
+
return JSON.stringify(exports.AgentToolInputRun$outboundSchema.parse(agentToolInputRun));
|
|
1909
1796
|
}
|
|
1910
|
-
function
|
|
1911
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1797
|
+
function agentToolInputRunFromJSON(jsonString) {
|
|
1798
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentToolInputRun$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentToolInputRun' from JSON`);
|
|
1912
1799
|
}
|
|
1913
1800
|
/** @internal */
|
|
1914
|
-
exports.
|
|
1801
|
+
exports.RunAgentToolApprovalRequired$inboundSchema = z.nativeEnum(exports.RunAgentToolApprovalRequired);
|
|
1915
1802
|
/** @internal */
|
|
1916
|
-
exports.
|
|
1803
|
+
exports.RunAgentToolApprovalRequired$outboundSchema = exports.RunAgentToolApprovalRequired$inboundSchema;
|
|
1917
1804
|
/**
|
|
1918
1805
|
* @internal
|
|
1919
1806
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1920
1807
|
*/
|
|
1921
|
-
var
|
|
1922
|
-
(function (
|
|
1923
|
-
/** @deprecated use `
|
|
1924
|
-
|
|
1925
|
-
/** @deprecated use `
|
|
1926
|
-
|
|
1927
|
-
})(
|
|
1808
|
+
var RunAgentToolApprovalRequired$;
|
|
1809
|
+
(function (RunAgentToolApprovalRequired$) {
|
|
1810
|
+
/** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
|
|
1811
|
+
RunAgentToolApprovalRequired$.inboundSchema = exports.RunAgentToolApprovalRequired$inboundSchema;
|
|
1812
|
+
/** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
|
|
1813
|
+
RunAgentToolApprovalRequired$.outboundSchema = exports.RunAgentToolApprovalRequired$outboundSchema;
|
|
1814
|
+
})(RunAgentToolApprovalRequired$ || (exports.RunAgentToolApprovalRequired$ = RunAgentToolApprovalRequired$ = {}));
|
|
1928
1815
|
/** @internal */
|
|
1929
|
-
exports.
|
|
1816
|
+
exports.RunAgentSettings$inboundSchema = z.object({
|
|
1930
1817
|
tools: z.array(z.union([
|
|
1931
|
-
z.lazy(() => exports.
|
|
1932
|
-
z.lazy(() => exports.
|
|
1933
|
-
z.lazy(() => exports.
|
|
1934
|
-
z.lazy(() => exports.
|
|
1935
|
-
z.lazy(() => exports.
|
|
1936
|
-
z.lazy(() => exports.
|
|
1937
|
-
z.lazy(() => exports.
|
|
1938
|
-
z.lazy(() => exports.
|
|
1939
|
-
z.lazy(() => exports.
|
|
1940
|
-
z.lazy(() => exports.
|
|
1941
|
-
z.lazy(() => exports.
|
|
1942
|
-
z.lazy(() => exports.
|
|
1943
|
-
z.lazy(() => exports.
|
|
1944
|
-
z.lazy(() => exports.
|
|
1818
|
+
z.lazy(() => exports.HTTPToolRun$inboundSchema),
|
|
1819
|
+
z.lazy(() => exports.CodeToolRun$inboundSchema),
|
|
1820
|
+
z.lazy(() => exports.FunctionToolRun$inboundSchema),
|
|
1821
|
+
z.lazy(() => exports.AgentToolInputRunGoogleSearchTool$inboundSchema),
|
|
1822
|
+
z.lazy(() => exports.AgentToolInputRunWebScraperTool$inboundSchema),
|
|
1823
|
+
z.lazy(() => exports.AgentToolInputRunCallSubAgentTool$inboundSchema),
|
|
1824
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveAgentsTool$inboundSchema),
|
|
1825
|
+
z.lazy(() => exports.AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
|
|
1826
|
+
z.lazy(() => exports.AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
|
|
1827
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
|
|
1828
|
+
z.lazy(() => exports.AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
|
|
1829
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
|
|
1830
|
+
z.lazy(() => exports.AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
|
|
1831
|
+
z.lazy(() => exports.AgentToolInputRunCurrentDateTool$inboundSchema),
|
|
1945
1832
|
])),
|
|
1946
|
-
tool_approval_required: exports.
|
|
1833
|
+
tool_approval_required: exports.RunAgentToolApprovalRequired$inboundSchema.default("none"),
|
|
1947
1834
|
max_iterations: z.number().int().default(15),
|
|
1948
1835
|
max_execution_time: z.number().int().default(300),
|
|
1949
1836
|
}).transform((v) => {
|
|
@@ -1954,24 +1841,24 @@ exports.Settings$inboundSchema = z.object({
|
|
|
1954
1841
|
});
|
|
1955
1842
|
});
|
|
1956
1843
|
/** @internal */
|
|
1957
|
-
exports.
|
|
1844
|
+
exports.RunAgentSettings$outboundSchema = z.object({
|
|
1958
1845
|
tools: z.array(z.union([
|
|
1959
|
-
z.lazy(() => exports.
|
|
1960
|
-
z.lazy(() => exports.
|
|
1961
|
-
z.lazy(() => exports.
|
|
1962
|
-
z.lazy(() => exports.
|
|
1963
|
-
z.lazy(() => exports.
|
|
1964
|
-
z.lazy(() => exports.
|
|
1965
|
-
z.lazy(() => exports.
|
|
1966
|
-
z.lazy(() => exports.
|
|
1967
|
-
z.lazy(() => exports.
|
|
1968
|
-
z.lazy(() => exports.
|
|
1969
|
-
z.lazy(() => exports.
|
|
1970
|
-
z.lazy(() => exports.
|
|
1971
|
-
z.lazy(() => exports.
|
|
1972
|
-
z.lazy(() => exports.
|
|
1846
|
+
z.lazy(() => exports.HTTPToolRun$outboundSchema),
|
|
1847
|
+
z.lazy(() => exports.CodeToolRun$outboundSchema),
|
|
1848
|
+
z.lazy(() => exports.FunctionToolRun$outboundSchema),
|
|
1849
|
+
z.lazy(() => exports.AgentToolInputRunGoogleSearchTool$outboundSchema),
|
|
1850
|
+
z.lazy(() => exports.AgentToolInputRunWebScraperTool$outboundSchema),
|
|
1851
|
+
z.lazy(() => exports.AgentToolInputRunCallSubAgentTool$outboundSchema),
|
|
1852
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveAgentsTool$outboundSchema),
|
|
1853
|
+
z.lazy(() => exports.AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
|
|
1854
|
+
z.lazy(() => exports.AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
|
|
1855
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
|
|
1856
|
+
z.lazy(() => exports.AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
|
|
1857
|
+
z.lazy(() => exports.AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
1858
|
+
z.lazy(() => exports.AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
1859
|
+
z.lazy(() => exports.AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
1973
1860
|
])),
|
|
1974
|
-
toolApprovalRequired: exports.
|
|
1861
|
+
toolApprovalRequired: exports.RunAgentToolApprovalRequired$outboundSchema.default("none"),
|
|
1975
1862
|
maxIterations: z.number().int().default(15),
|
|
1976
1863
|
maxExecutionTime: z.number().int().default(300),
|
|
1977
1864
|
}).transform((v) => {
|
|
@@ -1985,43 +1872,44 @@ exports.Settings$outboundSchema = z.object({
|
|
|
1985
1872
|
* @internal
|
|
1986
1873
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1987
1874
|
*/
|
|
1988
|
-
var
|
|
1989
|
-
(function (
|
|
1990
|
-
/** @deprecated use `
|
|
1991
|
-
|
|
1992
|
-
/** @deprecated use `
|
|
1993
|
-
|
|
1994
|
-
})(
|
|
1995
|
-
function
|
|
1996
|
-
return JSON.stringify(exports.
|
|
1875
|
+
var RunAgentSettings$;
|
|
1876
|
+
(function (RunAgentSettings$) {
|
|
1877
|
+
/** @deprecated use `RunAgentSettings$inboundSchema` instead. */
|
|
1878
|
+
RunAgentSettings$.inboundSchema = exports.RunAgentSettings$inboundSchema;
|
|
1879
|
+
/** @deprecated use `RunAgentSettings$outboundSchema` instead. */
|
|
1880
|
+
RunAgentSettings$.outboundSchema = exports.RunAgentSettings$outboundSchema;
|
|
1881
|
+
})(RunAgentSettings$ || (exports.RunAgentSettings$ = RunAgentSettings$ = {}));
|
|
1882
|
+
function runAgentSettingsToJSON(runAgentSettings) {
|
|
1883
|
+
return JSON.stringify(exports.RunAgentSettings$outboundSchema.parse(runAgentSettings));
|
|
1997
1884
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1885
|
+
function runAgentSettingsFromJSON(jsonString) {
|
|
1886
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentSettings' from JSON`);
|
|
2000
1887
|
}
|
|
2001
1888
|
/** @internal */
|
|
2002
1889
|
exports.RunAgentRequestBody$inboundSchema = z.object({
|
|
2003
1890
|
key: z.string(),
|
|
2004
|
-
|
|
1891
|
+
task_id: z.string().optional(),
|
|
2005
1892
|
model: z.string(),
|
|
2006
1893
|
fallback_models: z.array(z.string()).optional(),
|
|
2007
1894
|
role: z.string(),
|
|
2008
1895
|
instructions: z.string(),
|
|
2009
|
-
message: z.lazy(() => exports.
|
|
1896
|
+
message: z.lazy(() => exports.RunAgentMessage$inboundSchema),
|
|
2010
1897
|
variables: z.record(z.any()).optional(),
|
|
2011
|
-
contact: z.lazy(() => exports.
|
|
1898
|
+
contact: z.lazy(() => exports.RunAgentContact$inboundSchema).optional(),
|
|
2012
1899
|
thread: z.lazy(() => exports.RunAgentThread$inboundSchema).optional(),
|
|
2013
|
-
memory: z.lazy(() => exports.
|
|
1900
|
+
memory: z.lazy(() => exports.RunAgentMemory$inboundSchema).optional(),
|
|
2014
1901
|
path: z.string(),
|
|
2015
1902
|
description: z.string().optional(),
|
|
2016
1903
|
system_prompt: z.string().optional(),
|
|
2017
1904
|
memory_stores: z.array(z.string()).optional(),
|
|
2018
|
-
knowledge_bases: z.array(z.lazy(() => exports.
|
|
1905
|
+
knowledge_bases: z.array(z.lazy(() => exports.RunAgentKnowledgeBases$inboundSchema))
|
|
2019
1906
|
.optional(),
|
|
2020
1907
|
team_of_agents: z.array(z.lazy(() => exports.TeamOfAgents$inboundSchema)).optional(),
|
|
2021
|
-
settings: z.lazy(() => exports.
|
|
1908
|
+
settings: z.lazy(() => exports.RunAgentSettings$inboundSchema),
|
|
2022
1909
|
metadata: z.record(z.any()).optional(),
|
|
2023
1910
|
}).transform((v) => {
|
|
2024
1911
|
return (0, primitives_js_1.remap)(v, {
|
|
1912
|
+
"task_id": "taskId",
|
|
2025
1913
|
"fallback_models": "fallbackModels",
|
|
2026
1914
|
"system_prompt": "systemPrompt",
|
|
2027
1915
|
"memory_stores": "memoryStores",
|
|
@@ -2037,22 +1925,23 @@ exports.RunAgentRequestBody$outboundSchema = z.object({
|
|
|
2037
1925
|
fallbackModels: z.array(z.string()).optional(),
|
|
2038
1926
|
role: z.string(),
|
|
2039
1927
|
instructions: z.string(),
|
|
2040
|
-
message: z.lazy(() => exports.
|
|
1928
|
+
message: z.lazy(() => exports.RunAgentMessage$outboundSchema),
|
|
2041
1929
|
variables: z.record(z.any()).optional(),
|
|
2042
|
-
contact: z.lazy(() => exports.
|
|
1930
|
+
contact: z.lazy(() => exports.RunAgentContact$outboundSchema).optional(),
|
|
2043
1931
|
thread: z.lazy(() => exports.RunAgentThread$outboundSchema).optional(),
|
|
2044
|
-
memory: z.lazy(() => exports.
|
|
1932
|
+
memory: z.lazy(() => exports.RunAgentMemory$outboundSchema).optional(),
|
|
2045
1933
|
path: z.string(),
|
|
2046
1934
|
description: z.string().optional(),
|
|
2047
1935
|
systemPrompt: z.string().optional(),
|
|
2048
1936
|
memoryStores: z.array(z.string()).optional(),
|
|
2049
|
-
knowledgeBases: z.array(z.lazy(() => exports.
|
|
1937
|
+
knowledgeBases: z.array(z.lazy(() => exports.RunAgentKnowledgeBases$outboundSchema))
|
|
2050
1938
|
.optional(),
|
|
2051
1939
|
teamOfAgents: z.array(z.lazy(() => exports.TeamOfAgents$outboundSchema)).optional(),
|
|
2052
|
-
settings: z.lazy(() => exports.
|
|
1940
|
+
settings: z.lazy(() => exports.RunAgentSettings$outboundSchema),
|
|
2053
1941
|
metadata: z.record(z.any()).optional(),
|
|
2054
1942
|
}).transform((v) => {
|
|
2055
1943
|
return (0, primitives_js_1.remap)(v, {
|
|
1944
|
+
taskId: "task_id",
|
|
2056
1945
|
fallbackModels: "fallback_models",
|
|
2057
1946
|
systemPrompt: "system_prompt",
|
|
2058
1947
|
memoryStores: "memory_stores",
|
|
@@ -2138,14 +2027,14 @@ var RunAgentAgentsRole$;
|
|
|
2138
2027
|
RunAgentAgentsRole$.outboundSchema = exports.RunAgentAgentsRole$outboundSchema;
|
|
2139
2028
|
})(RunAgentAgentsRole$ || (exports.RunAgentAgentsRole$ = RunAgentAgentsRole$ = {}));
|
|
2140
2029
|
/** @internal */
|
|
2141
|
-
exports.
|
|
2030
|
+
exports.RunAgentAgentsMessage$inboundSchema = z.object({
|
|
2142
2031
|
kind: exports.RunAgentAgentsKind$inboundSchema,
|
|
2143
2032
|
messageId: z.string(),
|
|
2144
2033
|
role: exports.RunAgentAgentsRole$inboundSchema,
|
|
2145
2034
|
parts: z.array(z.any()),
|
|
2146
2035
|
});
|
|
2147
2036
|
/** @internal */
|
|
2148
|
-
exports.
|
|
2037
|
+
exports.RunAgentAgentsMessage$outboundSchema = z.object({
|
|
2149
2038
|
kind: exports.RunAgentAgentsKind$outboundSchema,
|
|
2150
2039
|
messageId: z.string(),
|
|
2151
2040
|
role: exports.RunAgentAgentsRole$outboundSchema,
|
|
@@ -2155,30 +2044,30 @@ exports.RunAgentMessage$outboundSchema = z.object({
|
|
|
2155
2044
|
* @internal
|
|
2156
2045
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2157
2046
|
*/
|
|
2158
|
-
var
|
|
2159
|
-
(function (
|
|
2160
|
-
/** @deprecated use `
|
|
2161
|
-
|
|
2162
|
-
/** @deprecated use `
|
|
2163
|
-
|
|
2164
|
-
})(
|
|
2165
|
-
function
|
|
2166
|
-
return JSON.stringify(exports.
|
|
2047
|
+
var RunAgentAgentsMessage$;
|
|
2048
|
+
(function (RunAgentAgentsMessage$) {
|
|
2049
|
+
/** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
|
|
2050
|
+
RunAgentAgentsMessage$.inboundSchema = exports.RunAgentAgentsMessage$inboundSchema;
|
|
2051
|
+
/** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
|
|
2052
|
+
RunAgentAgentsMessage$.outboundSchema = exports.RunAgentAgentsMessage$outboundSchema;
|
|
2053
|
+
})(RunAgentAgentsMessage$ || (exports.RunAgentAgentsMessage$ = RunAgentAgentsMessage$ = {}));
|
|
2054
|
+
function runAgentAgentsMessageToJSON(runAgentAgentsMessage) {
|
|
2055
|
+
return JSON.stringify(exports.RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage));
|
|
2167
2056
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2057
|
+
function runAgentAgentsMessageFromJSON(jsonString) {
|
|
2058
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RunAgentAgentsMessage' from JSON`);
|
|
2170
2059
|
}
|
|
2171
2060
|
/** @internal */
|
|
2172
2061
|
exports.RunAgentStatus$inboundSchema = z.object({
|
|
2173
2062
|
state: exports.RunAgentState$inboundSchema,
|
|
2174
2063
|
timestamp: z.string().optional(),
|
|
2175
|
-
message: z.lazy(() => exports.
|
|
2064
|
+
message: z.lazy(() => exports.RunAgentAgentsMessage$inboundSchema).optional(),
|
|
2176
2065
|
});
|
|
2177
2066
|
/** @internal */
|
|
2178
2067
|
exports.RunAgentStatus$outboundSchema = z.object({
|
|
2179
2068
|
state: exports.RunAgentState$outboundSchema,
|
|
2180
2069
|
timestamp: z.string().optional(),
|
|
2181
|
-
message: z.lazy(() => exports.
|
|
2070
|
+
message: z.lazy(() => exports.RunAgentAgentsMessage$outboundSchema).optional(),
|
|
2182
2071
|
});
|
|
2183
2072
|
/**
|
|
2184
2073
|
* @internal
|