@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
|
export type ListAgentsRequest = {
|
|
@@ -280,6 +281,42 @@ export type ListAgentsResponseFormat =
|
|
|
280
281
|
| ListAgentsResponseFormatJSONObject
|
|
281
282
|
| ListAgentsResponseFormatAgentsJSONSchema;
|
|
282
283
|
|
|
284
|
+
/**
|
|
285
|
+
* 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.
|
|
286
|
+
*
|
|
287
|
+
* @remarks
|
|
288
|
+
*
|
|
289
|
+
* - `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.
|
|
290
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
291
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
292
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
293
|
+
*
|
|
294
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
295
|
+
*/
|
|
296
|
+
export const ListAgentsReasoningEffort = {
|
|
297
|
+
None: "none",
|
|
298
|
+
Minimal: "minimal",
|
|
299
|
+
Low: "low",
|
|
300
|
+
Medium: "medium",
|
|
301
|
+
High: "high",
|
|
302
|
+
Xhigh: "xhigh",
|
|
303
|
+
} as const;
|
|
304
|
+
/**
|
|
305
|
+
* 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.
|
|
306
|
+
*
|
|
307
|
+
* @remarks
|
|
308
|
+
*
|
|
309
|
+
* - `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.
|
|
310
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
311
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
312
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
313
|
+
*
|
|
314
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
315
|
+
*/
|
|
316
|
+
export type ListAgentsReasoningEffort = ClosedEnum<
|
|
317
|
+
typeof ListAgentsReasoningEffort
|
|
318
|
+
>;
|
|
319
|
+
|
|
283
320
|
/**
|
|
284
321
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
285
322
|
*/
|
|
@@ -295,46 +332,9 @@ export type ListAgentsStreamOptions = {
|
|
|
295
332
|
includeUsage?: boolean | undefined;
|
|
296
333
|
};
|
|
297
334
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
export const ListAgentsType = {
|
|
302
|
-
Enabled: "enabled",
|
|
303
|
-
Disabled: "disabled",
|
|
304
|
-
} as const;
|
|
305
|
-
/**
|
|
306
|
-
* Enables or disables the thinking mode capability
|
|
307
|
-
*/
|
|
308
|
-
export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* 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.
|
|
312
|
-
*/
|
|
313
|
-
export const ListAgentsThinkingLevel = {
|
|
314
|
-
Low: "low",
|
|
315
|
-
High: "high",
|
|
316
|
-
} as const;
|
|
317
|
-
/**
|
|
318
|
-
* 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.
|
|
319
|
-
*/
|
|
320
|
-
export type ListAgentsThinkingLevel = ClosedEnum<
|
|
321
|
-
typeof ListAgentsThinkingLevel
|
|
322
|
-
>;
|
|
323
|
-
|
|
324
|
-
export type ListAgentsThinking = {
|
|
325
|
-
/**
|
|
326
|
-
* Enables or disables the thinking mode capability
|
|
327
|
-
*/
|
|
328
|
-
type: ListAgentsType;
|
|
329
|
-
/**
|
|
330
|
-
* 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`.
|
|
331
|
-
*/
|
|
332
|
-
budgetTokens: number;
|
|
333
|
-
/**
|
|
334
|
-
* 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.
|
|
335
|
-
*/
|
|
336
|
-
thinkingLevel?: ListAgentsThinkingLevel | undefined;
|
|
337
|
-
};
|
|
335
|
+
export type ListAgentsThinking =
|
|
336
|
+
| components.ThinkingConfigDisabledSchema
|
|
337
|
+
| components.ThinkingConfigEnabledSchema;
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
340
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -384,6 +384,43 @@ export const ListAgentsModalities = {
|
|
|
384
384
|
} as const;
|
|
385
385
|
export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
|
|
386
386
|
|
|
387
|
+
/**
|
|
388
|
+
* The key of the guardrail.
|
|
389
|
+
*/
|
|
390
|
+
export const ListAgentsId1 = {
|
|
391
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
392
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
393
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
394
|
+
} as const;
|
|
395
|
+
/**
|
|
396
|
+
* The key of the guardrail.
|
|
397
|
+
*/
|
|
398
|
+
export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
|
|
399
|
+
|
|
400
|
+
export type ListAgentsId = ListAgentsId1 | string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
404
|
+
*/
|
|
405
|
+
export const ListAgentsAgentsResponseExecuteOn = {
|
|
406
|
+
Input: "input",
|
|
407
|
+
Output: "output",
|
|
408
|
+
} as const;
|
|
409
|
+
/**
|
|
410
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
411
|
+
*/
|
|
412
|
+
export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
|
|
413
|
+
typeof ListAgentsAgentsResponseExecuteOn
|
|
414
|
+
>;
|
|
415
|
+
|
|
416
|
+
export type ListAgentsAgentsGuardrails = {
|
|
417
|
+
id: ListAgentsId1 | string;
|
|
418
|
+
/**
|
|
419
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
420
|
+
*/
|
|
421
|
+
executeOn: ListAgentsAgentsResponseExecuteOn;
|
|
422
|
+
};
|
|
423
|
+
|
|
387
424
|
/**
|
|
388
425
|
* 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.
|
|
389
426
|
*/
|
|
@@ -433,9 +470,18 @@ export type ListAgentsParameters = {
|
|
|
433
470
|
| ListAgentsResponseFormatAgentsJSONSchema
|
|
434
471
|
| undefined;
|
|
435
472
|
/**
|
|
436
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
473
|
+
* 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.
|
|
474
|
+
*
|
|
475
|
+
* @remarks
|
|
476
|
+
*
|
|
477
|
+
* - `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.
|
|
478
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
479
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
480
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
481
|
+
*
|
|
482
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
437
483
|
*/
|
|
438
|
-
reasoningEffort?:
|
|
484
|
+
reasoningEffort?: ListAgentsReasoningEffort | undefined;
|
|
439
485
|
/**
|
|
440
486
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
441
487
|
*/
|
|
@@ -452,7 +498,10 @@ export type ListAgentsParameters = {
|
|
|
452
498
|
* Options for streaming response. Only set this when you set stream: true.
|
|
453
499
|
*/
|
|
454
500
|
streamOptions?: ListAgentsStreamOptions | null | undefined;
|
|
455
|
-
thinking?:
|
|
501
|
+
thinking?:
|
|
502
|
+
| components.ThinkingConfigDisabledSchema
|
|
503
|
+
| components.ThinkingConfigEnabledSchema
|
|
504
|
+
| undefined;
|
|
456
505
|
/**
|
|
457
506
|
* 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.
|
|
458
507
|
*/
|
|
@@ -477,6 +526,10 @@ export type ListAgentsParameters = {
|
|
|
477
526
|
* 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"].
|
|
478
527
|
*/
|
|
479
528
|
modalities?: Array<ListAgentsModalities> | null | undefined;
|
|
529
|
+
/**
|
|
530
|
+
* A list of guardrails to apply to the request.
|
|
531
|
+
*/
|
|
532
|
+
guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
|
|
480
533
|
};
|
|
481
534
|
|
|
482
535
|
/**
|
|
@@ -597,6 +650,42 @@ export type ListAgentsFallbackModelConfigurationResponseFormat =
|
|
|
597
650
|
| ListAgentsResponseFormatAgentsJSONObject
|
|
598
651
|
| ListAgentsResponseFormatAgentsResponse200JSONSchema;
|
|
599
652
|
|
|
653
|
+
/**
|
|
654
|
+
* 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.
|
|
655
|
+
*
|
|
656
|
+
* @remarks
|
|
657
|
+
*
|
|
658
|
+
* - `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.
|
|
659
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
660
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
661
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
662
|
+
*
|
|
663
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
664
|
+
*/
|
|
665
|
+
export const ListAgentsFallbackModelConfigurationReasoningEffort = {
|
|
666
|
+
None: "none",
|
|
667
|
+
Minimal: "minimal",
|
|
668
|
+
Low: "low",
|
|
669
|
+
Medium: "medium",
|
|
670
|
+
High: "high",
|
|
671
|
+
Xhigh: "xhigh",
|
|
672
|
+
} as const;
|
|
673
|
+
/**
|
|
674
|
+
* 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.
|
|
675
|
+
*
|
|
676
|
+
* @remarks
|
|
677
|
+
*
|
|
678
|
+
* - `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.
|
|
679
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
680
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
681
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
682
|
+
*
|
|
683
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
684
|
+
*/
|
|
685
|
+
export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
|
|
686
|
+
typeof ListAgentsFallbackModelConfigurationReasoningEffort
|
|
687
|
+
>;
|
|
688
|
+
|
|
600
689
|
/**
|
|
601
690
|
* Up to 4 sequences where the API will stop generating further tokens.
|
|
602
691
|
*/
|
|
@@ -612,48 +701,9 @@ export type ListAgentsFallbackModelConfigurationStreamOptions = {
|
|
|
612
701
|
includeUsage?: boolean | undefined;
|
|
613
702
|
};
|
|
614
703
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
export const ListAgentsFallbackModelConfigurationType = {
|
|
619
|
-
Enabled: "enabled",
|
|
620
|
-
Disabled: "disabled",
|
|
621
|
-
} as const;
|
|
622
|
-
/**
|
|
623
|
-
* Enables or disables the thinking mode capability
|
|
624
|
-
*/
|
|
625
|
-
export type ListAgentsFallbackModelConfigurationType = ClosedEnum<
|
|
626
|
-
typeof ListAgentsFallbackModelConfigurationType
|
|
627
|
-
>;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* 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.
|
|
631
|
-
*/
|
|
632
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel = {
|
|
633
|
-
Low: "low",
|
|
634
|
-
High: "high",
|
|
635
|
-
} as const;
|
|
636
|
-
/**
|
|
637
|
-
* 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.
|
|
638
|
-
*/
|
|
639
|
-
export type ListAgentsFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
640
|
-
typeof ListAgentsFallbackModelConfigurationThinkingLevel
|
|
641
|
-
>;
|
|
642
|
-
|
|
643
|
-
export type ListAgentsFallbackModelConfigurationThinking = {
|
|
644
|
-
/**
|
|
645
|
-
* Enables or disables the thinking mode capability
|
|
646
|
-
*/
|
|
647
|
-
type: ListAgentsFallbackModelConfigurationType;
|
|
648
|
-
/**
|
|
649
|
-
* 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`.
|
|
650
|
-
*/
|
|
651
|
-
budgetTokens: number;
|
|
652
|
-
/**
|
|
653
|
-
* 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.
|
|
654
|
-
*/
|
|
655
|
-
thinkingLevel?: ListAgentsFallbackModelConfigurationThinkingLevel | undefined;
|
|
656
|
-
};
|
|
704
|
+
export type ListAgentsFallbackModelConfigurationThinking =
|
|
705
|
+
| components.ThinkingConfigDisabledSchema
|
|
706
|
+
| components.ThinkingConfigEnabledSchema;
|
|
657
707
|
|
|
658
708
|
/**
|
|
659
709
|
* The type of the tool. Currently, only function is supported.
|
|
@@ -707,6 +757,45 @@ export type ListAgentsFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
707
757
|
typeof ListAgentsFallbackModelConfigurationModalities
|
|
708
758
|
>;
|
|
709
759
|
|
|
760
|
+
/**
|
|
761
|
+
* The key of the guardrail.
|
|
762
|
+
*/
|
|
763
|
+
export const ListAgentsIdAgents1 = {
|
|
764
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
765
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
766
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
767
|
+
} as const;
|
|
768
|
+
/**
|
|
769
|
+
* The key of the guardrail.
|
|
770
|
+
*/
|
|
771
|
+
export type ListAgentsIdAgents1 = ClosedEnum<typeof ListAgentsIdAgents1>;
|
|
772
|
+
|
|
773
|
+
export type ListAgentsFallbackModelConfigurationId =
|
|
774
|
+
| ListAgentsIdAgents1
|
|
775
|
+
| string;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
779
|
+
*/
|
|
780
|
+
export const ListAgentsFallbackModelConfigurationExecuteOn = {
|
|
781
|
+
Input: "input",
|
|
782
|
+
Output: "output",
|
|
783
|
+
} as const;
|
|
784
|
+
/**
|
|
785
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
786
|
+
*/
|
|
787
|
+
export type ListAgentsFallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
788
|
+
typeof ListAgentsFallbackModelConfigurationExecuteOn
|
|
789
|
+
>;
|
|
790
|
+
|
|
791
|
+
export type ListAgentsFallbackModelConfigurationGuardrails = {
|
|
792
|
+
id: ListAgentsIdAgents1 | string;
|
|
793
|
+
/**
|
|
794
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
795
|
+
*/
|
|
796
|
+
executeOn: ListAgentsFallbackModelConfigurationExecuteOn;
|
|
797
|
+
};
|
|
798
|
+
|
|
710
799
|
/**
|
|
711
800
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
712
801
|
*/
|
|
@@ -756,9 +845,20 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
756
845
|
| ListAgentsResponseFormatAgentsResponse200JSONSchema
|
|
757
846
|
| undefined;
|
|
758
847
|
/**
|
|
759
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
848
|
+
* 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.
|
|
849
|
+
*
|
|
850
|
+
* @remarks
|
|
851
|
+
*
|
|
852
|
+
* - `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.
|
|
853
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
854
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
855
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
856
|
+
*
|
|
857
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
760
858
|
*/
|
|
761
|
-
reasoningEffort?:
|
|
859
|
+
reasoningEffort?:
|
|
860
|
+
| ListAgentsFallbackModelConfigurationReasoningEffort
|
|
861
|
+
| undefined;
|
|
762
862
|
/**
|
|
763
863
|
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
764
864
|
*/
|
|
@@ -778,7 +878,10 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
778
878
|
| ListAgentsFallbackModelConfigurationStreamOptions
|
|
779
879
|
| null
|
|
780
880
|
| undefined;
|
|
781
|
-
thinking?:
|
|
881
|
+
thinking?:
|
|
882
|
+
| components.ThinkingConfigDisabledSchema
|
|
883
|
+
| components.ThinkingConfigEnabledSchema
|
|
884
|
+
| undefined;
|
|
782
885
|
/**
|
|
783
886
|
* 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.
|
|
784
887
|
*/
|
|
@@ -809,6 +912,12 @@ export type ListAgentsFallbackModelConfigurationParameters = {
|
|
|
809
912
|
| Array<ListAgentsFallbackModelConfigurationModalities>
|
|
810
913
|
| null
|
|
811
914
|
| undefined;
|
|
915
|
+
/**
|
|
916
|
+
* A list of guardrails to apply to the request.
|
|
917
|
+
*/
|
|
918
|
+
guardrails?:
|
|
919
|
+
| Array<ListAgentsFallbackModelConfigurationGuardrails>
|
|
920
|
+
| undefined;
|
|
812
921
|
};
|
|
813
922
|
|
|
814
923
|
/**
|
|
@@ -1279,7 +1388,7 @@ export const ListAgentsSettings$inboundSchema: z.ZodType<
|
|
|
1279
1388
|
unknown
|
|
1280
1389
|
> = z.object({
|
|
1281
1390
|
max_iterations: z.number().int().default(100),
|
|
1282
|
-
max_execution_time: z.number().int().default(
|
|
1391
|
+
max_execution_time: z.number().int().default(600),
|
|
1283
1392
|
tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
|
|
1284
1393
|
"respect_tool",
|
|
1285
1394
|
),
|
|
@@ -1312,7 +1421,7 @@ export const ListAgentsSettings$outboundSchema: z.ZodType<
|
|
|
1312
1421
|
ListAgentsSettings
|
|
1313
1422
|
> = z.object({
|
|
1314
1423
|
maxIterations: z.number().int().default(100),
|
|
1315
|
-
maxExecutionTime: z.number().int().default(
|
|
1424
|
+
maxExecutionTime: z.number().int().default(600),
|
|
1316
1425
|
toolApprovalRequired: ListAgentsToolApprovalRequired$outboundSchema.default(
|
|
1317
1426
|
"respect_tool",
|
|
1318
1427
|
),
|
|
@@ -1641,6 +1750,15 @@ export function listAgentsResponseFormatFromJSON(
|
|
|
1641
1750
|
);
|
|
1642
1751
|
}
|
|
1643
1752
|
|
|
1753
|
+
/** @internal */
|
|
1754
|
+
export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1755
|
+
typeof ListAgentsReasoningEffort
|
|
1756
|
+
> = z.nativeEnum(ListAgentsReasoningEffort);
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export const ListAgentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1759
|
+
typeof ListAgentsReasoningEffort
|
|
1760
|
+
> = ListAgentsReasoningEffort$inboundSchema;
|
|
1761
|
+
|
|
1644
1762
|
/** @internal */
|
|
1645
1763
|
export const ListAgentsStop$inboundSchema: z.ZodType<
|
|
1646
1764
|
ListAgentsStop,
|
|
@@ -1717,61 +1835,29 @@ export function listAgentsStreamOptionsFromJSON(
|
|
|
1717
1835
|
);
|
|
1718
1836
|
}
|
|
1719
1837
|
|
|
1720
|
-
/** @internal */
|
|
1721
|
-
export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
|
|
1722
|
-
typeof ListAgentsType
|
|
1723
|
-
> = z.nativeEnum(ListAgentsType);
|
|
1724
|
-
/** @internal */
|
|
1725
|
-
export const ListAgentsType$outboundSchema: z.ZodNativeEnum<
|
|
1726
|
-
typeof ListAgentsType
|
|
1727
|
-
> = ListAgentsType$inboundSchema;
|
|
1728
|
-
|
|
1729
|
-
/** @internal */
|
|
1730
|
-
export const ListAgentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1731
|
-
typeof ListAgentsThinkingLevel
|
|
1732
|
-
> = z.nativeEnum(ListAgentsThinkingLevel);
|
|
1733
|
-
/** @internal */
|
|
1734
|
-
export const ListAgentsThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1735
|
-
typeof ListAgentsThinkingLevel
|
|
1736
|
-
> = ListAgentsThinkingLevel$inboundSchema;
|
|
1737
|
-
|
|
1738
1838
|
/** @internal */
|
|
1739
1839
|
export const ListAgentsThinking$inboundSchema: z.ZodType<
|
|
1740
1840
|
ListAgentsThinking,
|
|
1741
1841
|
z.ZodTypeDef,
|
|
1742
1842
|
unknown
|
|
1743
|
-
> = z.
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
}).transform((v) => {
|
|
1748
|
-
return remap$(v, {
|
|
1749
|
-
"budget_tokens": "budgetTokens",
|
|
1750
|
-
"thinking_level": "thinkingLevel",
|
|
1751
|
-
});
|
|
1752
|
-
});
|
|
1843
|
+
> = z.union([
|
|
1844
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
1845
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
1846
|
+
]);
|
|
1753
1847
|
/** @internal */
|
|
1754
|
-
export type ListAgentsThinking$Outbound =
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
thinking_level?: string | undefined;
|
|
1758
|
-
};
|
|
1848
|
+
export type ListAgentsThinking$Outbound =
|
|
1849
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
1850
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
1759
1851
|
|
|
1760
1852
|
/** @internal */
|
|
1761
1853
|
export const ListAgentsThinking$outboundSchema: z.ZodType<
|
|
1762
1854
|
ListAgentsThinking$Outbound,
|
|
1763
1855
|
z.ZodTypeDef,
|
|
1764
1856
|
ListAgentsThinking
|
|
1765
|
-
> = z.
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
}).transform((v) => {
|
|
1770
|
-
return remap$(v, {
|
|
1771
|
-
budgetTokens: "budget_tokens",
|
|
1772
|
-
thinkingLevel: "thinking_level",
|
|
1773
|
-
});
|
|
1774
|
-
});
|
|
1857
|
+
> = z.union([
|
|
1858
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
1859
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
1860
|
+
]);
|
|
1775
1861
|
|
|
1776
1862
|
export function listAgentsThinkingToJSON(
|
|
1777
1863
|
listAgentsThinking: ListAgentsThinking,
|
|
@@ -1941,6 +2027,103 @@ export const ListAgentsModalities$outboundSchema: z.ZodNativeEnum<
|
|
|
1941
2027
|
typeof ListAgentsModalities
|
|
1942
2028
|
> = ListAgentsModalities$inboundSchema;
|
|
1943
2029
|
|
|
2030
|
+
/** @internal */
|
|
2031
|
+
export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
|
|
2032
|
+
typeof ListAgentsId1
|
|
2033
|
+
> = z.nativeEnum(ListAgentsId1);
|
|
2034
|
+
/** @internal */
|
|
2035
|
+
export const ListAgentsId1$outboundSchema: z.ZodNativeEnum<
|
|
2036
|
+
typeof ListAgentsId1
|
|
2037
|
+
> = ListAgentsId1$inboundSchema;
|
|
2038
|
+
|
|
2039
|
+
/** @internal */
|
|
2040
|
+
export const ListAgentsId$inboundSchema: z.ZodType<
|
|
2041
|
+
ListAgentsId,
|
|
2042
|
+
z.ZodTypeDef,
|
|
2043
|
+
unknown
|
|
2044
|
+
> = z.union([ListAgentsId1$inboundSchema, z.string()]);
|
|
2045
|
+
/** @internal */
|
|
2046
|
+
export type ListAgentsId$Outbound = string | string;
|
|
2047
|
+
|
|
2048
|
+
/** @internal */
|
|
2049
|
+
export const ListAgentsId$outboundSchema: z.ZodType<
|
|
2050
|
+
ListAgentsId$Outbound,
|
|
2051
|
+
z.ZodTypeDef,
|
|
2052
|
+
ListAgentsId
|
|
2053
|
+
> = z.union([ListAgentsId1$outboundSchema, z.string()]);
|
|
2054
|
+
|
|
2055
|
+
export function listAgentsIdToJSON(listAgentsId: ListAgentsId): string {
|
|
2056
|
+
return JSON.stringify(ListAgentsId$outboundSchema.parse(listAgentsId));
|
|
2057
|
+
}
|
|
2058
|
+
export function listAgentsIdFromJSON(
|
|
2059
|
+
jsonString: string,
|
|
2060
|
+
): SafeParseResult<ListAgentsId, SDKValidationError> {
|
|
2061
|
+
return safeParse(
|
|
2062
|
+
jsonString,
|
|
2063
|
+
(x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
|
|
2064
|
+
`Failed to parse 'ListAgentsId' from JSON`,
|
|
2065
|
+
);
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
/** @internal */
|
|
2069
|
+
export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
2070
|
+
typeof ListAgentsAgentsResponseExecuteOn
|
|
2071
|
+
> = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
|
|
2072
|
+
/** @internal */
|
|
2073
|
+
export const ListAgentsAgentsResponseExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
2074
|
+
typeof ListAgentsAgentsResponseExecuteOn
|
|
2075
|
+
> = ListAgentsAgentsResponseExecuteOn$inboundSchema;
|
|
2076
|
+
|
|
2077
|
+
/** @internal */
|
|
2078
|
+
export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
|
|
2079
|
+
ListAgentsAgentsGuardrails,
|
|
2080
|
+
z.ZodTypeDef,
|
|
2081
|
+
unknown
|
|
2082
|
+
> = z.object({
|
|
2083
|
+
id: z.union([ListAgentsId1$inboundSchema, z.string()]),
|
|
2084
|
+
execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
|
|
2085
|
+
}).transform((v) => {
|
|
2086
|
+
return remap$(v, {
|
|
2087
|
+
"execute_on": "executeOn",
|
|
2088
|
+
});
|
|
2089
|
+
});
|
|
2090
|
+
/** @internal */
|
|
2091
|
+
export type ListAgentsAgentsGuardrails$Outbound = {
|
|
2092
|
+
id: string | string;
|
|
2093
|
+
execute_on: string;
|
|
2094
|
+
};
|
|
2095
|
+
|
|
2096
|
+
/** @internal */
|
|
2097
|
+
export const ListAgentsAgentsGuardrails$outboundSchema: z.ZodType<
|
|
2098
|
+
ListAgentsAgentsGuardrails$Outbound,
|
|
2099
|
+
z.ZodTypeDef,
|
|
2100
|
+
ListAgentsAgentsGuardrails
|
|
2101
|
+
> = z.object({
|
|
2102
|
+
id: z.union([ListAgentsId1$outboundSchema, z.string()]),
|
|
2103
|
+
executeOn: ListAgentsAgentsResponseExecuteOn$outboundSchema,
|
|
2104
|
+
}).transform((v) => {
|
|
2105
|
+
return remap$(v, {
|
|
2106
|
+
executeOn: "execute_on",
|
|
2107
|
+
});
|
|
2108
|
+
});
|
|
2109
|
+
|
|
2110
|
+
export function listAgentsAgentsGuardrailsToJSON(
|
|
2111
|
+
listAgentsAgentsGuardrails: ListAgentsAgentsGuardrails,
|
|
2112
|
+
): string {
|
|
2113
|
+
return JSON.stringify(
|
|
2114
|
+
ListAgentsAgentsGuardrails$outboundSchema.parse(listAgentsAgentsGuardrails),
|
|
2115
|
+
);
|
|
2116
|
+
}
|
|
2117
|
+
export function listAgentsAgentsGuardrailsFromJSON(
|
|
2118
|
+
jsonString: string,
|
|
2119
|
+
): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
|
|
2120
|
+
return safeParse(
|
|
2121
|
+
jsonString,
|
|
2122
|
+
(x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
2123
|
+
`Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
|
|
2124
|
+
);
|
|
2125
|
+
}
|
|
2126
|
+
|
|
1944
2127
|
/** @internal */
|
|
1945
2128
|
export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
1946
2129
|
ListAgentsParameters,
|
|
@@ -1960,14 +2143,17 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
1960
2143
|
z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
1961
2144
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
1962
2145
|
]).optional(),
|
|
1963
|
-
reasoning_effort:
|
|
2146
|
+
reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
|
|
1964
2147
|
verbosity: z.string().optional(),
|
|
1965
2148
|
seed: z.nullable(z.number()).optional(),
|
|
1966
2149
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
1967
2150
|
stream_options: z.nullable(
|
|
1968
2151
|
z.lazy(() => ListAgentsStreamOptions$inboundSchema),
|
|
1969
2152
|
).optional(),
|
|
1970
|
-
thinking: z.
|
|
2153
|
+
thinking: z.union([
|
|
2154
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2155
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2156
|
+
]).optional(),
|
|
1971
2157
|
temperature: z.nullable(z.number()).optional(),
|
|
1972
2158
|
top_p: z.nullable(z.number()).optional(),
|
|
1973
2159
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -1978,6 +2164,8 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
|
|
|
1978
2164
|
parallel_tool_calls: z.boolean().optional(),
|
|
1979
2165
|
modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
|
|
1980
2166
|
.optional(),
|
|
2167
|
+
guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
|
|
2168
|
+
.optional(),
|
|
1981
2169
|
}).transform((v) => {
|
|
1982
2170
|
return remap$(v, {
|
|
1983
2171
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2014,13 +2202,17 @@ export type ListAgentsParameters$Outbound = {
|
|
|
2014
2202
|
seed?: number | null | undefined;
|
|
2015
2203
|
stop?: string | Array<string> | null | undefined;
|
|
2016
2204
|
stream_options?: ListAgentsStreamOptions$Outbound | null | undefined;
|
|
2017
|
-
thinking?:
|
|
2205
|
+
thinking?:
|
|
2206
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2207
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
2208
|
+
| undefined;
|
|
2018
2209
|
temperature?: number | null | undefined;
|
|
2019
2210
|
top_p?: number | null | undefined;
|
|
2020
2211
|
top_k?: number | null | undefined;
|
|
2021
2212
|
tool_choice?: ListAgentsToolChoice2$Outbound | string | undefined;
|
|
2022
2213
|
parallel_tool_calls?: boolean | undefined;
|
|
2023
2214
|
modalities?: Array<string> | null | undefined;
|
|
2215
|
+
guardrails?: Array<ListAgentsAgentsGuardrails$Outbound> | undefined;
|
|
2024
2216
|
};
|
|
2025
2217
|
|
|
2026
2218
|
/** @internal */
|
|
@@ -2042,14 +2234,17 @@ export const ListAgentsParameters$outboundSchema: z.ZodType<
|
|
|
2042
2234
|
z.lazy(() => ListAgentsResponseFormatJSONObject$outboundSchema),
|
|
2043
2235
|
z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
|
|
2044
2236
|
]).optional(),
|
|
2045
|
-
reasoningEffort:
|
|
2237
|
+
reasoningEffort: ListAgentsReasoningEffort$outboundSchema.optional(),
|
|
2046
2238
|
verbosity: z.string().optional(),
|
|
2047
2239
|
seed: z.nullable(z.number()).optional(),
|
|
2048
2240
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
2049
2241
|
streamOptions: z.nullable(
|
|
2050
2242
|
z.lazy(() => ListAgentsStreamOptions$outboundSchema),
|
|
2051
2243
|
).optional(),
|
|
2052
|
-
thinking: z.
|
|
2244
|
+
thinking: z.union([
|
|
2245
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2246
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2247
|
+
]).optional(),
|
|
2053
2248
|
temperature: z.nullable(z.number()).optional(),
|
|
2054
2249
|
topP: z.nullable(z.number()).optional(),
|
|
2055
2250
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -2060,6 +2255,8 @@ export const ListAgentsParameters$outboundSchema: z.ZodType<
|
|
|
2060
2255
|
parallelToolCalls: z.boolean().optional(),
|
|
2061
2256
|
modalities: z.nullable(z.array(ListAgentsModalities$outboundSchema))
|
|
2062
2257
|
.optional(),
|
|
2258
|
+
guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$outboundSchema))
|
|
2259
|
+
.optional(),
|
|
2063
2260
|
}).transform((v) => {
|
|
2064
2261
|
return remap$(v, {
|
|
2065
2262
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -2485,6 +2682,15 @@ export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
|
|
|
2485
2682
|
);
|
|
2486
2683
|
}
|
|
2487
2684
|
|
|
2685
|
+
/** @internal */
|
|
2686
|
+
export const ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema:
|
|
2687
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
|
|
2688
|
+
z.nativeEnum(ListAgentsFallbackModelConfigurationReasoningEffort);
|
|
2689
|
+
/** @internal */
|
|
2690
|
+
export const ListAgentsFallbackModelConfigurationReasoningEffort$outboundSchema:
|
|
2691
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
|
|
2692
|
+
ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema;
|
|
2693
|
+
|
|
2488
2694
|
/** @internal */
|
|
2489
2695
|
export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
|
|
2490
2696
|
ListAgentsFallbackModelConfigurationStop,
|
|
@@ -2587,48 +2793,20 @@ export function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(
|
|
|
2587
2793
|
);
|
|
2588
2794
|
}
|
|
2589
2795
|
|
|
2590
|
-
/** @internal */
|
|
2591
|
-
export const ListAgentsFallbackModelConfigurationType$inboundSchema:
|
|
2592
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
|
|
2593
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationType);
|
|
2594
|
-
/** @internal */
|
|
2595
|
-
export const ListAgentsFallbackModelConfigurationType$outboundSchema:
|
|
2596
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> =
|
|
2597
|
-
ListAgentsFallbackModelConfigurationType$inboundSchema;
|
|
2598
|
-
|
|
2599
|
-
/** @internal */
|
|
2600
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
2601
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationThinkingLevel> = z
|
|
2602
|
-
.nativeEnum(ListAgentsFallbackModelConfigurationThinkingLevel);
|
|
2603
|
-
/** @internal */
|
|
2604
|
-
export const ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
2605
|
-
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationThinkingLevel> =
|
|
2606
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
2607
|
-
|
|
2608
2796
|
/** @internal */
|
|
2609
2797
|
export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
|
|
2610
2798
|
z.ZodType<
|
|
2611
2799
|
ListAgentsFallbackModelConfigurationThinking,
|
|
2612
2800
|
z.ZodTypeDef,
|
|
2613
2801
|
unknown
|
|
2614
|
-
> = z.
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
2619
|
-
.optional(),
|
|
2620
|
-
}).transform((v) => {
|
|
2621
|
-
return remap$(v, {
|
|
2622
|
-
"budget_tokens": "budgetTokens",
|
|
2623
|
-
"thinking_level": "thinkingLevel",
|
|
2624
|
-
});
|
|
2625
|
-
});
|
|
2802
|
+
> = z.union([
|
|
2803
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2804
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2805
|
+
]);
|
|
2626
2806
|
/** @internal */
|
|
2627
|
-
export type ListAgentsFallbackModelConfigurationThinking$Outbound =
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
thinking_level?: string | undefined;
|
|
2631
|
-
};
|
|
2807
|
+
export type ListAgentsFallbackModelConfigurationThinking$Outbound =
|
|
2808
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2809
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2632
2810
|
|
|
2633
2811
|
/** @internal */
|
|
2634
2812
|
export const ListAgentsFallbackModelConfigurationThinking$outboundSchema:
|
|
@@ -2636,18 +2814,10 @@ export const ListAgentsFallbackModelConfigurationThinking$outboundSchema:
|
|
|
2636
2814
|
ListAgentsFallbackModelConfigurationThinking$Outbound,
|
|
2637
2815
|
z.ZodTypeDef,
|
|
2638
2816
|
ListAgentsFallbackModelConfigurationThinking
|
|
2639
|
-
> = z.
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
ListAgentsFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
2644
|
-
.optional(),
|
|
2645
|
-
}).transform((v) => {
|
|
2646
|
-
return remap$(v, {
|
|
2647
|
-
budgetTokens: "budget_tokens",
|
|
2648
|
-
thinkingLevel: "thinking_level",
|
|
2649
|
-
});
|
|
2650
|
-
});
|
|
2817
|
+
> = z.union([
|
|
2818
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2819
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2820
|
+
]);
|
|
2651
2821
|
|
|
2652
2822
|
export function listAgentsFallbackModelConfigurationThinkingToJSON(
|
|
2653
2823
|
listAgentsFallbackModelConfigurationThinking:
|
|
@@ -2840,6 +3010,122 @@ export const ListAgentsFallbackModelConfigurationModalities$outboundSchema:
|
|
|
2840
3010
|
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> =
|
|
2841
3011
|
ListAgentsFallbackModelConfigurationModalities$inboundSchema;
|
|
2842
3012
|
|
|
3013
|
+
/** @internal */
|
|
3014
|
+
export const ListAgentsIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
3015
|
+
typeof ListAgentsIdAgents1
|
|
3016
|
+
> = z.nativeEnum(ListAgentsIdAgents1);
|
|
3017
|
+
/** @internal */
|
|
3018
|
+
export const ListAgentsIdAgents1$outboundSchema: z.ZodNativeEnum<
|
|
3019
|
+
typeof ListAgentsIdAgents1
|
|
3020
|
+
> = ListAgentsIdAgents1$inboundSchema;
|
|
3021
|
+
|
|
3022
|
+
/** @internal */
|
|
3023
|
+
export const ListAgentsFallbackModelConfigurationId$inboundSchema: z.ZodType<
|
|
3024
|
+
ListAgentsFallbackModelConfigurationId,
|
|
3025
|
+
z.ZodTypeDef,
|
|
3026
|
+
unknown
|
|
3027
|
+
> = z.union([ListAgentsIdAgents1$inboundSchema, z.string()]);
|
|
3028
|
+
/** @internal */
|
|
3029
|
+
export type ListAgentsFallbackModelConfigurationId$Outbound = string | string;
|
|
3030
|
+
|
|
3031
|
+
/** @internal */
|
|
3032
|
+
export const ListAgentsFallbackModelConfigurationId$outboundSchema: z.ZodType<
|
|
3033
|
+
ListAgentsFallbackModelConfigurationId$Outbound,
|
|
3034
|
+
z.ZodTypeDef,
|
|
3035
|
+
ListAgentsFallbackModelConfigurationId
|
|
3036
|
+
> = z.union([ListAgentsIdAgents1$outboundSchema, z.string()]);
|
|
3037
|
+
|
|
3038
|
+
export function listAgentsFallbackModelConfigurationIdToJSON(
|
|
3039
|
+
listAgentsFallbackModelConfigurationId:
|
|
3040
|
+
ListAgentsFallbackModelConfigurationId,
|
|
3041
|
+
): string {
|
|
3042
|
+
return JSON.stringify(
|
|
3043
|
+
ListAgentsFallbackModelConfigurationId$outboundSchema.parse(
|
|
3044
|
+
listAgentsFallbackModelConfigurationId,
|
|
3045
|
+
),
|
|
3046
|
+
);
|
|
3047
|
+
}
|
|
3048
|
+
export function listAgentsFallbackModelConfigurationIdFromJSON(
|
|
3049
|
+
jsonString: string,
|
|
3050
|
+
): SafeParseResult<ListAgentsFallbackModelConfigurationId, SDKValidationError> {
|
|
3051
|
+
return safeParse(
|
|
3052
|
+
jsonString,
|
|
3053
|
+
(x) =>
|
|
3054
|
+
ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
|
|
3055
|
+
`Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`,
|
|
3056
|
+
);
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
/** @internal */
|
|
3060
|
+
export const ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema:
|
|
3061
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> = z
|
|
3062
|
+
.nativeEnum(ListAgentsFallbackModelConfigurationExecuteOn);
|
|
3063
|
+
/** @internal */
|
|
3064
|
+
export const ListAgentsFallbackModelConfigurationExecuteOn$outboundSchema:
|
|
3065
|
+
z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> =
|
|
3066
|
+
ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema;
|
|
3067
|
+
|
|
3068
|
+
/** @internal */
|
|
3069
|
+
export const ListAgentsFallbackModelConfigurationGuardrails$inboundSchema:
|
|
3070
|
+
z.ZodType<
|
|
3071
|
+
ListAgentsFallbackModelConfigurationGuardrails,
|
|
3072
|
+
z.ZodTypeDef,
|
|
3073
|
+
unknown
|
|
3074
|
+
> = z.object({
|
|
3075
|
+
id: z.union([ListAgentsIdAgents1$inboundSchema, z.string()]),
|
|
3076
|
+
execute_on: ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
|
|
3077
|
+
}).transform((v) => {
|
|
3078
|
+
return remap$(v, {
|
|
3079
|
+
"execute_on": "executeOn",
|
|
3080
|
+
});
|
|
3081
|
+
});
|
|
3082
|
+
/** @internal */
|
|
3083
|
+
export type ListAgentsFallbackModelConfigurationGuardrails$Outbound = {
|
|
3084
|
+
id: string | string;
|
|
3085
|
+
execute_on: string;
|
|
3086
|
+
};
|
|
3087
|
+
|
|
3088
|
+
/** @internal */
|
|
3089
|
+
export const ListAgentsFallbackModelConfigurationGuardrails$outboundSchema:
|
|
3090
|
+
z.ZodType<
|
|
3091
|
+
ListAgentsFallbackModelConfigurationGuardrails$Outbound,
|
|
3092
|
+
z.ZodTypeDef,
|
|
3093
|
+
ListAgentsFallbackModelConfigurationGuardrails
|
|
3094
|
+
> = z.object({
|
|
3095
|
+
id: z.union([ListAgentsIdAgents1$outboundSchema, z.string()]),
|
|
3096
|
+
executeOn: ListAgentsFallbackModelConfigurationExecuteOn$outboundSchema,
|
|
3097
|
+
}).transform((v) => {
|
|
3098
|
+
return remap$(v, {
|
|
3099
|
+
executeOn: "execute_on",
|
|
3100
|
+
});
|
|
3101
|
+
});
|
|
3102
|
+
|
|
3103
|
+
export function listAgentsFallbackModelConfigurationGuardrailsToJSON(
|
|
3104
|
+
listAgentsFallbackModelConfigurationGuardrails:
|
|
3105
|
+
ListAgentsFallbackModelConfigurationGuardrails,
|
|
3106
|
+
): string {
|
|
3107
|
+
return JSON.stringify(
|
|
3108
|
+
ListAgentsFallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
3109
|
+
listAgentsFallbackModelConfigurationGuardrails,
|
|
3110
|
+
),
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
|
|
3114
|
+
jsonString: string,
|
|
3115
|
+
): SafeParseResult<
|
|
3116
|
+
ListAgentsFallbackModelConfigurationGuardrails,
|
|
3117
|
+
SDKValidationError
|
|
3118
|
+
> {
|
|
3119
|
+
return safeParse(
|
|
3120
|
+
jsonString,
|
|
3121
|
+
(x) =>
|
|
3122
|
+
ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(
|
|
3123
|
+
JSON.parse(x),
|
|
3124
|
+
),
|
|
3125
|
+
`Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`,
|
|
3126
|
+
);
|
|
3127
|
+
}
|
|
3128
|
+
|
|
2843
3129
|
/** @internal */
|
|
2844
3130
|
export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
2845
3131
|
z.ZodType<
|
|
@@ -2864,7 +3150,9 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2864
3150
|
ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
|
|
2865
3151
|
),
|
|
2866
3152
|
]).optional(),
|
|
2867
|
-
reasoning_effort:
|
|
3153
|
+
reasoning_effort:
|
|
3154
|
+
ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
|
|
3155
|
+
.optional(),
|
|
2868
3156
|
verbosity: z.string().optional(),
|
|
2869
3157
|
seed: z.nullable(z.number()).optional(),
|
|
2870
3158
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -2873,9 +3161,10 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2873
3161
|
ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema
|
|
2874
3162
|
),
|
|
2875
3163
|
).optional(),
|
|
2876
|
-
thinking: z.
|
|
2877
|
-
|
|
2878
|
-
|
|
3164
|
+
thinking: z.union([
|
|
3165
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
3166
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
3167
|
+
]).optional(),
|
|
2879
3168
|
temperature: z.nullable(z.number()).optional(),
|
|
2880
3169
|
top_p: z.nullable(z.number()).optional(),
|
|
2881
3170
|
top_k: z.nullable(z.number()).optional(),
|
|
@@ -2887,6 +3176,11 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
|
|
|
2887
3176
|
modalities: z.nullable(
|
|
2888
3177
|
z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
|
|
2889
3178
|
).optional(),
|
|
3179
|
+
guardrails: z.array(
|
|
3180
|
+
z.lazy(() =>
|
|
3181
|
+
ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
|
|
3182
|
+
),
|
|
3183
|
+
).optional(),
|
|
2890
3184
|
}).transform((v) => {
|
|
2891
3185
|
return remap$(v, {
|
|
2892
3186
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2926,13 +3220,19 @@ export type ListAgentsFallbackModelConfigurationParameters$Outbound = {
|
|
|
2926
3220
|
| ListAgentsFallbackModelConfigurationStreamOptions$Outbound
|
|
2927
3221
|
| null
|
|
2928
3222
|
| undefined;
|
|
2929
|
-
thinking?:
|
|
3223
|
+
thinking?:
|
|
3224
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3225
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
3226
|
+
| undefined;
|
|
2930
3227
|
temperature?: number | null | undefined;
|
|
2931
3228
|
top_p?: number | null | undefined;
|
|
2932
3229
|
top_k?: number | null | undefined;
|
|
2933
3230
|
tool_choice?: ListAgentsToolChoiceAgents2$Outbound | string | undefined;
|
|
2934
3231
|
parallel_tool_calls?: boolean | undefined;
|
|
2935
3232
|
modalities?: Array<string> | null | undefined;
|
|
3233
|
+
guardrails?:
|
|
3234
|
+
| Array<ListAgentsFallbackModelConfigurationGuardrails$Outbound>
|
|
3235
|
+
| undefined;
|
|
2936
3236
|
};
|
|
2937
3237
|
|
|
2938
3238
|
/** @internal */
|
|
@@ -2959,7 +3259,9 @@ export const ListAgentsFallbackModelConfigurationParameters$outboundSchema:
|
|
|
2959
3259
|
ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema
|
|
2960
3260
|
),
|
|
2961
3261
|
]).optional(),
|
|
2962
|
-
reasoningEffort:
|
|
3262
|
+
reasoningEffort:
|
|
3263
|
+
ListAgentsFallbackModelConfigurationReasoningEffort$outboundSchema
|
|
3264
|
+
.optional(),
|
|
2963
3265
|
verbosity: z.string().optional(),
|
|
2964
3266
|
seed: z.nullable(z.number()).optional(),
|
|
2965
3267
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -2968,9 +3270,10 @@ export const ListAgentsFallbackModelConfigurationParameters$outboundSchema:
|
|
|
2968
3270
|
ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema
|
|
2969
3271
|
),
|
|
2970
3272
|
).optional(),
|
|
2971
|
-
thinking: z.
|
|
2972
|
-
|
|
2973
|
-
|
|
3273
|
+
thinking: z.union([
|
|
3274
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3275
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
3276
|
+
]).optional(),
|
|
2974
3277
|
temperature: z.nullable(z.number()).optional(),
|
|
2975
3278
|
topP: z.nullable(z.number()).optional(),
|
|
2976
3279
|
topK: z.nullable(z.number()).optional(),
|
|
@@ -2982,6 +3285,11 @@ export const ListAgentsFallbackModelConfigurationParameters$outboundSchema:
|
|
|
2982
3285
|
modalities: z.nullable(
|
|
2983
3286
|
z.array(ListAgentsFallbackModelConfigurationModalities$outboundSchema),
|
|
2984
3287
|
).optional(),
|
|
3288
|
+
guardrails: z.array(
|
|
3289
|
+
z.lazy(() =>
|
|
3290
|
+
ListAgentsFallbackModelConfigurationGuardrails$outboundSchema
|
|
3291
|
+
),
|
|
3292
|
+
).optional(),
|
|
2985
3293
|
}).transform((v) => {
|
|
2986
3294
|
return remap$(v, {
|
|
2987
3295
|
frequencyPenalty: "frequency_penalty",
|