@orq-ai/node 4.9.0-rc.5 → 4.9.0-rc.50
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/FUNCTIONS.md +2 -2
- package/README.md +79 -58
- package/funcs/filesCreate.d.ts +3 -3
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +6 -28
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +3 -2
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +4 -4
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts +2 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +2 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesGetContent.d.ts +3 -2
- package/funcs/filesGetContent.d.ts.map +1 -1
- package/funcs/filesGetContent.js +4 -4
- package/funcs/filesGetContent.js.map +1 -1
- package/funcs/filesList.d.ts +2 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +3 -2
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +3 -2
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +4 -3
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/projectsCreate.d.ts +17 -0
- package/funcs/projectsCreate.d.ts.map +1 -0
- package/funcs/projectsCreate.js +115 -0
- package/funcs/projectsCreate.js.map +1 -0
- package/funcs/projectsDelete.d.ts +15 -0
- package/funcs/projectsDelete.d.ts.map +1 -0
- package/funcs/projectsDelete.js +118 -0
- package/funcs/projectsDelete.js.map +1 -0
- package/funcs/projectsGet.d.ts +18 -0
- package/funcs/projectsGet.d.ts.map +1 -0
- package/funcs/projectsGet.js +121 -0
- package/funcs/projectsGet.js.map +1 -0
- package/funcs/{routerResponsesCreate.d.ts → projectsList.d.ts} +5 -10
- package/funcs/projectsList.d.ts.map +1 -0
- package/funcs/projectsList.js +121 -0
- package/funcs/projectsList.js.map +1 -0
- package/funcs/projectsUpdate.d.ts +18 -0
- package/funcs/projectsUpdate.d.ts.map +1 -0
- package/funcs/projectsUpdate.js +124 -0
- package/funcs/projectsUpdate.js.map +1 -0
- package/funcs/skillsCreate.d.ts +17 -0
- package/funcs/skillsCreate.d.ts.map +1 -0
- package/funcs/{routerResponsesCreate.js → skillsCreate.js} +11 -18
- package/funcs/skillsCreate.js.map +1 -0
- package/funcs/skillsDelete.d.ts +15 -0
- package/funcs/skillsDelete.d.ts.map +1 -0
- package/funcs/skillsDelete.js +118 -0
- package/funcs/skillsDelete.js.map +1 -0
- package/funcs/skillsGet.d.ts +18 -0
- package/funcs/skillsGet.d.ts.map +1 -0
- package/funcs/skillsGet.js +121 -0
- package/funcs/skillsGet.js.map +1 -0
- package/funcs/skillsList.d.ts +18 -0
- package/funcs/skillsList.d.ts.map +1 -0
- package/funcs/skillsList.js +121 -0
- package/funcs/skillsList.js.map +1 -0
- package/funcs/skillsUpdate.d.ts +18 -0
- package/funcs/skillsUpdate.d.ts.map +1 -0
- package/funcs/skillsUpdate.js +124 -0
- package/funcs/skillsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/langchain/async-handler.d.mts.map +1 -1
- package/langchain/async-handler.mjs +10 -2
- package/langchain/async-handler.mjs.map +1 -1
- package/langchain/handler.d.mts.map +1 -1
- package/langchain/handler.mjs +10 -2
- package/langchain/handler.mjs.map +1 -1
- package/langchain/utils.d.mts.map +1 -1
- package/langchain/utils.mjs +17 -0
- package/langchain/utils.mjs.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/createfilerequest.d.ts +18 -0
- package/models/components/createfilerequest.d.ts.map +1 -0
- package/models/components/createfilerequest.js +57 -0
- package/models/components/createfilerequest.js.map +1 -0
- package/models/components/createfileresponse.d.ts +11 -0
- package/models/components/createfileresponse.d.ts.map +1 -0
- package/models/components/createfileresponse.js +51 -0
- package/models/components/createfileresponse.js.map +1 -0
- package/models/components/createprojectrequest.d.ts +14 -0
- package/models/components/createprojectrequest.d.ts.map +1 -0
- package/models/components/createprojectrequest.js +50 -0
- package/models/components/createprojectrequest.js.map +1 -0
- package/models/components/createprojectresponse.d.ts +11 -0
- package/models/components/createprojectresponse.d.ts.map +1 -0
- package/models/components/createprojectresponse.js +51 -0
- package/models/components/createprojectresponse.js.map +1 -0
- package/models/components/createskillrequest.d.ts +22 -0
- package/models/components/createskillrequest.d.ts.map +1 -0
- package/models/components/createskillrequest.js +60 -0
- package/models/components/createskillrequest.js.map +1 -0
- package/models/components/createskillresponse.d.ts +11 -0
- package/models/components/createskillresponse.d.ts.map +1 -0
- package/models/components/createskillresponse.js +51 -0
- package/models/components/createskillresponse.js.map +1 -0
- package/models/components/deletefileresponse.d.ts +8 -0
- package/models/components/deletefileresponse.d.ts.map +1 -0
- package/models/components/deletefileresponse.js +48 -0
- package/models/components/deletefileresponse.js.map +1 -0
- package/models/components/deleteprojectresponse.d.ts +8 -0
- package/models/components/deleteprojectresponse.d.ts.map +1 -0
- package/models/components/deleteprojectresponse.js +48 -0
- package/models/components/deleteprojectresponse.js.map +1 -0
- package/models/components/deleteskillresponse.d.ts +8 -0
- package/models/components/deleteskillresponse.d.ts.map +1 -0
- package/models/components/deleteskillresponse.js +48 -0
- package/models/components/deleteskillresponse.js.map +1 -0
- package/models/components/file.d.ts +15 -0
- package/models/components/file.d.ts.map +1 -0
- package/models/components/file.js +64 -0
- package/models/components/file.js.map +1 -0
- package/models/components/filepart.d.ts +6 -6
- package/models/components/filepart.d.ts.map +1 -1
- package/models/components/filepart.js +9 -10
- package/models/components/filepart.js.map +1 -1
- package/models/components/getfilecontentresponse.d.ts +10 -0
- package/models/components/getfilecontentresponse.d.ts.map +1 -0
- package/models/components/{filedocument.js → getfilecontentresponse.js} +8 -15
- package/models/components/getfilecontentresponse.js.map +1 -0
- package/models/components/getfileresponse.d.ts +11 -0
- package/models/components/getfileresponse.d.ts.map +1 -0
- package/models/components/getfileresponse.js +51 -0
- package/models/components/getfileresponse.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +11 -0
- package/models/components/getprojectresponse.d.ts.map +1 -0
- package/models/components/getprojectresponse.js +51 -0
- package/models/components/getprojectresponse.js.map +1 -0
- package/models/components/getskillresponse.d.ts +11 -0
- package/models/components/getskillresponse.d.ts.map +1 -0
- package/models/components/getskillresponse.js +51 -0
- package/models/components/getskillresponse.js.map +1 -0
- package/models/components/index.d.ts +25 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -1
- package/models/components/index.js.map +1 -1
- package/models/components/listfilesresponse.d.ts +13 -0
- package/models/components/listfilesresponse.d.ts.map +1 -0
- package/models/components/listfilesresponse.js +58 -0
- package/models/components/listfilesresponse.js.map +1 -0
- package/models/components/listprojectsresponse.d.ts +13 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -0
- package/models/components/listprojectsresponse.js +58 -0
- package/models/components/listprojectsresponse.js.map +1 -0
- package/models/components/listskillsresponse.d.ts +13 -0
- package/models/components/listskillsresponse.d.ts.map +1 -0
- package/models/components/listskillsresponse.js +58 -0
- package/models/components/listskillsresponse.js.map +1 -0
- package/models/components/project.d.ts +20 -0
- package/models/components/project.d.ts.map +1 -0
- package/models/components/project.js +72 -0
- package/models/components/project.js.map +1 -0
- package/models/components/publicschedule.d.ts +0 -1
- package/models/components/publicschedule.d.ts.map +1 -1
- package/models/components/publicschedule.js +0 -2
- package/models/components/publicschedule.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/skill.d.ts +29 -0
- package/models/components/skill.d.ts.map +1 -0
- package/models/components/skill.js +75 -0
- package/models/components/skill.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
- package/models/components/thinkingconfigenabledschema.js +1 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -1
- package/models/components/updatefilerequest.d.ts +14 -0
- package/models/components/updatefilerequest.d.ts.map +1 -0
- package/models/components/updatefilerequest.js +56 -0
- package/models/components/updatefilerequest.js.map +1 -0
- package/models/components/updatefileresponse.d.ts +11 -0
- package/models/components/updatefileresponse.d.ts.map +1 -0
- package/models/components/updatefileresponse.js +51 -0
- package/models/components/updatefileresponse.js.map +1 -0
- package/models/components/updateprojectrequest.d.ts +16 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -0
- package/models/components/updateprojectrequest.js +56 -0
- package/models/components/updateprojectrequest.js.map +1 -0
- package/models/components/updateprojectresponse.d.ts +11 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -0
- package/models/components/updateprojectresponse.js +51 -0
- package/models/components/updateprojectresponse.js.map +1 -0
- package/models/components/updateskillrequest.d.ts +24 -0
- package/models/components/updateskillrequest.d.ts.map +1 -0
- package/models/components/updateskillrequest.js +62 -0
- package/models/components/updateskillrequest.js.map +1 -0
- package/models/components/updateskillresponse.d.ts +11 -0
- package/models/components/updateskillresponse.d.ts.map +1 -0
- package/models/components/updateskillresponse.js +51 -0
- package/models/components/updateskillresponse.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +9 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +2 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentschedule.d.ts +0 -1
- package/models/operations/createagentschedule.d.ts.map +1 -1
- package/models/operations/createagentschedule.js +0 -2
- package/models/operations/createagentschedule.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +5 -5
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +24 -23
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createprompt.d.ts +1 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +1 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +27 -27
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +26 -29
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +10 -9
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +18 -15
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/filecontent.d.ts +0 -3
- package/models/operations/filecontent.d.ts.map +1 -1
- package/models/operations/filecontent.js.map +1 -1
- package/models/operations/filedelete.d.ts +0 -3
- package/models/operations/filedelete.d.ts.map +1 -1
- package/models/operations/filedelete.js.map +1 -1
- package/models/operations/fileget.d.ts +0 -19
- package/models/operations/fileget.d.ts.map +1 -1
- package/models/operations/fileget.js +1 -21
- package/models/operations/fileget.js.map +1 -1
- package/models/operations/filelist.d.ts +1 -21
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +2 -18
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupdate.d.ts +3 -31
- package/models/operations/fileupdate.d.ts.map +1 -1
- package/models/operations/fileupdate.js +4 -35
- package/models/operations/fileupdate.js.map +1 -1
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +8 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +2 -1
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +3 -1
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +12 -0
- package/models/operations/projectdelete.d.ts.map +1 -0
- package/models/operations/projectdelete.js +54 -0
- package/models/operations/projectdelete.js.map +1 -0
- package/models/operations/projectget.d.ts +12 -0
- package/models/operations/projectget.d.ts.map +1 -0
- package/models/operations/projectget.js +54 -0
- package/models/operations/projectget.js.map +1 -0
- package/models/operations/projectlist.d.ts +16 -0
- package/models/operations/projectlist.d.ts.map +1 -0
- package/models/operations/projectlist.js +57 -0
- package/models/operations/projectlist.js.map +1 -0
- package/models/operations/projectupdate.d.ts +15 -0
- package/models/operations/projectupdate.d.ts.map +1 -0
- package/models/operations/projectupdate.js +57 -0
- package/models/operations/projectupdate.js.map +1 -0
- package/models/operations/retrieveagentrequest.d.ts +4 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +1 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrieveagentschedule.d.ts +0 -1
- package/models/operations/retrieveagentschedule.d.ts.map +1 -1
- package/models/operations/retrieveagentschedule.js +0 -2
- package/models/operations/retrieveagentschedule.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/skilldelete.d.ts +12 -0
- package/models/operations/skilldelete.d.ts.map +1 -0
- package/models/operations/skilldelete.js +54 -0
- package/models/operations/skilldelete.js.map +1 -0
- package/models/operations/skillget.d.ts +18 -0
- package/models/operations/skillget.d.ts.map +1 -0
- package/models/operations/skillget.js +54 -0
- package/models/operations/skillget.js.map +1 -0
- package/models/operations/skilllist.d.ts +22 -0
- package/models/operations/skilllist.d.ts.map +1 -0
- package/models/operations/skilllist.js +57 -0
- package/models/operations/skilllist.js.map +1 -0
- package/models/operations/skillupdate.d.ts +15 -0
- package/models/operations/skillupdate.d.ts.map +1 -0
- package/models/operations/skillupdate.js +57 -0
- package/models/operations/skillupdate.js.map +1 -0
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +13 -25
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +7 -7
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateagentschedule.d.ts +0 -1
- package/models/operations/updateagentschedule.d.ts.map +1 -1
- package/models/operations/updateagentschedule.js +0 -2
- package/models/operations/updateagentschedule.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +2 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/files.d.ts +13 -12
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +9 -9
- package/sdk/files.js.map +1 -1
- package/sdk/orqresponses.d.ts +13 -5
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +16 -6
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/projects.d.ts +38 -0
- package/sdk/projects.d.ts.map +1 -0
- package/sdk/projects.js +59 -0
- package/sdk/projects.js.map +1 -0
- package/sdk/router.d.ts +0 -3
- package/sdk/router.d.ts.map +1 -1
- package/sdk/router.js +0 -4
- package/sdk/router.js.map +1 -1
- package/sdk/sdk.d.ts +8 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +11 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +38 -0
- package/sdk/skills.d.ts.map +1 -0
- package/sdk/skills.js +59 -0
- package/sdk/skills.js.map +1 -0
- package/src/funcs/filesCreate.ts +13 -48
- package/src/funcs/filesDelete.ts +8 -8
- package/src/funcs/filesGet.ts +6 -5
- package/src/funcs/filesGetContent.ts +9 -9
- package/src/funcs/filesList.ts +6 -5
- package/src/funcs/filesUpdate.ts +8 -7
- package/src/funcs/{routerResponsesCreate.ts → projectsCreate.ts} +16 -23
- package/src/funcs/projectsDelete.ts +165 -0
- package/src/funcs/projectsGet.ts +168 -0
- package/src/funcs/projectsList.ts +170 -0
- package/src/funcs/projectsUpdate.ts +171 -0
- package/src/funcs/skillsCreate.ts +162 -0
- package/src/funcs/skillsDelete.ts +165 -0
- package/src/funcs/skillsGet.ts +168 -0
- package/src/funcs/skillsList.ts +170 -0
- package/src/funcs/skillsUpdate.ts +171 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createfilerequest.ts +45 -0
- package/src/models/components/createfileresponse.ts +32 -0
- package/src/models/components/createprojectrequest.ts +34 -0
- package/src/models/components/createprojectresponse.ts +32 -0
- package/src/models/components/createskillrequest.ts +52 -0
- package/src/models/components/createskillresponse.ts +32 -0
- package/src/models/components/deletefileresponse.ts +27 -0
- package/src/models/components/deleteprojectresponse.ts +27 -0
- package/src/models/components/deleteskillresponse.ts +27 -0
- package/src/models/components/file.ts +48 -0
- package/src/models/components/filepart.ts +21 -16
- package/src/models/components/getfilecontentresponse.ts +36 -0
- package/src/models/components/getfileresponse.ts +32 -0
- package/src/models/components/getprojectresponse.ts +32 -0
- package/src/models/components/getskillresponse.ts +32 -0
- package/src/models/components/index.ts +25 -1
- package/src/models/components/listfilesresponse.ts +41 -0
- package/src/models/components/listprojectsresponse.ts +41 -0
- package/src/models/components/listskillsresponse.ts +41 -0
- package/src/models/components/project.ts +64 -0
- package/src/models/components/publicschedule.ts +0 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/skill.ts +75 -0
- package/src/models/components/thinkingconfigenabledschema.ts +1 -0
- package/src/models/components/updatefilerequest.ts +40 -0
- package/src/models/components/updatefileresponse.ts +32 -0
- package/src/models/components/updateprojectrequest.ts +42 -0
- package/src/models/components/updateprojectresponse.ts +32 -0
- package/src/models/components/updateskillrequest.ts +56 -0
- package/src/models/components/updateskillresponse.ts +32 -0
- package/src/models/operations/createagentrequest.ts +11 -0
- package/src/models/operations/createagentschedule.ts +0 -3
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +29 -32
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createprompt.ts +1 -0
- package/src/models/operations/createrouterresponse.ts +46 -64
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +34 -48
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/filecontent.ts +0 -3
- package/src/models/operations/filedelete.ts +0 -3
- package/src/models/operations/fileget.ts +0 -48
- package/src/models/operations/filelist.ts +2 -46
- package/src/models/operations/fileupdate.ts +5 -82
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +8 -2
- package/src/models/operations/invokeeval.ts +5 -2
- package/src/models/operations/listagents.ts +5 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +36 -0
- package/src/models/operations/projectget.ts +36 -0
- package/src/models/operations/projectlist.ts +43 -0
- package/src/models/operations/projectupdate.ts +41 -0
- package/src/models/operations/retrieveagentrequest.ts +5 -0
- package/src/models/operations/retrieveagentschedule.ts +0 -3
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/skilldelete.ts +36 -0
- package/src/models/operations/skillget.ts +40 -0
- package/src/models/operations/skilllist.ts +49 -0
- package/src/models/operations/skillupdate.ts +41 -0
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +20 -31
- package/src/models/operations/updateagentschedule.ts +0 -3
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +4 -4
- package/src/sdk/files.ts +22 -21
- package/src/sdk/orqresponses.ts +28 -7
- package/src/sdk/projects.ts +97 -0
- package/src/sdk/router.ts +0 -6
- package/src/sdk/sdk.ts +17 -5
- package/src/sdk/skills.ts +97 -0
- package/funcs/routerResponsesCreate.d.ts.map +0 -1
- package/funcs/routerResponsesCreate.js.map +0 -1
- package/models/components/filedocument.d.ts +0 -15
- package/models/components/filedocument.d.ts.map +0 -1
- package/models/components/filedocument.js.map +0 -1
- package/models/operations/createresponse.d.ts +0 -1990
- package/models/operations/createresponse.d.ts.map +0 -1
- package/models/operations/createresponse.js +0 -1422
- package/models/operations/createresponse.js.map +0 -1
- package/models/operations/fileupload.d.ts +0 -63
- package/models/operations/fileupload.d.ts.map +0 -1
- package/models/operations/fileupload.js +0 -97
- package/models/operations/fileupload.js.map +0 -1
- package/sdk/orqagentsresponses.d.ts +0 -24
- package/sdk/orqagentsresponses.d.ts.map +0 -1
- package/sdk/orqagentsresponses.js +0 -34
- package/sdk/orqagentsresponses.js.map +0 -1
- package/src/models/components/filedocument.ts +0 -48
- package/src/models/operations/createresponse.ts +0 -3864
- package/src/models/operations/fileupload.ts +0 -135
- package/src/sdk/orqagentsresponses.ts +0 -53
|
@@ -1,1990 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { EventStream } from "../../lib/event-streams.js";
|
|
3
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
4
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
5
|
-
import * as components from "../components/index.js";
|
|
6
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
|
-
/**
|
|
8
|
-
* The effort level for reasoning
|
|
9
|
-
*/
|
|
10
|
-
export declare const Effort: {
|
|
11
|
-
readonly None: "none";
|
|
12
|
-
readonly Minimal: "minimal";
|
|
13
|
-
readonly Low: "low";
|
|
14
|
-
readonly Medium: "medium";
|
|
15
|
-
readonly High: "high";
|
|
16
|
-
readonly Xhigh: "xhigh";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The effort level for reasoning
|
|
20
|
-
*/
|
|
21
|
-
export type Effort = ClosedEnum<typeof Effort>;
|
|
22
|
-
/**
|
|
23
|
-
* The summary mode for reasoning output
|
|
24
|
-
*/
|
|
25
|
-
export declare const Summary: {
|
|
26
|
-
readonly Auto: "auto";
|
|
27
|
-
readonly Concise: "concise";
|
|
28
|
-
readonly Detailed: "detailed";
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* The summary mode for reasoning output
|
|
32
|
-
*/
|
|
33
|
-
export type Summary = ClosedEnum<typeof Summary>;
|
|
34
|
-
/**
|
|
35
|
-
* Configuration for reasoning models
|
|
36
|
-
*/
|
|
37
|
-
export type Reasoning = {
|
|
38
|
-
/**
|
|
39
|
-
* The effort level for reasoning
|
|
40
|
-
*/
|
|
41
|
-
effort?: Effort | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The summary mode for reasoning output
|
|
44
|
-
*/
|
|
45
|
-
summary?: Summary | null | undefined;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Configuration for thinking mode. Use `adaptive` for models that support it (e.g. Claude Opus 4.6, Sonnet 4.6), or `enabled` with `budget_tokens` for manual control.
|
|
49
|
-
*/
|
|
50
|
-
export type CreateResponseThinking = components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema | components.ThinkingConfigAdaptiveSchema;
|
|
51
|
-
export type Format3 = {
|
|
52
|
-
/**
|
|
53
|
-
* Ensures the response matches a supplied JSON schema
|
|
54
|
-
*/
|
|
55
|
-
type: "json_schema";
|
|
56
|
-
/**
|
|
57
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
58
|
-
*/
|
|
59
|
-
name: string;
|
|
60
|
-
/**
|
|
61
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
62
|
-
*/
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The JSON schema to validate the response against
|
|
66
|
-
*/
|
|
67
|
-
schema: {
|
|
68
|
-
[k: string]: any;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Whether to enable strict `schema` adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when `strict` is `true`
|
|
72
|
-
*/
|
|
73
|
-
strict?: boolean | undefined;
|
|
74
|
-
};
|
|
75
|
-
export type Format2 = {
|
|
76
|
-
/**
|
|
77
|
-
* Ensures the response is a valid JSON object
|
|
78
|
-
*/
|
|
79
|
-
type: "json_object";
|
|
80
|
-
};
|
|
81
|
-
export type Format1 = {
|
|
82
|
-
/**
|
|
83
|
-
* Plain text response format
|
|
84
|
-
*/
|
|
85
|
-
type: "text";
|
|
86
|
-
};
|
|
87
|
-
export type CreateResponseFormat = Format1 | Format2 | Format3;
|
|
88
|
-
export type CreateResponseText = {
|
|
89
|
-
format: Format1 | Format2 | Format3;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* The type of input item
|
|
93
|
-
*/
|
|
94
|
-
export declare const CreateResponse2RouterResponsesRequestRequestBodyInputType: {
|
|
95
|
-
readonly FunctionCall: "function_call";
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* The type of input item
|
|
99
|
-
*/
|
|
100
|
-
export type CreateResponse2RouterResponsesRequestRequestBodyInputType = ClosedEnum<typeof CreateResponse2RouterResponsesRequestRequestBodyInputType>;
|
|
101
|
-
/**
|
|
102
|
-
* Represents a function tool call, provided as input to the model.
|
|
103
|
-
*/
|
|
104
|
-
export type CreateResponse23 = {
|
|
105
|
-
/**
|
|
106
|
-
* The type of input item
|
|
107
|
-
*/
|
|
108
|
-
type: CreateResponse2RouterResponsesRequestRequestBodyInputType;
|
|
109
|
-
/**
|
|
110
|
-
* The ID of the function call
|
|
111
|
-
*/
|
|
112
|
-
callId: string;
|
|
113
|
-
/**
|
|
114
|
-
* The unique identifier for this function call
|
|
115
|
-
*/
|
|
116
|
-
id: string;
|
|
117
|
-
/**
|
|
118
|
-
* The name of the function being called
|
|
119
|
-
*/
|
|
120
|
-
name: string;
|
|
121
|
-
/**
|
|
122
|
-
* The arguments to the function as a JSON string
|
|
123
|
-
*/
|
|
124
|
-
arguments: string;
|
|
125
|
-
/**
|
|
126
|
-
* The status of the function call
|
|
127
|
-
*/
|
|
128
|
-
status: string;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* The type of input item
|
|
132
|
-
*/
|
|
133
|
-
export declare const CreateResponse2RouterResponsesRequestRequestBodyType: {
|
|
134
|
-
readonly FunctionCallOutput: "function_call_output";
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* The type of input item
|
|
138
|
-
*/
|
|
139
|
-
export type CreateResponse2RouterResponsesRequestRequestBodyType = ClosedEnum<typeof CreateResponse2RouterResponsesRequestRequestBodyType>;
|
|
140
|
-
/**
|
|
141
|
-
* Represents the output of a function tool call, provided as input to the model.
|
|
142
|
-
*/
|
|
143
|
-
export type CreateResponse2RouterResponses2 = {
|
|
144
|
-
/**
|
|
145
|
-
* The type of input item
|
|
146
|
-
*/
|
|
147
|
-
type: CreateResponse2RouterResponsesRequestRequestBodyType;
|
|
148
|
-
/**
|
|
149
|
-
* The ID of the function call this output is for
|
|
150
|
-
*/
|
|
151
|
-
callId: string;
|
|
152
|
-
/**
|
|
153
|
-
* The output from the function call
|
|
154
|
-
*/
|
|
155
|
-
output: string;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* The role of the message author
|
|
159
|
-
*/
|
|
160
|
-
export declare const TwoRole: {
|
|
161
|
-
readonly User: "user";
|
|
162
|
-
readonly Assistant: "assistant";
|
|
163
|
-
readonly System: "system";
|
|
164
|
-
readonly Developer: "developer";
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* The role of the message author
|
|
168
|
-
*/
|
|
169
|
-
export type TwoRole = ClosedEnum<typeof TwoRole>;
|
|
170
|
-
/**
|
|
171
|
-
* A file input content part.
|
|
172
|
-
*/
|
|
173
|
-
export type Two3 = {
|
|
174
|
-
/**
|
|
175
|
-
* The type of input content part
|
|
176
|
-
*/
|
|
177
|
-
type: "input_file";
|
|
178
|
-
/**
|
|
179
|
-
* Base64 encoded file data
|
|
180
|
-
*/
|
|
181
|
-
fileData?: string | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* File ID from the Files API
|
|
184
|
-
*/
|
|
185
|
-
fileId?: string | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Name of the file
|
|
188
|
-
*/
|
|
189
|
-
filename?: string | undefined;
|
|
190
|
-
/**
|
|
191
|
-
* URL of the file to fetch
|
|
192
|
-
*/
|
|
193
|
-
fileUrl?: string | undefined;
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Level of detail for image analysis
|
|
197
|
-
*/
|
|
198
|
-
export declare const Detail: {
|
|
199
|
-
readonly High: "high";
|
|
200
|
-
readonly Low: "low";
|
|
201
|
-
readonly Auto: "auto";
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Level of detail for image analysis
|
|
205
|
-
*/
|
|
206
|
-
export type Detail = ClosedEnum<typeof Detail>;
|
|
207
|
-
/**
|
|
208
|
-
* An image input content part.
|
|
209
|
-
*/
|
|
210
|
-
export type CreateResponse22 = {
|
|
211
|
-
/**
|
|
212
|
-
* The type of input content part
|
|
213
|
-
*/
|
|
214
|
-
type: "input_image";
|
|
215
|
-
/**
|
|
216
|
-
* Level of detail for image analysis
|
|
217
|
-
*/
|
|
218
|
-
detail?: Detail | undefined;
|
|
219
|
-
/**
|
|
220
|
-
* File ID for the image
|
|
221
|
-
*/
|
|
222
|
-
fileId?: string | null | undefined;
|
|
223
|
-
/**
|
|
224
|
-
* URL of the image (can be http URL or data URL)
|
|
225
|
-
*/
|
|
226
|
-
imageUrl?: string | null | undefined;
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* A text input content part
|
|
230
|
-
*/
|
|
231
|
-
export type CreateResponse21 = {
|
|
232
|
-
/**
|
|
233
|
-
* The type of input content
|
|
234
|
-
*/
|
|
235
|
-
type: "input_text";
|
|
236
|
-
/**
|
|
237
|
-
* The text content
|
|
238
|
-
*/
|
|
239
|
-
text: string;
|
|
240
|
-
};
|
|
241
|
-
export type CreateResponseContent2 = CreateResponse21 | CreateResponse22 | Two3;
|
|
242
|
-
/**
|
|
243
|
-
* The content of the message, either a string or an array of content parts
|
|
244
|
-
*/
|
|
245
|
-
export type TwoContent = string | Array<CreateResponse21 | CreateResponse22 | Two3>;
|
|
246
|
-
/**
|
|
247
|
-
* Represents a message in the conversation, with a role and content (string or rich content parts).
|
|
248
|
-
*/
|
|
249
|
-
export type Two1 = {
|
|
250
|
-
/**
|
|
251
|
-
* The role of the message author
|
|
252
|
-
*/
|
|
253
|
-
role: TwoRole;
|
|
254
|
-
/**
|
|
255
|
-
* The content of the message, either a string or an array of content parts
|
|
256
|
-
*/
|
|
257
|
-
content: string | Array<CreateResponse21 | CreateResponse22 | Two3>;
|
|
258
|
-
};
|
|
259
|
-
export type Input2 = CreateResponse23 | CreateResponse2RouterResponses2 | Two1;
|
|
260
|
-
/**
|
|
261
|
-
* The actual user input(s) for the model. Can be a simple string, or an array of structured input items (messages, tool outputs) representing a conversation history or complex input.
|
|
262
|
-
*/
|
|
263
|
-
export type CreateResponseInput = string | Array<CreateResponse23 | CreateResponse2RouterResponses2 | Two1>;
|
|
264
|
-
export declare const Include: {
|
|
265
|
-
readonly CodeInterpreterCallOutputs: "code_interpreter_call.outputs";
|
|
266
|
-
readonly ComputerCallOutputOutputImageUrl: "computer_call_output.output.image_url";
|
|
267
|
-
readonly FileSearchCallResults: "file_search_call.results";
|
|
268
|
-
readonly MessageInputImageImageUrl: "message.input_image.image_url";
|
|
269
|
-
readonly MessageOutputTextLogprobs: "message.output_text.logprobs";
|
|
270
|
-
readonly ReasoningEncryptedContent: "reasoning.encrypted_content";
|
|
271
|
-
readonly WebSearchCallResults: "web_search_call.results";
|
|
272
|
-
readonly WebSearchCallActionSources: "web_search_call.action.sources";
|
|
273
|
-
};
|
|
274
|
-
export type Include = ClosedEnum<typeof Include>;
|
|
275
|
-
/**
|
|
276
|
-
* Specifies the latency tier to use for processing the request. Defaults to "auto".
|
|
277
|
-
*/
|
|
278
|
-
export declare const ServiceTier: {
|
|
279
|
-
readonly Auto: "auto";
|
|
280
|
-
readonly Default: "default";
|
|
281
|
-
readonly Flex: "flex";
|
|
282
|
-
readonly Scale: "scale";
|
|
283
|
-
readonly Priority: "priority";
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* Specifies the latency tier to use for processing the request. Defaults to "auto".
|
|
287
|
-
*/
|
|
288
|
-
export type ServiceTier = ClosedEnum<typeof ServiceTier>;
|
|
289
|
-
/**
|
|
290
|
-
* The ranking algorithm
|
|
291
|
-
*/
|
|
292
|
-
export declare const Ranker: {
|
|
293
|
-
readonly Auto: "auto";
|
|
294
|
-
readonly Default20240821: "default_2024_08_21";
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* The ranking algorithm
|
|
298
|
-
*/
|
|
299
|
-
export type Ranker = ClosedEnum<typeof Ranker>;
|
|
300
|
-
/**
|
|
301
|
-
* Options for ranking search results
|
|
302
|
-
*/
|
|
303
|
-
export type RankingOptions = {
|
|
304
|
-
/**
|
|
305
|
-
* The ranking algorithm
|
|
306
|
-
*/
|
|
307
|
-
ranker?: Ranker | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* Minimum relevance score
|
|
310
|
-
*/
|
|
311
|
-
scoreThreshold?: number | undefined;
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Configuration for file search tool
|
|
315
|
-
*/
|
|
316
|
-
export type Tools4 = {
|
|
317
|
-
/**
|
|
318
|
-
* The type of tool
|
|
319
|
-
*/
|
|
320
|
-
type: "file_search";
|
|
321
|
-
/**
|
|
322
|
-
* The vector stores to search
|
|
323
|
-
*/
|
|
324
|
-
vectorStoreIds?: Array<string> | undefined;
|
|
325
|
-
/**
|
|
326
|
-
* Maximum number of results to return
|
|
327
|
-
*/
|
|
328
|
-
maxNumResults?: number | undefined;
|
|
329
|
-
/**
|
|
330
|
-
* Filters to apply to the search
|
|
331
|
-
*/
|
|
332
|
-
filters?: any | undefined;
|
|
333
|
-
/**
|
|
334
|
-
* Options for ranking search results
|
|
335
|
-
*/
|
|
336
|
-
rankingOptions?: RankingOptions | undefined;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* Amount of context to retrieve for each search result
|
|
340
|
-
*/
|
|
341
|
-
export declare const ToolsSearchContextSize: {
|
|
342
|
-
readonly Low: "low";
|
|
343
|
-
readonly Medium: "medium";
|
|
344
|
-
readonly High: "high";
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* Amount of context to retrieve for each search result
|
|
348
|
-
*/
|
|
349
|
-
export type ToolsSearchContextSize = ClosedEnum<typeof ToolsSearchContextSize>;
|
|
350
|
-
/**
|
|
351
|
-
* The type of location
|
|
352
|
-
*/
|
|
353
|
-
export declare const CreateResponseToolsRouterResponsesRequestRequestBodyType: {
|
|
354
|
-
readonly Approximate: "approximate";
|
|
355
|
-
readonly Exact: "exact";
|
|
356
|
-
};
|
|
357
|
-
/**
|
|
358
|
-
* The type of location
|
|
359
|
-
*/
|
|
360
|
-
export type CreateResponseToolsRouterResponsesRequestRequestBodyType = ClosedEnum<typeof CreateResponseToolsRouterResponsesRequestRequestBodyType>;
|
|
361
|
-
/**
|
|
362
|
-
* User location for search localization
|
|
363
|
-
*/
|
|
364
|
-
export type ToolsUserLocation = {
|
|
365
|
-
/**
|
|
366
|
-
* The type of location
|
|
367
|
-
*/
|
|
368
|
-
type?: CreateResponseToolsRouterResponsesRequestRequestBodyType | undefined;
|
|
369
|
-
/**
|
|
370
|
-
* The city name
|
|
371
|
-
*/
|
|
372
|
-
city?: string | null | undefined;
|
|
373
|
-
/**
|
|
374
|
-
* The country code
|
|
375
|
-
*/
|
|
376
|
-
country?: string | undefined;
|
|
377
|
-
/**
|
|
378
|
-
* The region/state
|
|
379
|
-
*/
|
|
380
|
-
region?: string | null | undefined;
|
|
381
|
-
/**
|
|
382
|
-
* The timezone
|
|
383
|
-
*/
|
|
384
|
-
timezone?: string | null | undefined;
|
|
385
|
-
};
|
|
386
|
-
/**
|
|
387
|
-
* Filters for the web search
|
|
388
|
-
*/
|
|
389
|
-
export type Filters = {
|
|
390
|
-
/**
|
|
391
|
-
* List of allowed domains for search
|
|
392
|
-
*/
|
|
393
|
-
allowedDomains?: Array<string> | null | undefined;
|
|
394
|
-
};
|
|
395
|
-
/**
|
|
396
|
-
* Configuration for web search tool
|
|
397
|
-
*/
|
|
398
|
-
export type Tools3 = {
|
|
399
|
-
/**
|
|
400
|
-
* The type of tool
|
|
401
|
-
*/
|
|
402
|
-
type: "web_search";
|
|
403
|
-
/**
|
|
404
|
-
* Amount of context to retrieve for each search result
|
|
405
|
-
*/
|
|
406
|
-
searchContextSize?: ToolsSearchContextSize | undefined;
|
|
407
|
-
/**
|
|
408
|
-
* User location for search localization
|
|
409
|
-
*/
|
|
410
|
-
userLocation?: ToolsUserLocation | undefined;
|
|
411
|
-
/**
|
|
412
|
-
* Filters for the web search
|
|
413
|
-
*/
|
|
414
|
-
filters?: Filters | null | undefined;
|
|
415
|
-
};
|
|
416
|
-
/**
|
|
417
|
-
* Amount of context to retrieve for each search result
|
|
418
|
-
*/
|
|
419
|
-
export declare const SearchContextSize: {
|
|
420
|
-
readonly Low: "low";
|
|
421
|
-
readonly Medium: "medium";
|
|
422
|
-
readonly High: "high";
|
|
423
|
-
};
|
|
424
|
-
/**
|
|
425
|
-
* Amount of context to retrieve for each search result
|
|
426
|
-
*/
|
|
427
|
-
export type SearchContextSize = ClosedEnum<typeof SearchContextSize>;
|
|
428
|
-
/**
|
|
429
|
-
* The type of location
|
|
430
|
-
*/
|
|
431
|
-
export declare const CreateResponseToolsRouterResponsesType: {
|
|
432
|
-
readonly Approximate: "approximate";
|
|
433
|
-
readonly Exact: "exact";
|
|
434
|
-
};
|
|
435
|
-
/**
|
|
436
|
-
* The type of location
|
|
437
|
-
*/
|
|
438
|
-
export type CreateResponseToolsRouterResponsesType = ClosedEnum<typeof CreateResponseToolsRouterResponsesType>;
|
|
439
|
-
/**
|
|
440
|
-
* User location for search localization
|
|
441
|
-
*/
|
|
442
|
-
export type UserLocation = {
|
|
443
|
-
/**
|
|
444
|
-
* The type of location
|
|
445
|
-
*/
|
|
446
|
-
type?: CreateResponseToolsRouterResponsesType | undefined;
|
|
447
|
-
/**
|
|
448
|
-
* The city name
|
|
449
|
-
*/
|
|
450
|
-
city?: string | null | undefined;
|
|
451
|
-
/**
|
|
452
|
-
* The country code
|
|
453
|
-
*/
|
|
454
|
-
country?: string | undefined;
|
|
455
|
-
/**
|
|
456
|
-
* The region/state
|
|
457
|
-
*/
|
|
458
|
-
region?: string | null | undefined;
|
|
459
|
-
/**
|
|
460
|
-
* The timezone
|
|
461
|
-
*/
|
|
462
|
-
timezone?: string | null | undefined;
|
|
463
|
-
};
|
|
464
|
-
/**
|
|
465
|
-
* Configuration for web search preview tool
|
|
466
|
-
*/
|
|
467
|
-
export type Tools2 = {
|
|
468
|
-
/**
|
|
469
|
-
* The type of tool
|
|
470
|
-
*/
|
|
471
|
-
type: "web_search_preview";
|
|
472
|
-
/**
|
|
473
|
-
* List of domains to restrict search to
|
|
474
|
-
*/
|
|
475
|
-
domains?: Array<string> | undefined;
|
|
476
|
-
/**
|
|
477
|
-
* Amount of context to retrieve for each search result
|
|
478
|
-
*/
|
|
479
|
-
searchContextSize?: SearchContextSize | undefined;
|
|
480
|
-
/**
|
|
481
|
-
* User location for search localization
|
|
482
|
-
*/
|
|
483
|
-
userLocation?: UserLocation | undefined;
|
|
484
|
-
};
|
|
485
|
-
/**
|
|
486
|
-
* A function tool definition
|
|
487
|
-
*/
|
|
488
|
-
export type Tools1 = {
|
|
489
|
-
/**
|
|
490
|
-
* The type of tool
|
|
491
|
-
*/
|
|
492
|
-
type: "function";
|
|
493
|
-
/**
|
|
494
|
-
* The name of the function to be called
|
|
495
|
-
*/
|
|
496
|
-
name: string;
|
|
497
|
-
/**
|
|
498
|
-
* A description of what the function does
|
|
499
|
-
*/
|
|
500
|
-
description?: string | null | undefined;
|
|
501
|
-
/**
|
|
502
|
-
* The parameters the function accepts as a JSON Schema object
|
|
503
|
-
*/
|
|
504
|
-
parameters?: {
|
|
505
|
-
[k: string]: any;
|
|
506
|
-
} | null | undefined;
|
|
507
|
-
/**
|
|
508
|
-
* Whether to enable strict schema adherence when generating function calls
|
|
509
|
-
*/
|
|
510
|
-
strict?: boolean | null | undefined;
|
|
511
|
-
};
|
|
512
|
-
export type CreateResponseTools = Tools1 | Tools2 | Tools3 | Tools4;
|
|
513
|
-
export declare const CreateResponseToolChoiceRouterResponsesRequestType: {
|
|
514
|
-
readonly Mcp: "mcp";
|
|
515
|
-
};
|
|
516
|
-
export type CreateResponseToolChoiceRouterResponsesRequestType = ClosedEnum<typeof CreateResponseToolChoiceRouterResponsesRequestType>;
|
|
517
|
-
export type ToolChoice4 = {
|
|
518
|
-
type: CreateResponseToolChoiceRouterResponsesRequestType;
|
|
519
|
-
serverLabel: string;
|
|
520
|
-
name?: string | null | undefined;
|
|
521
|
-
};
|
|
522
|
-
export declare const CreateResponseToolChoiceRouterResponsesType: {
|
|
523
|
-
readonly Function: "function";
|
|
524
|
-
};
|
|
525
|
-
export type CreateResponseToolChoiceRouterResponsesType = ClosedEnum<typeof CreateResponseToolChoiceRouterResponsesType>;
|
|
526
|
-
export type ToolChoice3 = {
|
|
527
|
-
type: CreateResponseToolChoiceRouterResponsesType;
|
|
528
|
-
name: string;
|
|
529
|
-
};
|
|
530
|
-
export declare const CreateResponseToolChoiceType: {
|
|
531
|
-
readonly FileSearch: "file_search";
|
|
532
|
-
readonly WebSearchPreview: "web_search_preview";
|
|
533
|
-
readonly WebSearchPreview20250311: "web_search_preview_2025_03_11";
|
|
534
|
-
readonly WebSearch: "web_search";
|
|
535
|
-
readonly ComputerUsePreview: "computer_use_preview";
|
|
536
|
-
readonly ComputerUse: "computer_use";
|
|
537
|
-
readonly Computer: "computer";
|
|
538
|
-
readonly CodeInterpreter: "code_interpreter";
|
|
539
|
-
readonly ImageGeneration: "image_generation";
|
|
540
|
-
};
|
|
541
|
-
export type CreateResponseToolChoiceType = ClosedEnum<typeof CreateResponseToolChoiceType>;
|
|
542
|
-
export type CreateResponseToolChoice2 = {
|
|
543
|
-
type: CreateResponseToolChoiceType;
|
|
544
|
-
};
|
|
545
|
-
/**
|
|
546
|
-
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool. `auto` means the model can pick between generating a message or calling a tool. `required` means the model must call a tool.
|
|
547
|
-
*/
|
|
548
|
-
export declare const CreateResponseToolChoice1: {
|
|
549
|
-
readonly None: "none";
|
|
550
|
-
readonly Auto: "auto";
|
|
551
|
-
readonly Required: "required";
|
|
552
|
-
};
|
|
553
|
-
/**
|
|
554
|
-
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool. `auto` means the model can pick between generating a message or calling a tool. `required` means the model must call a tool.
|
|
555
|
-
*/
|
|
556
|
-
export type CreateResponseToolChoice1 = ClosedEnum<typeof CreateResponseToolChoice1>;
|
|
557
|
-
/**
|
|
558
|
-
* How the model should select which tool (or tools) to use when generating a response. Can be a string (`none`, `auto`, `required`) or an object to force a specific tool.
|
|
559
|
-
*/
|
|
560
|
-
export type CreateResponseToolChoice = ToolChoice3 | ToolChoice4 | CreateResponseToolChoice2 | CreateResponseToolChoice1;
|
|
561
|
-
export type CreateResponseRequestBody = {
|
|
562
|
-
/**
|
|
563
|
-
* ID of the model to use. You can use the List models API to see all of your available models.
|
|
564
|
-
*/
|
|
565
|
-
model: string;
|
|
566
|
-
/**
|
|
567
|
-
* Developer-defined key-value pairs that will be included in response objects
|
|
568
|
-
*/
|
|
569
|
-
metadata?: {
|
|
570
|
-
[k: string]: string;
|
|
571
|
-
} | undefined;
|
|
572
|
-
/**
|
|
573
|
-
* 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.
|
|
574
|
-
*/
|
|
575
|
-
temperature?: number | null | undefined;
|
|
576
|
-
/**
|
|
577
|
-
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
|
|
578
|
-
*/
|
|
579
|
-
topP?: number | null | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* The ID of a previous response to continue the conversation from. The model will have access to the previous response context.
|
|
582
|
-
*/
|
|
583
|
-
previousResponseId?: string | null | undefined;
|
|
584
|
-
/**
|
|
585
|
-
* Developer-provided instructions that the model should follow. Overwrites the default system message.
|
|
586
|
-
*/
|
|
587
|
-
instructions?: string | null | undefined;
|
|
588
|
-
/**
|
|
589
|
-
* Configuration for reasoning models
|
|
590
|
-
*/
|
|
591
|
-
reasoning?: Reasoning | null | undefined;
|
|
592
|
-
/**
|
|
593
|
-
* Configuration for thinking mode. Use `adaptive` for models that support it (e.g. Claude Opus 4.6, Sonnet 4.6), or `enabled` with `budget_tokens` for manual control.
|
|
594
|
-
*/
|
|
595
|
-
thinking?: components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema | components.ThinkingConfigAdaptiveSchema | null | undefined;
|
|
596
|
-
/**
|
|
597
|
-
* The maximum number of tokens that can be generated in the response
|
|
598
|
-
*/
|
|
599
|
-
maxOutputTokens?: number | null | undefined;
|
|
600
|
-
text?: CreateResponseText | null | undefined;
|
|
601
|
-
/**
|
|
602
|
-
* The actual user input(s) for the model. Can be a simple string, or an array of structured input items (messages, tool outputs) representing a conversation history or complex input.
|
|
603
|
-
*/
|
|
604
|
-
input: string | Array<CreateResponse23 | CreateResponse2RouterResponses2 | Two1>;
|
|
605
|
-
/**
|
|
606
|
-
* Specifies which (potentially large) fields to include in the response.
|
|
607
|
-
*/
|
|
608
|
-
include?: Array<Include> | null | undefined;
|
|
609
|
-
/**
|
|
610
|
-
* Whether to enable parallel function calling during tool use.
|
|
611
|
-
*/
|
|
612
|
-
parallelToolCalls?: boolean | null | undefined;
|
|
613
|
-
/**
|
|
614
|
-
* Whether to store this response for use in distillations or evals.
|
|
615
|
-
*/
|
|
616
|
-
store?: boolean | null | undefined;
|
|
617
|
-
/**
|
|
618
|
-
* Specifies the latency tier to use for processing the request. Defaults to "auto".
|
|
619
|
-
*/
|
|
620
|
-
serviceTier?: ServiceTier | null | undefined;
|
|
621
|
-
/**
|
|
622
|
-
* A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
623
|
-
*/
|
|
624
|
-
tools?: Array<Tools1 | Tools2 | Tools3 | Tools4> | undefined;
|
|
625
|
-
/**
|
|
626
|
-
* How the model should select which tool (or tools) to use when generating a response. Can be a string (`none`, `auto`, `required`) or an object to force a specific tool.
|
|
627
|
-
*/
|
|
628
|
-
toolChoice?: ToolChoice3 | ToolChoice4 | CreateResponseToolChoice2 | CreateResponseToolChoice1 | undefined;
|
|
629
|
-
stream?: boolean | undefined;
|
|
630
|
-
};
|
|
631
|
-
/**
|
|
632
|
-
* One server-sent event emitted while the response streams
|
|
633
|
-
*/
|
|
634
|
-
export type CreateResponseData = {
|
|
635
|
-
/**
|
|
636
|
-
* The type of streaming event
|
|
637
|
-
*/
|
|
638
|
-
type: string;
|
|
639
|
-
additionalProperties?: {
|
|
640
|
-
[k: string]: any;
|
|
641
|
-
} | undefined;
|
|
642
|
-
};
|
|
643
|
-
/**
|
|
644
|
-
* One server-sent event emitted while the response streams
|
|
645
|
-
*/
|
|
646
|
-
export type CreateResponseRouterResponsesResponseBody = {
|
|
647
|
-
/**
|
|
648
|
-
* One server-sent event emitted while the response streams
|
|
649
|
-
*/
|
|
650
|
-
data?: CreateResponseData | undefined;
|
|
651
|
-
};
|
|
652
|
-
/**
|
|
653
|
-
* The object type, which is always "response"
|
|
654
|
-
*/
|
|
655
|
-
export declare const CreateResponseObject: {
|
|
656
|
-
readonly Response: "response";
|
|
657
|
-
};
|
|
658
|
-
/**
|
|
659
|
-
* The object type, which is always "response"
|
|
660
|
-
*/
|
|
661
|
-
export type CreateResponseObject = ClosedEnum<typeof CreateResponseObject>;
|
|
662
|
-
/**
|
|
663
|
-
* The status of the response
|
|
664
|
-
*/
|
|
665
|
-
export declare const CreateResponseStatus: {
|
|
666
|
-
readonly Completed: "completed";
|
|
667
|
-
readonly Failed: "failed";
|
|
668
|
-
readonly InProgress: "in_progress";
|
|
669
|
-
readonly Cancelled: "cancelled";
|
|
670
|
-
readonly Queued: "queued";
|
|
671
|
-
readonly Incomplete: "incomplete";
|
|
672
|
-
};
|
|
673
|
-
/**
|
|
674
|
-
* The status of the response
|
|
675
|
-
*/
|
|
676
|
-
export type CreateResponseStatus = ClosedEnum<typeof CreateResponseStatus>;
|
|
677
|
-
/**
|
|
678
|
-
* The error that occurred, if any
|
|
679
|
-
*/
|
|
680
|
-
export type ErrorT = {
|
|
681
|
-
/**
|
|
682
|
-
* The error code
|
|
683
|
-
*/
|
|
684
|
-
code: string;
|
|
685
|
-
/**
|
|
686
|
-
* The error message
|
|
687
|
-
*/
|
|
688
|
-
message: string;
|
|
689
|
-
};
|
|
690
|
-
/**
|
|
691
|
-
* The reason the response is incomplete
|
|
692
|
-
*/
|
|
693
|
-
export declare const Reason: {
|
|
694
|
-
readonly MaxOutputTokens: "max_output_tokens";
|
|
695
|
-
readonly ContentFilter: "content_filter";
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* The reason the response is incomplete
|
|
699
|
-
*/
|
|
700
|
-
export type Reason = ClosedEnum<typeof Reason>;
|
|
701
|
-
/**
|
|
702
|
-
* Details about why the response is incomplete
|
|
703
|
-
*/
|
|
704
|
-
export type IncompleteDetails = {
|
|
705
|
-
/**
|
|
706
|
-
* The reason the response is incomplete
|
|
707
|
-
*/
|
|
708
|
-
reason: Reason;
|
|
709
|
-
};
|
|
710
|
-
/**
|
|
711
|
-
* The type of summary part
|
|
712
|
-
*/
|
|
713
|
-
export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type: {
|
|
714
|
-
readonly SummaryText: "summary_text";
|
|
715
|
-
};
|
|
716
|
-
/**
|
|
717
|
-
* The type of summary part
|
|
718
|
-
*/
|
|
719
|
-
export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type = ClosedEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type>;
|
|
720
|
-
/**
|
|
721
|
-
* A text summary of the reasoning
|
|
722
|
-
*/
|
|
723
|
-
export type OutputSummary = {
|
|
724
|
-
/**
|
|
725
|
-
* The type of summary part
|
|
726
|
-
*/
|
|
727
|
-
type: CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type;
|
|
728
|
-
/**
|
|
729
|
-
* The summary text
|
|
730
|
-
*/
|
|
731
|
-
text: string;
|
|
732
|
-
};
|
|
733
|
-
/**
|
|
734
|
-
* The status of the reasoning item
|
|
735
|
-
*/
|
|
736
|
-
export declare const CreateResponseOutputRouterResponsesResponse200Status: {
|
|
737
|
-
readonly InProgress: "in_progress";
|
|
738
|
-
readonly Completed: "completed";
|
|
739
|
-
readonly Incomplete: "incomplete";
|
|
740
|
-
readonly Failed: "failed";
|
|
741
|
-
};
|
|
742
|
-
/**
|
|
743
|
-
* The status of the reasoning item
|
|
744
|
-
*/
|
|
745
|
-
export type CreateResponseOutputRouterResponsesResponse200Status = ClosedEnum<typeof CreateResponseOutputRouterResponsesResponse200Status>;
|
|
746
|
-
/**
|
|
747
|
-
* A reasoning output item from the model
|
|
748
|
-
*/
|
|
749
|
-
export type Five = {
|
|
750
|
-
/**
|
|
751
|
-
* The unique identifier for this reasoning item
|
|
752
|
-
*/
|
|
753
|
-
id: string;
|
|
754
|
-
/**
|
|
755
|
-
* The type of output item
|
|
756
|
-
*/
|
|
757
|
-
type: "reasoning";
|
|
758
|
-
/**
|
|
759
|
-
* Summary of the reasoning
|
|
760
|
-
*/
|
|
761
|
-
summary?: Array<OutputSummary> | undefined;
|
|
762
|
-
/**
|
|
763
|
-
* Encrypted reasoning content
|
|
764
|
-
*/
|
|
765
|
-
encryptedContent?: string | null | undefined;
|
|
766
|
-
/**
|
|
767
|
-
* The status of the reasoning item
|
|
768
|
-
*/
|
|
769
|
-
status?: CreateResponseOutputRouterResponsesResponse200Status | undefined;
|
|
770
|
-
};
|
|
771
|
-
/**
|
|
772
|
-
* The status of the function call
|
|
773
|
-
*/
|
|
774
|
-
export declare const CreateResponseOutputRouterResponsesResponseStatus: {
|
|
775
|
-
readonly InProgress: "in_progress";
|
|
776
|
-
readonly Completed: "completed";
|
|
777
|
-
readonly Incomplete: "incomplete";
|
|
778
|
-
readonly Failed: "failed";
|
|
779
|
-
};
|
|
780
|
-
/**
|
|
781
|
-
* The status of the function call
|
|
782
|
-
*/
|
|
783
|
-
export type CreateResponseOutputRouterResponsesResponseStatus = ClosedEnum<typeof CreateResponseOutputRouterResponsesResponseStatus>;
|
|
784
|
-
/**
|
|
785
|
-
* A function tool call output
|
|
786
|
-
*/
|
|
787
|
-
export type Output4 = {
|
|
788
|
-
/**
|
|
789
|
-
* The unique identifier for this output item
|
|
790
|
-
*/
|
|
791
|
-
id: string;
|
|
792
|
-
/**
|
|
793
|
-
* The type of output item
|
|
794
|
-
*/
|
|
795
|
-
type: "function_call";
|
|
796
|
-
/**
|
|
797
|
-
* The ID of the function call
|
|
798
|
-
*/
|
|
799
|
-
callId: string;
|
|
800
|
-
/**
|
|
801
|
-
* The name of the function being called
|
|
802
|
-
*/
|
|
803
|
-
name: string;
|
|
804
|
-
/**
|
|
805
|
-
* The arguments to the function as a JSON string
|
|
806
|
-
*/
|
|
807
|
-
arguments: string;
|
|
808
|
-
/**
|
|
809
|
-
* The status of the function call
|
|
810
|
-
*/
|
|
811
|
-
status: CreateResponseOutputRouterResponsesResponseStatus;
|
|
812
|
-
};
|
|
813
|
-
/**
|
|
814
|
-
* The status of the file search
|
|
815
|
-
*/
|
|
816
|
-
export declare const CreateResponseOutputRouterResponsesStatus: {
|
|
817
|
-
readonly InProgress: "in_progress";
|
|
818
|
-
readonly Completed: "completed";
|
|
819
|
-
readonly Incomplete: "incomplete";
|
|
820
|
-
readonly Failed: "failed";
|
|
821
|
-
};
|
|
822
|
-
/**
|
|
823
|
-
* The status of the file search
|
|
824
|
-
*/
|
|
825
|
-
export type CreateResponseOutputRouterResponsesStatus = ClosedEnum<typeof CreateResponseOutputRouterResponsesStatus>;
|
|
826
|
-
/**
|
|
827
|
-
* A file search tool call output
|
|
828
|
-
*/
|
|
829
|
-
export type Output3 = {
|
|
830
|
-
/**
|
|
831
|
-
* The unique identifier for this output item
|
|
832
|
-
*/
|
|
833
|
-
id: string;
|
|
834
|
-
/**
|
|
835
|
-
* The type of output item
|
|
836
|
-
*/
|
|
837
|
-
type: "file_search_call";
|
|
838
|
-
/**
|
|
839
|
-
* The status of the file search
|
|
840
|
-
*/
|
|
841
|
-
status: CreateResponseOutputRouterResponsesStatus;
|
|
842
|
-
/**
|
|
843
|
-
* The search queries used
|
|
844
|
-
*/
|
|
845
|
-
queries?: Array<string> | undefined;
|
|
846
|
-
/**
|
|
847
|
-
* The file search results
|
|
848
|
-
*/
|
|
849
|
-
results?: any | undefined;
|
|
850
|
-
};
|
|
851
|
-
/**
|
|
852
|
-
* The status of the web search
|
|
853
|
-
*/
|
|
854
|
-
export declare const CreateResponseOutputStatus: {
|
|
855
|
-
readonly InProgress: "in_progress";
|
|
856
|
-
readonly Completed: "completed";
|
|
857
|
-
readonly Incomplete: "incomplete";
|
|
858
|
-
readonly Failed: "failed";
|
|
859
|
-
};
|
|
860
|
-
/**
|
|
861
|
-
* The status of the web search
|
|
862
|
-
*/
|
|
863
|
-
export type CreateResponseOutputStatus = ClosedEnum<typeof CreateResponseOutputStatus>;
|
|
864
|
-
/**
|
|
865
|
-
* The type of web search action
|
|
866
|
-
*/
|
|
867
|
-
export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType: {
|
|
868
|
-
readonly Search: "search";
|
|
869
|
-
readonly OpenPage: "open_page";
|
|
870
|
-
readonly Find: "find";
|
|
871
|
-
};
|
|
872
|
-
/**
|
|
873
|
-
* The type of web search action
|
|
874
|
-
*/
|
|
875
|
-
export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType>;
|
|
876
|
-
export type Sources = {
|
|
877
|
-
/**
|
|
878
|
-
* The source URL
|
|
879
|
-
*/
|
|
880
|
-
url: string;
|
|
881
|
-
/**
|
|
882
|
-
* The source title
|
|
883
|
-
*/
|
|
884
|
-
title: string;
|
|
885
|
-
};
|
|
886
|
-
/**
|
|
887
|
-
* The action performed by the web search
|
|
888
|
-
*/
|
|
889
|
-
export type Action = {
|
|
890
|
-
/**
|
|
891
|
-
* The type of web search action
|
|
892
|
-
*/
|
|
893
|
-
type: CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType;
|
|
894
|
-
/**
|
|
895
|
-
* The search query (for search action)
|
|
896
|
-
*/
|
|
897
|
-
query?: string | undefined;
|
|
898
|
-
/**
|
|
899
|
-
* The URL opened (for open_page action)
|
|
900
|
-
*/
|
|
901
|
-
url?: string | undefined;
|
|
902
|
-
/**
|
|
903
|
-
* The pattern to find (for find action)
|
|
904
|
-
*/
|
|
905
|
-
pattern?: string | undefined;
|
|
906
|
-
/**
|
|
907
|
-
* Sources from the web search
|
|
908
|
-
*/
|
|
909
|
-
sources?: Array<Sources> | undefined;
|
|
910
|
-
};
|
|
911
|
-
/**
|
|
912
|
-
* A web search tool call output
|
|
913
|
-
*/
|
|
914
|
-
export type Output2 = {
|
|
915
|
-
/**
|
|
916
|
-
* The unique identifier for this output item
|
|
917
|
-
*/
|
|
918
|
-
id: string;
|
|
919
|
-
/**
|
|
920
|
-
* The type of output item
|
|
921
|
-
*/
|
|
922
|
-
type: "web_search_call";
|
|
923
|
-
/**
|
|
924
|
-
* The status of the web search
|
|
925
|
-
*/
|
|
926
|
-
status: CreateResponseOutputStatus;
|
|
927
|
-
/**
|
|
928
|
-
* The action performed by the web search
|
|
929
|
-
*/
|
|
930
|
-
action?: Action | undefined;
|
|
931
|
-
};
|
|
932
|
-
/**
|
|
933
|
-
* The role of the message author
|
|
934
|
-
*/
|
|
935
|
-
export declare const OutputRole: {
|
|
936
|
-
readonly Assistant: "assistant";
|
|
937
|
-
};
|
|
938
|
-
/**
|
|
939
|
-
* The role of the message author
|
|
940
|
-
*/
|
|
941
|
-
export type OutputRole = ClosedEnum<typeof OutputRole>;
|
|
942
|
-
/**
|
|
943
|
-
* The status of the message
|
|
944
|
-
*/
|
|
945
|
-
export declare const OutputStatus: {
|
|
946
|
-
readonly InProgress: "in_progress";
|
|
947
|
-
readonly Completed: "completed";
|
|
948
|
-
readonly Incomplete: "incomplete";
|
|
949
|
-
readonly Failed: "failed";
|
|
950
|
-
};
|
|
951
|
-
/**
|
|
952
|
-
* The status of the message
|
|
953
|
-
*/
|
|
954
|
-
export type OutputStatus = ClosedEnum<typeof OutputStatus>;
|
|
955
|
-
/**
|
|
956
|
-
* A refusal content part from the model
|
|
957
|
-
*/
|
|
958
|
-
export type CreateResponseContentRouterResponses2 = {
|
|
959
|
-
/**
|
|
960
|
-
* The type of content part
|
|
961
|
-
*/
|
|
962
|
-
type: "refusal";
|
|
963
|
-
/**
|
|
964
|
-
* The refusal message
|
|
965
|
-
*/
|
|
966
|
-
refusal: string;
|
|
967
|
-
};
|
|
968
|
-
/**
|
|
969
|
-
* A citation to a file
|
|
970
|
-
*/
|
|
971
|
-
export type Annotations2 = {
|
|
972
|
-
type: "file_citation";
|
|
973
|
-
/**
|
|
974
|
-
* The index in the text where the citation appears
|
|
975
|
-
*/
|
|
976
|
-
index: number;
|
|
977
|
-
/**
|
|
978
|
-
* The ID of the file being cited
|
|
979
|
-
*/
|
|
980
|
-
fileId: string;
|
|
981
|
-
/**
|
|
982
|
-
* The name of the file being cited
|
|
983
|
-
*/
|
|
984
|
-
filename: string;
|
|
985
|
-
};
|
|
986
|
-
/**
|
|
987
|
-
* A citation to a URL
|
|
988
|
-
*/
|
|
989
|
-
export type Annotations1 = {
|
|
990
|
-
type: "url_citation";
|
|
991
|
-
/**
|
|
992
|
-
* The start index of the citation in the text
|
|
993
|
-
*/
|
|
994
|
-
startIndex: number;
|
|
995
|
-
/**
|
|
996
|
-
* The end index of the citation in the text
|
|
997
|
-
*/
|
|
998
|
-
endIndex: number;
|
|
999
|
-
/**
|
|
1000
|
-
* The URL being cited
|
|
1001
|
-
*/
|
|
1002
|
-
url: string;
|
|
1003
|
-
/**
|
|
1004
|
-
* The title of the cited resource
|
|
1005
|
-
*/
|
|
1006
|
-
title: string;
|
|
1007
|
-
/**
|
|
1008
|
-
* The text of the citation
|
|
1009
|
-
*/
|
|
1010
|
-
text?: string | undefined;
|
|
1011
|
-
};
|
|
1012
|
-
/**
|
|
1013
|
-
* An annotation in the output text
|
|
1014
|
-
*/
|
|
1015
|
-
export type ContentAnnotations = Annotations1 | Annotations2;
|
|
1016
|
-
/**
|
|
1017
|
-
* Text output from the model
|
|
1018
|
-
*/
|
|
1019
|
-
export type Content1 = {
|
|
1020
|
-
/**
|
|
1021
|
-
* The type of content part
|
|
1022
|
-
*/
|
|
1023
|
-
type: "output_text";
|
|
1024
|
-
/**
|
|
1025
|
-
* The text content
|
|
1026
|
-
*/
|
|
1027
|
-
text: string;
|
|
1028
|
-
/**
|
|
1029
|
-
* Annotations in the text such as citations
|
|
1030
|
-
*/
|
|
1031
|
-
annotations?: Array<Annotations1 | Annotations2> | undefined;
|
|
1032
|
-
/**
|
|
1033
|
-
* Log probabilities of the output tokens if requested
|
|
1034
|
-
*/
|
|
1035
|
-
logprobs?: Array<any> | null | undefined;
|
|
1036
|
-
};
|
|
1037
|
-
export type OutputContent = Content1 | CreateResponseContentRouterResponses2;
|
|
1038
|
-
/**
|
|
1039
|
-
* An assistant message output
|
|
1040
|
-
*/
|
|
1041
|
-
export type Output1 = {
|
|
1042
|
-
/**
|
|
1043
|
-
* The unique identifier for this message
|
|
1044
|
-
*/
|
|
1045
|
-
id: string;
|
|
1046
|
-
/**
|
|
1047
|
-
* The type of output item
|
|
1048
|
-
*/
|
|
1049
|
-
type: "message";
|
|
1050
|
-
/**
|
|
1051
|
-
* The role of the message author
|
|
1052
|
-
*/
|
|
1053
|
-
role: OutputRole;
|
|
1054
|
-
/**
|
|
1055
|
-
* The status of the message
|
|
1056
|
-
*/
|
|
1057
|
-
status: OutputStatus;
|
|
1058
|
-
/**
|
|
1059
|
-
* The content parts of the message
|
|
1060
|
-
*/
|
|
1061
|
-
content?: Array<Content1 | CreateResponseContentRouterResponses2> | undefined;
|
|
1062
|
-
};
|
|
1063
|
-
export type Output = Output1 | Output2 | Output3 | Output4 | Five;
|
|
1064
|
-
/**
|
|
1065
|
-
* Breakdown of input token usage
|
|
1066
|
-
*/
|
|
1067
|
-
export type CreateResponseInputTokensDetails = {
|
|
1068
|
-
/**
|
|
1069
|
-
* Number of tokens from cache
|
|
1070
|
-
*/
|
|
1071
|
-
cachedTokens?: number | undefined;
|
|
1072
|
-
};
|
|
1073
|
-
/**
|
|
1074
|
-
* Breakdown of output token usage
|
|
1075
|
-
*/
|
|
1076
|
-
export type OutputTokensDetails = {
|
|
1077
|
-
/**
|
|
1078
|
-
* Number of tokens used for reasoning (o3 models)
|
|
1079
|
-
*/
|
|
1080
|
-
reasoningTokens?: number | undefined;
|
|
1081
|
-
/**
|
|
1082
|
-
* Number of tokens generated by automatic prediction that were accepted
|
|
1083
|
-
*/
|
|
1084
|
-
acceptedPredictionTokens?: number | undefined;
|
|
1085
|
-
/**
|
|
1086
|
-
* Number of tokens generated by automatic prediction that were rejected
|
|
1087
|
-
*/
|
|
1088
|
-
rejectedPredictionTokens?: number | undefined;
|
|
1089
|
-
};
|
|
1090
|
-
/**
|
|
1091
|
-
* Usage statistics for the response
|
|
1092
|
-
*/
|
|
1093
|
-
export type CreateResponseUsage = {
|
|
1094
|
-
/**
|
|
1095
|
-
* Number of tokens in the input
|
|
1096
|
-
*/
|
|
1097
|
-
inputTokens?: number | undefined;
|
|
1098
|
-
/**
|
|
1099
|
-
* Number of tokens in the generated output
|
|
1100
|
-
*/
|
|
1101
|
-
outputTokens?: number | undefined;
|
|
1102
|
-
/**
|
|
1103
|
-
* Total number of tokens used in the request (input + output)
|
|
1104
|
-
*/
|
|
1105
|
-
totalTokens?: number | undefined;
|
|
1106
|
-
/**
|
|
1107
|
-
* Breakdown of input token usage
|
|
1108
|
-
*/
|
|
1109
|
-
inputTokensDetails?: CreateResponseInputTokensDetails | undefined;
|
|
1110
|
-
/**
|
|
1111
|
-
* Breakdown of output token usage
|
|
1112
|
-
*/
|
|
1113
|
-
outputTokensDetails?: OutputTokensDetails | undefined;
|
|
1114
|
-
};
|
|
1115
|
-
export declare const CreateResponseToolChoiceRouterResponsesResponseType: {
|
|
1116
|
-
readonly Function: "function";
|
|
1117
|
-
};
|
|
1118
|
-
export type CreateResponseToolChoiceRouterResponsesResponseType = ClosedEnum<typeof CreateResponseToolChoiceRouterResponsesResponseType>;
|
|
1119
|
-
export type CreateResponseToolChoiceFunction = {
|
|
1120
|
-
name: string;
|
|
1121
|
-
};
|
|
1122
|
-
export type CreateResponseToolChoiceRouterResponses2 = {
|
|
1123
|
-
type: CreateResponseToolChoiceRouterResponsesResponseType;
|
|
1124
|
-
function: CreateResponseToolChoiceFunction;
|
|
1125
|
-
};
|
|
1126
|
-
export declare const CreateResponseToolChoiceRouterResponses1: {
|
|
1127
|
-
readonly None: "none";
|
|
1128
|
-
readonly Auto: "auto";
|
|
1129
|
-
readonly Required: "required";
|
|
1130
|
-
};
|
|
1131
|
-
export type CreateResponseToolChoiceRouterResponses1 = ClosedEnum<typeof CreateResponseToolChoiceRouterResponses1>;
|
|
1132
|
-
/**
|
|
1133
|
-
* Controls which (if any) tool is called by the model
|
|
1134
|
-
*/
|
|
1135
|
-
export type CreateResponseRouterResponsesToolChoice = CreateResponseToolChoiceRouterResponses2 | CreateResponseToolChoiceRouterResponses1;
|
|
1136
|
-
/**
|
|
1137
|
-
* The ranking algorithm
|
|
1138
|
-
*/
|
|
1139
|
-
export declare const ToolsRanker: {
|
|
1140
|
-
readonly Auto: "auto";
|
|
1141
|
-
readonly Default20240821: "default_2024_08_21";
|
|
1142
|
-
};
|
|
1143
|
-
/**
|
|
1144
|
-
* The ranking algorithm
|
|
1145
|
-
*/
|
|
1146
|
-
export type ToolsRanker = ClosedEnum<typeof ToolsRanker>;
|
|
1147
|
-
/**
|
|
1148
|
-
* Options for ranking search results
|
|
1149
|
-
*/
|
|
1150
|
-
export type ToolsRankingOptions = {
|
|
1151
|
-
/**
|
|
1152
|
-
* The ranking algorithm
|
|
1153
|
-
*/
|
|
1154
|
-
ranker?: ToolsRanker | undefined;
|
|
1155
|
-
/**
|
|
1156
|
-
* Minimum relevance score
|
|
1157
|
-
*/
|
|
1158
|
-
scoreThreshold?: number | undefined;
|
|
1159
|
-
};
|
|
1160
|
-
/**
|
|
1161
|
-
* Configuration for file search tool
|
|
1162
|
-
*/
|
|
1163
|
-
export type CreateResponseTools4 = {
|
|
1164
|
-
/**
|
|
1165
|
-
* The type of tool
|
|
1166
|
-
*/
|
|
1167
|
-
type: "file_search";
|
|
1168
|
-
/**
|
|
1169
|
-
* The vector stores to search
|
|
1170
|
-
*/
|
|
1171
|
-
vectorStoreIds?: Array<string> | undefined;
|
|
1172
|
-
/**
|
|
1173
|
-
* Maximum number of results to return
|
|
1174
|
-
*/
|
|
1175
|
-
maxNumResults?: number | undefined;
|
|
1176
|
-
/**
|
|
1177
|
-
* Filters to apply to the search
|
|
1178
|
-
*/
|
|
1179
|
-
filters?: any | undefined;
|
|
1180
|
-
/**
|
|
1181
|
-
* Options for ranking search results
|
|
1182
|
-
*/
|
|
1183
|
-
rankingOptions?: ToolsRankingOptions | undefined;
|
|
1184
|
-
};
|
|
1185
|
-
/**
|
|
1186
|
-
* Amount of context to retrieve for each search result
|
|
1187
|
-
*/
|
|
1188
|
-
export declare const CreateResponseToolsRouterResponsesSearchContextSize: {
|
|
1189
|
-
readonly Low: "low";
|
|
1190
|
-
readonly Medium: "medium";
|
|
1191
|
-
readonly High: "high";
|
|
1192
|
-
};
|
|
1193
|
-
/**
|
|
1194
|
-
* Amount of context to retrieve for each search result
|
|
1195
|
-
*/
|
|
1196
|
-
export type CreateResponseToolsRouterResponsesSearchContextSize = ClosedEnum<typeof CreateResponseToolsRouterResponsesSearchContextSize>;
|
|
1197
|
-
/**
|
|
1198
|
-
* The type of location
|
|
1199
|
-
*/
|
|
1200
|
-
export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type: {
|
|
1201
|
-
readonly Approximate: "approximate";
|
|
1202
|
-
readonly Exact: "exact";
|
|
1203
|
-
};
|
|
1204
|
-
/**
|
|
1205
|
-
* The type of location
|
|
1206
|
-
*/
|
|
1207
|
-
export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type>;
|
|
1208
|
-
/**
|
|
1209
|
-
* User location for search localization
|
|
1210
|
-
*/
|
|
1211
|
-
export type CreateResponseToolsRouterResponsesUserLocation = {
|
|
1212
|
-
/**
|
|
1213
|
-
* The type of location
|
|
1214
|
-
*/
|
|
1215
|
-
type?: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type | undefined;
|
|
1216
|
-
/**
|
|
1217
|
-
* The city name
|
|
1218
|
-
*/
|
|
1219
|
-
city?: string | null | undefined;
|
|
1220
|
-
/**
|
|
1221
|
-
* The country code
|
|
1222
|
-
*/
|
|
1223
|
-
country?: string | undefined;
|
|
1224
|
-
/**
|
|
1225
|
-
* The region/state
|
|
1226
|
-
*/
|
|
1227
|
-
region?: string | null | undefined;
|
|
1228
|
-
/**
|
|
1229
|
-
* The timezone
|
|
1230
|
-
*/
|
|
1231
|
-
timezone?: string | null | undefined;
|
|
1232
|
-
};
|
|
1233
|
-
/**
|
|
1234
|
-
* Filters for the web search
|
|
1235
|
-
*/
|
|
1236
|
-
export type ToolsFilters = {
|
|
1237
|
-
/**
|
|
1238
|
-
* List of allowed domains for search
|
|
1239
|
-
*/
|
|
1240
|
-
allowedDomains?: Array<string> | null | undefined;
|
|
1241
|
-
};
|
|
1242
|
-
/**
|
|
1243
|
-
* Configuration for web search tool
|
|
1244
|
-
*/
|
|
1245
|
-
export type CreateResponseTools3 = {
|
|
1246
|
-
/**
|
|
1247
|
-
* The type of tool
|
|
1248
|
-
*/
|
|
1249
|
-
type: "web_search";
|
|
1250
|
-
/**
|
|
1251
|
-
* Amount of context to retrieve for each search result
|
|
1252
|
-
*/
|
|
1253
|
-
searchContextSize?: CreateResponseToolsRouterResponsesSearchContextSize | undefined;
|
|
1254
|
-
/**
|
|
1255
|
-
* User location for search localization
|
|
1256
|
-
*/
|
|
1257
|
-
userLocation?: CreateResponseToolsRouterResponsesUserLocation | undefined;
|
|
1258
|
-
/**
|
|
1259
|
-
* Filters for the web search
|
|
1260
|
-
*/
|
|
1261
|
-
filters?: ToolsFilters | null | undefined;
|
|
1262
|
-
};
|
|
1263
|
-
/**
|
|
1264
|
-
* Amount of context to retrieve for each search result
|
|
1265
|
-
*/
|
|
1266
|
-
export declare const CreateResponseToolsSearchContextSize: {
|
|
1267
|
-
readonly Low: "low";
|
|
1268
|
-
readonly Medium: "medium";
|
|
1269
|
-
readonly High: "high";
|
|
1270
|
-
};
|
|
1271
|
-
/**
|
|
1272
|
-
* Amount of context to retrieve for each search result
|
|
1273
|
-
*/
|
|
1274
|
-
export type CreateResponseToolsSearchContextSize = ClosedEnum<typeof CreateResponseToolsSearchContextSize>;
|
|
1275
|
-
/**
|
|
1276
|
-
* The type of location
|
|
1277
|
-
*/
|
|
1278
|
-
export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type: {
|
|
1279
|
-
readonly Approximate: "approximate";
|
|
1280
|
-
readonly Exact: "exact";
|
|
1281
|
-
};
|
|
1282
|
-
/**
|
|
1283
|
-
* The type of location
|
|
1284
|
-
*/
|
|
1285
|
-
export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type>;
|
|
1286
|
-
/**
|
|
1287
|
-
* User location for search localization
|
|
1288
|
-
*/
|
|
1289
|
-
export type CreateResponseToolsUserLocation = {
|
|
1290
|
-
/**
|
|
1291
|
-
* The type of location
|
|
1292
|
-
*/
|
|
1293
|
-
type?: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type | undefined;
|
|
1294
|
-
/**
|
|
1295
|
-
* The city name
|
|
1296
|
-
*/
|
|
1297
|
-
city?: string | null | undefined;
|
|
1298
|
-
/**
|
|
1299
|
-
* The country code
|
|
1300
|
-
*/
|
|
1301
|
-
country?: string | undefined;
|
|
1302
|
-
/**
|
|
1303
|
-
* The region/state
|
|
1304
|
-
*/
|
|
1305
|
-
region?: string | null | undefined;
|
|
1306
|
-
/**
|
|
1307
|
-
* The timezone
|
|
1308
|
-
*/
|
|
1309
|
-
timezone?: string | null | undefined;
|
|
1310
|
-
};
|
|
1311
|
-
/**
|
|
1312
|
-
* Configuration for web search preview tool
|
|
1313
|
-
*/
|
|
1314
|
-
export type CreateResponseTools2 = {
|
|
1315
|
-
/**
|
|
1316
|
-
* The type of tool
|
|
1317
|
-
*/
|
|
1318
|
-
type: "web_search_preview";
|
|
1319
|
-
/**
|
|
1320
|
-
* List of domains to restrict search to
|
|
1321
|
-
*/
|
|
1322
|
-
domains?: Array<string> | undefined;
|
|
1323
|
-
/**
|
|
1324
|
-
* Amount of context to retrieve for each search result
|
|
1325
|
-
*/
|
|
1326
|
-
searchContextSize?: CreateResponseToolsSearchContextSize | undefined;
|
|
1327
|
-
/**
|
|
1328
|
-
* User location for search localization
|
|
1329
|
-
*/
|
|
1330
|
-
userLocation?: CreateResponseToolsUserLocation | undefined;
|
|
1331
|
-
};
|
|
1332
|
-
/**
|
|
1333
|
-
* A function tool definition
|
|
1334
|
-
*/
|
|
1335
|
-
export type CreateResponseTools1 = {
|
|
1336
|
-
/**
|
|
1337
|
-
* The type of tool
|
|
1338
|
-
*/
|
|
1339
|
-
type: "function";
|
|
1340
|
-
/**
|
|
1341
|
-
* The name of the function to be called
|
|
1342
|
-
*/
|
|
1343
|
-
name: string;
|
|
1344
|
-
/**
|
|
1345
|
-
* A description of what the function does
|
|
1346
|
-
*/
|
|
1347
|
-
description?: string | null | undefined;
|
|
1348
|
-
/**
|
|
1349
|
-
* The parameters the function accepts as a JSON Schema object
|
|
1350
|
-
*/
|
|
1351
|
-
parameters?: {
|
|
1352
|
-
[k: string]: any;
|
|
1353
|
-
} | null | undefined;
|
|
1354
|
-
/**
|
|
1355
|
-
* Whether to enable strict schema adherence when generating function calls
|
|
1356
|
-
*/
|
|
1357
|
-
strict: boolean | null;
|
|
1358
|
-
};
|
|
1359
|
-
export type CreateResponseRouterResponsesTools = CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3 | CreateResponseTools4;
|
|
1360
|
-
export type CreateResponseReasoning = {
|
|
1361
|
-
effort?: string | null | undefined;
|
|
1362
|
-
summary?: string | null | undefined;
|
|
1363
|
-
};
|
|
1364
|
-
export type CreateResponseFormat3 = {
|
|
1365
|
-
/**
|
|
1366
|
-
* Ensures the response matches a supplied JSON schema
|
|
1367
|
-
*/
|
|
1368
|
-
type: "json_schema";
|
|
1369
|
-
/**
|
|
1370
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
1371
|
-
*/
|
|
1372
|
-
name: string;
|
|
1373
|
-
/**
|
|
1374
|
-
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
1375
|
-
*/
|
|
1376
|
-
description?: string | undefined;
|
|
1377
|
-
/**
|
|
1378
|
-
* The JSON schema to validate the response against
|
|
1379
|
-
*/
|
|
1380
|
-
schema: {
|
|
1381
|
-
[k: string]: any;
|
|
1382
|
-
};
|
|
1383
|
-
/**
|
|
1384
|
-
* Whether to enable strict `schema` adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when `strict` is `true`
|
|
1385
|
-
*/
|
|
1386
|
-
strict: boolean;
|
|
1387
|
-
};
|
|
1388
|
-
export type CreateResponseFormat2 = {
|
|
1389
|
-
/**
|
|
1390
|
-
* Ensures the response is a valid JSON object
|
|
1391
|
-
*/
|
|
1392
|
-
type: "json_object";
|
|
1393
|
-
};
|
|
1394
|
-
export type CreateResponseFormat1 = {
|
|
1395
|
-
/**
|
|
1396
|
-
* Plain text response format
|
|
1397
|
-
*/
|
|
1398
|
-
type: "text";
|
|
1399
|
-
};
|
|
1400
|
-
export type CreateResponseRouterResponsesFormat = CreateResponseFormat1 | CreateResponseFormat2 | CreateResponseFormat3;
|
|
1401
|
-
export type CreateResponseRouterResponsesText = {
|
|
1402
|
-
format: CreateResponseFormat1 | CreateResponseFormat2 | CreateResponseFormat3;
|
|
1403
|
-
};
|
|
1404
|
-
/**
|
|
1405
|
-
* Controls how the model handles inputs longer than the maximum token length
|
|
1406
|
-
*/
|
|
1407
|
-
export declare const Truncation: {
|
|
1408
|
-
readonly Auto: "auto";
|
|
1409
|
-
readonly Disabled: "disabled";
|
|
1410
|
-
};
|
|
1411
|
-
/**
|
|
1412
|
-
* Controls how the model handles inputs longer than the maximum token length
|
|
1413
|
-
*/
|
|
1414
|
-
export type Truncation = ClosedEnum<typeof Truncation>;
|
|
1415
|
-
/**
|
|
1416
|
-
* The service tier used for processing the request
|
|
1417
|
-
*/
|
|
1418
|
-
export declare const CreateResponseServiceTier: {
|
|
1419
|
-
readonly Auto: "auto";
|
|
1420
|
-
readonly Default: "default";
|
|
1421
|
-
readonly Flex: "flex";
|
|
1422
|
-
readonly Scale: "scale";
|
|
1423
|
-
readonly Priority: "priority";
|
|
1424
|
-
};
|
|
1425
|
-
/**
|
|
1426
|
-
* The service tier used for processing the request
|
|
1427
|
-
*/
|
|
1428
|
-
export type CreateResponseServiceTier = ClosedEnum<typeof CreateResponseServiceTier>;
|
|
1429
|
-
/**
|
|
1430
|
-
* Represents the completed model response returned when `stream` is false
|
|
1431
|
-
*/
|
|
1432
|
-
export type CreateResponseResponseBody = {
|
|
1433
|
-
/**
|
|
1434
|
-
* The unique identifier for the response
|
|
1435
|
-
*/
|
|
1436
|
-
id: string;
|
|
1437
|
-
/**
|
|
1438
|
-
* The object type, which is always "response"
|
|
1439
|
-
*/
|
|
1440
|
-
object: CreateResponseObject;
|
|
1441
|
-
/**
|
|
1442
|
-
* The Unix timestamp (in seconds) of when the response was created
|
|
1443
|
-
*/
|
|
1444
|
-
createdAt: number;
|
|
1445
|
-
/**
|
|
1446
|
-
* The status of the response
|
|
1447
|
-
*/
|
|
1448
|
-
status: CreateResponseStatus;
|
|
1449
|
-
/**
|
|
1450
|
-
* The error that occurred, if any
|
|
1451
|
-
*/
|
|
1452
|
-
error?: ErrorT | null | undefined;
|
|
1453
|
-
/**
|
|
1454
|
-
* Details about why the response is incomplete
|
|
1455
|
-
*/
|
|
1456
|
-
incompleteDetails: IncompleteDetails | null;
|
|
1457
|
-
/**
|
|
1458
|
-
* The model used to generate the response
|
|
1459
|
-
*/
|
|
1460
|
-
model: string;
|
|
1461
|
-
/**
|
|
1462
|
-
* The instructions provided for the response
|
|
1463
|
-
*/
|
|
1464
|
-
instructions?: string | null | undefined;
|
|
1465
|
-
/**
|
|
1466
|
-
* The list of output items generated by the model
|
|
1467
|
-
*/
|
|
1468
|
-
output: Array<Output1 | Output2 | Output3 | Output4 | Five>;
|
|
1469
|
-
/**
|
|
1470
|
-
* A convenience field with the concatenated text from all text content parts
|
|
1471
|
-
*/
|
|
1472
|
-
outputText?: string | null | undefined;
|
|
1473
|
-
/**
|
|
1474
|
-
* Usage statistics for the response
|
|
1475
|
-
*/
|
|
1476
|
-
usage?: CreateResponseUsage | undefined;
|
|
1477
|
-
temperature?: number | null | undefined;
|
|
1478
|
-
topP?: number | null | undefined;
|
|
1479
|
-
maxOutputTokens?: number | null | undefined;
|
|
1480
|
-
parallelToolCalls: boolean;
|
|
1481
|
-
previousResponseId?: string | null | undefined;
|
|
1482
|
-
metadata?: {
|
|
1483
|
-
[k: string]: string;
|
|
1484
|
-
} | undefined;
|
|
1485
|
-
/**
|
|
1486
|
-
* Controls which (if any) tool is called by the model
|
|
1487
|
-
*/
|
|
1488
|
-
toolChoice?: CreateResponseToolChoiceRouterResponses2 | CreateResponseToolChoiceRouterResponses1 | undefined;
|
|
1489
|
-
tools?: Array<CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3 | CreateResponseTools4> | undefined;
|
|
1490
|
-
reasoning?: CreateResponseReasoning | null | undefined;
|
|
1491
|
-
store?: boolean | undefined;
|
|
1492
|
-
text?: CreateResponseRouterResponsesText | undefined;
|
|
1493
|
-
/**
|
|
1494
|
-
* Controls how the model handles inputs longer than the maximum token length
|
|
1495
|
-
*/
|
|
1496
|
-
truncation?: Truncation | null | undefined;
|
|
1497
|
-
/**
|
|
1498
|
-
* A unique identifier representing your end-user
|
|
1499
|
-
*/
|
|
1500
|
-
user?: string | null | undefined;
|
|
1501
|
-
/**
|
|
1502
|
-
* The service tier used for processing the request
|
|
1503
|
-
*/
|
|
1504
|
-
serviceTier?: CreateResponseServiceTier | null | undefined;
|
|
1505
|
-
/**
|
|
1506
|
-
* Whether the response was processed in the background
|
|
1507
|
-
*/
|
|
1508
|
-
background?: boolean | null | undefined;
|
|
1509
|
-
/**
|
|
1510
|
-
* The number of top log probabilities to return for each output token
|
|
1511
|
-
*/
|
|
1512
|
-
topLogprobs?: number | null | undefined;
|
|
1513
|
-
/**
|
|
1514
|
-
* Whether to return log probabilities of the output tokens
|
|
1515
|
-
*/
|
|
1516
|
-
logprobs?: boolean | null | undefined;
|
|
1517
|
-
};
|
|
1518
|
-
export type CreateResponseResponse = CreateResponseResponseBody | EventStream<CreateResponseRouterResponsesResponseBody>;
|
|
1519
|
-
/** @internal */
|
|
1520
|
-
export declare const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort>;
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export declare const Summary$outboundSchema: z.ZodNativeEnum<typeof Summary>;
|
|
1523
|
-
/** @internal */
|
|
1524
|
-
export type Reasoning$Outbound = {
|
|
1525
|
-
effort?: string | undefined;
|
|
1526
|
-
summary?: string | null | undefined;
|
|
1527
|
-
};
|
|
1528
|
-
/** @internal */
|
|
1529
|
-
export declare const Reasoning$outboundSchema: z.ZodType<Reasoning$Outbound, z.ZodTypeDef, Reasoning>;
|
|
1530
|
-
export declare function reasoningToJSON(reasoning: Reasoning): string;
|
|
1531
|
-
/** @internal */
|
|
1532
|
-
export type CreateResponseThinking$Outbound = components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound | components.ThinkingConfigAdaptiveSchema$Outbound;
|
|
1533
|
-
/** @internal */
|
|
1534
|
-
export declare const CreateResponseThinking$outboundSchema: z.ZodType<CreateResponseThinking$Outbound, z.ZodTypeDef, CreateResponseThinking>;
|
|
1535
|
-
export declare function createResponseThinkingToJSON(createResponseThinking: CreateResponseThinking): string;
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export type Format3$Outbound = {
|
|
1538
|
-
type: "json_schema";
|
|
1539
|
-
name: string;
|
|
1540
|
-
description?: string | undefined;
|
|
1541
|
-
schema: {
|
|
1542
|
-
[k: string]: any;
|
|
1543
|
-
};
|
|
1544
|
-
strict: boolean;
|
|
1545
|
-
};
|
|
1546
|
-
/** @internal */
|
|
1547
|
-
export declare const Format3$outboundSchema: z.ZodType<Format3$Outbound, z.ZodTypeDef, Format3>;
|
|
1548
|
-
export declare function format3ToJSON(format3: Format3): string;
|
|
1549
|
-
/** @internal */
|
|
1550
|
-
export type Format2$Outbound = {
|
|
1551
|
-
type: "json_object";
|
|
1552
|
-
};
|
|
1553
|
-
/** @internal */
|
|
1554
|
-
export declare const Format2$outboundSchema: z.ZodType<Format2$Outbound, z.ZodTypeDef, Format2>;
|
|
1555
|
-
export declare function format2ToJSON(format2: Format2): string;
|
|
1556
|
-
/** @internal */
|
|
1557
|
-
export type Format1$Outbound = {
|
|
1558
|
-
type: "text";
|
|
1559
|
-
};
|
|
1560
|
-
/** @internal */
|
|
1561
|
-
export declare const Format1$outboundSchema: z.ZodType<Format1$Outbound, z.ZodTypeDef, Format1>;
|
|
1562
|
-
export declare function format1ToJSON(format1: Format1): string;
|
|
1563
|
-
/** @internal */
|
|
1564
|
-
export type CreateResponseFormat$Outbound = Format1$Outbound | Format2$Outbound | Format3$Outbound;
|
|
1565
|
-
/** @internal */
|
|
1566
|
-
export declare const CreateResponseFormat$outboundSchema: z.ZodType<CreateResponseFormat$Outbound, z.ZodTypeDef, CreateResponseFormat>;
|
|
1567
|
-
export declare function createResponseFormatToJSON(createResponseFormat: CreateResponseFormat): string;
|
|
1568
|
-
/** @internal */
|
|
1569
|
-
export type CreateResponseText$Outbound = {
|
|
1570
|
-
format: Format1$Outbound | Format2$Outbound | Format3$Outbound;
|
|
1571
|
-
};
|
|
1572
|
-
/** @internal */
|
|
1573
|
-
export declare const CreateResponseText$outboundSchema: z.ZodType<CreateResponseText$Outbound, z.ZodTypeDef, CreateResponseText>;
|
|
1574
|
-
export declare function createResponseTextToJSON(createResponseText: CreateResponseText): string;
|
|
1575
|
-
/** @internal */
|
|
1576
|
-
export declare const CreateResponse2RouterResponsesRequestRequestBodyInputType$outboundSchema: z.ZodNativeEnum<typeof CreateResponse2RouterResponsesRequestRequestBodyInputType>;
|
|
1577
|
-
/** @internal */
|
|
1578
|
-
export type CreateResponse23$Outbound = {
|
|
1579
|
-
type: string;
|
|
1580
|
-
call_id: string;
|
|
1581
|
-
id: string;
|
|
1582
|
-
name: string;
|
|
1583
|
-
arguments: string;
|
|
1584
|
-
status: string;
|
|
1585
|
-
};
|
|
1586
|
-
/** @internal */
|
|
1587
|
-
export declare const CreateResponse23$outboundSchema: z.ZodType<CreateResponse23$Outbound, z.ZodTypeDef, CreateResponse23>;
|
|
1588
|
-
export declare function createResponse23ToJSON(createResponse23: CreateResponse23): string;
|
|
1589
|
-
/** @internal */
|
|
1590
|
-
export declare const CreateResponse2RouterResponsesRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateResponse2RouterResponsesRequestRequestBodyType>;
|
|
1591
|
-
/** @internal */
|
|
1592
|
-
export type CreateResponse2RouterResponses2$Outbound = {
|
|
1593
|
-
type: string;
|
|
1594
|
-
call_id: string;
|
|
1595
|
-
output: string;
|
|
1596
|
-
};
|
|
1597
|
-
/** @internal */
|
|
1598
|
-
export declare const CreateResponse2RouterResponses2$outboundSchema: z.ZodType<CreateResponse2RouterResponses2$Outbound, z.ZodTypeDef, CreateResponse2RouterResponses2>;
|
|
1599
|
-
export declare function createResponse2RouterResponses2ToJSON(createResponse2RouterResponses2: CreateResponse2RouterResponses2): string;
|
|
1600
|
-
/** @internal */
|
|
1601
|
-
export declare const TwoRole$outboundSchema: z.ZodNativeEnum<typeof TwoRole>;
|
|
1602
|
-
/** @internal */
|
|
1603
|
-
export type Two3$Outbound = {
|
|
1604
|
-
type: "input_file";
|
|
1605
|
-
file_data?: string | undefined;
|
|
1606
|
-
file_id?: string | undefined;
|
|
1607
|
-
filename?: string | undefined;
|
|
1608
|
-
file_url?: string | undefined;
|
|
1609
|
-
};
|
|
1610
|
-
/** @internal */
|
|
1611
|
-
export declare const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3>;
|
|
1612
|
-
export declare function two3ToJSON(two3: Two3): string;
|
|
1613
|
-
/** @internal */
|
|
1614
|
-
export declare const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail>;
|
|
1615
|
-
/** @internal */
|
|
1616
|
-
export type CreateResponse22$Outbound = {
|
|
1617
|
-
type: "input_image";
|
|
1618
|
-
detail: string;
|
|
1619
|
-
file_id?: string | null | undefined;
|
|
1620
|
-
image_url?: string | null | undefined;
|
|
1621
|
-
};
|
|
1622
|
-
/** @internal */
|
|
1623
|
-
export declare const CreateResponse22$outboundSchema: z.ZodType<CreateResponse22$Outbound, z.ZodTypeDef, CreateResponse22>;
|
|
1624
|
-
export declare function createResponse22ToJSON(createResponse22: CreateResponse22): string;
|
|
1625
|
-
/** @internal */
|
|
1626
|
-
export type CreateResponse21$Outbound = {
|
|
1627
|
-
type: "input_text";
|
|
1628
|
-
text: string;
|
|
1629
|
-
};
|
|
1630
|
-
/** @internal */
|
|
1631
|
-
export declare const CreateResponse21$outboundSchema: z.ZodType<CreateResponse21$Outbound, z.ZodTypeDef, CreateResponse21>;
|
|
1632
|
-
export declare function createResponse21ToJSON(createResponse21: CreateResponse21): string;
|
|
1633
|
-
/** @internal */
|
|
1634
|
-
export type CreateResponseContent2$Outbound = CreateResponse21$Outbound | CreateResponse22$Outbound | Two3$Outbound;
|
|
1635
|
-
/** @internal */
|
|
1636
|
-
export declare const CreateResponseContent2$outboundSchema: z.ZodType<CreateResponseContent2$Outbound, z.ZodTypeDef, CreateResponseContent2>;
|
|
1637
|
-
export declare function createResponseContent2ToJSON(createResponseContent2: CreateResponseContent2): string;
|
|
1638
|
-
/** @internal */
|
|
1639
|
-
export type TwoContent$Outbound = string | Array<CreateResponse21$Outbound | CreateResponse22$Outbound | Two3$Outbound>;
|
|
1640
|
-
/** @internal */
|
|
1641
|
-
export declare const TwoContent$outboundSchema: z.ZodType<TwoContent$Outbound, z.ZodTypeDef, TwoContent>;
|
|
1642
|
-
export declare function twoContentToJSON(twoContent: TwoContent): string;
|
|
1643
|
-
/** @internal */
|
|
1644
|
-
export type Two1$Outbound = {
|
|
1645
|
-
role: string;
|
|
1646
|
-
content: string | Array<CreateResponse21$Outbound | CreateResponse22$Outbound | Two3$Outbound>;
|
|
1647
|
-
};
|
|
1648
|
-
/** @internal */
|
|
1649
|
-
export declare const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1>;
|
|
1650
|
-
export declare function two1ToJSON(two1: Two1): string;
|
|
1651
|
-
/** @internal */
|
|
1652
|
-
export type Input2$Outbound = CreateResponse23$Outbound | CreateResponse2RouterResponses2$Outbound | Two1$Outbound;
|
|
1653
|
-
/** @internal */
|
|
1654
|
-
export declare const Input2$outboundSchema: z.ZodType<Input2$Outbound, z.ZodTypeDef, Input2>;
|
|
1655
|
-
export declare function input2ToJSON(input2: Input2): string;
|
|
1656
|
-
/** @internal */
|
|
1657
|
-
export type CreateResponseInput$Outbound = string | Array<CreateResponse23$Outbound | CreateResponse2RouterResponses2$Outbound | Two1$Outbound>;
|
|
1658
|
-
/** @internal */
|
|
1659
|
-
export declare const CreateResponseInput$outboundSchema: z.ZodType<CreateResponseInput$Outbound, z.ZodTypeDef, CreateResponseInput>;
|
|
1660
|
-
export declare function createResponseInputToJSON(createResponseInput: CreateResponseInput): string;
|
|
1661
|
-
/** @internal */
|
|
1662
|
-
export declare const Include$outboundSchema: z.ZodNativeEnum<typeof Include>;
|
|
1663
|
-
/** @internal */
|
|
1664
|
-
export declare const ServiceTier$outboundSchema: z.ZodNativeEnum<typeof ServiceTier>;
|
|
1665
|
-
/** @internal */
|
|
1666
|
-
export declare const Ranker$outboundSchema: z.ZodNativeEnum<typeof Ranker>;
|
|
1667
|
-
/** @internal */
|
|
1668
|
-
export type RankingOptions$Outbound = {
|
|
1669
|
-
ranker?: string | undefined;
|
|
1670
|
-
score_threshold?: number | undefined;
|
|
1671
|
-
};
|
|
1672
|
-
/** @internal */
|
|
1673
|
-
export declare const RankingOptions$outboundSchema: z.ZodType<RankingOptions$Outbound, z.ZodTypeDef, RankingOptions>;
|
|
1674
|
-
export declare function rankingOptionsToJSON(rankingOptions: RankingOptions): string;
|
|
1675
|
-
/** @internal */
|
|
1676
|
-
export type Tools4$Outbound = {
|
|
1677
|
-
type: "file_search";
|
|
1678
|
-
vector_store_ids?: Array<string> | undefined;
|
|
1679
|
-
max_num_results?: number | undefined;
|
|
1680
|
-
filters?: any | undefined;
|
|
1681
|
-
ranking_options?: RankingOptions$Outbound | undefined;
|
|
1682
|
-
};
|
|
1683
|
-
/** @internal */
|
|
1684
|
-
export declare const Tools4$outboundSchema: z.ZodType<Tools4$Outbound, z.ZodTypeDef, Tools4>;
|
|
1685
|
-
export declare function tools4ToJSON(tools4: Tools4): string;
|
|
1686
|
-
/** @internal */
|
|
1687
|
-
export declare const ToolsSearchContextSize$outboundSchema: z.ZodNativeEnum<typeof ToolsSearchContextSize>;
|
|
1688
|
-
/** @internal */
|
|
1689
|
-
export declare const CreateResponseToolsRouterResponsesRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesRequestRequestBodyType>;
|
|
1690
|
-
/** @internal */
|
|
1691
|
-
export type ToolsUserLocation$Outbound = {
|
|
1692
|
-
type?: string | undefined;
|
|
1693
|
-
city?: string | null | undefined;
|
|
1694
|
-
country?: string | undefined;
|
|
1695
|
-
region?: string | null | undefined;
|
|
1696
|
-
timezone?: string | null | undefined;
|
|
1697
|
-
};
|
|
1698
|
-
/** @internal */
|
|
1699
|
-
export declare const ToolsUserLocation$outboundSchema: z.ZodType<ToolsUserLocation$Outbound, z.ZodTypeDef, ToolsUserLocation>;
|
|
1700
|
-
export declare function toolsUserLocationToJSON(toolsUserLocation: ToolsUserLocation): string;
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export type Filters$Outbound = {
|
|
1703
|
-
allowed_domains?: Array<string> | null | undefined;
|
|
1704
|
-
};
|
|
1705
|
-
/** @internal */
|
|
1706
|
-
export declare const Filters$outboundSchema: z.ZodType<Filters$Outbound, z.ZodTypeDef, Filters>;
|
|
1707
|
-
export declare function filtersToJSON(filters: Filters): string;
|
|
1708
|
-
/** @internal */
|
|
1709
|
-
export type Tools3$Outbound = {
|
|
1710
|
-
type: "web_search";
|
|
1711
|
-
search_context_size?: string | undefined;
|
|
1712
|
-
user_location?: ToolsUserLocation$Outbound | undefined;
|
|
1713
|
-
filters?: Filters$Outbound | null | undefined;
|
|
1714
|
-
};
|
|
1715
|
-
/** @internal */
|
|
1716
|
-
export declare const Tools3$outboundSchema: z.ZodType<Tools3$Outbound, z.ZodTypeDef, Tools3>;
|
|
1717
|
-
export declare function tools3ToJSON(tools3: Tools3): string;
|
|
1718
|
-
/** @internal */
|
|
1719
|
-
export declare const SearchContextSize$outboundSchema: z.ZodNativeEnum<typeof SearchContextSize>;
|
|
1720
|
-
/** @internal */
|
|
1721
|
-
export declare const CreateResponseToolsRouterResponsesType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesType>;
|
|
1722
|
-
/** @internal */
|
|
1723
|
-
export type UserLocation$Outbound = {
|
|
1724
|
-
type?: string | undefined;
|
|
1725
|
-
city?: string | null | undefined;
|
|
1726
|
-
country?: string | undefined;
|
|
1727
|
-
region?: string | null | undefined;
|
|
1728
|
-
timezone?: string | null | undefined;
|
|
1729
|
-
};
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export declare const UserLocation$outboundSchema: z.ZodType<UserLocation$Outbound, z.ZodTypeDef, UserLocation>;
|
|
1732
|
-
export declare function userLocationToJSON(userLocation: UserLocation): string;
|
|
1733
|
-
/** @internal */
|
|
1734
|
-
export type Tools2$Outbound = {
|
|
1735
|
-
type: "web_search_preview";
|
|
1736
|
-
domains?: Array<string> | undefined;
|
|
1737
|
-
search_context_size?: string | undefined;
|
|
1738
|
-
user_location?: UserLocation$Outbound | undefined;
|
|
1739
|
-
};
|
|
1740
|
-
/** @internal */
|
|
1741
|
-
export declare const Tools2$outboundSchema: z.ZodType<Tools2$Outbound, z.ZodTypeDef, Tools2>;
|
|
1742
|
-
export declare function tools2ToJSON(tools2: Tools2): string;
|
|
1743
|
-
/** @internal */
|
|
1744
|
-
export type Tools1$Outbound = {
|
|
1745
|
-
type: "function";
|
|
1746
|
-
name: string;
|
|
1747
|
-
description?: string | null | undefined;
|
|
1748
|
-
parameters?: {
|
|
1749
|
-
[k: string]: any;
|
|
1750
|
-
} | null | undefined;
|
|
1751
|
-
strict: boolean | null;
|
|
1752
|
-
};
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export declare const Tools1$outboundSchema: z.ZodType<Tools1$Outbound, z.ZodTypeDef, Tools1>;
|
|
1755
|
-
export declare function tools1ToJSON(tools1: Tools1): string;
|
|
1756
|
-
/** @internal */
|
|
1757
|
-
export type CreateResponseTools$Outbound = Tools1$Outbound | Tools2$Outbound | Tools3$Outbound | Tools4$Outbound;
|
|
1758
|
-
/** @internal */
|
|
1759
|
-
export declare const CreateResponseTools$outboundSchema: z.ZodType<CreateResponseTools$Outbound, z.ZodTypeDef, CreateResponseTools>;
|
|
1760
|
-
export declare function createResponseToolsToJSON(createResponseTools: CreateResponseTools): string;
|
|
1761
|
-
/** @internal */
|
|
1762
|
-
export declare const CreateResponseToolChoiceRouterResponsesRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoiceRouterResponsesRequestType>;
|
|
1763
|
-
/** @internal */
|
|
1764
|
-
export type ToolChoice4$Outbound = {
|
|
1765
|
-
type: string;
|
|
1766
|
-
server_label: string;
|
|
1767
|
-
name?: string | null | undefined;
|
|
1768
|
-
};
|
|
1769
|
-
/** @internal */
|
|
1770
|
-
export declare const ToolChoice4$outboundSchema: z.ZodType<ToolChoice4$Outbound, z.ZodTypeDef, ToolChoice4>;
|
|
1771
|
-
export declare function toolChoice4ToJSON(toolChoice4: ToolChoice4): string;
|
|
1772
|
-
/** @internal */
|
|
1773
|
-
export declare const CreateResponseToolChoiceRouterResponsesType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoiceRouterResponsesType>;
|
|
1774
|
-
/** @internal */
|
|
1775
|
-
export type ToolChoice3$Outbound = {
|
|
1776
|
-
type: string;
|
|
1777
|
-
name: string;
|
|
1778
|
-
};
|
|
1779
|
-
/** @internal */
|
|
1780
|
-
export declare const ToolChoice3$outboundSchema: z.ZodType<ToolChoice3$Outbound, z.ZodTypeDef, ToolChoice3>;
|
|
1781
|
-
export declare function toolChoice3ToJSON(toolChoice3: ToolChoice3): string;
|
|
1782
|
-
/** @internal */
|
|
1783
|
-
export declare const CreateResponseToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoiceType>;
|
|
1784
|
-
/** @internal */
|
|
1785
|
-
export type CreateResponseToolChoice2$Outbound = {
|
|
1786
|
-
type: string;
|
|
1787
|
-
};
|
|
1788
|
-
/** @internal */
|
|
1789
|
-
export declare const CreateResponseToolChoice2$outboundSchema: z.ZodType<CreateResponseToolChoice2$Outbound, z.ZodTypeDef, CreateResponseToolChoice2>;
|
|
1790
|
-
export declare function createResponseToolChoice2ToJSON(createResponseToolChoice2: CreateResponseToolChoice2): string;
|
|
1791
|
-
/** @internal */
|
|
1792
|
-
export declare const CreateResponseToolChoice1$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoice1>;
|
|
1793
|
-
/** @internal */
|
|
1794
|
-
export type CreateResponseToolChoice$Outbound = ToolChoice3$Outbound | ToolChoice4$Outbound | CreateResponseToolChoice2$Outbound | string;
|
|
1795
|
-
/** @internal */
|
|
1796
|
-
export declare const CreateResponseToolChoice$outboundSchema: z.ZodType<CreateResponseToolChoice$Outbound, z.ZodTypeDef, CreateResponseToolChoice>;
|
|
1797
|
-
export declare function createResponseToolChoiceToJSON(createResponseToolChoice: CreateResponseToolChoice): string;
|
|
1798
|
-
/** @internal */
|
|
1799
|
-
export type CreateResponseRequestBody$Outbound = {
|
|
1800
|
-
model: string;
|
|
1801
|
-
metadata?: {
|
|
1802
|
-
[k: string]: string;
|
|
1803
|
-
} | undefined;
|
|
1804
|
-
temperature?: number | null | undefined;
|
|
1805
|
-
top_p?: number | null | undefined;
|
|
1806
|
-
previous_response_id?: string | null | undefined;
|
|
1807
|
-
instructions?: string | null | undefined;
|
|
1808
|
-
reasoning?: Reasoning$Outbound | null | undefined;
|
|
1809
|
-
thinking?: components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound | components.ThinkingConfigAdaptiveSchema$Outbound | null | undefined;
|
|
1810
|
-
max_output_tokens?: number | null | undefined;
|
|
1811
|
-
text?: CreateResponseText$Outbound | null | undefined;
|
|
1812
|
-
input: string | Array<CreateResponse23$Outbound | CreateResponse2RouterResponses2$Outbound | Two1$Outbound>;
|
|
1813
|
-
include?: Array<string> | null | undefined;
|
|
1814
|
-
parallel_tool_calls?: boolean | null | undefined;
|
|
1815
|
-
store?: boolean | null | undefined;
|
|
1816
|
-
service_tier?: string | null | undefined;
|
|
1817
|
-
tools?: Array<Tools1$Outbound | Tools2$Outbound | Tools3$Outbound | Tools4$Outbound> | undefined;
|
|
1818
|
-
tool_choice?: ToolChoice3$Outbound | ToolChoice4$Outbound | CreateResponseToolChoice2$Outbound | string | undefined;
|
|
1819
|
-
stream: boolean;
|
|
1820
|
-
};
|
|
1821
|
-
/** @internal */
|
|
1822
|
-
export declare const CreateResponseRequestBody$outboundSchema: z.ZodType<CreateResponseRequestBody$Outbound, z.ZodTypeDef, CreateResponseRequestBody>;
|
|
1823
|
-
export declare function createResponseRequestBodyToJSON(createResponseRequestBody: CreateResponseRequestBody): string;
|
|
1824
|
-
/** @internal */
|
|
1825
|
-
export declare const CreateResponseData$inboundSchema: z.ZodType<CreateResponseData, z.ZodTypeDef, unknown>;
|
|
1826
|
-
export declare function createResponseDataFromJSON(jsonString: string): SafeParseResult<CreateResponseData, SDKValidationError>;
|
|
1827
|
-
/** @internal */
|
|
1828
|
-
export declare const CreateResponseRouterResponsesResponseBody$inboundSchema: z.ZodType<CreateResponseRouterResponsesResponseBody, z.ZodTypeDef, unknown>;
|
|
1829
|
-
export declare function createResponseRouterResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateResponseRouterResponsesResponseBody, SDKValidationError>;
|
|
1830
|
-
/** @internal */
|
|
1831
|
-
export declare const CreateResponseObject$inboundSchema: z.ZodNativeEnum<typeof CreateResponseObject>;
|
|
1832
|
-
/** @internal */
|
|
1833
|
-
export declare const CreateResponseStatus$inboundSchema: z.ZodNativeEnum<typeof CreateResponseStatus>;
|
|
1834
|
-
/** @internal */
|
|
1835
|
-
export declare const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown>;
|
|
1836
|
-
export declare function errorFromJSON(jsonString: string): SafeParseResult<ErrorT, SDKValidationError>;
|
|
1837
|
-
/** @internal */
|
|
1838
|
-
export declare const Reason$inboundSchema: z.ZodNativeEnum<typeof Reason>;
|
|
1839
|
-
/** @internal */
|
|
1840
|
-
export declare const IncompleteDetails$inboundSchema: z.ZodType<IncompleteDetails, z.ZodTypeDef, unknown>;
|
|
1841
|
-
export declare function incompleteDetailsFromJSON(jsonString: string): SafeParseResult<IncompleteDetails, SDKValidationError>;
|
|
1842
|
-
/** @internal */
|
|
1843
|
-
export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type>;
|
|
1844
|
-
/** @internal */
|
|
1845
|
-
export declare const OutputSummary$inboundSchema: z.ZodType<OutputSummary, z.ZodTypeDef, unknown>;
|
|
1846
|
-
export declare function outputSummaryFromJSON(jsonString: string): SafeParseResult<OutputSummary, SDKValidationError>;
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export declare const CreateResponseOutputRouterResponsesResponse200Status$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponse200Status>;
|
|
1849
|
-
/** @internal */
|
|
1850
|
-
export declare const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown>;
|
|
1851
|
-
export declare function fiveFromJSON(jsonString: string): SafeParseResult<Five, SDKValidationError>;
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export declare const CreateResponseOutputRouterResponsesResponseStatus$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponseStatus>;
|
|
1854
|
-
/** @internal */
|
|
1855
|
-
export declare const Output4$inboundSchema: z.ZodType<Output4, z.ZodTypeDef, unknown>;
|
|
1856
|
-
export declare function output4FromJSON(jsonString: string): SafeParseResult<Output4, SDKValidationError>;
|
|
1857
|
-
/** @internal */
|
|
1858
|
-
export declare const CreateResponseOutputRouterResponsesStatus$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesStatus>;
|
|
1859
|
-
/** @internal */
|
|
1860
|
-
export declare const Output3$inboundSchema: z.ZodType<Output3, z.ZodTypeDef, unknown>;
|
|
1861
|
-
export declare function output3FromJSON(jsonString: string): SafeParseResult<Output3, SDKValidationError>;
|
|
1862
|
-
/** @internal */
|
|
1863
|
-
export declare const CreateResponseOutputStatus$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputStatus>;
|
|
1864
|
-
/** @internal */
|
|
1865
|
-
export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType>;
|
|
1866
|
-
/** @internal */
|
|
1867
|
-
export declare const Sources$inboundSchema: z.ZodType<Sources, z.ZodTypeDef, unknown>;
|
|
1868
|
-
export declare function sourcesFromJSON(jsonString: string): SafeParseResult<Sources, SDKValidationError>;
|
|
1869
|
-
/** @internal */
|
|
1870
|
-
export declare const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown>;
|
|
1871
|
-
export declare function actionFromJSON(jsonString: string): SafeParseResult<Action, SDKValidationError>;
|
|
1872
|
-
/** @internal */
|
|
1873
|
-
export declare const Output2$inboundSchema: z.ZodType<Output2, z.ZodTypeDef, unknown>;
|
|
1874
|
-
export declare function output2FromJSON(jsonString: string): SafeParseResult<Output2, SDKValidationError>;
|
|
1875
|
-
/** @internal */
|
|
1876
|
-
export declare const OutputRole$inboundSchema: z.ZodNativeEnum<typeof OutputRole>;
|
|
1877
|
-
/** @internal */
|
|
1878
|
-
export declare const OutputStatus$inboundSchema: z.ZodNativeEnum<typeof OutputStatus>;
|
|
1879
|
-
/** @internal */
|
|
1880
|
-
export declare const CreateResponseContentRouterResponses2$inboundSchema: z.ZodType<CreateResponseContentRouterResponses2, z.ZodTypeDef, unknown>;
|
|
1881
|
-
export declare function createResponseContentRouterResponses2FromJSON(jsonString: string): SafeParseResult<CreateResponseContentRouterResponses2, SDKValidationError>;
|
|
1882
|
-
/** @internal */
|
|
1883
|
-
export declare const Annotations2$inboundSchema: z.ZodType<Annotations2, z.ZodTypeDef, unknown>;
|
|
1884
|
-
export declare function annotations2FromJSON(jsonString: string): SafeParseResult<Annotations2, SDKValidationError>;
|
|
1885
|
-
/** @internal */
|
|
1886
|
-
export declare const Annotations1$inboundSchema: z.ZodType<Annotations1, z.ZodTypeDef, unknown>;
|
|
1887
|
-
export declare function annotations1FromJSON(jsonString: string): SafeParseResult<Annotations1, SDKValidationError>;
|
|
1888
|
-
/** @internal */
|
|
1889
|
-
export declare const ContentAnnotations$inboundSchema: z.ZodType<ContentAnnotations, z.ZodTypeDef, unknown>;
|
|
1890
|
-
export declare function contentAnnotationsFromJSON(jsonString: string): SafeParseResult<ContentAnnotations, SDKValidationError>;
|
|
1891
|
-
/** @internal */
|
|
1892
|
-
export declare const Content1$inboundSchema: z.ZodType<Content1, z.ZodTypeDef, unknown>;
|
|
1893
|
-
export declare function content1FromJSON(jsonString: string): SafeParseResult<Content1, SDKValidationError>;
|
|
1894
|
-
/** @internal */
|
|
1895
|
-
export declare const OutputContent$inboundSchema: z.ZodType<OutputContent, z.ZodTypeDef, unknown>;
|
|
1896
|
-
export declare function outputContentFromJSON(jsonString: string): SafeParseResult<OutputContent, SDKValidationError>;
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
export declare const Output1$inboundSchema: z.ZodType<Output1, z.ZodTypeDef, unknown>;
|
|
1899
|
-
export declare function output1FromJSON(jsonString: string): SafeParseResult<Output1, SDKValidationError>;
|
|
1900
|
-
/** @internal */
|
|
1901
|
-
export declare const Output$inboundSchema: z.ZodType<Output, z.ZodTypeDef, unknown>;
|
|
1902
|
-
export declare function outputFromJSON(jsonString: string): SafeParseResult<Output, SDKValidationError>;
|
|
1903
|
-
/** @internal */
|
|
1904
|
-
export declare const CreateResponseInputTokensDetails$inboundSchema: z.ZodType<CreateResponseInputTokensDetails, z.ZodTypeDef, unknown>;
|
|
1905
|
-
export declare function createResponseInputTokensDetailsFromJSON(jsonString: string): SafeParseResult<CreateResponseInputTokensDetails, SDKValidationError>;
|
|
1906
|
-
/** @internal */
|
|
1907
|
-
export declare const OutputTokensDetails$inboundSchema: z.ZodType<OutputTokensDetails, z.ZodTypeDef, unknown>;
|
|
1908
|
-
export declare function outputTokensDetailsFromJSON(jsonString: string): SafeParseResult<OutputTokensDetails, SDKValidationError>;
|
|
1909
|
-
/** @internal */
|
|
1910
|
-
export declare const CreateResponseUsage$inboundSchema: z.ZodType<CreateResponseUsage, z.ZodTypeDef, unknown>;
|
|
1911
|
-
export declare function createResponseUsageFromJSON(jsonString: string): SafeParseResult<CreateResponseUsage, SDKValidationError>;
|
|
1912
|
-
/** @internal */
|
|
1913
|
-
export declare const CreateResponseToolChoiceRouterResponsesResponseType$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoiceRouterResponsesResponseType>;
|
|
1914
|
-
/** @internal */
|
|
1915
|
-
export declare const CreateResponseToolChoiceFunction$inboundSchema: z.ZodType<CreateResponseToolChoiceFunction, z.ZodTypeDef, unknown>;
|
|
1916
|
-
export declare function createResponseToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<CreateResponseToolChoiceFunction, SDKValidationError>;
|
|
1917
|
-
/** @internal */
|
|
1918
|
-
export declare const CreateResponseToolChoiceRouterResponses2$inboundSchema: z.ZodType<CreateResponseToolChoiceRouterResponses2, z.ZodTypeDef, unknown>;
|
|
1919
|
-
export declare function createResponseToolChoiceRouterResponses2FromJSON(jsonString: string): SafeParseResult<CreateResponseToolChoiceRouterResponses2, SDKValidationError>;
|
|
1920
|
-
/** @internal */
|
|
1921
|
-
export declare const CreateResponseToolChoiceRouterResponses1$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolChoiceRouterResponses1>;
|
|
1922
|
-
/** @internal */
|
|
1923
|
-
export declare const CreateResponseRouterResponsesToolChoice$inboundSchema: z.ZodType<CreateResponseRouterResponsesToolChoice, z.ZodTypeDef, unknown>;
|
|
1924
|
-
export declare function createResponseRouterResponsesToolChoiceFromJSON(jsonString: string): SafeParseResult<CreateResponseRouterResponsesToolChoice, SDKValidationError>;
|
|
1925
|
-
/** @internal */
|
|
1926
|
-
export declare const ToolsRanker$inboundSchema: z.ZodNativeEnum<typeof ToolsRanker>;
|
|
1927
|
-
/** @internal */
|
|
1928
|
-
export declare const ToolsRankingOptions$inboundSchema: z.ZodType<ToolsRankingOptions, z.ZodTypeDef, unknown>;
|
|
1929
|
-
export declare function toolsRankingOptionsFromJSON(jsonString: string): SafeParseResult<ToolsRankingOptions, SDKValidationError>;
|
|
1930
|
-
/** @internal */
|
|
1931
|
-
export declare const CreateResponseTools4$inboundSchema: z.ZodType<CreateResponseTools4, z.ZodTypeDef, unknown>;
|
|
1932
|
-
export declare function createResponseTools4FromJSON(jsonString: string): SafeParseResult<CreateResponseTools4, SDKValidationError>;
|
|
1933
|
-
/** @internal */
|
|
1934
|
-
export declare const CreateResponseToolsRouterResponsesSearchContextSize$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesSearchContextSize>;
|
|
1935
|
-
/** @internal */
|
|
1936
|
-
export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type>;
|
|
1937
|
-
/** @internal */
|
|
1938
|
-
export declare const CreateResponseToolsRouterResponsesUserLocation$inboundSchema: z.ZodType<CreateResponseToolsRouterResponsesUserLocation, z.ZodTypeDef, unknown>;
|
|
1939
|
-
export declare function createResponseToolsRouterResponsesUserLocationFromJSON(jsonString: string): SafeParseResult<CreateResponseToolsRouterResponsesUserLocation, SDKValidationError>;
|
|
1940
|
-
/** @internal */
|
|
1941
|
-
export declare const ToolsFilters$inboundSchema: z.ZodType<ToolsFilters, z.ZodTypeDef, unknown>;
|
|
1942
|
-
export declare function toolsFiltersFromJSON(jsonString: string): SafeParseResult<ToolsFilters, SDKValidationError>;
|
|
1943
|
-
/** @internal */
|
|
1944
|
-
export declare const CreateResponseTools3$inboundSchema: z.ZodType<CreateResponseTools3, z.ZodTypeDef, unknown>;
|
|
1945
|
-
export declare function createResponseTools3FromJSON(jsonString: string): SafeParseResult<CreateResponseTools3, SDKValidationError>;
|
|
1946
|
-
/** @internal */
|
|
1947
|
-
export declare const CreateResponseToolsSearchContextSize$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsSearchContextSize>;
|
|
1948
|
-
/** @internal */
|
|
1949
|
-
export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type>;
|
|
1950
|
-
/** @internal */
|
|
1951
|
-
export declare const CreateResponseToolsUserLocation$inboundSchema: z.ZodType<CreateResponseToolsUserLocation, z.ZodTypeDef, unknown>;
|
|
1952
|
-
export declare function createResponseToolsUserLocationFromJSON(jsonString: string): SafeParseResult<CreateResponseToolsUserLocation, SDKValidationError>;
|
|
1953
|
-
/** @internal */
|
|
1954
|
-
export declare const CreateResponseTools2$inboundSchema: z.ZodType<CreateResponseTools2, z.ZodTypeDef, unknown>;
|
|
1955
|
-
export declare function createResponseTools2FromJSON(jsonString: string): SafeParseResult<CreateResponseTools2, SDKValidationError>;
|
|
1956
|
-
/** @internal */
|
|
1957
|
-
export declare const CreateResponseTools1$inboundSchema: z.ZodType<CreateResponseTools1, z.ZodTypeDef, unknown>;
|
|
1958
|
-
export declare function createResponseTools1FromJSON(jsonString: string): SafeParseResult<CreateResponseTools1, SDKValidationError>;
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export declare const CreateResponseRouterResponsesTools$inboundSchema: z.ZodType<CreateResponseRouterResponsesTools, z.ZodTypeDef, unknown>;
|
|
1961
|
-
export declare function createResponseRouterResponsesToolsFromJSON(jsonString: string): SafeParseResult<CreateResponseRouterResponsesTools, SDKValidationError>;
|
|
1962
|
-
/** @internal */
|
|
1963
|
-
export declare const CreateResponseReasoning$inboundSchema: z.ZodType<CreateResponseReasoning, z.ZodTypeDef, unknown>;
|
|
1964
|
-
export declare function createResponseReasoningFromJSON(jsonString: string): SafeParseResult<CreateResponseReasoning, SDKValidationError>;
|
|
1965
|
-
/** @internal */
|
|
1966
|
-
export declare const CreateResponseFormat3$inboundSchema: z.ZodType<CreateResponseFormat3, z.ZodTypeDef, unknown>;
|
|
1967
|
-
export declare function createResponseFormat3FromJSON(jsonString: string): SafeParseResult<CreateResponseFormat3, SDKValidationError>;
|
|
1968
|
-
/** @internal */
|
|
1969
|
-
export declare const CreateResponseFormat2$inboundSchema: z.ZodType<CreateResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1970
|
-
export declare function createResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreateResponseFormat2, SDKValidationError>;
|
|
1971
|
-
/** @internal */
|
|
1972
|
-
export declare const CreateResponseFormat1$inboundSchema: z.ZodType<CreateResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1973
|
-
export declare function createResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreateResponseFormat1, SDKValidationError>;
|
|
1974
|
-
/** @internal */
|
|
1975
|
-
export declare const CreateResponseRouterResponsesFormat$inboundSchema: z.ZodType<CreateResponseRouterResponsesFormat, z.ZodTypeDef, unknown>;
|
|
1976
|
-
export declare function createResponseRouterResponsesFormatFromJSON(jsonString: string): SafeParseResult<CreateResponseRouterResponsesFormat, SDKValidationError>;
|
|
1977
|
-
/** @internal */
|
|
1978
|
-
export declare const CreateResponseRouterResponsesText$inboundSchema: z.ZodType<CreateResponseRouterResponsesText, z.ZodTypeDef, unknown>;
|
|
1979
|
-
export declare function createResponseRouterResponsesTextFromJSON(jsonString: string): SafeParseResult<CreateResponseRouterResponsesText, SDKValidationError>;
|
|
1980
|
-
/** @internal */
|
|
1981
|
-
export declare const Truncation$inboundSchema: z.ZodNativeEnum<typeof Truncation>;
|
|
1982
|
-
/** @internal */
|
|
1983
|
-
export declare const CreateResponseServiceTier$inboundSchema: z.ZodNativeEnum<typeof CreateResponseServiceTier>;
|
|
1984
|
-
/** @internal */
|
|
1985
|
-
export declare const CreateResponseResponseBody$inboundSchema: z.ZodType<CreateResponseResponseBody, z.ZodTypeDef, unknown>;
|
|
1986
|
-
export declare function createResponseResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateResponseResponseBody, SDKValidationError>;
|
|
1987
|
-
/** @internal */
|
|
1988
|
-
export declare const CreateResponseResponse$inboundSchema: z.ZodType<CreateResponseResponse, z.ZodTypeDef, unknown>;
|
|
1989
|
-
export declare function createResponseResponseFromJSON(jsonString: string): SafeParseResult<CreateResponseResponse, SDKValidationError>;
|
|
1990
|
-
//# sourceMappingURL=createresponse.d.ts.map
|