@orq-ai/node 4.1.0 → 4.1.3
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 +49 -36
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +50175 -28131
- package/bin/mcp-server.js.map +302 -120
- package/examples/package-lock.json +2 -2
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/funcs/conversationsList.js +2 -2
- package/funcs/conversationsList.js.map +1 -1
- package/funcs/{budgetsDelete.d.ts → evaluatorsGetV2EvaluatorsIdVersions.d.ts} +5 -4
- package/funcs/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
- package/funcs/{budgetsGet.js → evaluatorsGetV2EvaluatorsIdVersions.js} +19 -9
- package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +1 -0
- package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts +18 -0
- package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts.map +1 -0
- package/funcs/{budgetsUpdate.js → evaluatorsGetV2EvaluatorsIdVersionsVersionId.js} +20 -13
- package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js.map +1 -0
- package/funcs/routerChatCompletions.d.ts +23 -0
- package/funcs/routerChatCompletions.d.ts.map +1 -0
- package/funcs/routerChatCompletions.js +121 -0
- package/funcs/routerChatCompletions.js.map +1 -0
- package/funcs/{budgetsList.d.ts → routerImagesGenerate.d.ts} +4 -4
- package/funcs/routerImagesGenerate.d.ts.map +1 -0
- package/funcs/{budgetsCreate.js → routerImagesGenerate.js} +10 -10
- package/funcs/routerImagesGenerate.js.map +1 -0
- package/funcs/{budgetsUpdate.d.ts → toolsGetV2ToolsToolIdVersions.d.ts} +5 -4
- package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -0
- package/funcs/{budgetsList.js → toolsGetV2ToolsToolIdVersions.js} +23 -16
- package/funcs/toolsGetV2ToolsToolIdVersions.js.map +1 -0
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts +18 -0
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -0
- package/funcs/{budgetsDelete.js → toolsGetV2ToolsToolIdVersionsVersionId.js} +21 -14
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.js +1 -1
- package/lib/event-streams.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +3 -3
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts +3 -3
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +15 -11
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.d.ts +8 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
- package/mcp-server/tools/{budgetsCreate.js → evaluatorsGetV2EvaluatorsIdVersions.js} +9 -9
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.js.map +1 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts +8 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts.map +1 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js +64 -0
- package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js.map +1 -0
- package/mcp-server/tools/routerChatCompletions.d.ts +8 -0
- package/mcp-server/tools/routerChatCompletions.d.ts.map +1 -0
- package/mcp-server/tools/{budgetsList.js → routerChatCompletions.js} +9 -9
- package/mcp-server/tools/routerChatCompletions.js.map +1 -0
- package/mcp-server/tools/routerImagesGenerate.d.ts +8 -0
- package/mcp-server/tools/routerImagesGenerate.d.ts.map +1 -0
- package/mcp-server/tools/{budgetsGet.js → routerImagesGenerate.js} +9 -9
- package/mcp-server/tools/routerImagesGenerate.js.map +1 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.d.ts +8 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -0
- package/mcp-server/tools/{budgetsUpdate.js → toolsGetV2ToolsToolIdVersions.js} +9 -9
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.js.map +1 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.d.ts +8 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.js +64 -0
- package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -0
- package/mcp-server/tools.d.ts +3 -3
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js.map +1 -1
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +34 -0
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +25 -3
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +12 -12
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +17 -15
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/publiccontact.d.ts +52 -0
- package/models/components/publiccontact.d.ts.map +1 -0
- package/models/components/publiccontact.js +79 -0
- package/models/components/publiccontact.js.map +1 -0
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
- package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
- package/models/{operations/deletebudget.js → components/thinkingconfigdisabledschema.js} +12 -12
- package/models/components/thinkingconfigdisabledschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +49 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigenabledschema.js +84 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -0
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/getv2evaluatorsidversions.d.ts +29 -0
- package/models/errors/getv2evaluatorsidversions.d.ts.map +1 -0
- package/models/errors/getv2evaluatorsidversions.js +74 -0
- package/models/errors/getv2evaluatorsidversions.js.map +1 -0
- package/models/errors/getv2evaluatorsidversionsversionid.d.ts +29 -0
- package/models/errors/getv2evaluatorsidversionsversionid.d.ts.map +1 -0
- package/models/errors/getv2evaluatorsidversionsversionid.js +74 -0
- package/models/errors/getv2evaluatorsidversionsversionid.js.map +1 -0
- package/models/errors/getv2toolstoolidversions.d.ts +29 -0
- package/models/errors/getv2toolstoolidversions.d.ts.map +1 -0
- package/{mcp-server/tools/budgetsDelete.js → models/errors/getv2toolstoolidversions.js} +36 -25
- package/models/errors/getv2toolstoolidversions.js.map +1 -0
- package/models/errors/getv2toolstoolidversionsversionid.d.ts +29 -0
- package/models/errors/getv2toolstoolidversionsversionid.d.ts.map +1 -0
- package/models/errors/getv2toolstoolidversionsversionid.js +74 -0
- package/models/errors/getv2toolstoolidversionsversionid.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +675 -282
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +635 -260
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -166
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +35 -228
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +3154 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -0
- package/models/operations/createchatcompletion.js +3400 -0
- package/models/operations/createchatcompletion.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +56 -2
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +49 -5
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +4 -4
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +12 -12
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +44 -0
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +248 -28
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createimage.d.ts +433 -0
- package/models/operations/createimage.d.ts.map +1 -0
- package/models/operations/createimage.js +455 -0
- package/models/operations/createimage.js.map +1 -0
- package/models/operations/creatememory.d.ts +4 -1
- package/models/operations/creatememory.d.ts.map +1 -1
- package/models/operations/creatememory.js.map +1 -1
- package/models/operations/creatememorydocument.d.ts +5 -2
- package/models/operations/creatememorydocument.d.ts.map +1 -1
- package/models/operations/creatememorydocument.js.map +1 -1
- package/models/operations/createprompt.d.ts +24 -22
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +28 -26
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentcreatemetric.d.ts +4 -4
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +4 -4
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +4 -4
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +4 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +38 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +71 -11
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +2 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +42 -10
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +77 -17
- package/models/operations/deploymentstream.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/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +157 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getallmemories.d.ts +3 -0
- package/models/operations/getallmemories.d.ts.map +1 -1
- package/models/operations/getallmemories.js.map +1 -1
- package/models/operations/getallmemorydocuments.d.ts +3 -0
- package/models/operations/getallmemorydocuments.d.ts.map +1 -1
- package/models/operations/getallmemorydocuments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +10 -8
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +13 -12
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.d.ts +28 -0
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +168 -28
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +2 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2evaluatorsidversions.d.ts +100 -0
- package/models/operations/getv2evaluatorsidversions.d.ts.map +1 -0
- package/models/operations/getv2evaluatorsidversions.js +166 -0
- package/models/operations/getv2evaluatorsidversions.js.map +1 -0
- package/models/operations/getv2evaluatorsidversionsversionid.d.ts +61 -0
- package/models/operations/getv2evaluatorsidversionsversionid.d.ts.map +1 -0
- package/models/operations/getv2evaluatorsidversionsversionid.js +125 -0
- package/models/operations/getv2evaluatorsidversionsversionid.js.map +1 -0
- package/models/operations/getv2toolstoolidversions.d.ts +100 -0
- package/models/operations/getv2toolstoolidversions.d.ts.map +1 -0
- package/models/operations/getv2toolstoolidversions.js +168 -0
- package/models/operations/getv2toolstoolidversions.js.map +1 -0
- package/models/operations/getv2toolstoolidversionsversionid.d.ts +61 -0
- package/models/operations/getv2toolstoolidversionsversionid.d.ts.map +1 -0
- package/models/operations/getv2toolstoolidversionsversionid.js +127 -0
- package/models/operations/getv2toolstoolidversionsversionid.js.map +1 -0
- package/models/operations/index.d.ts +7 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/invokeeval.d.ts +5 -5
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +7 -7
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +231 -106
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +212 -91
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listconversations.d.ts +4 -4
- package/models/operations/listconversations.d.ts.map +1 -1
- package/models/operations/listconversations.js +2 -12
- package/models/operations/listconversations.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +2 -2
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +10 -10
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +2 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +231 -106
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +213 -91
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +34 -0
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +26 -3
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +2 -2
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +10 -10
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievememory.d.ts +3 -0
- package/models/operations/retrievememory.d.ts.map +1 -1
- package/models/operations/retrievememory.js.map +1 -1
- package/models/operations/retrievememorydocument.d.ts +3 -0
- package/models/operations/retrievememorydocument.d.ts.map +1 -1
- package/models/operations/retrievememorydocument.js.map +1 -1
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +230 -106
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +218 -98
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +230 -106
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +215 -97
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +642 -246
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +581 -215
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +57 -0
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +47 -3
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +4 -4
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +12 -12
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +44 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +248 -28
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatememory.d.ts +4 -1
- package/models/operations/updatememory.d.ts.map +1 -1
- package/models/operations/updatememory.js.map +1 -1
- package/models/operations/updatememorydocument.d.ts +5 -2
- package/models/operations/updatememorydocument.d.ts.map +1 -1
- package/models/operations/updatememorydocument.js.map +1 -1
- package/models/operations/updatememorystore.d.ts +2 -0
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -0
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +6 -2
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +6 -2
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +2 -2
- package/packages/orq-rc/examples/package-lock.json +2 -2
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +603 -98
- package/packages/orq-rc/package.json +2 -2
- package/{src/funcs/budgetsUpdate.ts → packages/orq-rc/src/funcs/conversationsGenerateName.ts} +45 -18
- package/packages/orq-rc/src/funcs/conversationsList.ts +2 -2
- package/{src/funcs/budgetsGet.ts → packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts} +32 -15
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +190 -0
- package/{src/funcs/budgetsCreate.ts → packages/orq-rc/src/funcs/routerChatCompletions.ts} +29 -17
- package/{src/funcs/budgetsDelete.ts → packages/orq-rc/src/funcs/routerImagesGenerate.ts} +19 -26
- package/packages/orq-rc/src/funcs/{budgetsList.ts → toolsGetV2ToolsToolIdVersions.ts} +34 -21
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +1 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/prompts.ts +7 -3
- package/packages/orq-rc/src/mcp-server/resources.ts +7 -3
- package/packages/orq-rc/src/mcp-server/server.ts +15 -11
- package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +39 -0
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/{budgetsUpdate.ts → routerImagesGenerate.ts} +7 -7
- package/{src/mcp-server/tools/budgetsGet.ts → packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts} +7 -7
- package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +39 -0
- package/packages/orq-rc/src/mcp-server/tools.ts +7 -3
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +185 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/packages/orq-rc/src/models/components/conversationresponse.ts +68 -2
- package/packages/orq-rc/src/models/components/createagentresponse.ts +340 -0
- package/packages/orq-rc/src/models/components/index.ts +5 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +34 -26
- package/packages/orq-rc/src/models/components/partdoneevent.ts +2 -2
- package/packages/orq-rc/src/models/components/publiccontact.ts +99 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +2 -2
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +93 -68
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/packages/orq-rc/src/models/errors/generateconversationname.ts +132 -0
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +67 -0
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +69 -0
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +67 -0
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +69 -0
- package/packages/orq-rc/src/models/errors/index.ts +5 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +1561 -542
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +72 -513
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8948 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createconversation.ts +141 -6
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +16 -16
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +292 -28
- package/packages/orq-rc/src/models/operations/createimage.ts +966 -0
- package/packages/orq-rc/src/models/operations/creatememory.ts +4 -1
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +5 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +54 -52
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -8
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9 -9
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +141 -16
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +171 -26
- 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/generateconversationname.ts +319 -0
- package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +47 -38
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getevals.ts +196 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +2 -0
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +274 -0
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +193 -0
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +276 -0
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +194 -0
- package/packages/orq-rc/src/models/operations/index.ts +7 -5
- package/packages/orq-rc/src/models/operations/invokeagent.ts +19 -26
- package/packages/orq-rc/src/models/operations/invokeeval.ts +11 -10
- package/packages/orq-rc/src/models/operations/listagents.ts +502 -194
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listconversations.ts +6 -16
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +12 -12
- 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/listpromptversions.ts +2 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +532 -202
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveconversation.ts +75 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +12 -12
- 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/retrievememory.ts +3 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +3 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +505 -202
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +532 -209
- package/packages/orq-rc/src/models/operations/updateagent.ts +1491 -465
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateconversation.ts +140 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +16 -16
- 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 +292 -28
- package/packages/orq-rc/src/models/operations/updatememory.ts +4 -1
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +5 -2
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +2 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/conversations.ts +20 -0
- package/packages/orq-rc/src/sdk/evaluators.ts +45 -0
- package/packages/orq-rc/src/sdk/router.ts +52 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -6
- package/packages/orq-rc/src/sdk/tools.ts +36 -0
- package/sdk/conversations.d.ts +7 -0
- package/sdk/conversations.d.ts.map +1 -1
- package/sdk/conversations.js +10 -0
- package/sdk/conversations.js.map +1 -1
- package/sdk/evaluators.d.ts +19 -0
- package/sdk/evaluators.d.ts.map +1 -0
- package/sdk/evaluators.js +32 -0
- package/sdk/evaluators.js.map +1 -0
- package/sdk/router.d.ts +23 -0
- package/sdk/router.d.ts.map +1 -0
- package/sdk/router.js +34 -0
- package/sdk/router.js.map +1 -0
- package/sdk/sdk.d.ts +6 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -4
- package/sdk/sdk.js.map +1 -1
- package/sdk/tools.d.ts +14 -0
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +20 -0
- package/sdk/tools.js.map +1 -1
- package/{packages/orq-rc/src/funcs/budgetsUpdate.ts → src/funcs/conversationsGenerateName.ts} +45 -18
- package/src/funcs/conversationsList.ts +2 -2
- package/{packages/orq-rc/src/funcs/budgetsGet.ts → src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts} +32 -15
- package/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +190 -0
- package/{packages/orq-rc/src/funcs/budgetsCreate.ts → src/funcs/routerChatCompletions.ts} +29 -17
- package/{packages/orq-rc/src/funcs/budgetsDelete.ts → src/funcs/routerImagesGenerate.ts} +19 -26
- package/src/funcs/{budgetsList.ts → toolsGetV2ToolsToolIdVersions.ts} +34 -21
- package/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +7 -3
- package/src/mcp-server/resources.ts +7 -3
- package/src/mcp-server/server.ts +15 -11
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +39 -0
- package/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +40 -0
- package/src/mcp-server/tools/routerChatCompletions.ts +37 -0
- package/{packages/orq-rc/src/mcp-server/tools/budgetsGet.ts → src/mcp-server/tools/routerImagesGenerate.ts} +7 -7
- package/src/mcp-server/tools/{budgetsUpdate.ts → toolsGetV2ToolsToolIdVersions.ts} +7 -7
- package/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +39 -0
- package/src/mcp-server/tools.ts +7 -3
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/conversationresponse.ts +68 -2
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invokedeploymentrequest.ts +33 -25
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/publiccontact.ts +99 -0
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/getv2evaluatorsidversions.ts +67 -0
- package/src/models/errors/getv2evaluatorsidversionsversionid.ts +69 -0
- package/src/models/errors/getv2toolstoolidversions.ts +67 -0
- package/src/models/errors/getv2toolstoolidversionsversionid.ts +69 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/operations/createagentrequest.ts +1561 -542
- package/src/models/operations/createagentresponserequest.ts +72 -513
- package/src/models/operations/createchatcompletion.ts +8948 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +141 -6
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +16 -16
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +292 -28
- package/src/models/operations/createimage.ts +966 -0
- package/src/models/operations/creatememory.ts +4 -1
- package/src/models/operations/creatememorydocument.ts +5 -2
- package/src/models/operations/createprompt.ts +54 -52
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentcreatemetric.ts +8 -8
- package/src/models/operations/deploymentgetconfig.ts +8 -8
- package/src/models/operations/deploymentinvoke.ts +141 -16
- package/src/models/operations/deployments.ts +2 -0
- package/src/models/operations/deploymentstream.ts +170 -25
- 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/generateconversationname.ts +319 -0
- package/src/models/operations/getallmemories.ts +3 -0
- package/src/models/operations/getallmemorydocuments.ts +3 -0
- package/src/models/operations/getallprompts.ts +47 -38
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +196 -28
- package/src/models/operations/getoneprompt.ts +2 -0
- package/src/models/operations/getpromptversion.ts +2 -0
- package/src/models/operations/getv2evaluatorsidversions.ts +274 -0
- package/src/models/operations/getv2evaluatorsidversionsversionid.ts +193 -0
- package/src/models/operations/getv2toolstoolidversions.ts +276 -0
- package/src/models/operations/getv2toolstoolidversionsversionid.ts +194 -0
- package/src/models/operations/index.ts +7 -5
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/invokeeval.ts +11 -10
- package/src/models/operations/listagents.ts +502 -194
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listconversations.ts +6 -16
- package/src/models/operations/listdatasetdatapoints.ts +12 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +2 -0
- package/src/models/operations/retrieveagentrequest.ts +532 -202
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +75 -2
- package/src/models/operations/retrievedatapoint.ts +12 -12
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievememory.ts +3 -0
- package/src/models/operations/retrievememorydocument.ts +3 -0
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +505 -202
- package/src/models/operations/streamrunagent.ts +532 -209
- package/src/models/operations/updateagent.ts +1491 -465
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +140 -2
- package/src/models/operations/updatedatapoint.ts +16 -16
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +292 -28
- package/src/models/operations/updatememory.ts +4 -1
- package/src/models/operations/updatememorydocument.ts +5 -2
- package/src/models/operations/updatememorystore.ts +2 -0
- package/src/models/operations/updateprompt.ts +8 -4
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/conversations.ts +20 -0
- package/src/sdk/evaluators.ts +45 -0
- package/src/sdk/router.ts +52 -0
- package/src/sdk/sdk.ts +12 -6
- package/src/sdk/tools.ts +36 -0
- package/funcs/budgetsCreate.d.ts +0 -17
- package/funcs/budgetsCreate.d.ts.map +0 -1
- package/funcs/budgetsCreate.js.map +0 -1
- package/funcs/budgetsDelete.d.ts.map +0 -1
- package/funcs/budgetsDelete.js.map +0 -1
- package/funcs/budgetsGet.d.ts +0 -17
- package/funcs/budgetsGet.d.ts.map +0 -1
- package/funcs/budgetsGet.js.map +0 -1
- package/funcs/budgetsList.d.ts.map +0 -1
- package/funcs/budgetsList.js.map +0 -1
- package/funcs/budgetsUpdate.d.ts.map +0 -1
- package/funcs/budgetsUpdate.js.map +0 -1
- package/mcp-server/tools/budgetsCreate.d.ts +0 -8
- package/mcp-server/tools/budgetsCreate.d.ts.map +0 -1
- package/mcp-server/tools/budgetsCreate.js.map +0 -1
- package/mcp-server/tools/budgetsDelete.d.ts +0 -8
- package/mcp-server/tools/budgetsDelete.d.ts.map +0 -1
- package/mcp-server/tools/budgetsDelete.js.map +0 -1
- package/mcp-server/tools/budgetsGet.d.ts +0 -8
- package/mcp-server/tools/budgetsGet.d.ts.map +0 -1
- package/mcp-server/tools/budgetsGet.js.map +0 -1
- package/mcp-server/tools/budgetsList.d.ts +0 -8
- package/mcp-server/tools/budgetsList.d.ts.map +0 -1
- package/mcp-server/tools/budgetsList.js.map +0 -1
- package/mcp-server/tools/budgetsUpdate.d.ts +0 -8
- package/mcp-server/tools/budgetsUpdate.d.ts.map +0 -1
- package/mcp-server/tools/budgetsUpdate.js.map +0 -1
- package/models/operations/createbudget.d.ts +0 -315
- package/models/operations/createbudget.d.ts.map +0 -1
- package/models/operations/createbudget.js +0 -314
- package/models/operations/createbudget.js.map +0 -1
- package/models/operations/deletebudget.d.ts +0 -20
- package/models/operations/deletebudget.d.ts.map +0 -1
- package/models/operations/deletebudget.js.map +0 -1
- package/models/operations/getbudget.d.ts +0 -171
- package/models/operations/getbudget.d.ts.map +0 -1
- package/models/operations/getbudget.js +0 -191
- package/models/operations/getbudget.js.map +0 -1
- package/models/operations/listbudgets.d.ts +0 -234
- package/models/operations/listbudgets.d.ts.map +0 -1
- package/models/operations/listbudgets.js +0 -257
- package/models/operations/listbudgets.js.map +0 -1
- package/models/operations/updatebudget.d.ts +0 -235
- package/models/operations/updatebudget.d.ts.map +0 -1
- package/models/operations/updatebudget.js +0 -260
- package/models/operations/updatebudget.js.map +0 -1
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -653
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -366
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -503
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -511
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/sdk/budgets.d.ts +0 -40
- package/sdk/budgets.d.ts.map +0 -1
- package/sdk/budgets.js +0 -62
- package/sdk/budgets.js.map +0 -1
- package/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/src/mcp-server/tools/budgetsList.ts +0 -37
- package/src/models/operations/createbudget.ts +0 -653
- package/src/models/operations/deletebudget.ts +0 -54
- package/src/models/operations/getbudget.ts +0 -366
- package/src/models/operations/listbudgets.ts +0 -503
- package/src/models/operations/updatebudget.ts +0 -511
- package/src/sdk/budgets.ts +0 -99
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -106,6 +107,40 @@ export type Text = {
|
|
|
106
107
|
*/
|
|
107
108
|
export type ResponseFormat = Text | JSONObject | JSONSchema;
|
|
108
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
112
|
+
*
|
|
113
|
+
* @remarks
|
|
114
|
+
*
|
|
115
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
116
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
117
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
118
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
119
|
+
*
|
|
120
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
121
|
+
*/
|
|
122
|
+
export const ReasoningEffort = {
|
|
123
|
+
None: "none",
|
|
124
|
+
Minimal: "minimal",
|
|
125
|
+
Low: "low",
|
|
126
|
+
Medium: "medium",
|
|
127
|
+
High: "high",
|
|
128
|
+
Xhigh: "xhigh",
|
|
129
|
+
} as const;
|
|
130
|
+
/**
|
|
131
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
132
|
+
*
|
|
133
|
+
* @remarks
|
|
134
|
+
*
|
|
135
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
136
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
137
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
138
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
139
|
+
*
|
|
140
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
141
|
+
*/
|
|
142
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
143
|
+
|
|
109
144
|
/**
|
|
110
145
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
111
146
|
*/
|
|
@@ -121,44 +156,9 @@ export type StreamOptions = {
|
|
|
121
156
|
includeUsage?: boolean | undefined;
|
|
122
157
|
};
|
|
123
158
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export const ModelConfigurationType = {
|
|
128
|
-
Enabled: "enabled",
|
|
129
|
-
Disabled: "disabled",
|
|
130
|
-
} as const;
|
|
131
|
-
/**
|
|
132
|
-
* Enables or disables the thinking mode capability
|
|
133
|
-
*/
|
|
134
|
-
export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
138
|
-
*/
|
|
139
|
-
export const ThinkingLevel = {
|
|
140
|
-
Low: "low",
|
|
141
|
-
High: "high",
|
|
142
|
-
} as const;
|
|
143
|
-
/**
|
|
144
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
145
|
-
*/
|
|
146
|
-
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
147
|
-
|
|
148
|
-
export type Thinking = {
|
|
149
|
-
/**
|
|
150
|
-
* Enables or disables the thinking mode capability
|
|
151
|
-
*/
|
|
152
|
-
type: ModelConfigurationType;
|
|
153
|
-
/**
|
|
154
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
155
|
-
*/
|
|
156
|
-
budgetTokens: number;
|
|
157
|
-
/**
|
|
158
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
159
|
-
*/
|
|
160
|
-
thinkingLevel?: ThinkingLevel | undefined;
|
|
161
|
-
};
|
|
159
|
+
export type Thinking =
|
|
160
|
+
| components.ThinkingConfigDisabledSchema
|
|
161
|
+
| components.ThinkingConfigEnabledSchema;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -204,6 +204,41 @@ export const Modalities = {
|
|
|
204
204
|
} as const;
|
|
205
205
|
export type Modalities = ClosedEnum<typeof Modalities>;
|
|
206
206
|
|
|
207
|
+
/**
|
|
208
|
+
* The key of the guardrail.
|
|
209
|
+
*/
|
|
210
|
+
export const Id1 = {
|
|
211
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
212
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
213
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
214
|
+
} as const;
|
|
215
|
+
/**
|
|
216
|
+
* The key of the guardrail.
|
|
217
|
+
*/
|
|
218
|
+
export type Id1 = ClosedEnum<typeof Id1>;
|
|
219
|
+
|
|
220
|
+
export type Id = Id1 | string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
224
|
+
*/
|
|
225
|
+
export const ExecuteOn = {
|
|
226
|
+
Input: "input",
|
|
227
|
+
Output: "output",
|
|
228
|
+
} as const;
|
|
229
|
+
/**
|
|
230
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
231
|
+
*/
|
|
232
|
+
export type ExecuteOn = ClosedEnum<typeof ExecuteOn>;
|
|
233
|
+
|
|
234
|
+
export type Guardrails = {
|
|
235
|
+
id: Id1 | string;
|
|
236
|
+
/**
|
|
237
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
238
|
+
*/
|
|
239
|
+
executeOn: ExecuteOn;
|
|
240
|
+
};
|
|
241
|
+
|
|
207
242
|
/**
|
|
208
243
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
209
244
|
*/
|
|
@@ -249,9 +284,18 @@ export type ParametersT = {
|
|
|
249
284
|
*/
|
|
250
285
|
responseFormat?: Text | JSONObject | JSONSchema | undefined;
|
|
251
286
|
/**
|
|
252
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
287
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
288
|
+
*
|
|
289
|
+
* @remarks
|
|
290
|
+
*
|
|
291
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
292
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
293
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
294
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
295
|
+
*
|
|
296
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
253
297
|
*/
|
|
254
|
-
reasoningEffort?:
|
|
298
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
255
299
|
/**
|
|
256
300
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
257
301
|
*/
|
|
@@ -268,7 +312,10 @@ export type ParametersT = {
|
|
|
268
312
|
* Options for streaming response. Only set this when you set stream: true.
|
|
269
313
|
*/
|
|
270
314
|
streamOptions?: StreamOptions | null | undefined;
|
|
271
|
-
thinking?:
|
|
315
|
+
thinking?:
|
|
316
|
+
| components.ThinkingConfigDisabledSchema
|
|
317
|
+
| components.ThinkingConfigEnabledSchema
|
|
318
|
+
| undefined;
|
|
272
319
|
/**
|
|
273
320
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
274
321
|
*/
|
|
@@ -293,6 +340,10 @@ export type ParametersT = {
|
|
|
293
340
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
294
341
|
*/
|
|
295
342
|
modalities?: Array<Modalities> | null | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* A list of guardrails to apply to the request.
|
|
345
|
+
*/
|
|
346
|
+
guardrails?: Array<Guardrails> | undefined;
|
|
296
347
|
};
|
|
297
348
|
|
|
298
349
|
/**
|
|
@@ -438,6 +489,42 @@ export type FallbackModelConfigurationResponseFormat =
|
|
|
438
489
|
| ResponseFormatJSONObject
|
|
439
490
|
| CreateAgentRequestResponseFormatJSONSchema;
|
|
440
491
|
|
|
492
|
+
/**
|
|
493
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
494
|
+
*
|
|
495
|
+
* @remarks
|
|
496
|
+
*
|
|
497
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
498
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
499
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
500
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
501
|
+
*
|
|
502
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
503
|
+
*/
|
|
504
|
+
export const FallbackModelConfigurationReasoningEffort = {
|
|
505
|
+
None: "none",
|
|
506
|
+
Minimal: "minimal",
|
|
507
|
+
Low: "low",
|
|
508
|
+
Medium: "medium",
|
|
509
|
+
High: "high",
|
|
510
|
+
Xhigh: "xhigh",
|
|
511
|
+
} as const;
|
|
512
|
+
/**
|
|
513
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
514
|
+
*
|
|
515
|
+
* @remarks
|
|
516
|
+
*
|
|
517
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
518
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
519
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
520
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
521
|
+
*
|
|
522
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
523
|
+
*/
|
|
524
|
+
export type FallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
525
|
+
typeof FallbackModelConfigurationReasoningEffort
|
|
526
|
+
>;
|
|
527
|
+
|
|
441
528
|
/**
|
|
442
529
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
443
530
|
*/
|
|
@@ -453,48 +540,9 @@ export type FallbackModelConfigurationStreamOptions = {
|
|
|
453
540
|
includeUsage?: boolean | undefined;
|
|
454
541
|
};
|
|
455
542
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
export const FallbackModelConfigurationType = {
|
|
460
|
-
Enabled: "enabled",
|
|
461
|
-
Disabled: "disabled",
|
|
462
|
-
} as const;
|
|
463
|
-
/**
|
|
464
|
-
* Enables or disables the thinking mode capability
|
|
465
|
-
*/
|
|
466
|
-
export type FallbackModelConfigurationType = ClosedEnum<
|
|
467
|
-
typeof FallbackModelConfigurationType
|
|
468
|
-
>;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
472
|
-
*/
|
|
473
|
-
export const FallbackModelConfigurationThinkingLevel = {
|
|
474
|
-
Low: "low",
|
|
475
|
-
High: "high",
|
|
476
|
-
} as const;
|
|
477
|
-
/**
|
|
478
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
479
|
-
*/
|
|
480
|
-
export type FallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
481
|
-
typeof FallbackModelConfigurationThinkingLevel
|
|
482
|
-
>;
|
|
483
|
-
|
|
484
|
-
export type FallbackModelConfigurationThinking = {
|
|
485
|
-
/**
|
|
486
|
-
* Enables or disables the thinking mode capability
|
|
487
|
-
*/
|
|
488
|
-
type: FallbackModelConfigurationType;
|
|
489
|
-
/**
|
|
490
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
491
|
-
*/
|
|
492
|
-
budgetTokens: number;
|
|
493
|
-
/**
|
|
494
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
495
|
-
*/
|
|
496
|
-
thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
|
|
497
|
-
};
|
|
543
|
+
export type FallbackModelConfigurationThinking =
|
|
544
|
+
| components.ThinkingConfigDisabledSchema
|
|
545
|
+
| components.ThinkingConfigEnabledSchema;
|
|
498
546
|
|
|
499
547
|
/**
|
|
500
548
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -548,6 +596,43 @@ export type FallbackModelConfigurationModalities = ClosedEnum<
|
|
|
548
596
|
typeof FallbackModelConfigurationModalities
|
|
549
597
|
>;
|
|
550
598
|
|
|
599
|
+
/**
|
|
600
|
+
* The key of the guardrail.
|
|
601
|
+
*/
|
|
602
|
+
export const CreateAgentRequestId1 = {
|
|
603
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
604
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
605
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
606
|
+
} as const;
|
|
607
|
+
/**
|
|
608
|
+
* The key of the guardrail.
|
|
609
|
+
*/
|
|
610
|
+
export type CreateAgentRequestId1 = ClosedEnum<typeof CreateAgentRequestId1>;
|
|
611
|
+
|
|
612
|
+
export type FallbackModelConfigurationId = CreateAgentRequestId1 | string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
616
|
+
*/
|
|
617
|
+
export const FallbackModelConfigurationExecuteOn = {
|
|
618
|
+
Input: "input",
|
|
619
|
+
Output: "output",
|
|
620
|
+
} as const;
|
|
621
|
+
/**
|
|
622
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
623
|
+
*/
|
|
624
|
+
export type FallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
625
|
+
typeof FallbackModelConfigurationExecuteOn
|
|
626
|
+
>;
|
|
627
|
+
|
|
628
|
+
export type FallbackModelConfigurationGuardrails = {
|
|
629
|
+
id: CreateAgentRequestId1 | string;
|
|
630
|
+
/**
|
|
631
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
632
|
+
*/
|
|
633
|
+
executeOn: FallbackModelConfigurationExecuteOn;
|
|
634
|
+
};
|
|
635
|
+
|
|
551
636
|
/**
|
|
552
637
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
553
638
|
*/
|
|
@@ -597,9 +682,18 @@ export type FallbackModelConfigurationParameters = {
|
|
|
597
682
|
| CreateAgentRequestResponseFormatJSONSchema
|
|
598
683
|
| undefined;
|
|
599
684
|
/**
|
|
600
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
685
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
686
|
+
*
|
|
687
|
+
* @remarks
|
|
688
|
+
*
|
|
689
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
690
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
691
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
692
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
693
|
+
*
|
|
694
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
601
695
|
*/
|
|
602
|
-
reasoningEffort?:
|
|
696
|
+
reasoningEffort?: FallbackModelConfigurationReasoningEffort | undefined;
|
|
603
697
|
/**
|
|
604
698
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
605
699
|
*/
|
|
@@ -616,7 +710,10 @@ export type FallbackModelConfigurationParameters = {
|
|
|
616
710
|
* Options for streaming response. Only set this when you set stream: true.
|
|
617
711
|
*/
|
|
618
712
|
streamOptions?: FallbackModelConfigurationStreamOptions | null | undefined;
|
|
619
|
-
thinking?:
|
|
713
|
+
thinking?:
|
|
714
|
+
| components.ThinkingConfigDisabledSchema
|
|
715
|
+
| components.ThinkingConfigEnabledSchema
|
|
716
|
+
| undefined;
|
|
620
717
|
/**
|
|
621
718
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
622
719
|
*/
|
|
@@ -644,6 +741,10 @@ export type FallbackModelConfigurationParameters = {
|
|
|
644
741
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
645
742
|
*/
|
|
646
743
|
modalities?: Array<FallbackModelConfigurationModalities> | null | undefined;
|
|
744
|
+
/**
|
|
745
|
+
* A list of guardrails to apply to the request.
|
|
746
|
+
*/
|
|
747
|
+
guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
|
|
647
748
|
};
|
|
648
749
|
|
|
649
750
|
/**
|
|
@@ -678,6 +779,21 @@ export const ToolApprovalRequired = {
|
|
|
678
779
|
*/
|
|
679
780
|
export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
680
781
|
|
|
782
|
+
/**
|
|
783
|
+
* MCP tool type
|
|
784
|
+
*/
|
|
785
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
|
|
786
|
+
{
|
|
787
|
+
Mcp: "mcp",
|
|
788
|
+
} as const;
|
|
789
|
+
/**
|
|
790
|
+
* MCP tool type
|
|
791
|
+
*/
|
|
792
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
|
|
793
|
+
ClosedEnum<
|
|
794
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
795
|
+
>;
|
|
796
|
+
|
|
681
797
|
/**
|
|
682
798
|
* Executes tools from Model Context Protocol (MCP) servers. Specify the parent MCP tool using "key" or "id", and the specific nested tool using "tool_id".
|
|
683
799
|
*/
|
|
@@ -685,7 +801,9 @@ export type MCPTool = {
|
|
|
685
801
|
/**
|
|
686
802
|
* MCP tool type
|
|
687
803
|
*/
|
|
688
|
-
type
|
|
804
|
+
type?:
|
|
805
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
806
|
+
| undefined;
|
|
689
807
|
/**
|
|
690
808
|
* The key of the parent MCP tool
|
|
691
809
|
*/
|
|
@@ -704,6 +822,21 @@ export type MCPTool = {
|
|
|
704
822
|
requiresApproval?: boolean | undefined;
|
|
705
823
|
};
|
|
706
824
|
|
|
825
|
+
/**
|
|
826
|
+
* Function tool type
|
|
827
|
+
*/
|
|
828
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
829
|
+
{
|
|
830
|
+
Function: "function",
|
|
831
|
+
} as const;
|
|
832
|
+
/**
|
|
833
|
+
* Function tool type
|
|
834
|
+
*/
|
|
835
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
836
|
+
ClosedEnum<
|
|
837
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
838
|
+
>;
|
|
839
|
+
|
|
707
840
|
/**
|
|
708
841
|
* Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
|
|
709
842
|
*/
|
|
@@ -711,7 +844,9 @@ export type FunctionTool = {
|
|
|
711
844
|
/**
|
|
712
845
|
* Function tool type
|
|
713
846
|
*/
|
|
714
|
-
type
|
|
847
|
+
type?:
|
|
848
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
849
|
+
| undefined;
|
|
715
850
|
/**
|
|
716
851
|
* The key of the pre-created function tool
|
|
717
852
|
*/
|
|
@@ -726,6 +861,21 @@ export type FunctionTool = {
|
|
|
726
861
|
requiresApproval?: boolean | undefined;
|
|
727
862
|
};
|
|
728
863
|
|
|
864
|
+
/**
|
|
865
|
+
* Code execution tool type
|
|
866
|
+
*/
|
|
867
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
868
|
+
{
|
|
869
|
+
Code: "code",
|
|
870
|
+
} as const;
|
|
871
|
+
/**
|
|
872
|
+
* Code execution tool type
|
|
873
|
+
*/
|
|
874
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
875
|
+
ClosedEnum<
|
|
876
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
877
|
+
>;
|
|
878
|
+
|
|
729
879
|
/**
|
|
730
880
|
* Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
|
|
731
881
|
*/
|
|
@@ -733,7 +883,9 @@ export type CodeExecutionTool = {
|
|
|
733
883
|
/**
|
|
734
884
|
* Code execution tool type
|
|
735
885
|
*/
|
|
736
|
-
type
|
|
886
|
+
type?:
|
|
887
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
888
|
+
| undefined;
|
|
737
889
|
/**
|
|
738
890
|
* The key of the pre-created code tool
|
|
739
891
|
*/
|
|
@@ -748,6 +900,21 @@ export type CodeExecutionTool = {
|
|
|
748
900
|
requiresApproval?: boolean | undefined;
|
|
749
901
|
};
|
|
750
902
|
|
|
903
|
+
/**
|
|
904
|
+
* HTTP tool type
|
|
905
|
+
*/
|
|
906
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
907
|
+
{
|
|
908
|
+
Http: "http",
|
|
909
|
+
} as const;
|
|
910
|
+
/**
|
|
911
|
+
* HTTP tool type
|
|
912
|
+
*/
|
|
913
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
914
|
+
ClosedEnum<
|
|
915
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
916
|
+
>;
|
|
917
|
+
|
|
751
918
|
/**
|
|
752
919
|
* Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
|
|
753
920
|
*/
|
|
@@ -755,7 +922,9 @@ export type HTTPTool = {
|
|
|
755
922
|
/**
|
|
756
923
|
* HTTP tool type
|
|
757
924
|
*/
|
|
758
|
-
type
|
|
925
|
+
type?:
|
|
926
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
927
|
+
| undefined;
|
|
759
928
|
/**
|
|
760
929
|
* The key of the pre-created HTTP tool
|
|
761
930
|
*/
|
|
@@ -770,121 +939,216 @@ export type HTTPTool = {
|
|
|
770
939
|
requiresApproval?: boolean | undefined;
|
|
771
940
|
};
|
|
772
941
|
|
|
942
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
|
|
943
|
+
{
|
|
944
|
+
CurrentDate: "current_date",
|
|
945
|
+
} as const;
|
|
946
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
|
|
947
|
+
ClosedEnum<
|
|
948
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
949
|
+
>;
|
|
950
|
+
|
|
773
951
|
/**
|
|
774
952
|
* Returns the current date and time
|
|
775
953
|
*/
|
|
776
954
|
export type CurrentDateTool = {
|
|
777
|
-
type:
|
|
955
|
+
type:
|
|
956
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
|
|
778
957
|
/**
|
|
779
958
|
* Whether this tool requires approval before execution
|
|
780
959
|
*/
|
|
781
960
|
requiresApproval?: boolean | undefined;
|
|
782
961
|
};
|
|
783
962
|
|
|
963
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
|
|
964
|
+
{
|
|
965
|
+
QueryKnowledgeBase: "query_knowledge_base",
|
|
966
|
+
} as const;
|
|
967
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
|
|
968
|
+
ClosedEnum<
|
|
969
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
970
|
+
>;
|
|
971
|
+
|
|
784
972
|
/**
|
|
785
973
|
* Queries knowledge bases for information
|
|
786
974
|
*/
|
|
787
975
|
export type QueryKnowledgeBaseTool = {
|
|
788
|
-
type:
|
|
976
|
+
type:
|
|
977
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
|
|
789
978
|
/**
|
|
790
979
|
* Whether this tool requires approval before execution
|
|
791
980
|
*/
|
|
792
981
|
requiresApproval?: boolean | undefined;
|
|
793
982
|
};
|
|
794
983
|
|
|
984
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
|
|
985
|
+
{
|
|
986
|
+
RetrieveKnowledgeBases: "retrieve_knowledge_bases",
|
|
987
|
+
} as const;
|
|
988
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
|
|
989
|
+
ClosedEnum<
|
|
990
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
991
|
+
>;
|
|
992
|
+
|
|
795
993
|
/**
|
|
796
994
|
* Lists available knowledge bases
|
|
797
995
|
*/
|
|
798
996
|
export type RetrieveKnowledgeBasesTool = {
|
|
799
|
-
type:
|
|
997
|
+
type:
|
|
998
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
|
|
800
999
|
/**
|
|
801
1000
|
* Whether this tool requires approval before execution
|
|
802
1001
|
*/
|
|
803
1002
|
requiresApproval?: boolean | undefined;
|
|
804
1003
|
};
|
|
805
1004
|
|
|
1005
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
|
|
1006
|
+
{
|
|
1007
|
+
DeleteMemoryDocument: "delete_memory_document",
|
|
1008
|
+
} as const;
|
|
1009
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
|
|
1010
|
+
ClosedEnum<
|
|
1011
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
1012
|
+
>;
|
|
1013
|
+
|
|
806
1014
|
/**
|
|
807
1015
|
* Deletes documents from memory stores
|
|
808
1016
|
*/
|
|
809
1017
|
export type DeleteMemoryDocumentTool = {
|
|
810
|
-
type:
|
|
1018
|
+
type:
|
|
1019
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
|
|
811
1020
|
/**
|
|
812
1021
|
* Whether this tool requires approval before execution
|
|
813
1022
|
*/
|
|
814
1023
|
requiresApproval?: boolean | undefined;
|
|
815
1024
|
};
|
|
816
1025
|
|
|
1026
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
|
|
1027
|
+
{
|
|
1028
|
+
RetrieveMemoryStores: "retrieve_memory_stores",
|
|
1029
|
+
} as const;
|
|
1030
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
|
|
1031
|
+
ClosedEnum<
|
|
1032
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
1033
|
+
>;
|
|
1034
|
+
|
|
817
1035
|
/**
|
|
818
1036
|
* Lists available memory stores
|
|
819
1037
|
*/
|
|
820
1038
|
export type RetrieveMemoryStoresTool = {
|
|
821
|
-
type:
|
|
1039
|
+
type:
|
|
1040
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
|
|
822
1041
|
/**
|
|
823
1042
|
* Whether this tool requires approval before execution
|
|
824
1043
|
*/
|
|
825
1044
|
requiresApproval?: boolean | undefined;
|
|
826
1045
|
};
|
|
827
1046
|
|
|
1047
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
|
|
1048
|
+
{
|
|
1049
|
+
WriteMemoryStore: "write_memory_store",
|
|
1050
|
+
} as const;
|
|
1051
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
|
|
1052
|
+
ClosedEnum<
|
|
1053
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
1054
|
+
>;
|
|
1055
|
+
|
|
828
1056
|
/**
|
|
829
1057
|
* Writes information to agent memory stores
|
|
830
1058
|
*/
|
|
831
1059
|
export type WriteMemoryStoreTool = {
|
|
832
|
-
type:
|
|
1060
|
+
type:
|
|
1061
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
|
|
833
1062
|
/**
|
|
834
1063
|
* Whether this tool requires approval before execution
|
|
835
1064
|
*/
|
|
836
1065
|
requiresApproval?: boolean | undefined;
|
|
837
1066
|
};
|
|
838
1067
|
|
|
1068
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType =
|
|
1069
|
+
{
|
|
1070
|
+
QueryMemoryStore: "query_memory_store",
|
|
1071
|
+
} as const;
|
|
1072
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType =
|
|
1073
|
+
ClosedEnum<
|
|
1074
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType
|
|
1075
|
+
>;
|
|
1076
|
+
|
|
839
1077
|
/**
|
|
840
1078
|
* Queries agent memory stores for context
|
|
841
1079
|
*/
|
|
842
1080
|
export type QueryMemoryStoreTool = {
|
|
843
|
-
type:
|
|
1081
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType;
|
|
844
1082
|
/**
|
|
845
1083
|
* Whether this tool requires approval before execution
|
|
846
1084
|
*/
|
|
847
1085
|
requiresApproval?: boolean | undefined;
|
|
848
1086
|
};
|
|
849
1087
|
|
|
1088
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestType = {
|
|
1089
|
+
RetrieveAgents: "retrieve_agents",
|
|
1090
|
+
} as const;
|
|
1091
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestType = ClosedEnum<
|
|
1092
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType
|
|
1093
|
+
>;
|
|
1094
|
+
|
|
850
1095
|
/**
|
|
851
1096
|
* Retrieves available agents in the system
|
|
852
1097
|
*/
|
|
853
1098
|
export type RetrieveAgentsTool = {
|
|
854
|
-
type:
|
|
1099
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType;
|
|
855
1100
|
/**
|
|
856
1101
|
* Whether this tool requires approval before execution
|
|
857
1102
|
*/
|
|
858
1103
|
requiresApproval?: boolean | undefined;
|
|
859
1104
|
};
|
|
860
1105
|
|
|
1106
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsType = {
|
|
1107
|
+
CallSubAgent: "call_sub_agent",
|
|
1108
|
+
} as const;
|
|
1109
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsType = ClosedEnum<
|
|
1110
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsType
|
|
1111
|
+
>;
|
|
1112
|
+
|
|
861
1113
|
/**
|
|
862
1114
|
* Delegates tasks to specialized sub-agents
|
|
863
1115
|
*/
|
|
864
1116
|
export type CallSubAgentTool = {
|
|
865
|
-
type:
|
|
1117
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsType;
|
|
866
1118
|
/**
|
|
867
1119
|
* Whether this tool requires approval before execution
|
|
868
1120
|
*/
|
|
869
1121
|
requiresApproval?: boolean | undefined;
|
|
870
1122
|
};
|
|
871
1123
|
|
|
1124
|
+
export const CreateAgentRequestAgentToolInputCRUDType = {
|
|
1125
|
+
WebScraper: "web_scraper",
|
|
1126
|
+
} as const;
|
|
1127
|
+
export type CreateAgentRequestAgentToolInputCRUDType = ClosedEnum<
|
|
1128
|
+
typeof CreateAgentRequestAgentToolInputCRUDType
|
|
1129
|
+
>;
|
|
1130
|
+
|
|
872
1131
|
/**
|
|
873
1132
|
* Scrapes and extracts content from web pages
|
|
874
1133
|
*/
|
|
875
1134
|
export type WebScraperTool = {
|
|
876
|
-
type:
|
|
1135
|
+
type: CreateAgentRequestAgentToolInputCRUDType;
|
|
877
1136
|
/**
|
|
878
1137
|
* Whether this tool requires approval before execution
|
|
879
1138
|
*/
|
|
880
1139
|
requiresApproval?: boolean | undefined;
|
|
881
1140
|
};
|
|
882
1141
|
|
|
1142
|
+
export const AgentToolInputCRUDType = {
|
|
1143
|
+
GoogleSearch: "google_search",
|
|
1144
|
+
} as const;
|
|
1145
|
+
export type AgentToolInputCRUDType = ClosedEnum<typeof AgentToolInputCRUDType>;
|
|
1146
|
+
|
|
883
1147
|
/**
|
|
884
1148
|
* Performs Google searches to retrieve web content
|
|
885
1149
|
*/
|
|
886
1150
|
export type GoogleSearchTool = {
|
|
887
|
-
type:
|
|
1151
|
+
type: AgentToolInputCRUDType;
|
|
888
1152
|
/**
|
|
889
1153
|
* Whether this tool requires approval before execution
|
|
890
1154
|
*/
|
|
@@ -906,22 +1170,24 @@ export type AgentToolInputCRUD =
|
|
|
906
1170
|
| RetrieveKnowledgeBasesTool
|
|
907
1171
|
| QueryKnowledgeBaseTool
|
|
908
1172
|
| CurrentDateTool
|
|
1173
|
+
| MCPTool
|
|
909
1174
|
| HTTPTool
|
|
910
1175
|
| CodeExecutionTool
|
|
911
|
-
| FunctionTool
|
|
912
|
-
| MCPTool;
|
|
1176
|
+
| FunctionTool;
|
|
913
1177
|
|
|
914
1178
|
/**
|
|
915
1179
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
916
1180
|
*/
|
|
917
|
-
export const
|
|
1181
|
+
export const CreateAgentRequestExecuteOn = {
|
|
918
1182
|
Input: "input",
|
|
919
1183
|
Output: "output",
|
|
920
1184
|
} as const;
|
|
921
1185
|
/**
|
|
922
1186
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
923
1187
|
*/
|
|
924
|
-
export type
|
|
1188
|
+
export type CreateAgentRequestExecuteOn = ClosedEnum<
|
|
1189
|
+
typeof CreateAgentRequestExecuteOn
|
|
1190
|
+
>;
|
|
925
1191
|
|
|
926
1192
|
export type Evaluators = {
|
|
927
1193
|
/**
|
|
@@ -935,24 +1201,24 @@ export type Evaluators = {
|
|
|
935
1201
|
/**
|
|
936
1202
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
937
1203
|
*/
|
|
938
|
-
executeOn:
|
|
1204
|
+
executeOn: CreateAgentRequestExecuteOn;
|
|
939
1205
|
};
|
|
940
1206
|
|
|
941
1207
|
/**
|
|
942
1208
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
943
1209
|
*/
|
|
944
|
-
export const
|
|
1210
|
+
export const CreateAgentRequestAgentsExecuteOn = {
|
|
945
1211
|
Input: "input",
|
|
946
1212
|
Output: "output",
|
|
947
1213
|
} as const;
|
|
948
1214
|
/**
|
|
949
1215
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
950
1216
|
*/
|
|
951
|
-
export type
|
|
952
|
-
typeof
|
|
1217
|
+
export type CreateAgentRequestAgentsExecuteOn = ClosedEnum<
|
|
1218
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
953
1219
|
>;
|
|
954
1220
|
|
|
955
|
-
export type
|
|
1221
|
+
export type CreateAgentRequestGuardrails = {
|
|
956
1222
|
/**
|
|
957
1223
|
* Unique key or identifier of the evaluator
|
|
958
1224
|
*/
|
|
@@ -964,7 +1230,7 @@ export type Guardrails = {
|
|
|
964
1230
|
/**
|
|
965
1231
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
966
1232
|
*/
|
|
967
|
-
executeOn:
|
|
1233
|
+
executeOn: CreateAgentRequestAgentsExecuteOn;
|
|
968
1234
|
};
|
|
969
1235
|
|
|
970
1236
|
/**
|
|
@@ -999,10 +1265,10 @@ export type Settings = {
|
|
|
999
1265
|
| RetrieveKnowledgeBasesTool
|
|
1000
1266
|
| QueryKnowledgeBaseTool
|
|
1001
1267
|
| CurrentDateTool
|
|
1268
|
+
| MCPTool
|
|
1002
1269
|
| HTTPTool
|
|
1003
1270
|
| CodeExecutionTool
|
|
1004
1271
|
| FunctionTool
|
|
1005
|
-
| MCPTool
|
|
1006
1272
|
>
|
|
1007
1273
|
| undefined;
|
|
1008
1274
|
/**
|
|
@@ -1012,7 +1278,7 @@ export type Settings = {
|
|
|
1012
1278
|
/**
|
|
1013
1279
|
* Configuration for a guardrail applied to the agent
|
|
1014
1280
|
*/
|
|
1015
|
-
guardrails?: Array<
|
|
1281
|
+
guardrails?: Array<CreateAgentRequestGuardrails> | undefined;
|
|
1016
1282
|
};
|
|
1017
1283
|
|
|
1018
1284
|
export type KnowledgeBases = {
|
|
@@ -1169,15 +1435,15 @@ export type CreateAgentRequestTools = {
|
|
|
1169
1435
|
/**
|
|
1170
1436
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1171
1437
|
*/
|
|
1172
|
-
export const
|
|
1438
|
+
export const CreateAgentRequestAgentsResponseExecuteOn = {
|
|
1173
1439
|
Input: "input",
|
|
1174
1440
|
Output: "output",
|
|
1175
1441
|
} as const;
|
|
1176
1442
|
/**
|
|
1177
1443
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1178
1444
|
*/
|
|
1179
|
-
export type
|
|
1180
|
-
typeof
|
|
1445
|
+
export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
|
|
1446
|
+
typeof CreateAgentRequestAgentsResponseExecuteOn
|
|
1181
1447
|
>;
|
|
1182
1448
|
|
|
1183
1449
|
export type CreateAgentRequestEvaluators = {
|
|
@@ -1192,24 +1458,24 @@ export type CreateAgentRequestEvaluators = {
|
|
|
1192
1458
|
/**
|
|
1193
1459
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1194
1460
|
*/
|
|
1195
|
-
executeOn:
|
|
1461
|
+
executeOn: CreateAgentRequestAgentsResponseExecuteOn;
|
|
1196
1462
|
};
|
|
1197
1463
|
|
|
1198
1464
|
/**
|
|
1199
1465
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1200
1466
|
*/
|
|
1201
|
-
export const
|
|
1467
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn = {
|
|
1202
1468
|
Input: "input",
|
|
1203
1469
|
Output: "output",
|
|
1204
1470
|
} as const;
|
|
1205
1471
|
/**
|
|
1206
1472
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1207
1473
|
*/
|
|
1208
|
-
export type
|
|
1209
|
-
typeof
|
|
1474
|
+
export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
|
|
1475
|
+
typeof CreateAgentRequestAgentsResponse201ExecuteOn
|
|
1210
1476
|
>;
|
|
1211
1477
|
|
|
1212
|
-
export type
|
|
1478
|
+
export type CreateAgentRequestAgentsGuardrails = {
|
|
1213
1479
|
/**
|
|
1214
1480
|
* Unique key or identifier of the evaluator
|
|
1215
1481
|
*/
|
|
@@ -1221,7 +1487,7 @@ export type CreateAgentRequestGuardrails = {
|
|
|
1221
1487
|
/**
|
|
1222
1488
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1223
1489
|
*/
|
|
1224
|
-
executeOn:
|
|
1490
|
+
executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
|
|
1225
1491
|
};
|
|
1226
1492
|
|
|
1227
1493
|
export type CreateAgentRequestSettings = {
|
|
@@ -1245,7 +1511,7 @@ export type CreateAgentRequestSettings = {
|
|
|
1245
1511
|
/**
|
|
1246
1512
|
* Configuration for a guardrail applied to the agent
|
|
1247
1513
|
*/
|
|
1248
|
-
guardrails?: Array<
|
|
1514
|
+
guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
|
|
1249
1515
|
};
|
|
1250
1516
|
|
|
1251
1517
|
/**
|
|
@@ -1352,6 +1618,42 @@ export type CreateAgentRequestResponseFormat =
|
|
|
1352
1618
|
| CreateAgentRequestResponseFormatJSONObject
|
|
1353
1619
|
| CreateAgentRequestResponseFormatAgentsResponse201JSONSchema;
|
|
1354
1620
|
|
|
1621
|
+
/**
|
|
1622
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1623
|
+
*
|
|
1624
|
+
* @remarks
|
|
1625
|
+
*
|
|
1626
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
1627
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
1628
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1629
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1630
|
+
*
|
|
1631
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1632
|
+
*/
|
|
1633
|
+
export const CreateAgentRequestReasoningEffort = {
|
|
1634
|
+
None: "none",
|
|
1635
|
+
Minimal: "minimal",
|
|
1636
|
+
Low: "low",
|
|
1637
|
+
Medium: "medium",
|
|
1638
|
+
High: "high",
|
|
1639
|
+
Xhigh: "xhigh",
|
|
1640
|
+
} as const;
|
|
1641
|
+
/**
|
|
1642
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1643
|
+
*
|
|
1644
|
+
* @remarks
|
|
1645
|
+
*
|
|
1646
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
1647
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
1648
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1649
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1650
|
+
*
|
|
1651
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1652
|
+
*/
|
|
1653
|
+
export type CreateAgentRequestReasoningEffort = ClosedEnum<
|
|
1654
|
+
typeof CreateAgentRequestReasoningEffort
|
|
1655
|
+
>;
|
|
1656
|
+
|
|
1355
1657
|
/**
|
|
1356
1658
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1357
1659
|
*/
|
|
@@ -1367,46 +1669,9 @@ export type CreateAgentRequestStreamOptions = {
|
|
|
1367
1669
|
includeUsage?: boolean | undefined;
|
|
1368
1670
|
};
|
|
1369
1671
|
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
export const CreateAgentRequestType = {
|
|
1374
|
-
Enabled: "enabled",
|
|
1375
|
-
Disabled: "disabled",
|
|
1376
|
-
} as const;
|
|
1377
|
-
/**
|
|
1378
|
-
* Enables or disables the thinking mode capability
|
|
1379
|
-
*/
|
|
1380
|
-
export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1384
|
-
*/
|
|
1385
|
-
export const CreateAgentRequestThinkingLevel = {
|
|
1386
|
-
Low: "low",
|
|
1387
|
-
High: "high",
|
|
1388
|
-
} as const;
|
|
1389
|
-
/**
|
|
1390
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1391
|
-
*/
|
|
1392
|
-
export type CreateAgentRequestThinkingLevel = ClosedEnum<
|
|
1393
|
-
typeof CreateAgentRequestThinkingLevel
|
|
1394
|
-
>;
|
|
1395
|
-
|
|
1396
|
-
export type CreateAgentRequestThinking = {
|
|
1397
|
-
/**
|
|
1398
|
-
* Enables or disables the thinking mode capability
|
|
1399
|
-
*/
|
|
1400
|
-
type: CreateAgentRequestType;
|
|
1401
|
-
/**
|
|
1402
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
1403
|
-
*/
|
|
1404
|
-
budgetTokens: number;
|
|
1405
|
-
/**
|
|
1406
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1407
|
-
*/
|
|
1408
|
-
thinkingLevel?: CreateAgentRequestThinkingLevel | undefined;
|
|
1409
|
-
};
|
|
1672
|
+
export type CreateAgentRequestThinking =
|
|
1673
|
+
| components.ThinkingConfigDisabledSchema
|
|
1674
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1410
1675
|
|
|
1411
1676
|
/**
|
|
1412
1677
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1460,6 +1725,46 @@ export type CreateAgentRequestModalities = ClosedEnum<
|
|
|
1460
1725
|
typeof CreateAgentRequestModalities
|
|
1461
1726
|
>;
|
|
1462
1727
|
|
|
1728
|
+
/**
|
|
1729
|
+
* The key of the guardrail.
|
|
1730
|
+
*/
|
|
1731
|
+
export const CreateAgentRequestIdAgents1 = {
|
|
1732
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
1733
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
1734
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
1735
|
+
} as const;
|
|
1736
|
+
/**
|
|
1737
|
+
* The key of the guardrail.
|
|
1738
|
+
*/
|
|
1739
|
+
export type CreateAgentRequestIdAgents1 = ClosedEnum<
|
|
1740
|
+
typeof CreateAgentRequestIdAgents1
|
|
1741
|
+
>;
|
|
1742
|
+
|
|
1743
|
+
export type CreateAgentRequestId = CreateAgentRequestIdAgents1 | string;
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1747
|
+
*/
|
|
1748
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn = {
|
|
1749
|
+
Input: "input",
|
|
1750
|
+
Output: "output",
|
|
1751
|
+
} as const;
|
|
1752
|
+
/**
|
|
1753
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1754
|
+
*/
|
|
1755
|
+
export type CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn =
|
|
1756
|
+
ClosedEnum<
|
|
1757
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
1758
|
+
>;
|
|
1759
|
+
|
|
1760
|
+
export type CreateAgentRequestAgentsResponseGuardrails = {
|
|
1761
|
+
id: CreateAgentRequestIdAgents1 | string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1764
|
+
*/
|
|
1765
|
+
executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1463
1768
|
/**
|
|
1464
1769
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
1465
1770
|
*/
|
|
@@ -1509,9 +1814,18 @@ export type CreateAgentRequestParameters = {
|
|
|
1509
1814
|
| CreateAgentRequestResponseFormatAgentsResponse201JSONSchema
|
|
1510
1815
|
| undefined;
|
|
1511
1816
|
/**
|
|
1512
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1817
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1818
|
+
*
|
|
1819
|
+
* @remarks
|
|
1820
|
+
*
|
|
1821
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
1822
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
1823
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1824
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1825
|
+
*
|
|
1826
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1513
1827
|
*/
|
|
1514
|
-
reasoningEffort?:
|
|
1828
|
+
reasoningEffort?: CreateAgentRequestReasoningEffort | undefined;
|
|
1515
1829
|
/**
|
|
1516
1830
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
1517
1831
|
*/
|
|
@@ -1528,7 +1842,10 @@ export type CreateAgentRequestParameters = {
|
|
|
1528
1842
|
* Options for streaming response. Only set this when you set stream: true.
|
|
1529
1843
|
*/
|
|
1530
1844
|
streamOptions?: CreateAgentRequestStreamOptions | null | undefined;
|
|
1531
|
-
thinking?:
|
|
1845
|
+
thinking?:
|
|
1846
|
+
| components.ThinkingConfigDisabledSchema
|
|
1847
|
+
| components.ThinkingConfigEnabledSchema
|
|
1848
|
+
| undefined;
|
|
1532
1849
|
/**
|
|
1533
1850
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
1534
1851
|
*/
|
|
@@ -1556,6 +1873,10 @@ export type CreateAgentRequestParameters = {
|
|
|
1556
1873
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
1557
1874
|
*/
|
|
1558
1875
|
modalities?: Array<CreateAgentRequestModalities> | null | undefined;
|
|
1876
|
+
/**
|
|
1877
|
+
* A list of guardrails to apply to the request.
|
|
1878
|
+
*/
|
|
1879
|
+
guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
|
|
1559
1880
|
};
|
|
1560
1881
|
|
|
1561
1882
|
/**
|
|
@@ -1679,6 +2000,43 @@ export type CreateAgentRequestFallbackModelConfigurationResponseFormat =
|
|
|
1679
2000
|
| CreateAgentRequestResponseFormatAgentsJSONObject
|
|
1680
2001
|
| CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONResponseBodyJSONSchema;
|
|
1681
2002
|
|
|
2003
|
+
/**
|
|
2004
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2005
|
+
*
|
|
2006
|
+
* @remarks
|
|
2007
|
+
*
|
|
2008
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
2009
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
2010
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2011
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
2012
|
+
*
|
|
2013
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2014
|
+
*/
|
|
2015
|
+
export const CreateAgentRequestFallbackModelConfigurationReasoningEffort = {
|
|
2016
|
+
None: "none",
|
|
2017
|
+
Minimal: "minimal",
|
|
2018
|
+
Low: "low",
|
|
2019
|
+
Medium: "medium",
|
|
2020
|
+
High: "high",
|
|
2021
|
+
Xhigh: "xhigh",
|
|
2022
|
+
} as const;
|
|
2023
|
+
/**
|
|
2024
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2025
|
+
*
|
|
2026
|
+
* @remarks
|
|
2027
|
+
*
|
|
2028
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
2029
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
2030
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2031
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
2032
|
+
*
|
|
2033
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
2034
|
+
*/
|
|
2035
|
+
export type CreateAgentRequestFallbackModelConfigurationReasoningEffort =
|
|
2036
|
+
ClosedEnum<
|
|
2037
|
+
typeof CreateAgentRequestFallbackModelConfigurationReasoningEffort
|
|
2038
|
+
>;
|
|
2039
|
+
|
|
1682
2040
|
/**
|
|
1683
2041
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1684
2042
|
*/
|
|
@@ -1696,49 +2054,9 @@ export type CreateAgentRequestFallbackModelConfigurationStreamOptions = {
|
|
|
1696
2054
|
includeUsage?: boolean | undefined;
|
|
1697
2055
|
};
|
|
1698
2056
|
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
export const CreateAgentRequestFallbackModelConfigurationType = {
|
|
1703
|
-
Enabled: "enabled",
|
|
1704
|
-
Disabled: "disabled",
|
|
1705
|
-
} as const;
|
|
1706
|
-
/**
|
|
1707
|
-
* Enables or disables the thinking mode capability
|
|
1708
|
-
*/
|
|
1709
|
-
export type CreateAgentRequestFallbackModelConfigurationType = ClosedEnum<
|
|
1710
|
-
typeof CreateAgentRequestFallbackModelConfigurationType
|
|
1711
|
-
>;
|
|
1712
|
-
|
|
1713
|
-
/**
|
|
1714
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1715
|
-
*/
|
|
1716
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel = {
|
|
1717
|
-
Low: "low",
|
|
1718
|
-
High: "high",
|
|
1719
|
-
} as const;
|
|
1720
|
-
/**
|
|
1721
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1722
|
-
*/
|
|
1723
|
-
export type CreateAgentRequestFallbackModelConfigurationThinkingLevel =
|
|
1724
|
-
ClosedEnum<typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel>;
|
|
1725
|
-
|
|
1726
|
-
export type CreateAgentRequestFallbackModelConfigurationThinking = {
|
|
1727
|
-
/**
|
|
1728
|
-
* Enables or disables the thinking mode capability
|
|
1729
|
-
*/
|
|
1730
|
-
type: CreateAgentRequestFallbackModelConfigurationType;
|
|
1731
|
-
/**
|
|
1732
|
-
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
1733
|
-
*/
|
|
1734
|
-
budgetTokens: number;
|
|
1735
|
-
/**
|
|
1736
|
-
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
1737
|
-
*/
|
|
1738
|
-
thinkingLevel?:
|
|
1739
|
-
| CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
1740
|
-
| undefined;
|
|
1741
|
-
};
|
|
2057
|
+
export type CreateAgentRequestFallbackModelConfigurationThinking =
|
|
2058
|
+
| components.ThinkingConfigDisabledSchema
|
|
2059
|
+
| components.ThinkingConfigEnabledSchema;
|
|
1742
2060
|
|
|
1743
2061
|
/**
|
|
1744
2062
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -1792,6 +2110,47 @@ export type CreateAgentRequestFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
1792
2110
|
typeof CreateAgentRequestFallbackModelConfigurationModalities
|
|
1793
2111
|
>;
|
|
1794
2112
|
|
|
2113
|
+
/**
|
|
2114
|
+
* The key of the guardrail.
|
|
2115
|
+
*/
|
|
2116
|
+
export const CreateAgentRequestIdAgentsResponse1 = {
|
|
2117
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
2118
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
2119
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
2120
|
+
} as const;
|
|
2121
|
+
/**
|
|
2122
|
+
* The key of the guardrail.
|
|
2123
|
+
*/
|
|
2124
|
+
export type CreateAgentRequestIdAgentsResponse1 = ClosedEnum<
|
|
2125
|
+
typeof CreateAgentRequestIdAgentsResponse1
|
|
2126
|
+
>;
|
|
2127
|
+
|
|
2128
|
+
export type CreateAgentRequestFallbackModelConfigurationId =
|
|
2129
|
+
| CreateAgentRequestIdAgentsResponse1
|
|
2130
|
+
| string;
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2134
|
+
*/
|
|
2135
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn = {
|
|
2136
|
+
Input: "input",
|
|
2137
|
+
Output: "output",
|
|
2138
|
+
} as const;
|
|
2139
|
+
/**
|
|
2140
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2141
|
+
*/
|
|
2142
|
+
export type CreateAgentRequestFallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
2143
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
2144
|
+
>;
|
|
2145
|
+
|
|
2146
|
+
export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
|
|
2147
|
+
id: CreateAgentRequestIdAgentsResponse1 | string;
|
|
2148
|
+
/**
|
|
2149
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2150
|
+
*/
|
|
2151
|
+
executeOn: CreateAgentRequestFallbackModelConfigurationExecuteOn;
|
|
2152
|
+
};
|
|
2153
|
+
|
|
1795
2154
|
/**
|
|
1796
2155
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
1797
2156
|
*/
|
|
@@ -1841,9 +2200,20 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1841
2200
|
| CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONResponseBodyJSONSchema
|
|
1842
2201
|
| undefined;
|
|
1843
2202
|
/**
|
|
1844
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2203
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2204
|
+
*
|
|
2205
|
+
* @remarks
|
|
2206
|
+
*
|
|
2207
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
2208
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
2209
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2210
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
2211
|
+
*
|
|
2212
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1845
2213
|
*/
|
|
1846
|
-
reasoningEffort?:
|
|
2214
|
+
reasoningEffort?:
|
|
2215
|
+
| CreateAgentRequestFallbackModelConfigurationReasoningEffort
|
|
2216
|
+
| undefined;
|
|
1847
2217
|
/**
|
|
1848
2218
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
1849
2219
|
*/
|
|
@@ -1863,7 +2233,10 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1863
2233
|
| CreateAgentRequestFallbackModelConfigurationStreamOptions
|
|
1864
2234
|
| null
|
|
1865
2235
|
| undefined;
|
|
1866
|
-
thinking?:
|
|
2236
|
+
thinking?:
|
|
2237
|
+
| components.ThinkingConfigDisabledSchema
|
|
2238
|
+
| components.ThinkingConfigEnabledSchema
|
|
2239
|
+
| undefined;
|
|
1867
2240
|
/**
|
|
1868
2241
|
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
1869
2242
|
*/
|
|
@@ -1894,6 +2267,12 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
1894
2267
|
| Array<CreateAgentRequestFallbackModelConfigurationModalities>
|
|
1895
2268
|
| null
|
|
1896
2269
|
| undefined;
|
|
2270
|
+
/**
|
|
2271
|
+
* A list of guardrails to apply to the request.
|
|
2272
|
+
*/
|
|
2273
|
+
guardrails?:
|
|
2274
|
+
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
|
|
2275
|
+
| undefined;
|
|
1897
2276
|
};
|
|
1898
2277
|
|
|
1899
2278
|
/**
|
|
@@ -2277,6 +2656,15 @@ export function responseFormatFromJSON(
|
|
|
2277
2656
|
);
|
|
2278
2657
|
}
|
|
2279
2658
|
|
|
2659
|
+
/** @internal */
|
|
2660
|
+
export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2661
|
+
typeof ReasoningEffort
|
|
2662
|
+
> = z.nativeEnum(ReasoningEffort);
|
|
2663
|
+
/** @internal */
|
|
2664
|
+
export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2665
|
+
typeof ReasoningEffort
|
|
2666
|
+
> = ReasoningEffort$inboundSchema;
|
|
2667
|
+
|
|
2280
2668
|
/** @internal */
|
|
2281
2669
|
export const Stop$inboundSchema: z.ZodType<Stop, z.ZodTypeDef, unknown> = z
|
|
2282
2670
|
.union([z.string(), z.array(z.string())]);
|
|
@@ -2343,61 +2731,29 @@ export function streamOptionsFromJSON(
|
|
|
2343
2731
|
);
|
|
2344
2732
|
}
|
|
2345
2733
|
|
|
2346
|
-
/** @internal */
|
|
2347
|
-
export const ModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
2348
|
-
typeof ModelConfigurationType
|
|
2349
|
-
> = z.nativeEnum(ModelConfigurationType);
|
|
2350
|
-
/** @internal */
|
|
2351
|
-
export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
2352
|
-
typeof ModelConfigurationType
|
|
2353
|
-
> = ModelConfigurationType$inboundSchema;
|
|
2354
|
-
|
|
2355
|
-
/** @internal */
|
|
2356
|
-
export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2357
|
-
typeof ThinkingLevel
|
|
2358
|
-
> = z.nativeEnum(ThinkingLevel);
|
|
2359
|
-
/** @internal */
|
|
2360
|
-
export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2361
|
-
typeof ThinkingLevel
|
|
2362
|
-
> = ThinkingLevel$inboundSchema;
|
|
2363
|
-
|
|
2364
2734
|
/** @internal */
|
|
2365
2735
|
export const Thinking$inboundSchema: z.ZodType<
|
|
2366
2736
|
Thinking,
|
|
2367
2737
|
z.ZodTypeDef,
|
|
2368
2738
|
unknown
|
|
2369
|
-
> = z.
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}).transform((v) => {
|
|
2374
|
-
return remap$(v, {
|
|
2375
|
-
"budget_tokens": "budgetTokens",
|
|
2376
|
-
"thinking_level": "thinkingLevel",
|
|
2377
|
-
});
|
|
2378
|
-
});
|
|
2739
|
+
> = z.union([
|
|
2740
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2741
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2742
|
+
]);
|
|
2379
2743
|
/** @internal */
|
|
2380
|
-
export type Thinking$Outbound =
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
thinking_level?: string | undefined;
|
|
2384
|
-
};
|
|
2744
|
+
export type Thinking$Outbound =
|
|
2745
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2746
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2385
2747
|
|
|
2386
2748
|
/** @internal */
|
|
2387
2749
|
export const Thinking$outboundSchema: z.ZodType<
|
|
2388
2750
|
Thinking$Outbound,
|
|
2389
2751
|
z.ZodTypeDef,
|
|
2390
2752
|
Thinking
|
|
2391
|
-
> = z.
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
}).transform((v) => {
|
|
2396
|
-
return remap$(v, {
|
|
2397
|
-
budgetTokens: "budget_tokens",
|
|
2398
|
-
thinkingLevel: "thinking_level",
|
|
2399
|
-
});
|
|
2400
|
-
});
|
|
2753
|
+
> = z.union([
|
|
2754
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2755
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2756
|
+
]);
|
|
2401
2757
|
|
|
2402
2758
|
export function thinkingToJSON(thinking: Thinking): string {
|
|
2403
2759
|
return JSON.stringify(Thinking$outboundSchema.parse(thinking));
|
|
@@ -2547,6 +2903,90 @@ export const Modalities$inboundSchema: z.ZodNativeEnum<typeof Modalities> = z
|
|
|
2547
2903
|
export const Modalities$outboundSchema: z.ZodNativeEnum<typeof Modalities> =
|
|
2548
2904
|
Modalities$inboundSchema;
|
|
2549
2905
|
|
|
2906
|
+
/** @internal */
|
|
2907
|
+
export const Id1$inboundSchema: z.ZodNativeEnum<typeof Id1> = z.nativeEnum(Id1);
|
|
2908
|
+
/** @internal */
|
|
2909
|
+
export const Id1$outboundSchema: z.ZodNativeEnum<typeof Id1> =
|
|
2910
|
+
Id1$inboundSchema;
|
|
2911
|
+
|
|
2912
|
+
/** @internal */
|
|
2913
|
+
export const Id$inboundSchema: z.ZodType<Id, z.ZodTypeDef, unknown> = z.union([
|
|
2914
|
+
Id1$inboundSchema,
|
|
2915
|
+
z.string(),
|
|
2916
|
+
]);
|
|
2917
|
+
/** @internal */
|
|
2918
|
+
export type Id$Outbound = string | string;
|
|
2919
|
+
|
|
2920
|
+
/** @internal */
|
|
2921
|
+
export const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id> = z
|
|
2922
|
+
.union([Id1$outboundSchema, z.string()]);
|
|
2923
|
+
|
|
2924
|
+
export function idToJSON(id: Id): string {
|
|
2925
|
+
return JSON.stringify(Id$outboundSchema.parse(id));
|
|
2926
|
+
}
|
|
2927
|
+
export function idFromJSON(
|
|
2928
|
+
jsonString: string,
|
|
2929
|
+
): SafeParseResult<Id, SDKValidationError> {
|
|
2930
|
+
return safeParse(
|
|
2931
|
+
jsonString,
|
|
2932
|
+
(x) => Id$inboundSchema.parse(JSON.parse(x)),
|
|
2933
|
+
`Failed to parse 'Id' from JSON`,
|
|
2934
|
+
);
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
/** @internal */
|
|
2938
|
+
export const ExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
|
|
2939
|
+
.nativeEnum(ExecuteOn);
|
|
2940
|
+
/** @internal */
|
|
2941
|
+
export const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn> =
|
|
2942
|
+
ExecuteOn$inboundSchema;
|
|
2943
|
+
|
|
2944
|
+
/** @internal */
|
|
2945
|
+
export const Guardrails$inboundSchema: z.ZodType<
|
|
2946
|
+
Guardrails,
|
|
2947
|
+
z.ZodTypeDef,
|
|
2948
|
+
unknown
|
|
2949
|
+
> = z.object({
|
|
2950
|
+
id: z.union([Id1$inboundSchema, z.string()]),
|
|
2951
|
+
execute_on: ExecuteOn$inboundSchema,
|
|
2952
|
+
}).transform((v) => {
|
|
2953
|
+
return remap$(v, {
|
|
2954
|
+
"execute_on": "executeOn",
|
|
2955
|
+
});
|
|
2956
|
+
});
|
|
2957
|
+
/** @internal */
|
|
2958
|
+
export type Guardrails$Outbound = {
|
|
2959
|
+
id: string | string;
|
|
2960
|
+
execute_on: string;
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
/** @internal */
|
|
2964
|
+
export const Guardrails$outboundSchema: z.ZodType<
|
|
2965
|
+
Guardrails$Outbound,
|
|
2966
|
+
z.ZodTypeDef,
|
|
2967
|
+
Guardrails
|
|
2968
|
+
> = z.object({
|
|
2969
|
+
id: z.union([Id1$outboundSchema, z.string()]),
|
|
2970
|
+
executeOn: ExecuteOn$outboundSchema,
|
|
2971
|
+
}).transform((v) => {
|
|
2972
|
+
return remap$(v, {
|
|
2973
|
+
executeOn: "execute_on",
|
|
2974
|
+
});
|
|
2975
|
+
});
|
|
2976
|
+
|
|
2977
|
+
export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
2978
|
+
return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
|
|
2979
|
+
}
|
|
2980
|
+
export function guardrailsFromJSON(
|
|
2981
|
+
jsonString: string,
|
|
2982
|
+
): SafeParseResult<Guardrails, SDKValidationError> {
|
|
2983
|
+
return safeParse(
|
|
2984
|
+
jsonString,
|
|
2985
|
+
(x) => Guardrails$inboundSchema.parse(JSON.parse(x)),
|
|
2986
|
+
`Failed to parse 'Guardrails' from JSON`,
|
|
2987
|
+
);
|
|
2988
|
+
}
|
|
2989
|
+
|
|
2550
2990
|
/** @internal */
|
|
2551
2991
|
export const ParametersT$inboundSchema: z.ZodType<
|
|
2552
2992
|
ParametersT,
|
|
@@ -2567,13 +3007,16 @@ export const ParametersT$inboundSchema: z.ZodType<
|
|
|
2567
3007
|
z.lazy(() => JSONObject$inboundSchema),
|
|
2568
3008
|
z.lazy(() => JSONSchema$inboundSchema),
|
|
2569
3009
|
]).optional(),
|
|
2570
|
-
reasoning_effort:
|
|
3010
|
+
reasoning_effort: ReasoningEffort$inboundSchema.optional(),
|
|
2571
3011
|
verbosity: z.string().optional(),
|
|
2572
3012
|
seed: z.nullable(z.number()).optional(),
|
|
2573
3013
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2574
3014
|
stream_options: z.nullable(z.lazy(() => StreamOptions$inboundSchema))
|
|
2575
3015
|
.optional(),
|
|
2576
|
-
thinking: z.
|
|
3016
|
+
thinking: z.union([
|
|
3017
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3018
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3019
|
+
]).optional(),
|
|
2577
3020
|
temperature: z.nullable(z.number()).optional(),
|
|
2578
3021
|
top_p: z.nullable(z.number()).optional(),
|
|
2579
3022
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -2583,6 +3026,7 @@ export const ParametersT$inboundSchema: z.ZodType<
|
|
|
2583
3026
|
]).optional(),
|
|
2584
3027
|
parallel_tool_calls: z.boolean().optional(),
|
|
2585
3028
|
modalities: z.nullable(z.array(Modalities$inboundSchema)).optional(),
|
|
3029
|
+
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
2586
3030
|
}).transform((v) => {
|
|
2587
3031
|
return remap$(v, {
|
|
2588
3032
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2619,13 +3063,17 @@ export type ParametersT$Outbound = {
|
|
|
2619
3063
|
seed?: number | null | undefined;
|
|
2620
3064
|
stop?: string | Array<string> | null | undefined;
|
|
2621
3065
|
stream_options?: StreamOptions$Outbound | null | undefined;
|
|
2622
|
-
thinking?:
|
|
3066
|
+
thinking?:
|
|
3067
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3068
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3069
|
+
| undefined;
|
|
2623
3070
|
temperature?: number | null | undefined;
|
|
2624
3071
|
top_p?: number | null | undefined;
|
|
2625
3072
|
top_k?: number | null | undefined;
|
|
2626
3073
|
tool_choice?: ToolChoice2$Outbound | string | undefined;
|
|
2627
3074
|
parallel_tool_calls?: boolean | undefined;
|
|
2628
3075
|
modalities?: Array<string> | null | undefined;
|
|
3076
|
+
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
2629
3077
|
};
|
|
2630
3078
|
|
|
2631
3079
|
/** @internal */
|
|
@@ -2648,13 +3096,16 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
2648
3096
|
z.lazy(() => JSONObject$outboundSchema),
|
|
2649
3097
|
z.lazy(() => JSONSchema$outboundSchema),
|
|
2650
3098
|
]).optional(),
|
|
2651
|
-
reasoningEffort:
|
|
3099
|
+
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
2652
3100
|
verbosity: z.string().optional(),
|
|
2653
3101
|
seed: z.nullable(z.number()).optional(),
|
|
2654
3102
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2655
3103
|
streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
|
|
2656
3104
|
.optional(),
|
|
2657
|
-
thinking: z.
|
|
3105
|
+
thinking: z.union([
|
|
3106
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3107
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3108
|
+
]).optional(),
|
|
2658
3109
|
temperature: z.nullable(z.number()).optional(),
|
|
2659
3110
|
topP: z.nullable(z.number()).optional(),
|
|
2660
3111
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -2664,6 +3115,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
2664
3115
|
]).optional(),
|
|
2665
3116
|
parallelToolCalls: z.boolean().optional(),
|
|
2666
3117
|
modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
|
|
3118
|
+
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
2667
3119
|
}).transform((v) => {
|
|
2668
3120
|
return remap$(v, {
|
|
2669
3121
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3129,6 +3581,15 @@ export function fallbackModelConfigurationResponseFormatFromJSON(
|
|
|
3129
3581
|
);
|
|
3130
3582
|
}
|
|
3131
3583
|
|
|
3584
|
+
/** @internal */
|
|
3585
|
+
export const FallbackModelConfigurationReasoningEffort$inboundSchema:
|
|
3586
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationReasoningEffort> = z
|
|
3587
|
+
.nativeEnum(FallbackModelConfigurationReasoningEffort);
|
|
3588
|
+
/** @internal */
|
|
3589
|
+
export const FallbackModelConfigurationReasoningEffort$outboundSchema:
|
|
3590
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationReasoningEffort> =
|
|
3591
|
+
FallbackModelConfigurationReasoningEffort$inboundSchema;
|
|
3592
|
+
|
|
3132
3593
|
/** @internal */
|
|
3133
3594
|
export const FallbackModelConfigurationStop$inboundSchema: z.ZodType<
|
|
3134
3595
|
FallbackModelConfigurationStop,
|
|
@@ -3220,63 +3681,29 @@ export function fallbackModelConfigurationStreamOptionsFromJSON(
|
|
|
3220
3681
|
);
|
|
3221
3682
|
}
|
|
3222
3683
|
|
|
3223
|
-
/** @internal */
|
|
3224
|
-
export const FallbackModelConfigurationType$inboundSchema: z.ZodNativeEnum<
|
|
3225
|
-
typeof FallbackModelConfigurationType
|
|
3226
|
-
> = z.nativeEnum(FallbackModelConfigurationType);
|
|
3227
|
-
/** @internal */
|
|
3228
|
-
export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
3229
|
-
typeof FallbackModelConfigurationType
|
|
3230
|
-
> = FallbackModelConfigurationType$inboundSchema;
|
|
3231
|
-
|
|
3232
|
-
/** @internal */
|
|
3233
|
-
export const FallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
3234
|
-
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> = z
|
|
3235
|
-
.nativeEnum(FallbackModelConfigurationThinkingLevel);
|
|
3236
|
-
/** @internal */
|
|
3237
|
-
export const FallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3238
|
-
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> =
|
|
3239
|
-
FallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3240
|
-
|
|
3241
3684
|
/** @internal */
|
|
3242
3685
|
export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
3243
3686
|
FallbackModelConfigurationThinking,
|
|
3244
3687
|
z.ZodTypeDef,
|
|
3245
3688
|
unknown
|
|
3246
|
-
> = z.
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
.optional(),
|
|
3251
|
-
}).transform((v) => {
|
|
3252
|
-
return remap$(v, {
|
|
3253
|
-
"budget_tokens": "budgetTokens",
|
|
3254
|
-
"thinking_level": "thinkingLevel",
|
|
3255
|
-
});
|
|
3256
|
-
});
|
|
3689
|
+
> = z.union([
|
|
3690
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3691
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3692
|
+
]);
|
|
3257
3693
|
/** @internal */
|
|
3258
|
-
export type FallbackModelConfigurationThinking$Outbound =
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
thinking_level?: string | undefined;
|
|
3262
|
-
};
|
|
3694
|
+
export type FallbackModelConfigurationThinking$Outbound =
|
|
3695
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3696
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
3263
3697
|
|
|
3264
3698
|
/** @internal */
|
|
3265
3699
|
export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
3266
|
-
FallbackModelConfigurationThinking$Outbound,
|
|
3267
|
-
z.ZodTypeDef,
|
|
3268
|
-
FallbackModelConfigurationThinking
|
|
3269
|
-
> = z.
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
.optional(),
|
|
3274
|
-
}).transform((v) => {
|
|
3275
|
-
return remap$(v, {
|
|
3276
|
-
budgetTokens: "budget_tokens",
|
|
3277
|
-
thinkingLevel: "thinking_level",
|
|
3278
|
-
});
|
|
3279
|
-
});
|
|
3700
|
+
FallbackModelConfigurationThinking$Outbound,
|
|
3701
|
+
z.ZodTypeDef,
|
|
3702
|
+
FallbackModelConfigurationThinking
|
|
3703
|
+
> = z.union([
|
|
3704
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3705
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3706
|
+
]);
|
|
3280
3707
|
|
|
3281
3708
|
export function fallbackModelConfigurationThinkingToJSON(
|
|
3282
3709
|
fallbackModelConfigurationThinking: FallbackModelConfigurationThinking,
|
|
@@ -3456,6 +3883,112 @@ export const FallbackModelConfigurationModalities$outboundSchema:
|
|
|
3456
3883
|
z.ZodNativeEnum<typeof FallbackModelConfigurationModalities> =
|
|
3457
3884
|
FallbackModelConfigurationModalities$inboundSchema;
|
|
3458
3885
|
|
|
3886
|
+
/** @internal */
|
|
3887
|
+
export const CreateAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
3888
|
+
typeof CreateAgentRequestId1
|
|
3889
|
+
> = z.nativeEnum(CreateAgentRequestId1);
|
|
3890
|
+
/** @internal */
|
|
3891
|
+
export const CreateAgentRequestId1$outboundSchema: z.ZodNativeEnum<
|
|
3892
|
+
typeof CreateAgentRequestId1
|
|
3893
|
+
> = CreateAgentRequestId1$inboundSchema;
|
|
3894
|
+
|
|
3895
|
+
/** @internal */
|
|
3896
|
+
export const FallbackModelConfigurationId$inboundSchema: z.ZodType<
|
|
3897
|
+
FallbackModelConfigurationId,
|
|
3898
|
+
z.ZodTypeDef,
|
|
3899
|
+
unknown
|
|
3900
|
+
> = z.union([CreateAgentRequestId1$inboundSchema, z.string()]);
|
|
3901
|
+
/** @internal */
|
|
3902
|
+
export type FallbackModelConfigurationId$Outbound = string | string;
|
|
3903
|
+
|
|
3904
|
+
/** @internal */
|
|
3905
|
+
export const FallbackModelConfigurationId$outboundSchema: z.ZodType<
|
|
3906
|
+
FallbackModelConfigurationId$Outbound,
|
|
3907
|
+
z.ZodTypeDef,
|
|
3908
|
+
FallbackModelConfigurationId
|
|
3909
|
+
> = z.union([CreateAgentRequestId1$outboundSchema, z.string()]);
|
|
3910
|
+
|
|
3911
|
+
export function fallbackModelConfigurationIdToJSON(
|
|
3912
|
+
fallbackModelConfigurationId: FallbackModelConfigurationId,
|
|
3913
|
+
): string {
|
|
3914
|
+
return JSON.stringify(
|
|
3915
|
+
FallbackModelConfigurationId$outboundSchema.parse(
|
|
3916
|
+
fallbackModelConfigurationId,
|
|
3917
|
+
),
|
|
3918
|
+
);
|
|
3919
|
+
}
|
|
3920
|
+
export function fallbackModelConfigurationIdFromJSON(
|
|
3921
|
+
jsonString: string,
|
|
3922
|
+
): SafeParseResult<FallbackModelConfigurationId, SDKValidationError> {
|
|
3923
|
+
return safeParse(
|
|
3924
|
+
jsonString,
|
|
3925
|
+
(x) => FallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
|
|
3926
|
+
`Failed to parse 'FallbackModelConfigurationId' from JSON`,
|
|
3927
|
+
);
|
|
3928
|
+
}
|
|
3929
|
+
|
|
3930
|
+
/** @internal */
|
|
3931
|
+
export const FallbackModelConfigurationExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
3932
|
+
typeof FallbackModelConfigurationExecuteOn
|
|
3933
|
+
> = z.nativeEnum(FallbackModelConfigurationExecuteOn);
|
|
3934
|
+
/** @internal */
|
|
3935
|
+
export const FallbackModelConfigurationExecuteOn$outboundSchema:
|
|
3936
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationExecuteOn> =
|
|
3937
|
+
FallbackModelConfigurationExecuteOn$inboundSchema;
|
|
3938
|
+
|
|
3939
|
+
/** @internal */
|
|
3940
|
+
export const FallbackModelConfigurationGuardrails$inboundSchema: z.ZodType<
|
|
3941
|
+
FallbackModelConfigurationGuardrails,
|
|
3942
|
+
z.ZodTypeDef,
|
|
3943
|
+
unknown
|
|
3944
|
+
> = z.object({
|
|
3945
|
+
id: z.union([CreateAgentRequestId1$inboundSchema, z.string()]),
|
|
3946
|
+
execute_on: FallbackModelConfigurationExecuteOn$inboundSchema,
|
|
3947
|
+
}).transform((v) => {
|
|
3948
|
+
return remap$(v, {
|
|
3949
|
+
"execute_on": "executeOn",
|
|
3950
|
+
});
|
|
3951
|
+
});
|
|
3952
|
+
/** @internal */
|
|
3953
|
+
export type FallbackModelConfigurationGuardrails$Outbound = {
|
|
3954
|
+
id: string | string;
|
|
3955
|
+
execute_on: string;
|
|
3956
|
+
};
|
|
3957
|
+
|
|
3958
|
+
/** @internal */
|
|
3959
|
+
export const FallbackModelConfigurationGuardrails$outboundSchema: z.ZodType<
|
|
3960
|
+
FallbackModelConfigurationGuardrails$Outbound,
|
|
3961
|
+
z.ZodTypeDef,
|
|
3962
|
+
FallbackModelConfigurationGuardrails
|
|
3963
|
+
> = z.object({
|
|
3964
|
+
id: z.union([CreateAgentRequestId1$outboundSchema, z.string()]),
|
|
3965
|
+
executeOn: FallbackModelConfigurationExecuteOn$outboundSchema,
|
|
3966
|
+
}).transform((v) => {
|
|
3967
|
+
return remap$(v, {
|
|
3968
|
+
executeOn: "execute_on",
|
|
3969
|
+
});
|
|
3970
|
+
});
|
|
3971
|
+
|
|
3972
|
+
export function fallbackModelConfigurationGuardrailsToJSON(
|
|
3973
|
+
fallbackModelConfigurationGuardrails: FallbackModelConfigurationGuardrails,
|
|
3974
|
+
): string {
|
|
3975
|
+
return JSON.stringify(
|
|
3976
|
+
FallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
3977
|
+
fallbackModelConfigurationGuardrails,
|
|
3978
|
+
),
|
|
3979
|
+
);
|
|
3980
|
+
}
|
|
3981
|
+
export function fallbackModelConfigurationGuardrailsFromJSON(
|
|
3982
|
+
jsonString: string,
|
|
3983
|
+
): SafeParseResult<FallbackModelConfigurationGuardrails, SDKValidationError> {
|
|
3984
|
+
return safeParse(
|
|
3985
|
+
jsonString,
|
|
3986
|
+
(x) =>
|
|
3987
|
+
FallbackModelConfigurationGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
3988
|
+
`Failed to parse 'FallbackModelConfigurationGuardrails' from JSON`,
|
|
3989
|
+
);
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3459
3992
|
/** @internal */
|
|
3460
3993
|
export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
3461
3994
|
FallbackModelConfigurationParameters,
|
|
@@ -3476,15 +4009,18 @@ export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
3476
4009
|
z.lazy(() => ResponseFormatJSONObject$inboundSchema),
|
|
3477
4010
|
z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$inboundSchema),
|
|
3478
4011
|
]).optional(),
|
|
3479
|
-
reasoning_effort:
|
|
4012
|
+
reasoning_effort: FallbackModelConfigurationReasoningEffort$inboundSchema
|
|
4013
|
+
.optional(),
|
|
3480
4014
|
verbosity: z.string().optional(),
|
|
3481
4015
|
seed: z.nullable(z.number()).optional(),
|
|
3482
4016
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3483
4017
|
stream_options: z.nullable(
|
|
3484
4018
|
z.lazy(() => FallbackModelConfigurationStreamOptions$inboundSchema),
|
|
3485
4019
|
).optional(),
|
|
3486
|
-
thinking: z.
|
|
3487
|
-
.
|
|
4020
|
+
thinking: z.union([
|
|
4021
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4022
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4023
|
+
]).optional(),
|
|
3488
4024
|
temperature: z.nullable(z.number()).optional(),
|
|
3489
4025
|
top_p: z.nullable(z.number()).optional(),
|
|
3490
4026
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -3496,6 +4032,9 @@ export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
3496
4032
|
modalities: z.nullable(
|
|
3497
4033
|
z.array(FallbackModelConfigurationModalities$inboundSchema),
|
|
3498
4034
|
).optional(),
|
|
4035
|
+
guardrails: z.array(
|
|
4036
|
+
z.lazy(() => FallbackModelConfigurationGuardrails$inboundSchema),
|
|
4037
|
+
).optional(),
|
|
3499
4038
|
}).transform((v) => {
|
|
3500
4039
|
return remap$(v, {
|
|
3501
4040
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -3535,13 +4074,17 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3535
4074
|
| FallbackModelConfigurationStreamOptions$Outbound
|
|
3536
4075
|
| null
|
|
3537
4076
|
| undefined;
|
|
3538
|
-
thinking?:
|
|
4077
|
+
thinking?:
|
|
4078
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4079
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
4080
|
+
| undefined;
|
|
3539
4081
|
temperature?: number | null | undefined;
|
|
3540
4082
|
top_p?: number | null | undefined;
|
|
3541
4083
|
top_k?: number | null | undefined;
|
|
3542
4084
|
tool_choice?: CreateAgentRequestToolChoice2$Outbound | string | undefined;
|
|
3543
4085
|
parallel_tool_calls?: boolean | undefined;
|
|
3544
4086
|
modalities?: Array<string> | null | undefined;
|
|
4087
|
+
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
3545
4088
|
};
|
|
3546
4089
|
|
|
3547
4090
|
/** @internal */
|
|
@@ -3565,15 +4108,18 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3565
4108
|
z.lazy(() => ResponseFormatJSONObject$outboundSchema),
|
|
3566
4109
|
z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$outboundSchema),
|
|
3567
4110
|
]).optional(),
|
|
3568
|
-
reasoningEffort:
|
|
4111
|
+
reasoningEffort: FallbackModelConfigurationReasoningEffort$outboundSchema
|
|
4112
|
+
.optional(),
|
|
3569
4113
|
verbosity: z.string().optional(),
|
|
3570
4114
|
seed: z.nullable(z.number()).optional(),
|
|
3571
4115
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3572
4116
|
streamOptions: z.nullable(
|
|
3573
4117
|
z.lazy(() => FallbackModelConfigurationStreamOptions$outboundSchema),
|
|
3574
4118
|
).optional(),
|
|
3575
|
-
thinking: z.
|
|
3576
|
-
.
|
|
4119
|
+
thinking: z.union([
|
|
4120
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4121
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
4122
|
+
]).optional(),
|
|
3577
4123
|
temperature: z.nullable(z.number()).optional(),
|
|
3578
4124
|
topP: z.nullable(z.number()).optional(),
|
|
3579
4125
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -3585,6 +4131,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3585
4131
|
modalities: z.nullable(
|
|
3586
4132
|
z.array(FallbackModelConfigurationModalities$outboundSchema),
|
|
3587
4133
|
).optional(),
|
|
4134
|
+
guardrails: z.array(
|
|
4135
|
+
z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
|
|
4136
|
+
).optional(),
|
|
3588
4137
|
}).transform((v) => {
|
|
3589
4138
|
return remap$(v, {
|
|
3590
4139
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3718,10 +4267,26 @@ export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
|
3718
4267
|
typeof ToolApprovalRequired
|
|
3719
4268
|
> = ToolApprovalRequired$inboundSchema;
|
|
3720
4269
|
|
|
4270
|
+
/** @internal */
|
|
4271
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema:
|
|
4272
|
+
z.ZodNativeEnum<
|
|
4273
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
4274
|
+
> = z.nativeEnum(
|
|
4275
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type,
|
|
4276
|
+
);
|
|
4277
|
+
/** @internal */
|
|
4278
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
|
|
4279
|
+
z.ZodNativeEnum<
|
|
4280
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
4281
|
+
> =
|
|
4282
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema;
|
|
4283
|
+
|
|
3721
4284
|
/** @internal */
|
|
3722
4285
|
export const MCPTool$inboundSchema: z.ZodType<MCPTool, z.ZodTypeDef, unknown> =
|
|
3723
4286
|
z.object({
|
|
3724
|
-
type:
|
|
4287
|
+
type:
|
|
4288
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema
|
|
4289
|
+
.default("mcp"),
|
|
3725
4290
|
key: z.string().optional(),
|
|
3726
4291
|
id: z.string().optional(),
|
|
3727
4292
|
tool_id: z.string(),
|
|
@@ -3734,7 +4299,7 @@ export const MCPTool$inboundSchema: z.ZodType<MCPTool, z.ZodTypeDef, unknown> =
|
|
|
3734
4299
|
});
|
|
3735
4300
|
/** @internal */
|
|
3736
4301
|
export type MCPTool$Outbound = {
|
|
3737
|
-
type:
|
|
4302
|
+
type: string;
|
|
3738
4303
|
key?: string | undefined;
|
|
3739
4304
|
id?: string | undefined;
|
|
3740
4305
|
tool_id: string;
|
|
@@ -3747,7 +4312,9 @@ export const MCPTool$outboundSchema: z.ZodType<
|
|
|
3747
4312
|
z.ZodTypeDef,
|
|
3748
4313
|
MCPTool
|
|
3749
4314
|
> = z.object({
|
|
3750
|
-
type:
|
|
4315
|
+
type:
|
|
4316
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema
|
|
4317
|
+
.default("mcp"),
|
|
3751
4318
|
key: z.string().optional(),
|
|
3752
4319
|
id: z.string().optional(),
|
|
3753
4320
|
toolId: z.string(),
|
|
@@ -3772,13 +4339,29 @@ export function mcpToolFromJSON(
|
|
|
3772
4339
|
);
|
|
3773
4340
|
}
|
|
3774
4341
|
|
|
4342
|
+
/** @internal */
|
|
4343
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
|
|
4344
|
+
z.ZodNativeEnum<
|
|
4345
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
4346
|
+
> = z.nativeEnum(
|
|
4347
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
|
|
4348
|
+
);
|
|
4349
|
+
/** @internal */
|
|
4350
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
4351
|
+
z.ZodNativeEnum<
|
|
4352
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
4353
|
+
> =
|
|
4354
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
|
|
4355
|
+
|
|
3775
4356
|
/** @internal */
|
|
3776
4357
|
export const FunctionTool$inboundSchema: z.ZodType<
|
|
3777
4358
|
FunctionTool,
|
|
3778
4359
|
z.ZodTypeDef,
|
|
3779
4360
|
unknown
|
|
3780
4361
|
> = z.object({
|
|
3781
|
-
type:
|
|
4362
|
+
type:
|
|
4363
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema
|
|
4364
|
+
.default("function"),
|
|
3782
4365
|
key: z.string().optional(),
|
|
3783
4366
|
id: z.string().optional(),
|
|
3784
4367
|
requires_approval: z.boolean().default(false),
|
|
@@ -3789,7 +4372,7 @@ export const FunctionTool$inboundSchema: z.ZodType<
|
|
|
3789
4372
|
});
|
|
3790
4373
|
/** @internal */
|
|
3791
4374
|
export type FunctionTool$Outbound = {
|
|
3792
|
-
type:
|
|
4375
|
+
type: string;
|
|
3793
4376
|
key?: string | undefined;
|
|
3794
4377
|
id?: string | undefined;
|
|
3795
4378
|
requires_approval: boolean;
|
|
@@ -3801,7 +4384,9 @@ export const FunctionTool$outboundSchema: z.ZodType<
|
|
|
3801
4384
|
z.ZodTypeDef,
|
|
3802
4385
|
FunctionTool
|
|
3803
4386
|
> = z.object({
|
|
3804
|
-
type:
|
|
4387
|
+
type:
|
|
4388
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema
|
|
4389
|
+
.default("function"),
|
|
3805
4390
|
key: z.string().optional(),
|
|
3806
4391
|
id: z.string().optional(),
|
|
3807
4392
|
requiresApproval: z.boolean().default(false),
|
|
@@ -3824,13 +4409,29 @@ export function functionToolFromJSON(
|
|
|
3824
4409
|
);
|
|
3825
4410
|
}
|
|
3826
4411
|
|
|
4412
|
+
/** @internal */
|
|
4413
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
|
|
4414
|
+
z.ZodNativeEnum<
|
|
4415
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
4416
|
+
> = z.nativeEnum(
|
|
4417
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
|
|
4418
|
+
);
|
|
4419
|
+
/** @internal */
|
|
4420
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
4421
|
+
z.ZodNativeEnum<
|
|
4422
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
4423
|
+
> =
|
|
4424
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
|
|
4425
|
+
|
|
3827
4426
|
/** @internal */
|
|
3828
4427
|
export const CodeExecutionTool$inboundSchema: z.ZodType<
|
|
3829
4428
|
CodeExecutionTool,
|
|
3830
4429
|
z.ZodTypeDef,
|
|
3831
4430
|
unknown
|
|
3832
4431
|
> = z.object({
|
|
3833
|
-
type:
|
|
4432
|
+
type:
|
|
4433
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema
|
|
4434
|
+
.default("code"),
|
|
3834
4435
|
key: z.string().optional(),
|
|
3835
4436
|
id: z.string().optional(),
|
|
3836
4437
|
requires_approval: z.boolean().default(false),
|
|
@@ -3841,7 +4442,7 @@ export const CodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
3841
4442
|
});
|
|
3842
4443
|
/** @internal */
|
|
3843
4444
|
export type CodeExecutionTool$Outbound = {
|
|
3844
|
-
type:
|
|
4445
|
+
type: string;
|
|
3845
4446
|
key?: string | undefined;
|
|
3846
4447
|
id?: string | undefined;
|
|
3847
4448
|
requires_approval: boolean;
|
|
@@ -3853,7 +4454,9 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
3853
4454
|
z.ZodTypeDef,
|
|
3854
4455
|
CodeExecutionTool
|
|
3855
4456
|
> = z.object({
|
|
3856
|
-
type:
|
|
4457
|
+
type:
|
|
4458
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema
|
|
4459
|
+
.default("code"),
|
|
3857
4460
|
key: z.string().optional(),
|
|
3858
4461
|
id: z.string().optional(),
|
|
3859
4462
|
requiresApproval: z.boolean().default(false),
|
|
@@ -3880,13 +4483,29 @@ export function codeExecutionToolFromJSON(
|
|
|
3880
4483
|
);
|
|
3881
4484
|
}
|
|
3882
4485
|
|
|
4486
|
+
/** @internal */
|
|
4487
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
|
|
4488
|
+
z.ZodNativeEnum<
|
|
4489
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
4490
|
+
> = z.nativeEnum(
|
|
4491
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
|
|
4492
|
+
);
|
|
4493
|
+
/** @internal */
|
|
4494
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
4495
|
+
z.ZodNativeEnum<
|
|
4496
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
4497
|
+
> =
|
|
4498
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
|
|
4499
|
+
|
|
3883
4500
|
/** @internal */
|
|
3884
4501
|
export const HTTPTool$inboundSchema: z.ZodType<
|
|
3885
4502
|
HTTPTool,
|
|
3886
4503
|
z.ZodTypeDef,
|
|
3887
4504
|
unknown
|
|
3888
4505
|
> = z.object({
|
|
3889
|
-
type:
|
|
4506
|
+
type:
|
|
4507
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema
|
|
4508
|
+
.default("http"),
|
|
3890
4509
|
key: z.string().optional(),
|
|
3891
4510
|
id: z.string().optional(),
|
|
3892
4511
|
requires_approval: z.boolean().default(false),
|
|
@@ -3897,7 +4516,7 @@ export const HTTPTool$inboundSchema: z.ZodType<
|
|
|
3897
4516
|
});
|
|
3898
4517
|
/** @internal */
|
|
3899
4518
|
export type HTTPTool$Outbound = {
|
|
3900
|
-
type:
|
|
4519
|
+
type: string;
|
|
3901
4520
|
key?: string | undefined;
|
|
3902
4521
|
id?: string | undefined;
|
|
3903
4522
|
requires_approval: boolean;
|
|
@@ -3909,7 +4528,9 @@ export const HTTPTool$outboundSchema: z.ZodType<
|
|
|
3909
4528
|
z.ZodTypeDef,
|
|
3910
4529
|
HTTPTool
|
|
3911
4530
|
> = z.object({
|
|
3912
|
-
type:
|
|
4531
|
+
type:
|
|
4532
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema
|
|
4533
|
+
.default("http"),
|
|
3913
4534
|
key: z.string().optional(),
|
|
3914
4535
|
id: z.string().optional(),
|
|
3915
4536
|
requiresApproval: z.boolean().default(false),
|
|
@@ -3932,13 +4553,28 @@ export function httpToolFromJSON(
|
|
|
3932
4553
|
);
|
|
3933
4554
|
}
|
|
3934
4555
|
|
|
4556
|
+
/** @internal */
|
|
4557
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
|
|
4558
|
+
z.ZodNativeEnum<
|
|
4559
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
4560
|
+
> = z.nativeEnum(
|
|
4561
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
|
|
4562
|
+
);
|
|
4563
|
+
/** @internal */
|
|
4564
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
4565
|
+
z.ZodNativeEnum<
|
|
4566
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
|
|
4567
|
+
> =
|
|
4568
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
|
|
4569
|
+
|
|
3935
4570
|
/** @internal */
|
|
3936
4571
|
export const CurrentDateTool$inboundSchema: z.ZodType<
|
|
3937
4572
|
CurrentDateTool,
|
|
3938
4573
|
z.ZodTypeDef,
|
|
3939
4574
|
unknown
|
|
3940
4575
|
> = z.object({
|
|
3941
|
-
type:
|
|
4576
|
+
type:
|
|
4577
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
|
|
3942
4578
|
requires_approval: z.boolean().optional(),
|
|
3943
4579
|
}).transform((v) => {
|
|
3944
4580
|
return remap$(v, {
|
|
@@ -3947,7 +4583,7 @@ export const CurrentDateTool$inboundSchema: z.ZodType<
|
|
|
3947
4583
|
});
|
|
3948
4584
|
/** @internal */
|
|
3949
4585
|
export type CurrentDateTool$Outbound = {
|
|
3950
|
-
type:
|
|
4586
|
+
type: string;
|
|
3951
4587
|
requires_approval?: boolean | undefined;
|
|
3952
4588
|
};
|
|
3953
4589
|
|
|
@@ -3957,7 +4593,8 @@ export const CurrentDateTool$outboundSchema: z.ZodType<
|
|
|
3957
4593
|
z.ZodTypeDef,
|
|
3958
4594
|
CurrentDateTool
|
|
3959
4595
|
> = z.object({
|
|
3960
|
-
type:
|
|
4596
|
+
type:
|
|
4597
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
|
|
3961
4598
|
requiresApproval: z.boolean().optional(),
|
|
3962
4599
|
}).transform((v) => {
|
|
3963
4600
|
return remap$(v, {
|
|
@@ -3980,13 +4617,28 @@ export function currentDateToolFromJSON(
|
|
|
3980
4617
|
);
|
|
3981
4618
|
}
|
|
3982
4619
|
|
|
4620
|
+
/** @internal */
|
|
4621
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
|
|
4622
|
+
z.ZodNativeEnum<
|
|
4623
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
4624
|
+
> = z.nativeEnum(
|
|
4625
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
|
|
4626
|
+
);
|
|
4627
|
+
/** @internal */
|
|
4628
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
|
|
4629
|
+
z.ZodNativeEnum<
|
|
4630
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
|
|
4631
|
+
> =
|
|
4632
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
|
|
4633
|
+
|
|
3983
4634
|
/** @internal */
|
|
3984
4635
|
export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
3985
4636
|
QueryKnowledgeBaseTool,
|
|
3986
4637
|
z.ZodTypeDef,
|
|
3987
4638
|
unknown
|
|
3988
4639
|
> = z.object({
|
|
3989
|
-
type:
|
|
4640
|
+
type:
|
|
4641
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
|
|
3990
4642
|
requires_approval: z.boolean().optional(),
|
|
3991
4643
|
}).transform((v) => {
|
|
3992
4644
|
return remap$(v, {
|
|
@@ -3995,7 +4647,7 @@ export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
|
|
|
3995
4647
|
});
|
|
3996
4648
|
/** @internal */
|
|
3997
4649
|
export type QueryKnowledgeBaseTool$Outbound = {
|
|
3998
|
-
type:
|
|
4650
|
+
type: string;
|
|
3999
4651
|
requires_approval?: boolean | undefined;
|
|
4000
4652
|
};
|
|
4001
4653
|
|
|
@@ -4005,7 +4657,8 @@ export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
|
|
|
4005
4657
|
z.ZodTypeDef,
|
|
4006
4658
|
QueryKnowledgeBaseTool
|
|
4007
4659
|
> = z.object({
|
|
4008
|
-
type:
|
|
4660
|
+
type:
|
|
4661
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
|
|
4009
4662
|
requiresApproval: z.boolean().optional(),
|
|
4010
4663
|
}).transform((v) => {
|
|
4011
4664
|
return remap$(v, {
|
|
@@ -4030,13 +4683,28 @@ export function queryKnowledgeBaseToolFromJSON(
|
|
|
4030
4683
|
);
|
|
4031
4684
|
}
|
|
4032
4685
|
|
|
4686
|
+
/** @internal */
|
|
4687
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
|
|
4688
|
+
z.ZodNativeEnum<
|
|
4689
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
4690
|
+
> = z.nativeEnum(
|
|
4691
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
|
|
4692
|
+
);
|
|
4693
|
+
/** @internal */
|
|
4694
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
|
|
4695
|
+
z.ZodNativeEnum<
|
|
4696
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
|
|
4697
|
+
> =
|
|
4698
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
|
|
4699
|
+
|
|
4033
4700
|
/** @internal */
|
|
4034
4701
|
export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
|
|
4035
4702
|
RetrieveKnowledgeBasesTool,
|
|
4036
4703
|
z.ZodTypeDef,
|
|
4037
4704
|
unknown
|
|
4038
4705
|
> = z.object({
|
|
4039
|
-
type:
|
|
4706
|
+
type:
|
|
4707
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
|
|
4040
4708
|
requires_approval: z.boolean().optional(),
|
|
4041
4709
|
}).transform((v) => {
|
|
4042
4710
|
return remap$(v, {
|
|
@@ -4045,7 +4713,7 @@ export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
|
|
|
4045
4713
|
});
|
|
4046
4714
|
/** @internal */
|
|
4047
4715
|
export type RetrieveKnowledgeBasesTool$Outbound = {
|
|
4048
|
-
type:
|
|
4716
|
+
type: string;
|
|
4049
4717
|
requires_approval?: boolean | undefined;
|
|
4050
4718
|
};
|
|
4051
4719
|
|
|
@@ -4055,7 +4723,8 @@ export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
|
|
|
4055
4723
|
z.ZodTypeDef,
|
|
4056
4724
|
RetrieveKnowledgeBasesTool
|
|
4057
4725
|
> = z.object({
|
|
4058
|
-
type:
|
|
4726
|
+
type:
|
|
4727
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
|
|
4059
4728
|
requiresApproval: z.boolean().optional(),
|
|
4060
4729
|
}).transform((v) => {
|
|
4061
4730
|
return remap$(v, {
|
|
@@ -4080,13 +4749,28 @@ export function retrieveKnowledgeBasesToolFromJSON(
|
|
|
4080
4749
|
);
|
|
4081
4750
|
}
|
|
4082
4751
|
|
|
4752
|
+
/** @internal */
|
|
4753
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
|
|
4754
|
+
z.ZodNativeEnum<
|
|
4755
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
4756
|
+
> = z.nativeEnum(
|
|
4757
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
|
|
4758
|
+
);
|
|
4759
|
+
/** @internal */
|
|
4760
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
|
|
4761
|
+
z.ZodNativeEnum<
|
|
4762
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
|
|
4763
|
+
> =
|
|
4764
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
|
|
4765
|
+
|
|
4083
4766
|
/** @internal */
|
|
4084
4767
|
export const DeleteMemoryDocumentTool$inboundSchema: z.ZodType<
|
|
4085
4768
|
DeleteMemoryDocumentTool,
|
|
4086
4769
|
z.ZodTypeDef,
|
|
4087
4770
|
unknown
|
|
4088
4771
|
> = z.object({
|
|
4089
|
-
type:
|
|
4772
|
+
type:
|
|
4773
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
|
|
4090
4774
|
requires_approval: z.boolean().optional(),
|
|
4091
4775
|
}).transform((v) => {
|
|
4092
4776
|
return remap$(v, {
|
|
@@ -4095,7 +4779,7 @@ export const DeleteMemoryDocumentTool$inboundSchema: z.ZodType<
|
|
|
4095
4779
|
});
|
|
4096
4780
|
/** @internal */
|
|
4097
4781
|
export type DeleteMemoryDocumentTool$Outbound = {
|
|
4098
|
-
type:
|
|
4782
|
+
type: string;
|
|
4099
4783
|
requires_approval?: boolean | undefined;
|
|
4100
4784
|
};
|
|
4101
4785
|
|
|
@@ -4105,7 +4789,8 @@ export const DeleteMemoryDocumentTool$outboundSchema: z.ZodType<
|
|
|
4105
4789
|
z.ZodTypeDef,
|
|
4106
4790
|
DeleteMemoryDocumentTool
|
|
4107
4791
|
> = z.object({
|
|
4108
|
-
type:
|
|
4792
|
+
type:
|
|
4793
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
|
|
4109
4794
|
requiresApproval: z.boolean().optional(),
|
|
4110
4795
|
}).transform((v) => {
|
|
4111
4796
|
return remap$(v, {
|
|
@@ -4130,13 +4815,28 @@ export function deleteMemoryDocumentToolFromJSON(
|
|
|
4130
4815
|
);
|
|
4131
4816
|
}
|
|
4132
4817
|
|
|
4818
|
+
/** @internal */
|
|
4819
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema:
|
|
4820
|
+
z.ZodNativeEnum<
|
|
4821
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
4822
|
+
> = z.nativeEnum(
|
|
4823
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
|
|
4824
|
+
);
|
|
4825
|
+
/** @internal */
|
|
4826
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
|
|
4827
|
+
z.ZodNativeEnum<
|
|
4828
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
|
|
4829
|
+
> =
|
|
4830
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
|
|
4831
|
+
|
|
4133
4832
|
/** @internal */
|
|
4134
4833
|
export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
4135
4834
|
RetrieveMemoryStoresTool,
|
|
4136
4835
|
z.ZodTypeDef,
|
|
4137
4836
|
unknown
|
|
4138
4837
|
> = z.object({
|
|
4139
|
-
type:
|
|
4838
|
+
type:
|
|
4839
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
|
|
4140
4840
|
requires_approval: z.boolean().optional(),
|
|
4141
4841
|
}).transform((v) => {
|
|
4142
4842
|
return remap$(v, {
|
|
@@ -4145,7 +4845,7 @@ export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
|
|
|
4145
4845
|
});
|
|
4146
4846
|
/** @internal */
|
|
4147
4847
|
export type RetrieveMemoryStoresTool$Outbound = {
|
|
4148
|
-
type:
|
|
4848
|
+
type: string;
|
|
4149
4849
|
requires_approval?: boolean | undefined;
|
|
4150
4850
|
};
|
|
4151
4851
|
|
|
@@ -4155,7 +4855,8 @@ export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
|
|
|
4155
4855
|
z.ZodTypeDef,
|
|
4156
4856
|
RetrieveMemoryStoresTool
|
|
4157
4857
|
> = z.object({
|
|
4158
|
-
type:
|
|
4858
|
+
type:
|
|
4859
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
|
|
4159
4860
|
requiresApproval: z.boolean().optional(),
|
|
4160
4861
|
}).transform((v) => {
|
|
4161
4862
|
return remap$(v, {
|
|
@@ -4180,13 +4881,28 @@ export function retrieveMemoryStoresToolFromJSON(
|
|
|
4180
4881
|
);
|
|
4181
4882
|
}
|
|
4182
4883
|
|
|
4884
|
+
/** @internal */
|
|
4885
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema:
|
|
4886
|
+
z.ZodNativeEnum<
|
|
4887
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
4888
|
+
> = z.nativeEnum(
|
|
4889
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
|
|
4890
|
+
);
|
|
4891
|
+
/** @internal */
|
|
4892
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
|
|
4893
|
+
z.ZodNativeEnum<
|
|
4894
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType
|
|
4895
|
+
> =
|
|
4896
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
|
|
4897
|
+
|
|
4183
4898
|
/** @internal */
|
|
4184
4899
|
export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
4185
4900
|
WriteMemoryStoreTool,
|
|
4186
4901
|
z.ZodTypeDef,
|
|
4187
4902
|
unknown
|
|
4188
4903
|
> = z.object({
|
|
4189
|
-
type:
|
|
4904
|
+
type:
|
|
4905
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
|
|
4190
4906
|
requires_approval: z.boolean().optional(),
|
|
4191
4907
|
}).transform((v) => {
|
|
4192
4908
|
return remap$(v, {
|
|
@@ -4195,7 +4911,7 @@ export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
4195
4911
|
});
|
|
4196
4912
|
/** @internal */
|
|
4197
4913
|
export type WriteMemoryStoreTool$Outbound = {
|
|
4198
|
-
type:
|
|
4914
|
+
type: string;
|
|
4199
4915
|
requires_approval?: boolean | undefined;
|
|
4200
4916
|
};
|
|
4201
4917
|
|
|
@@ -4205,7 +4921,8 @@ export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
4205
4921
|
z.ZodTypeDef,
|
|
4206
4922
|
WriteMemoryStoreTool
|
|
4207
4923
|
> = z.object({
|
|
4208
|
-
type:
|
|
4924
|
+
type:
|
|
4925
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
|
|
4209
4926
|
requiresApproval: z.boolean().optional(),
|
|
4210
4927
|
}).transform((v) => {
|
|
4211
4928
|
return remap$(v, {
|
|
@@ -4230,13 +4947,28 @@ export function writeMemoryStoreToolFromJSON(
|
|
|
4230
4947
|
);
|
|
4231
4948
|
}
|
|
4232
4949
|
|
|
4950
|
+
/** @internal */
|
|
4951
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema:
|
|
4952
|
+
z.ZodNativeEnum<
|
|
4953
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType
|
|
4954
|
+
> = z.nativeEnum(
|
|
4955
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType,
|
|
4956
|
+
);
|
|
4957
|
+
/** @internal */
|
|
4958
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
|
|
4959
|
+
z.ZodNativeEnum<
|
|
4960
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType
|
|
4961
|
+
> =
|
|
4962
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
|
|
4963
|
+
|
|
4233
4964
|
/** @internal */
|
|
4234
4965
|
export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
4235
4966
|
QueryMemoryStoreTool,
|
|
4236
4967
|
z.ZodTypeDef,
|
|
4237
4968
|
unknown
|
|
4238
4969
|
> = z.object({
|
|
4239
|
-
type:
|
|
4970
|
+
type:
|
|
4971
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
|
|
4240
4972
|
requires_approval: z.boolean().optional(),
|
|
4241
4973
|
}).transform((v) => {
|
|
4242
4974
|
return remap$(v, {
|
|
@@ -4245,7 +4977,7 @@ export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
|
|
|
4245
4977
|
});
|
|
4246
4978
|
/** @internal */
|
|
4247
4979
|
export type QueryMemoryStoreTool$Outbound = {
|
|
4248
|
-
type:
|
|
4980
|
+
type: string;
|
|
4249
4981
|
requires_approval?: boolean | undefined;
|
|
4250
4982
|
};
|
|
4251
4983
|
|
|
@@ -4255,7 +4987,8 @@ export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
|
|
|
4255
4987
|
z.ZodTypeDef,
|
|
4256
4988
|
QueryMemoryStoreTool
|
|
4257
4989
|
> = z.object({
|
|
4258
|
-
type:
|
|
4990
|
+
type:
|
|
4991
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
|
|
4259
4992
|
requiresApproval: z.boolean().optional(),
|
|
4260
4993
|
}).transform((v) => {
|
|
4261
4994
|
return remap$(v, {
|
|
@@ -4280,13 +5013,24 @@ export function queryMemoryStoreToolFromJSON(
|
|
|
4280
5013
|
);
|
|
4281
5014
|
}
|
|
4282
5015
|
|
|
5016
|
+
/** @internal */
|
|
5017
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestType$inboundSchema:
|
|
5018
|
+
z.ZodNativeEnum<
|
|
5019
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType
|
|
5020
|
+
> = z.nativeEnum(CreateAgentRequestAgentToolInputCRUDAgentsRequestType);
|
|
5021
|
+
/** @internal */
|
|
5022
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestType$outboundSchema:
|
|
5023
|
+
z.ZodNativeEnum<
|
|
5024
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType
|
|
5025
|
+
> = CreateAgentRequestAgentToolInputCRUDAgentsRequestType$inboundSchema;
|
|
5026
|
+
|
|
4283
5027
|
/** @internal */
|
|
4284
5028
|
export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
4285
5029
|
RetrieveAgentsTool,
|
|
4286
5030
|
z.ZodTypeDef,
|
|
4287
5031
|
unknown
|
|
4288
5032
|
> = z.object({
|
|
4289
|
-
type:
|
|
5033
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType$inboundSchema,
|
|
4290
5034
|
requires_approval: z.boolean().optional(),
|
|
4291
5035
|
}).transform((v) => {
|
|
4292
5036
|
return remap$(v, {
|
|
@@ -4295,7 +5039,7 @@ export const RetrieveAgentsTool$inboundSchema: z.ZodType<
|
|
|
4295
5039
|
});
|
|
4296
5040
|
/** @internal */
|
|
4297
5041
|
export type RetrieveAgentsTool$Outbound = {
|
|
4298
|
-
type:
|
|
5042
|
+
type: string;
|
|
4299
5043
|
requires_approval?: boolean | undefined;
|
|
4300
5044
|
};
|
|
4301
5045
|
|
|
@@ -4305,7 +5049,7 @@ export const RetrieveAgentsTool$outboundSchema: z.ZodType<
|
|
|
4305
5049
|
z.ZodTypeDef,
|
|
4306
5050
|
RetrieveAgentsTool
|
|
4307
5051
|
> = z.object({
|
|
4308
|
-
type:
|
|
5052
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType$outboundSchema,
|
|
4309
5053
|
requiresApproval: z.boolean().optional(),
|
|
4310
5054
|
}).transform((v) => {
|
|
4311
5055
|
return remap$(v, {
|
|
@@ -4330,13 +5074,22 @@ export function retrieveAgentsToolFromJSON(
|
|
|
4330
5074
|
);
|
|
4331
5075
|
}
|
|
4332
5076
|
|
|
5077
|
+
/** @internal */
|
|
5078
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsType$inboundSchema:
|
|
5079
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsType> = z
|
|
5080
|
+
.nativeEnum(CreateAgentRequestAgentToolInputCRUDAgentsType);
|
|
5081
|
+
/** @internal */
|
|
5082
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsType$outboundSchema:
|
|
5083
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsType> =
|
|
5084
|
+
CreateAgentRequestAgentToolInputCRUDAgentsType$inboundSchema;
|
|
5085
|
+
|
|
4333
5086
|
/** @internal */
|
|
4334
5087
|
export const CallSubAgentTool$inboundSchema: z.ZodType<
|
|
4335
5088
|
CallSubAgentTool,
|
|
4336
5089
|
z.ZodTypeDef,
|
|
4337
5090
|
unknown
|
|
4338
5091
|
> = z.object({
|
|
4339
|
-
type:
|
|
5092
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsType$inboundSchema,
|
|
4340
5093
|
requires_approval: z.boolean().optional(),
|
|
4341
5094
|
}).transform((v) => {
|
|
4342
5095
|
return remap$(v, {
|
|
@@ -4345,7 +5098,7 @@ export const CallSubAgentTool$inboundSchema: z.ZodType<
|
|
|
4345
5098
|
});
|
|
4346
5099
|
/** @internal */
|
|
4347
5100
|
export type CallSubAgentTool$Outbound = {
|
|
4348
|
-
type:
|
|
5101
|
+
type: string;
|
|
4349
5102
|
requires_approval?: boolean | undefined;
|
|
4350
5103
|
};
|
|
4351
5104
|
|
|
@@ -4355,7 +5108,7 @@ export const CallSubAgentTool$outboundSchema: z.ZodType<
|
|
|
4355
5108
|
z.ZodTypeDef,
|
|
4356
5109
|
CallSubAgentTool
|
|
4357
5110
|
> = z.object({
|
|
4358
|
-
type:
|
|
5111
|
+
type: CreateAgentRequestAgentToolInputCRUDAgentsType$outboundSchema,
|
|
4359
5112
|
requiresApproval: z.boolean().optional(),
|
|
4360
5113
|
}).transform((v) => {
|
|
4361
5114
|
return remap$(v, {
|
|
@@ -4380,13 +5133,22 @@ export function callSubAgentToolFromJSON(
|
|
|
4380
5133
|
);
|
|
4381
5134
|
}
|
|
4382
5135
|
|
|
5136
|
+
/** @internal */
|
|
5137
|
+
export const CreateAgentRequestAgentToolInputCRUDType$inboundSchema:
|
|
5138
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDType> = z
|
|
5139
|
+
.nativeEnum(CreateAgentRequestAgentToolInputCRUDType);
|
|
5140
|
+
/** @internal */
|
|
5141
|
+
export const CreateAgentRequestAgentToolInputCRUDType$outboundSchema:
|
|
5142
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDType> =
|
|
5143
|
+
CreateAgentRequestAgentToolInputCRUDType$inboundSchema;
|
|
5144
|
+
|
|
4383
5145
|
/** @internal */
|
|
4384
5146
|
export const WebScraperTool$inboundSchema: z.ZodType<
|
|
4385
5147
|
WebScraperTool,
|
|
4386
5148
|
z.ZodTypeDef,
|
|
4387
5149
|
unknown
|
|
4388
5150
|
> = z.object({
|
|
4389
|
-
type:
|
|
5151
|
+
type: CreateAgentRequestAgentToolInputCRUDType$inboundSchema,
|
|
4390
5152
|
requires_approval: z.boolean().optional(),
|
|
4391
5153
|
}).transform((v) => {
|
|
4392
5154
|
return remap$(v, {
|
|
@@ -4395,7 +5157,7 @@ export const WebScraperTool$inboundSchema: z.ZodType<
|
|
|
4395
5157
|
});
|
|
4396
5158
|
/** @internal */
|
|
4397
5159
|
export type WebScraperTool$Outbound = {
|
|
4398
|
-
type:
|
|
5160
|
+
type: string;
|
|
4399
5161
|
requires_approval?: boolean | undefined;
|
|
4400
5162
|
};
|
|
4401
5163
|
|
|
@@ -4405,7 +5167,7 @@ export const WebScraperTool$outboundSchema: z.ZodType<
|
|
|
4405
5167
|
z.ZodTypeDef,
|
|
4406
5168
|
WebScraperTool
|
|
4407
5169
|
> = z.object({
|
|
4408
|
-
type:
|
|
5170
|
+
type: CreateAgentRequestAgentToolInputCRUDType$outboundSchema,
|
|
4409
5171
|
requiresApproval: z.boolean().optional(),
|
|
4410
5172
|
}).transform((v) => {
|
|
4411
5173
|
return remap$(v, {
|
|
@@ -4426,13 +5188,22 @@ export function webScraperToolFromJSON(
|
|
|
4426
5188
|
);
|
|
4427
5189
|
}
|
|
4428
5190
|
|
|
5191
|
+
/** @internal */
|
|
5192
|
+
export const AgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
|
|
5193
|
+
typeof AgentToolInputCRUDType
|
|
5194
|
+
> = z.nativeEnum(AgentToolInputCRUDType);
|
|
5195
|
+
/** @internal */
|
|
5196
|
+
export const AgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
|
|
5197
|
+
typeof AgentToolInputCRUDType
|
|
5198
|
+
> = AgentToolInputCRUDType$inboundSchema;
|
|
5199
|
+
|
|
4429
5200
|
/** @internal */
|
|
4430
5201
|
export const GoogleSearchTool$inboundSchema: z.ZodType<
|
|
4431
5202
|
GoogleSearchTool,
|
|
4432
5203
|
z.ZodTypeDef,
|
|
4433
5204
|
unknown
|
|
4434
5205
|
> = z.object({
|
|
4435
|
-
type:
|
|
5206
|
+
type: AgentToolInputCRUDType$inboundSchema,
|
|
4436
5207
|
requires_approval: z.boolean().optional(),
|
|
4437
5208
|
}).transform((v) => {
|
|
4438
5209
|
return remap$(v, {
|
|
@@ -4441,7 +5212,7 @@ export const GoogleSearchTool$inboundSchema: z.ZodType<
|
|
|
4441
5212
|
});
|
|
4442
5213
|
/** @internal */
|
|
4443
5214
|
export type GoogleSearchTool$Outbound = {
|
|
4444
|
-
type:
|
|
5215
|
+
type: string;
|
|
4445
5216
|
requires_approval?: boolean | undefined;
|
|
4446
5217
|
};
|
|
4447
5218
|
|
|
@@ -4451,7 +5222,7 @@ export const GoogleSearchTool$outboundSchema: z.ZodType<
|
|
|
4451
5222
|
z.ZodTypeDef,
|
|
4452
5223
|
GoogleSearchTool
|
|
4453
5224
|
> = z.object({
|
|
4454
|
-
type:
|
|
5225
|
+
type: AgentToolInputCRUDType$outboundSchema,
|
|
4455
5226
|
requiresApproval: z.boolean().optional(),
|
|
4456
5227
|
}).transform((v) => {
|
|
4457
5228
|
return remap$(v, {
|
|
@@ -4493,10 +5264,10 @@ export const AgentToolInputCRUD$inboundSchema: z.ZodType<
|
|
|
4493
5264
|
z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
|
|
4494
5265
|
z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
|
|
4495
5266
|
z.lazy(() => CurrentDateTool$inboundSchema),
|
|
5267
|
+
z.lazy(() => MCPTool$inboundSchema),
|
|
4496
5268
|
z.lazy(() => HTTPTool$inboundSchema),
|
|
4497
5269
|
z.lazy(() => CodeExecutionTool$inboundSchema),
|
|
4498
5270
|
z.lazy(() => FunctionTool$inboundSchema),
|
|
4499
|
-
z.lazy(() => MCPTool$inboundSchema),
|
|
4500
5271
|
]);
|
|
4501
5272
|
/** @internal */
|
|
4502
5273
|
export type AgentToolInputCRUD$Outbound =
|
|
@@ -4511,10 +5282,10 @@ export type AgentToolInputCRUD$Outbound =
|
|
|
4511
5282
|
| RetrieveKnowledgeBasesTool$Outbound
|
|
4512
5283
|
| QueryKnowledgeBaseTool$Outbound
|
|
4513
5284
|
| CurrentDateTool$Outbound
|
|
5285
|
+
| MCPTool$Outbound
|
|
4514
5286
|
| HTTPTool$Outbound
|
|
4515
5287
|
| CodeExecutionTool$Outbound
|
|
4516
|
-
| FunctionTool$Outbound
|
|
4517
|
-
| MCPTool$Outbound;
|
|
5288
|
+
| FunctionTool$Outbound;
|
|
4518
5289
|
|
|
4519
5290
|
/** @internal */
|
|
4520
5291
|
export const AgentToolInputCRUD$outboundSchema: z.ZodType<
|
|
@@ -4533,10 +5304,10 @@ export const AgentToolInputCRUD$outboundSchema: z.ZodType<
|
|
|
4533
5304
|
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
4534
5305
|
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
4535
5306
|
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
5307
|
+
z.lazy(() => MCPTool$outboundSchema),
|
|
4536
5308
|
z.lazy(() => HTTPTool$outboundSchema),
|
|
4537
5309
|
z.lazy(() => CodeExecutionTool$outboundSchema),
|
|
4538
5310
|
z.lazy(() => FunctionTool$outboundSchema),
|
|
4539
|
-
z.lazy(() => MCPTool$outboundSchema),
|
|
4540
5311
|
]);
|
|
4541
5312
|
|
|
4542
5313
|
export function agentToolInputCRUDToJSON(
|
|
@@ -4557,11 +5328,13 @@ export function agentToolInputCRUDFromJSON(
|
|
|
4557
5328
|
}
|
|
4558
5329
|
|
|
4559
5330
|
/** @internal */
|
|
4560
|
-
export const
|
|
4561
|
-
|
|
5331
|
+
export const CreateAgentRequestExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5332
|
+
typeof CreateAgentRequestExecuteOn
|
|
5333
|
+
> = z.nativeEnum(CreateAgentRequestExecuteOn);
|
|
4562
5334
|
/** @internal */
|
|
4563
|
-
export const
|
|
4564
|
-
|
|
5335
|
+
export const CreateAgentRequestExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5336
|
+
typeof CreateAgentRequestExecuteOn
|
|
5337
|
+
> = CreateAgentRequestExecuteOn$inboundSchema;
|
|
4565
5338
|
|
|
4566
5339
|
/** @internal */
|
|
4567
5340
|
export const Evaluators$inboundSchema: z.ZodType<
|
|
@@ -4571,7 +5344,7 @@ export const Evaluators$inboundSchema: z.ZodType<
|
|
|
4571
5344
|
> = z.object({
|
|
4572
5345
|
id: z.string(),
|
|
4573
5346
|
sample_rate: z.number().default(50),
|
|
4574
|
-
execute_on:
|
|
5347
|
+
execute_on: CreateAgentRequestExecuteOn$inboundSchema,
|
|
4575
5348
|
}).transform((v) => {
|
|
4576
5349
|
return remap$(v, {
|
|
4577
5350
|
"sample_rate": "sampleRate",
|
|
@@ -4593,7 +5366,7 @@ export const Evaluators$outboundSchema: z.ZodType<
|
|
|
4593
5366
|
> = z.object({
|
|
4594
5367
|
id: z.string(),
|
|
4595
5368
|
sampleRate: z.number().default(50),
|
|
4596
|
-
executeOn:
|
|
5369
|
+
executeOn: CreateAgentRequestExecuteOn$outboundSchema,
|
|
4597
5370
|
}).transform((v) => {
|
|
4598
5371
|
return remap$(v, {
|
|
4599
5372
|
sampleRate: "sample_rate",
|
|
@@ -4615,23 +5388,23 @@ export function evaluatorsFromJSON(
|
|
|
4615
5388
|
}
|
|
4616
5389
|
|
|
4617
5390
|
/** @internal */
|
|
4618
|
-
export const
|
|
4619
|
-
typeof
|
|
4620
|
-
> = z.nativeEnum(
|
|
5391
|
+
export const CreateAgentRequestAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5392
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
5393
|
+
> = z.nativeEnum(CreateAgentRequestAgentsExecuteOn);
|
|
4621
5394
|
/** @internal */
|
|
4622
|
-
export const
|
|
4623
|
-
typeof
|
|
4624
|
-
> =
|
|
5395
|
+
export const CreateAgentRequestAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5396
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
5397
|
+
> = CreateAgentRequestAgentsExecuteOn$inboundSchema;
|
|
4625
5398
|
|
|
4626
5399
|
/** @internal */
|
|
4627
|
-
export const
|
|
4628
|
-
|
|
5400
|
+
export const CreateAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
5401
|
+
CreateAgentRequestGuardrails,
|
|
4629
5402
|
z.ZodTypeDef,
|
|
4630
5403
|
unknown
|
|
4631
5404
|
> = z.object({
|
|
4632
5405
|
id: z.string(),
|
|
4633
5406
|
sample_rate: z.number().default(50),
|
|
4634
|
-
execute_on:
|
|
5407
|
+
execute_on: CreateAgentRequestAgentsExecuteOn$inboundSchema,
|
|
4635
5408
|
}).transform((v) => {
|
|
4636
5409
|
return remap$(v, {
|
|
4637
5410
|
"sample_rate": "sampleRate",
|
|
@@ -4639,21 +5412,21 @@ export const Guardrails$inboundSchema: z.ZodType<
|
|
|
4639
5412
|
});
|
|
4640
5413
|
});
|
|
4641
5414
|
/** @internal */
|
|
4642
|
-
export type
|
|
5415
|
+
export type CreateAgentRequestGuardrails$Outbound = {
|
|
4643
5416
|
id: string;
|
|
4644
5417
|
sample_rate: number;
|
|
4645
5418
|
execute_on: string;
|
|
4646
5419
|
};
|
|
4647
5420
|
|
|
4648
5421
|
/** @internal */
|
|
4649
|
-
export const
|
|
4650
|
-
|
|
5422
|
+
export const CreateAgentRequestGuardrails$outboundSchema: z.ZodType<
|
|
5423
|
+
CreateAgentRequestGuardrails$Outbound,
|
|
4651
5424
|
z.ZodTypeDef,
|
|
4652
|
-
|
|
5425
|
+
CreateAgentRequestGuardrails
|
|
4653
5426
|
> = z.object({
|
|
4654
5427
|
id: z.string(),
|
|
4655
5428
|
sampleRate: z.number().default(50),
|
|
4656
|
-
executeOn:
|
|
5429
|
+
executeOn: CreateAgentRequestAgentsExecuteOn$outboundSchema,
|
|
4657
5430
|
}).transform((v) => {
|
|
4658
5431
|
return remap$(v, {
|
|
4659
5432
|
sampleRate: "sample_rate",
|
|
@@ -4661,16 +5434,22 @@ export const Guardrails$outboundSchema: z.ZodType<
|
|
|
4661
5434
|
});
|
|
4662
5435
|
});
|
|
4663
5436
|
|
|
4664
|
-
export function
|
|
4665
|
-
|
|
5437
|
+
export function createAgentRequestGuardrailsToJSON(
|
|
5438
|
+
createAgentRequestGuardrails: CreateAgentRequestGuardrails,
|
|
5439
|
+
): string {
|
|
5440
|
+
return JSON.stringify(
|
|
5441
|
+
CreateAgentRequestGuardrails$outboundSchema.parse(
|
|
5442
|
+
createAgentRequestGuardrails,
|
|
5443
|
+
),
|
|
5444
|
+
);
|
|
4666
5445
|
}
|
|
4667
|
-
export function
|
|
5446
|
+
export function createAgentRequestGuardrailsFromJSON(
|
|
4668
5447
|
jsonString: string,
|
|
4669
|
-
): SafeParseResult<
|
|
5448
|
+
): SafeParseResult<CreateAgentRequestGuardrails, SDKValidationError> {
|
|
4670
5449
|
return safeParse(
|
|
4671
5450
|
jsonString,
|
|
4672
|
-
(x) =>
|
|
4673
|
-
`Failed to parse '
|
|
5451
|
+
(x) => CreateAgentRequestGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5452
|
+
`Failed to parse 'CreateAgentRequestGuardrails' from JSON`,
|
|
4674
5453
|
);
|
|
4675
5454
|
}
|
|
4676
5455
|
|
|
@@ -4681,7 +5460,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
4681
5460
|
unknown
|
|
4682
5461
|
> = z.object({
|
|
4683
5462
|
max_iterations: z.number().int().default(100),
|
|
4684
|
-
max_execution_time: z.number().int().default(
|
|
5463
|
+
max_execution_time: z.number().int().default(600),
|
|
4685
5464
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default(
|
|
4686
5465
|
"respect_tool",
|
|
4687
5466
|
),
|
|
@@ -4698,14 +5477,15 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
4698
5477
|
z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
|
|
4699
5478
|
z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
|
|
4700
5479
|
z.lazy(() => CurrentDateTool$inboundSchema),
|
|
5480
|
+
z.lazy(() => MCPTool$inboundSchema),
|
|
4701
5481
|
z.lazy(() => HTTPTool$inboundSchema),
|
|
4702
5482
|
z.lazy(() => CodeExecutionTool$inboundSchema),
|
|
4703
5483
|
z.lazy(() => FunctionTool$inboundSchema),
|
|
4704
|
-
z.lazy(() => MCPTool$inboundSchema),
|
|
4705
5484
|
]),
|
|
4706
5485
|
).optional(),
|
|
4707
5486
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
4708
|
-
guardrails: z.array(z.lazy(() =>
|
|
5487
|
+
guardrails: z.array(z.lazy(() => CreateAgentRequestGuardrails$inboundSchema))
|
|
5488
|
+
.optional(),
|
|
4709
5489
|
}).transform((v) => {
|
|
4710
5490
|
return remap$(v, {
|
|
4711
5491
|
"max_iterations": "maxIterations",
|
|
@@ -4731,14 +5511,14 @@ export type Settings$Outbound = {
|
|
|
4731
5511
|
| RetrieveKnowledgeBasesTool$Outbound
|
|
4732
5512
|
| QueryKnowledgeBaseTool$Outbound
|
|
4733
5513
|
| CurrentDateTool$Outbound
|
|
5514
|
+
| MCPTool$Outbound
|
|
4734
5515
|
| HTTPTool$Outbound
|
|
4735
5516
|
| CodeExecutionTool$Outbound
|
|
4736
5517
|
| FunctionTool$Outbound
|
|
4737
|
-
| MCPTool$Outbound
|
|
4738
5518
|
>
|
|
4739
5519
|
| undefined;
|
|
4740
5520
|
evaluators?: Array<Evaluators$Outbound> | undefined;
|
|
4741
|
-
guardrails?: Array<
|
|
5521
|
+
guardrails?: Array<CreateAgentRequestGuardrails$Outbound> | undefined;
|
|
4742
5522
|
};
|
|
4743
5523
|
|
|
4744
5524
|
/** @internal */
|
|
@@ -4748,7 +5528,7 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
4748
5528
|
Settings
|
|
4749
5529
|
> = z.object({
|
|
4750
5530
|
maxIterations: z.number().int().default(100),
|
|
4751
|
-
maxExecutionTime: z.number().int().default(
|
|
5531
|
+
maxExecutionTime: z.number().int().default(600),
|
|
4752
5532
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
|
|
4753
5533
|
"respect_tool",
|
|
4754
5534
|
),
|
|
@@ -4765,14 +5545,15 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
4765
5545
|
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
4766
5546
|
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
4767
5547
|
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
5548
|
+
z.lazy(() => MCPTool$outboundSchema),
|
|
4768
5549
|
z.lazy(() => HTTPTool$outboundSchema),
|
|
4769
5550
|
z.lazy(() => CodeExecutionTool$outboundSchema),
|
|
4770
5551
|
z.lazy(() => FunctionTool$outboundSchema),
|
|
4771
|
-
z.lazy(() => MCPTool$outboundSchema),
|
|
4772
5552
|
]),
|
|
4773
5553
|
).optional(),
|
|
4774
5554
|
evaluators: z.array(z.lazy(() => Evaluators$outboundSchema)).optional(),
|
|
4775
|
-
guardrails: z.array(z.lazy(() =>
|
|
5555
|
+
guardrails: z.array(z.lazy(() => CreateAgentRequestGuardrails$outboundSchema))
|
|
5556
|
+
.optional(),
|
|
4776
5557
|
}).transform((v) => {
|
|
4777
5558
|
return remap$(v, {
|
|
4778
5559
|
maxIterations: "max_iterations",
|
|
@@ -5128,13 +5909,13 @@ export function createAgentRequestToolsFromJSON(
|
|
|
5128
5909
|
}
|
|
5129
5910
|
|
|
5130
5911
|
/** @internal */
|
|
5131
|
-
export const
|
|
5132
|
-
typeof
|
|
5133
|
-
|
|
5134
|
-
/** @internal */
|
|
5135
|
-
export const
|
|
5136
|
-
typeof
|
|
5137
|
-
|
|
5912
|
+
export const CreateAgentRequestAgentsResponseExecuteOn$inboundSchema:
|
|
5913
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> = z
|
|
5914
|
+
.nativeEnum(CreateAgentRequestAgentsResponseExecuteOn);
|
|
5915
|
+
/** @internal */
|
|
5916
|
+
export const CreateAgentRequestAgentsResponseExecuteOn$outboundSchema:
|
|
5917
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> =
|
|
5918
|
+
CreateAgentRequestAgentsResponseExecuteOn$inboundSchema;
|
|
5138
5919
|
|
|
5139
5920
|
/** @internal */
|
|
5140
5921
|
export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
@@ -5144,7 +5925,7 @@ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
|
5144
5925
|
> = z.object({
|
|
5145
5926
|
id: z.string(),
|
|
5146
5927
|
sample_rate: z.number().default(50),
|
|
5147
|
-
execute_on:
|
|
5928
|
+
execute_on: CreateAgentRequestAgentsResponseExecuteOn$inboundSchema,
|
|
5148
5929
|
}).transform((v) => {
|
|
5149
5930
|
return remap$(v, {
|
|
5150
5931
|
"sample_rate": "sampleRate",
|
|
@@ -5166,7 +5947,7 @@ export const CreateAgentRequestEvaluators$outboundSchema: z.ZodType<
|
|
|
5166
5947
|
> = z.object({
|
|
5167
5948
|
id: z.string(),
|
|
5168
5949
|
sampleRate: z.number().default(50),
|
|
5169
|
-
executeOn:
|
|
5950
|
+
executeOn: CreateAgentRequestAgentsResponseExecuteOn$outboundSchema,
|
|
5170
5951
|
}).transform((v) => {
|
|
5171
5952
|
return remap$(v, {
|
|
5172
5953
|
sampleRate: "sample_rate",
|
|
@@ -5194,23 +5975,23 @@ export function createAgentRequestEvaluatorsFromJSON(
|
|
|
5194
5975
|
}
|
|
5195
5976
|
|
|
5196
5977
|
/** @internal */
|
|
5197
|
-
export const
|
|
5198
|
-
z.ZodNativeEnum<typeof
|
|
5199
|
-
.nativeEnum(
|
|
5978
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema:
|
|
5979
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> = z
|
|
5980
|
+
.nativeEnum(CreateAgentRequestAgentsResponse201ExecuteOn);
|
|
5200
5981
|
/** @internal */
|
|
5201
|
-
export const
|
|
5202
|
-
z.ZodNativeEnum<typeof
|
|
5203
|
-
|
|
5982
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn$outboundSchema:
|
|
5983
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> =
|
|
5984
|
+
CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema;
|
|
5204
5985
|
|
|
5205
5986
|
/** @internal */
|
|
5206
|
-
export const
|
|
5207
|
-
|
|
5987
|
+
export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
|
|
5988
|
+
CreateAgentRequestAgentsGuardrails,
|
|
5208
5989
|
z.ZodTypeDef,
|
|
5209
5990
|
unknown
|
|
5210
5991
|
> = z.object({
|
|
5211
5992
|
id: z.string(),
|
|
5212
5993
|
sample_rate: z.number().default(50),
|
|
5213
|
-
execute_on:
|
|
5994
|
+
execute_on: CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema,
|
|
5214
5995
|
}).transform((v) => {
|
|
5215
5996
|
return remap$(v, {
|
|
5216
5997
|
"sample_rate": "sampleRate",
|
|
@@ -5218,21 +5999,21 @@ export const CreateAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
|
5218
5999
|
});
|
|
5219
6000
|
});
|
|
5220
6001
|
/** @internal */
|
|
5221
|
-
export type
|
|
6002
|
+
export type CreateAgentRequestAgentsGuardrails$Outbound = {
|
|
5222
6003
|
id: string;
|
|
5223
6004
|
sample_rate: number;
|
|
5224
6005
|
execute_on: string;
|
|
5225
6006
|
};
|
|
5226
6007
|
|
|
5227
6008
|
/** @internal */
|
|
5228
|
-
export const
|
|
5229
|
-
|
|
6009
|
+
export const CreateAgentRequestAgentsGuardrails$outboundSchema: z.ZodType<
|
|
6010
|
+
CreateAgentRequestAgentsGuardrails$Outbound,
|
|
5230
6011
|
z.ZodTypeDef,
|
|
5231
|
-
|
|
6012
|
+
CreateAgentRequestAgentsGuardrails
|
|
5232
6013
|
> = z.object({
|
|
5233
6014
|
id: z.string(),
|
|
5234
6015
|
sampleRate: z.number().default(50),
|
|
5235
|
-
executeOn:
|
|
6016
|
+
executeOn: CreateAgentRequestAgentsResponse201ExecuteOn$outboundSchema,
|
|
5236
6017
|
}).transform((v) => {
|
|
5237
6018
|
return remap$(v, {
|
|
5238
6019
|
sampleRate: "sample_rate",
|
|
@@ -5240,22 +6021,23 @@ export const CreateAgentRequestGuardrails$outboundSchema: z.ZodType<
|
|
|
5240
6021
|
});
|
|
5241
6022
|
});
|
|
5242
6023
|
|
|
5243
|
-
export function
|
|
5244
|
-
|
|
6024
|
+
export function createAgentRequestAgentsGuardrailsToJSON(
|
|
6025
|
+
createAgentRequestAgentsGuardrails: CreateAgentRequestAgentsGuardrails,
|
|
5245
6026
|
): string {
|
|
5246
6027
|
return JSON.stringify(
|
|
5247
|
-
|
|
5248
|
-
|
|
6028
|
+
CreateAgentRequestAgentsGuardrails$outboundSchema.parse(
|
|
6029
|
+
createAgentRequestAgentsGuardrails,
|
|
5249
6030
|
),
|
|
5250
6031
|
);
|
|
5251
6032
|
}
|
|
5252
|
-
export function
|
|
6033
|
+
export function createAgentRequestAgentsGuardrailsFromJSON(
|
|
5253
6034
|
jsonString: string,
|
|
5254
|
-
): SafeParseResult<
|
|
6035
|
+
): SafeParseResult<CreateAgentRequestAgentsGuardrails, SDKValidationError> {
|
|
5255
6036
|
return safeParse(
|
|
5256
6037
|
jsonString,
|
|
5257
|
-
(x) =>
|
|
5258
|
-
|
|
6038
|
+
(x) =>
|
|
6039
|
+
CreateAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
6040
|
+
`Failed to parse 'CreateAgentRequestAgentsGuardrails' from JSON`,
|
|
5259
6041
|
);
|
|
5260
6042
|
}
|
|
5261
6043
|
|
|
@@ -5266,15 +6048,16 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5266
6048
|
unknown
|
|
5267
6049
|
> = z.object({
|
|
5268
6050
|
max_iterations: z.number().int().default(100),
|
|
5269
|
-
max_execution_time: z.number().int().default(
|
|
6051
|
+
max_execution_time: z.number().int().default(600),
|
|
5270
6052
|
tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
|
|
5271
6053
|
.default("respect_tool"),
|
|
5272
6054
|
tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
|
|
5273
6055
|
.optional(),
|
|
5274
6056
|
evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$inboundSchema))
|
|
5275
6057
|
.optional(),
|
|
5276
|
-
guardrails: z.array(
|
|
5277
|
-
.
|
|
6058
|
+
guardrails: z.array(
|
|
6059
|
+
z.lazy(() => CreateAgentRequestAgentsGuardrails$inboundSchema),
|
|
6060
|
+
).optional(),
|
|
5278
6061
|
}).transform((v) => {
|
|
5279
6062
|
return remap$(v, {
|
|
5280
6063
|
"max_iterations": "maxIterations",
|
|
@@ -5289,7 +6072,7 @@ export type CreateAgentRequestSettings$Outbound = {
|
|
|
5289
6072
|
tool_approval_required: string;
|
|
5290
6073
|
tools?: Array<CreateAgentRequestTools$Outbound> | undefined;
|
|
5291
6074
|
evaluators?: Array<CreateAgentRequestEvaluators$Outbound> | undefined;
|
|
5292
|
-
guardrails?: Array<
|
|
6075
|
+
guardrails?: Array<CreateAgentRequestAgentsGuardrails$Outbound> | undefined;
|
|
5293
6076
|
};
|
|
5294
6077
|
|
|
5295
6078
|
/** @internal */
|
|
@@ -5299,15 +6082,16 @@ export const CreateAgentRequestSettings$outboundSchema: z.ZodType<
|
|
|
5299
6082
|
CreateAgentRequestSettings
|
|
5300
6083
|
> = z.object({
|
|
5301
6084
|
maxIterations: z.number().int().default(100),
|
|
5302
|
-
maxExecutionTime: z.number().int().default(
|
|
6085
|
+
maxExecutionTime: z.number().int().default(600),
|
|
5303
6086
|
toolApprovalRequired: CreateAgentRequestToolApprovalRequired$outboundSchema
|
|
5304
6087
|
.default("respect_tool"),
|
|
5305
6088
|
tools: z.array(z.lazy(() => CreateAgentRequestTools$outboundSchema))
|
|
5306
6089
|
.optional(),
|
|
5307
6090
|
evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$outboundSchema))
|
|
5308
6091
|
.optional(),
|
|
5309
|
-
guardrails: z.array(
|
|
5310
|
-
.
|
|
6092
|
+
guardrails: z.array(
|
|
6093
|
+
z.lazy(() => CreateAgentRequestAgentsGuardrails$outboundSchema),
|
|
6094
|
+
).optional(),
|
|
5311
6095
|
}).transform((v) => {
|
|
5312
6096
|
return remap$(v, {
|
|
5313
6097
|
maxIterations: "max_iterations",
|
|
@@ -5655,6 +6439,15 @@ export function createAgentRequestResponseFormatFromJSON(
|
|
|
5655
6439
|
);
|
|
5656
6440
|
}
|
|
5657
6441
|
|
|
6442
|
+
/** @internal */
|
|
6443
|
+
export const CreateAgentRequestReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
6444
|
+
typeof CreateAgentRequestReasoningEffort
|
|
6445
|
+
> = z.nativeEnum(CreateAgentRequestReasoningEffort);
|
|
6446
|
+
/** @internal */
|
|
6447
|
+
export const CreateAgentRequestReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
6448
|
+
typeof CreateAgentRequestReasoningEffort
|
|
6449
|
+
> = CreateAgentRequestReasoningEffort$inboundSchema;
|
|
6450
|
+
|
|
5658
6451
|
/** @internal */
|
|
5659
6452
|
export const CreateAgentRequestStop$inboundSchema: z.ZodType<
|
|
5660
6453
|
CreateAgentRequestStop,
|
|
@@ -5737,61 +6530,29 @@ export function createAgentRequestStreamOptionsFromJSON(
|
|
|
5737
6530
|
);
|
|
5738
6531
|
}
|
|
5739
6532
|
|
|
5740
|
-
/** @internal */
|
|
5741
|
-
export const CreateAgentRequestType$inboundSchema: z.ZodNativeEnum<
|
|
5742
|
-
typeof CreateAgentRequestType
|
|
5743
|
-
> = z.nativeEnum(CreateAgentRequestType);
|
|
5744
|
-
/** @internal */
|
|
5745
|
-
export const CreateAgentRequestType$outboundSchema: z.ZodNativeEnum<
|
|
5746
|
-
typeof CreateAgentRequestType
|
|
5747
|
-
> = CreateAgentRequestType$inboundSchema;
|
|
5748
|
-
|
|
5749
|
-
/** @internal */
|
|
5750
|
-
export const CreateAgentRequestThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
5751
|
-
typeof CreateAgentRequestThinkingLevel
|
|
5752
|
-
> = z.nativeEnum(CreateAgentRequestThinkingLevel);
|
|
5753
|
-
/** @internal */
|
|
5754
|
-
export const CreateAgentRequestThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
5755
|
-
typeof CreateAgentRequestThinkingLevel
|
|
5756
|
-
> = CreateAgentRequestThinkingLevel$inboundSchema;
|
|
5757
|
-
|
|
5758
6533
|
/** @internal */
|
|
5759
6534
|
export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
|
|
5760
6535
|
CreateAgentRequestThinking,
|
|
5761
6536
|
z.ZodTypeDef,
|
|
5762
6537
|
unknown
|
|
5763
|
-
> = z.
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
}).transform((v) => {
|
|
5768
|
-
return remap$(v, {
|
|
5769
|
-
"budget_tokens": "budgetTokens",
|
|
5770
|
-
"thinking_level": "thinkingLevel",
|
|
5771
|
-
});
|
|
5772
|
-
});
|
|
6538
|
+
> = z.union([
|
|
6539
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6540
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6541
|
+
]);
|
|
5773
6542
|
/** @internal */
|
|
5774
|
-
export type CreateAgentRequestThinking$Outbound =
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
thinking_level?: string | undefined;
|
|
5778
|
-
};
|
|
6543
|
+
export type CreateAgentRequestThinking$Outbound =
|
|
6544
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6545
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
5779
6546
|
|
|
5780
6547
|
/** @internal */
|
|
5781
6548
|
export const CreateAgentRequestThinking$outboundSchema: z.ZodType<
|
|
5782
6549
|
CreateAgentRequestThinking$Outbound,
|
|
5783
6550
|
z.ZodTypeDef,
|
|
5784
6551
|
CreateAgentRequestThinking
|
|
5785
|
-
> = z.
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
}).transform((v) => {
|
|
5790
|
-
return remap$(v, {
|
|
5791
|
-
budgetTokens: "budget_tokens",
|
|
5792
|
-
thinkingLevel: "thinking_level",
|
|
5793
|
-
});
|
|
5794
|
-
});
|
|
6552
|
+
> = z.union([
|
|
6553
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6554
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6555
|
+
]);
|
|
5795
6556
|
|
|
5796
6557
|
export function createAgentRequestThinkingToJSON(
|
|
5797
6558
|
createAgentRequestThinking: CreateAgentRequestThinking,
|
|
@@ -5977,6 +6738,119 @@ export const CreateAgentRequestModalities$outboundSchema: z.ZodNativeEnum<
|
|
|
5977
6738
|
typeof CreateAgentRequestModalities
|
|
5978
6739
|
> = CreateAgentRequestModalities$inboundSchema;
|
|
5979
6740
|
|
|
6741
|
+
/** @internal */
|
|
6742
|
+
export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
6743
|
+
typeof CreateAgentRequestIdAgents1
|
|
6744
|
+
> = z.nativeEnum(CreateAgentRequestIdAgents1);
|
|
6745
|
+
/** @internal */
|
|
6746
|
+
export const CreateAgentRequestIdAgents1$outboundSchema: z.ZodNativeEnum<
|
|
6747
|
+
typeof CreateAgentRequestIdAgents1
|
|
6748
|
+
> = CreateAgentRequestIdAgents1$inboundSchema;
|
|
6749
|
+
|
|
6750
|
+
/** @internal */
|
|
6751
|
+
export const CreateAgentRequestId$inboundSchema: z.ZodType<
|
|
6752
|
+
CreateAgentRequestId,
|
|
6753
|
+
z.ZodTypeDef,
|
|
6754
|
+
unknown
|
|
6755
|
+
> = z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]);
|
|
6756
|
+
/** @internal */
|
|
6757
|
+
export type CreateAgentRequestId$Outbound = string | string;
|
|
6758
|
+
|
|
6759
|
+
/** @internal */
|
|
6760
|
+
export const CreateAgentRequestId$outboundSchema: z.ZodType<
|
|
6761
|
+
CreateAgentRequestId$Outbound,
|
|
6762
|
+
z.ZodTypeDef,
|
|
6763
|
+
CreateAgentRequestId
|
|
6764
|
+
> = z.union([CreateAgentRequestIdAgents1$outboundSchema, z.string()]);
|
|
6765
|
+
|
|
6766
|
+
export function createAgentRequestIdToJSON(
|
|
6767
|
+
createAgentRequestId: CreateAgentRequestId,
|
|
6768
|
+
): string {
|
|
6769
|
+
return JSON.stringify(
|
|
6770
|
+
CreateAgentRequestId$outboundSchema.parse(createAgentRequestId),
|
|
6771
|
+
);
|
|
6772
|
+
}
|
|
6773
|
+
export function createAgentRequestIdFromJSON(
|
|
6774
|
+
jsonString: string,
|
|
6775
|
+
): SafeParseResult<CreateAgentRequestId, SDKValidationError> {
|
|
6776
|
+
return safeParse(
|
|
6777
|
+
jsonString,
|
|
6778
|
+
(x) => CreateAgentRequestId$inboundSchema.parse(JSON.parse(x)),
|
|
6779
|
+
`Failed to parse 'CreateAgentRequestId' from JSON`,
|
|
6780
|
+
);
|
|
6781
|
+
}
|
|
6782
|
+
|
|
6783
|
+
/** @internal */
|
|
6784
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema:
|
|
6785
|
+
z.ZodNativeEnum<
|
|
6786
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
6787
|
+
> = z.nativeEnum(CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn);
|
|
6788
|
+
/** @internal */
|
|
6789
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$outboundSchema:
|
|
6790
|
+
z.ZodNativeEnum<
|
|
6791
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
6792
|
+
> = CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema;
|
|
6793
|
+
|
|
6794
|
+
/** @internal */
|
|
6795
|
+
export const CreateAgentRequestAgentsResponseGuardrails$inboundSchema:
|
|
6796
|
+
z.ZodType<CreateAgentRequestAgentsResponseGuardrails, z.ZodTypeDef, unknown> =
|
|
6797
|
+
z.object({
|
|
6798
|
+
id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
|
|
6799
|
+
execute_on:
|
|
6800
|
+
CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema,
|
|
6801
|
+
}).transform((v) => {
|
|
6802
|
+
return remap$(v, {
|
|
6803
|
+
"execute_on": "executeOn",
|
|
6804
|
+
});
|
|
6805
|
+
});
|
|
6806
|
+
/** @internal */
|
|
6807
|
+
export type CreateAgentRequestAgentsResponseGuardrails$Outbound = {
|
|
6808
|
+
id: string | string;
|
|
6809
|
+
execute_on: string;
|
|
6810
|
+
};
|
|
6811
|
+
|
|
6812
|
+
/** @internal */
|
|
6813
|
+
export const CreateAgentRequestAgentsResponseGuardrails$outboundSchema:
|
|
6814
|
+
z.ZodType<
|
|
6815
|
+
CreateAgentRequestAgentsResponseGuardrails$Outbound,
|
|
6816
|
+
z.ZodTypeDef,
|
|
6817
|
+
CreateAgentRequestAgentsResponseGuardrails
|
|
6818
|
+
> = z.object({
|
|
6819
|
+
id: z.union([CreateAgentRequestIdAgents1$outboundSchema, z.string()]),
|
|
6820
|
+
executeOn:
|
|
6821
|
+
CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$outboundSchema,
|
|
6822
|
+
}).transform((v) => {
|
|
6823
|
+
return remap$(v, {
|
|
6824
|
+
executeOn: "execute_on",
|
|
6825
|
+
});
|
|
6826
|
+
});
|
|
6827
|
+
|
|
6828
|
+
export function createAgentRequestAgentsResponseGuardrailsToJSON(
|
|
6829
|
+
createAgentRequestAgentsResponseGuardrails:
|
|
6830
|
+
CreateAgentRequestAgentsResponseGuardrails,
|
|
6831
|
+
): string {
|
|
6832
|
+
return JSON.stringify(
|
|
6833
|
+
CreateAgentRequestAgentsResponseGuardrails$outboundSchema.parse(
|
|
6834
|
+
createAgentRequestAgentsResponseGuardrails,
|
|
6835
|
+
),
|
|
6836
|
+
);
|
|
6837
|
+
}
|
|
6838
|
+
export function createAgentRequestAgentsResponseGuardrailsFromJSON(
|
|
6839
|
+
jsonString: string,
|
|
6840
|
+
): SafeParseResult<
|
|
6841
|
+
CreateAgentRequestAgentsResponseGuardrails,
|
|
6842
|
+
SDKValidationError
|
|
6843
|
+
> {
|
|
6844
|
+
return safeParse(
|
|
6845
|
+
jsonString,
|
|
6846
|
+
(x) =>
|
|
6847
|
+
CreateAgentRequestAgentsResponseGuardrails$inboundSchema.parse(
|
|
6848
|
+
JSON.parse(x),
|
|
6849
|
+
),
|
|
6850
|
+
`Failed to parse 'CreateAgentRequestAgentsResponseGuardrails' from JSON`,
|
|
6851
|
+
);
|
|
6852
|
+
}
|
|
6853
|
+
|
|
5980
6854
|
/** @internal */
|
|
5981
6855
|
export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
5982
6856
|
CreateAgentRequestParameters,
|
|
@@ -5999,14 +6873,17 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
5999
6873
|
CreateAgentRequestResponseFormatAgentsResponse201JSONSchema$inboundSchema
|
|
6000
6874
|
),
|
|
6001
6875
|
]).optional(),
|
|
6002
|
-
reasoning_effort:
|
|
6876
|
+
reasoning_effort: CreateAgentRequestReasoningEffort$inboundSchema.optional(),
|
|
6003
6877
|
verbosity: z.string().optional(),
|
|
6004
6878
|
seed: z.nullable(z.number()).optional(),
|
|
6005
6879
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
6006
6880
|
stream_options: z.nullable(
|
|
6007
6881
|
z.lazy(() => CreateAgentRequestStreamOptions$inboundSchema),
|
|
6008
6882
|
).optional(),
|
|
6009
|
-
thinking: z.
|
|
6883
|
+
thinking: z.union([
|
|
6884
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
6885
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
6886
|
+
]).optional(),
|
|
6010
6887
|
temperature: z.nullable(z.number()).optional(),
|
|
6011
6888
|
top_p: z.nullable(z.number()).optional(),
|
|
6012
6889
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -6017,6 +6894,9 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6017
6894
|
parallel_tool_calls: z.boolean().optional(),
|
|
6018
6895
|
modalities: z.nullable(z.array(CreateAgentRequestModalities$inboundSchema))
|
|
6019
6896
|
.optional(),
|
|
6897
|
+
guardrails: z.array(
|
|
6898
|
+
z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
|
|
6899
|
+
).optional(),
|
|
6020
6900
|
}).transform((v) => {
|
|
6021
6901
|
return remap$(v, {
|
|
6022
6902
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -6053,7 +6933,10 @@ export type CreateAgentRequestParameters$Outbound = {
|
|
|
6053
6933
|
seed?: number | null | undefined;
|
|
6054
6934
|
stop?: string | Array<string> | null | undefined;
|
|
6055
6935
|
stream_options?: CreateAgentRequestStreamOptions$Outbound | null | undefined;
|
|
6056
|
-
thinking?:
|
|
6936
|
+
thinking?:
|
|
6937
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
6938
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
6939
|
+
| undefined;
|
|
6057
6940
|
temperature?: number | null | undefined;
|
|
6058
6941
|
top_p?: number | null | undefined;
|
|
6059
6942
|
top_k?: number | null | undefined;
|
|
@@ -6063,6 +6946,9 @@ export type CreateAgentRequestParameters$Outbound = {
|
|
|
6063
6946
|
| undefined;
|
|
6064
6947
|
parallel_tool_calls?: boolean | undefined;
|
|
6065
6948
|
modalities?: Array<string> | null | undefined;
|
|
6949
|
+
guardrails?:
|
|
6950
|
+
| Array<CreateAgentRequestAgentsResponseGuardrails$Outbound>
|
|
6951
|
+
| undefined;
|
|
6066
6952
|
};
|
|
6067
6953
|
|
|
6068
6954
|
/** @internal */
|
|
@@ -6087,14 +6973,17 @@ export const CreateAgentRequestParameters$outboundSchema: z.ZodType<
|
|
|
6087
6973
|
CreateAgentRequestResponseFormatAgentsResponse201JSONSchema$outboundSchema
|
|
6088
6974
|
),
|
|
6089
6975
|
]).optional(),
|
|
6090
|
-
reasoningEffort:
|
|
6976
|
+
reasoningEffort: CreateAgentRequestReasoningEffort$outboundSchema.optional(),
|
|
6091
6977
|
verbosity: z.string().optional(),
|
|
6092
6978
|
seed: z.nullable(z.number()).optional(),
|
|
6093
6979
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
6094
6980
|
streamOptions: z.nullable(
|
|
6095
6981
|
z.lazy(() => CreateAgentRequestStreamOptions$outboundSchema),
|
|
6096
6982
|
).optional(),
|
|
6097
|
-
thinking: z.
|
|
6983
|
+
thinking: z.union([
|
|
6984
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
6985
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
6986
|
+
]).optional(),
|
|
6098
6987
|
temperature: z.nullable(z.number()).optional(),
|
|
6099
6988
|
topP: z.nullable(z.number()).optional(),
|
|
6100
6989
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -6105,6 +6994,9 @@ export const CreateAgentRequestParameters$outboundSchema: z.ZodType<
|
|
|
6105
6994
|
parallelToolCalls: z.boolean().optional(),
|
|
6106
6995
|
modalities: z.nullable(z.array(CreateAgentRequestModalities$outboundSchema))
|
|
6107
6996
|
.optional(),
|
|
6997
|
+
guardrails: z.array(
|
|
6998
|
+
z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$outboundSchema),
|
|
6999
|
+
).optional(),
|
|
6108
7000
|
}).transform((v) => {
|
|
6109
7001
|
return remap$(v, {
|
|
6110
7002
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -6547,6 +7439,17 @@ export function createAgentRequestFallbackModelConfigurationResponseFormatFromJS
|
|
|
6547
7439
|
);
|
|
6548
7440
|
}
|
|
6549
7441
|
|
|
7442
|
+
/** @internal */
|
|
7443
|
+
export const CreateAgentRequestFallbackModelConfigurationReasoningEffort$inboundSchema:
|
|
7444
|
+
z.ZodNativeEnum<
|
|
7445
|
+
typeof CreateAgentRequestFallbackModelConfigurationReasoningEffort
|
|
7446
|
+
> = z.nativeEnum(CreateAgentRequestFallbackModelConfigurationReasoningEffort);
|
|
7447
|
+
/** @internal */
|
|
7448
|
+
export const CreateAgentRequestFallbackModelConfigurationReasoningEffort$outboundSchema:
|
|
7449
|
+
z.ZodNativeEnum<
|
|
7450
|
+
typeof CreateAgentRequestFallbackModelConfigurationReasoningEffort
|
|
7451
|
+
> = CreateAgentRequestFallbackModelConfigurationReasoningEffort$inboundSchema;
|
|
7452
|
+
|
|
6550
7453
|
/** @internal */
|
|
6551
7454
|
export const CreateAgentRequestFallbackModelConfigurationStop$inboundSchema:
|
|
6552
7455
|
z.ZodType<
|
|
@@ -6650,50 +7553,20 @@ export function createAgentRequestFallbackModelConfigurationStreamOptionsFromJSO
|
|
|
6650
7553
|
);
|
|
6651
7554
|
}
|
|
6652
7555
|
|
|
6653
|
-
/** @internal */
|
|
6654
|
-
export const CreateAgentRequestFallbackModelConfigurationType$inboundSchema:
|
|
6655
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
|
|
6656
|
-
.nativeEnum(CreateAgentRequestFallbackModelConfigurationType);
|
|
6657
|
-
/** @internal */
|
|
6658
|
-
export const CreateAgentRequestFallbackModelConfigurationType$outboundSchema:
|
|
6659
|
-
z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> =
|
|
6660
|
-
CreateAgentRequestFallbackModelConfigurationType$inboundSchema;
|
|
6661
|
-
|
|
6662
|
-
/** @internal */
|
|
6663
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
6664
|
-
z.ZodNativeEnum<
|
|
6665
|
-
typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
6666
|
-
> = z.nativeEnum(CreateAgentRequestFallbackModelConfigurationThinkingLevel);
|
|
6667
|
-
/** @internal */
|
|
6668
|
-
export const CreateAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
6669
|
-
z.ZodNativeEnum<
|
|
6670
|
-
typeof CreateAgentRequestFallbackModelConfigurationThinkingLevel
|
|
6671
|
-
> = CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
6672
|
-
|
|
6673
7556
|
/** @internal */
|
|
6674
7557
|
export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
|
|
6675
7558
|
z.ZodType<
|
|
6676
7559
|
CreateAgentRequestFallbackModelConfigurationThinking,
|
|
6677
7560
|
z.ZodTypeDef,
|
|
6678
7561
|
unknown
|
|
6679
|
-
> = z.
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
CreateAgentRequestFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
6684
|
-
.optional(),
|
|
6685
|
-
}).transform((v) => {
|
|
6686
|
-
return remap$(v, {
|
|
6687
|
-
"budget_tokens": "budgetTokens",
|
|
6688
|
-
"thinking_level": "thinkingLevel",
|
|
6689
|
-
});
|
|
6690
|
-
});
|
|
7562
|
+
> = z.union([
|
|
7563
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7564
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
7565
|
+
]);
|
|
6691
7566
|
/** @internal */
|
|
6692
|
-
export type CreateAgentRequestFallbackModelConfigurationThinking$Outbound =
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
thinking_level?: string | undefined;
|
|
6696
|
-
};
|
|
7567
|
+
export type CreateAgentRequestFallbackModelConfigurationThinking$Outbound =
|
|
7568
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
7569
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
6697
7570
|
|
|
6698
7571
|
/** @internal */
|
|
6699
7572
|
export const CreateAgentRequestFallbackModelConfigurationThinking$outboundSchema:
|
|
@@ -6701,18 +7574,10 @@ export const CreateAgentRequestFallbackModelConfigurationThinking$outboundSchema
|
|
|
6701
7574
|
CreateAgentRequestFallbackModelConfigurationThinking$Outbound,
|
|
6702
7575
|
z.ZodTypeDef,
|
|
6703
7576
|
CreateAgentRequestFallbackModelConfigurationThinking
|
|
6704
|
-
> = z.
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
CreateAgentRequestFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
6709
|
-
.optional(),
|
|
6710
|
-
}).transform((v) => {
|
|
6711
|
-
return remap$(v, {
|
|
6712
|
-
budgetTokens: "budget_tokens",
|
|
6713
|
-
thinkingLevel: "thinking_level",
|
|
6714
|
-
});
|
|
6715
|
-
});
|
|
7577
|
+
> = z.union([
|
|
7578
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
7579
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
7580
|
+
]);
|
|
6716
7581
|
|
|
6717
7582
|
export function createAgentRequestFallbackModelConfigurationThinkingToJSON(
|
|
6718
7583
|
createAgentRequestFallbackModelConfigurationThinking:
|
|
@@ -6929,6 +7794,140 @@ export const CreateAgentRequestFallbackModelConfigurationModalities$outboundSche
|
|
|
6929
7794
|
typeof CreateAgentRequestFallbackModelConfigurationModalities
|
|
6930
7795
|
> = CreateAgentRequestFallbackModelConfigurationModalities$inboundSchema;
|
|
6931
7796
|
|
|
7797
|
+
/** @internal */
|
|
7798
|
+
export const CreateAgentRequestIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
7799
|
+
typeof CreateAgentRequestIdAgentsResponse1
|
|
7800
|
+
> = z.nativeEnum(CreateAgentRequestIdAgentsResponse1);
|
|
7801
|
+
/** @internal */
|
|
7802
|
+
export const CreateAgentRequestIdAgentsResponse1$outboundSchema:
|
|
7803
|
+
z.ZodNativeEnum<typeof CreateAgentRequestIdAgentsResponse1> =
|
|
7804
|
+
CreateAgentRequestIdAgentsResponse1$inboundSchema;
|
|
7805
|
+
|
|
7806
|
+
/** @internal */
|
|
7807
|
+
export const CreateAgentRequestFallbackModelConfigurationId$inboundSchema:
|
|
7808
|
+
z.ZodType<
|
|
7809
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7810
|
+
z.ZodTypeDef,
|
|
7811
|
+
unknown
|
|
7812
|
+
> = z.union([CreateAgentRequestIdAgentsResponse1$inboundSchema, z.string()]);
|
|
7813
|
+
/** @internal */
|
|
7814
|
+
export type CreateAgentRequestFallbackModelConfigurationId$Outbound =
|
|
7815
|
+
| string
|
|
7816
|
+
| string;
|
|
7817
|
+
|
|
7818
|
+
/** @internal */
|
|
7819
|
+
export const CreateAgentRequestFallbackModelConfigurationId$outboundSchema:
|
|
7820
|
+
z.ZodType<
|
|
7821
|
+
CreateAgentRequestFallbackModelConfigurationId$Outbound,
|
|
7822
|
+
z.ZodTypeDef,
|
|
7823
|
+
CreateAgentRequestFallbackModelConfigurationId
|
|
7824
|
+
> = z.union([CreateAgentRequestIdAgentsResponse1$outboundSchema, z.string()]);
|
|
7825
|
+
|
|
7826
|
+
export function createAgentRequestFallbackModelConfigurationIdToJSON(
|
|
7827
|
+
createAgentRequestFallbackModelConfigurationId:
|
|
7828
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7829
|
+
): string {
|
|
7830
|
+
return JSON.stringify(
|
|
7831
|
+
CreateAgentRequestFallbackModelConfigurationId$outboundSchema.parse(
|
|
7832
|
+
createAgentRequestFallbackModelConfigurationId,
|
|
7833
|
+
),
|
|
7834
|
+
);
|
|
7835
|
+
}
|
|
7836
|
+
export function createAgentRequestFallbackModelConfigurationIdFromJSON(
|
|
7837
|
+
jsonString: string,
|
|
7838
|
+
): SafeParseResult<
|
|
7839
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7840
|
+
SDKValidationError
|
|
7841
|
+
> {
|
|
7842
|
+
return safeParse(
|
|
7843
|
+
jsonString,
|
|
7844
|
+
(x) =>
|
|
7845
|
+
CreateAgentRequestFallbackModelConfigurationId$inboundSchema.parse(
|
|
7846
|
+
JSON.parse(x),
|
|
7847
|
+
),
|
|
7848
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationId' from JSON`,
|
|
7849
|
+
);
|
|
7850
|
+
}
|
|
7851
|
+
|
|
7852
|
+
/** @internal */
|
|
7853
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema:
|
|
7854
|
+
z.ZodNativeEnum<
|
|
7855
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
7856
|
+
> = z.nativeEnum(CreateAgentRequestFallbackModelConfigurationExecuteOn);
|
|
7857
|
+
/** @internal */
|
|
7858
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn$outboundSchema:
|
|
7859
|
+
z.ZodNativeEnum<
|
|
7860
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
7861
|
+
> = CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema;
|
|
7862
|
+
|
|
7863
|
+
/** @internal */
|
|
7864
|
+
export const CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema:
|
|
7865
|
+
z.ZodType<
|
|
7866
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7867
|
+
z.ZodTypeDef,
|
|
7868
|
+
unknown
|
|
7869
|
+
> = z.object({
|
|
7870
|
+
id: z.union([
|
|
7871
|
+
CreateAgentRequestIdAgentsResponse1$inboundSchema,
|
|
7872
|
+
z.string(),
|
|
7873
|
+
]),
|
|
7874
|
+
execute_on:
|
|
7875
|
+
CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema,
|
|
7876
|
+
}).transform((v) => {
|
|
7877
|
+
return remap$(v, {
|
|
7878
|
+
"execute_on": "executeOn",
|
|
7879
|
+
});
|
|
7880
|
+
});
|
|
7881
|
+
/** @internal */
|
|
7882
|
+
export type CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound = {
|
|
7883
|
+
id: string | string;
|
|
7884
|
+
execute_on: string;
|
|
7885
|
+
};
|
|
7886
|
+
|
|
7887
|
+
/** @internal */
|
|
7888
|
+
export const CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema:
|
|
7889
|
+
z.ZodType<
|
|
7890
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound,
|
|
7891
|
+
z.ZodTypeDef,
|
|
7892
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails
|
|
7893
|
+
> = z.object({
|
|
7894
|
+
id: z.union([
|
|
7895
|
+
CreateAgentRequestIdAgentsResponse1$outboundSchema,
|
|
7896
|
+
z.string(),
|
|
7897
|
+
]),
|
|
7898
|
+
executeOn:
|
|
7899
|
+
CreateAgentRequestFallbackModelConfigurationExecuteOn$outboundSchema,
|
|
7900
|
+
}).transform((v) => {
|
|
7901
|
+
return remap$(v, {
|
|
7902
|
+
executeOn: "execute_on",
|
|
7903
|
+
});
|
|
7904
|
+
});
|
|
7905
|
+
|
|
7906
|
+
export function createAgentRequestFallbackModelConfigurationGuardrailsToJSON(
|
|
7907
|
+
createAgentRequestFallbackModelConfigurationGuardrails:
|
|
7908
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7909
|
+
): string {
|
|
7910
|
+
return JSON.stringify(
|
|
7911
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
7912
|
+
createAgentRequestFallbackModelConfigurationGuardrails,
|
|
7913
|
+
),
|
|
7914
|
+
);
|
|
7915
|
+
}
|
|
7916
|
+
export function createAgentRequestFallbackModelConfigurationGuardrailsFromJSON(
|
|
7917
|
+
jsonString: string,
|
|
7918
|
+
): SafeParseResult<
|
|
7919
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7920
|
+
SDKValidationError
|
|
7921
|
+
> {
|
|
7922
|
+
return safeParse(
|
|
7923
|
+
jsonString,
|
|
7924
|
+
(x) =>
|
|
7925
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
7926
|
+
.parse(JSON.parse(x)),
|
|
7927
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationGuardrails' from JSON`,
|
|
7928
|
+
);
|
|
7929
|
+
}
|
|
7930
|
+
|
|
6932
7931
|
/** @internal */
|
|
6933
7932
|
export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchema:
|
|
6934
7933
|
z.ZodType<
|
|
@@ -6957,7 +7956,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6957
7956
|
CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONResponseBodyJSONSchema$inboundSchema
|
|
6958
7957
|
),
|
|
6959
7958
|
]).optional(),
|
|
6960
|
-
reasoning_effort:
|
|
7959
|
+
reasoning_effort:
|
|
7960
|
+
CreateAgentRequestFallbackModelConfigurationReasoningEffort$inboundSchema
|
|
7961
|
+
.optional(),
|
|
6961
7962
|
verbosity: z.string().optional(),
|
|
6962
7963
|
seed: z.nullable(z.number()).optional(),
|
|
6963
7964
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -6966,9 +7967,10 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6966
7967
|
CreateAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
|
|
6967
7968
|
),
|
|
6968
7969
|
).optional(),
|
|
6969
|
-
thinking: z.
|
|
6970
|
-
|
|
6971
|
-
|
|
7970
|
+
thinking: z.union([
|
|
7971
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
7972
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
7973
|
+
]).optional(),
|
|
6972
7974
|
temperature: z.nullable(z.number()).optional(),
|
|
6973
7975
|
top_p: z.nullable(z.number()).optional(),
|
|
6974
7976
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -6982,6 +7984,11 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
6982
7984
|
CreateAgentRequestFallbackModelConfigurationModalities$inboundSchema,
|
|
6983
7985
|
),
|
|
6984
7986
|
).optional(),
|
|
7987
|
+
guardrails: z.array(
|
|
7988
|
+
z.lazy(() =>
|
|
7989
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
7990
|
+
),
|
|
7991
|
+
).optional(),
|
|
6985
7992
|
}).transform((v) => {
|
|
6986
7993
|
return remap$(v, {
|
|
6987
7994
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -7025,7 +8032,8 @@ export type CreateAgentRequestFallbackModelConfigurationParameters$Outbound = {
|
|
|
7025
8032
|
| null
|
|
7026
8033
|
| undefined;
|
|
7027
8034
|
thinking?:
|
|
7028
|
-
|
|
|
8035
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
8036
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
7029
8037
|
| undefined;
|
|
7030
8038
|
temperature?: number | null | undefined;
|
|
7031
8039
|
top_p?: number | null | undefined;
|
|
@@ -7036,6 +8044,9 @@ export type CreateAgentRequestFallbackModelConfigurationParameters$Outbound = {
|
|
|
7036
8044
|
| undefined;
|
|
7037
8045
|
parallel_tool_calls?: boolean | undefined;
|
|
7038
8046
|
modalities?: Array<string> | null | undefined;
|
|
8047
|
+
guardrails?:
|
|
8048
|
+
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound>
|
|
8049
|
+
| undefined;
|
|
7039
8050
|
};
|
|
7040
8051
|
|
|
7041
8052
|
/** @internal */
|
|
@@ -7066,7 +8077,9 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$outboundSche
|
|
|
7066
8077
|
CreateAgentRequestResponseFormatAgentsResponse201ApplicationJSONResponseBodyJSONSchema$outboundSchema
|
|
7067
8078
|
),
|
|
7068
8079
|
]).optional(),
|
|
7069
|
-
reasoningEffort:
|
|
8080
|
+
reasoningEffort:
|
|
8081
|
+
CreateAgentRequestFallbackModelConfigurationReasoningEffort$outboundSchema
|
|
8082
|
+
.optional(),
|
|
7070
8083
|
verbosity: z.string().optional(),
|
|
7071
8084
|
seed: z.nullable(z.number()).optional(),
|
|
7072
8085
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -7075,9 +8088,10 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$outboundSche
|
|
|
7075
8088
|
CreateAgentRequestFallbackModelConfigurationStreamOptions$outboundSchema
|
|
7076
8089
|
),
|
|
7077
8090
|
).optional(),
|
|
7078
|
-
thinking: z.
|
|
7079
|
-
|
|
7080
|
-
|
|
8091
|
+
thinking: z.union([
|
|
8092
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
8093
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
8094
|
+
]).optional(),
|
|
7081
8095
|
temperature: z.nullable(z.number()).optional(),
|
|
7082
8096
|
topP: z.nullable(z.number()).optional(),
|
|
7083
8097
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -7091,6 +8105,11 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$outboundSche
|
|
|
7091
8105
|
CreateAgentRequestFallbackModelConfigurationModalities$outboundSchema,
|
|
7092
8106
|
),
|
|
7093
8107
|
).optional(),
|
|
8108
|
+
guardrails: z.array(
|
|
8109
|
+
z.lazy(() =>
|
|
8110
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema
|
|
8111
|
+
),
|
|
8112
|
+
).optional(),
|
|
7094
8113
|
}).transform((v) => {
|
|
7095
8114
|
return remap$(v, {
|
|
7096
8115
|
frequencyPenalty: "frequency_penalty",
|