@orq-ai/node 4.10.1 → 4.11.0-rc.1

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.
Files changed (748) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createprompt.d.ts +1 -0
  11. package/models/operations/createprompt.d.ts.map +1 -1
  12. package/models/operations/createprompt.js +1 -0
  13. package/models/operations/createprompt.js.map +1 -1
  14. package/models/operations/createtool.js +6 -6
  15. package/models/operations/deploymentinvoke.d.ts +1 -0
  16. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  17. package/models/operations/deploymentinvoke.js +1 -0
  18. package/models/operations/deploymentinvoke.js.map +1 -1
  19. package/models/operations/deployments.d.ts +1 -0
  20. package/models/operations/deployments.d.ts.map +1 -1
  21. package/models/operations/deployments.js +1 -0
  22. package/models/operations/deployments.js.map +1 -1
  23. package/models/operations/deploymentstream.d.ts +1 -0
  24. package/models/operations/deploymentstream.d.ts.map +1 -1
  25. package/models/operations/deploymentstream.js +1 -0
  26. package/models/operations/deploymentstream.js.map +1 -1
  27. package/models/operations/getallprompts.d.ts +1 -0
  28. package/models/operations/getallprompts.d.ts.map +1 -1
  29. package/models/operations/getallprompts.js +1 -0
  30. package/models/operations/getallprompts.js.map +1 -1
  31. package/models/operations/getalltools.js +6 -6
  32. package/models/operations/getevals.js +16 -16
  33. package/models/operations/getoneprompt.d.ts +1 -0
  34. package/models/operations/getoneprompt.d.ts.map +1 -1
  35. package/models/operations/getoneprompt.js +1 -0
  36. package/models/operations/getoneprompt.js.map +1 -1
  37. package/models/operations/getpromptversion.d.ts +1 -0
  38. package/models/operations/getpromptversion.d.ts.map +1 -1
  39. package/models/operations/getpromptversion.js +1 -0
  40. package/models/operations/getpromptversion.js.map +1 -1
  41. package/models/operations/getv2humanevalsets.js +2 -2
  42. package/models/operations/getv2humanevalsetsid.js +2 -2
  43. package/models/operations/listdatasetdatapoints.js +4 -4
  44. package/models/operations/listdatasets.js +1 -1
  45. package/models/operations/listdatasources.js +1 -1
  46. package/models/operations/listpromptversions.d.ts +1 -0
  47. package/models/operations/listpromptversions.d.ts.map +1 -1
  48. package/models/operations/listpromptversions.js +1 -0
  49. package/models/operations/listpromptversions.js.map +1 -1
  50. package/models/operations/patchv2humanevalsetsid.js +2 -2
  51. package/models/operations/postv2feedbackevaluation.js +3 -3
  52. package/models/operations/postv2humanevalsets.js +2 -2
  53. package/models/operations/retrievedatapoint.js +4 -4
  54. package/models/operations/retrievedataset.js +1 -1
  55. package/models/operations/retrievedatasource.js +1 -1
  56. package/models/operations/retrievetool.js +6 -6
  57. package/models/operations/runagent.js +1 -1
  58. package/models/operations/streamrunagent.js +1 -1
  59. package/models/operations/updatedatapoint.js +4 -4
  60. package/models/operations/updatedataset.js +1 -1
  61. package/models/operations/updatedatasource.js +1 -1
  62. package/models/operations/updateeval.js +16 -16
  63. package/models/operations/updateprompt.d.ts +1 -0
  64. package/models/operations/updateprompt.d.ts.map +1 -1
  65. package/models/operations/updateprompt.js +1 -0
  66. package/models/operations/updateprompt.js.map +1 -1
  67. package/models/operations/updatetool.js +7 -7
  68. package/package.json +5 -4
  69. package/src/lib/config.ts +2 -2
  70. package/src/models/components/reasoningpart.ts +1 -1
  71. package/src/models/operations/createdataset.ts +1 -1
  72. package/src/models/operations/createdatasetitem.ts +4 -4
  73. package/src/models/operations/createdatasource.ts +1 -1
  74. package/src/models/operations/createeval.ts +16 -16
  75. package/src/models/operations/createprompt.ts +1 -0
  76. package/src/models/operations/createtool.ts +6 -6
  77. package/src/models/operations/deploymentinvoke.ts +1 -0
  78. package/src/models/operations/deployments.ts +1 -0
  79. package/src/models/operations/deploymentstream.ts +1 -0
  80. package/src/models/operations/getallprompts.ts +1 -0
  81. package/src/models/operations/getalltools.ts +6 -6
  82. package/src/models/operations/getevals.ts +16 -16
  83. package/src/models/operations/getoneprompt.ts +1 -0
  84. package/src/models/operations/getpromptversion.ts +1 -0
  85. package/src/models/operations/getv2humanevalsets.ts +2 -2
  86. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  87. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  88. package/src/models/operations/listdatasets.ts +1 -1
  89. package/src/models/operations/listdatasources.ts +1 -1
  90. package/src/models/operations/listpromptversions.ts +1 -0
  91. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  92. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  93. package/src/models/operations/postv2humanevalsets.ts +2 -2
  94. package/src/models/operations/retrievedatapoint.ts +4 -4
  95. package/src/models/operations/retrievedataset.ts +1 -1
  96. package/src/models/operations/retrievedatasource.ts +1 -1
  97. package/src/models/operations/retrievetool.ts +6 -6
  98. package/src/models/operations/runagent.ts +1 -1
  99. package/src/models/operations/streamrunagent.ts +1 -1
  100. package/src/models/operations/updatedatapoint.ts +4 -4
  101. package/src/models/operations/updatedataset.ts +1 -1
  102. package/src/models/operations/updatedatasource.ts +1 -1
  103. package/src/models/operations/updateeval.ts +16 -16
  104. package/src/models/operations/updateprompt.ts +1 -0
  105. package/src/models/operations/updatetool.ts +7 -7
  106. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +0 -24
  107. package/packages/orq-rc/src/core.ts +0 -13
  108. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -163
  109. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -181
  110. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -178
  111. package/packages/orq-rc/src/funcs/agentsList.ts +0 -186
  112. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -188
  113. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -184
  114. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -183
  115. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -181
  116. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -164
  117. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -205
  118. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  119. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -185
  120. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -175
  121. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -175
  122. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +0 -162
  123. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +0 -168
  124. package/packages/orq-rc/src/funcs/apiKeysGet.ts +0 -168
  125. package/packages/orq-rc/src/funcs/apiKeysList.ts +0 -175
  126. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +0 -144
  127. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +0 -171
  128. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -162
  129. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -168
  130. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -167
  131. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -172
  132. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -168
  133. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -183
  134. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -169
  135. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -175
  136. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -176
  137. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -182
  138. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -177
  139. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -180
  140. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -170
  141. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  142. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -178
  143. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -180
  144. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -177
  145. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -171
  146. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -174
  147. package/packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +0 -184
  148. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -182
  149. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -174
  150. package/packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts +0 -174
  151. package/packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts +0 -169
  152. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -162
  153. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -165
  154. package/packages/orq-rc/src/funcs/filesGet.ts +0 -168
  155. package/packages/orq-rc/src/funcs/filesGetContent.ts +0 -168
  156. package/packages/orq-rc/src/funcs/filesList.ts +0 -171
  157. package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -169
  158. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +0 -163
  159. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +0 -172
  160. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +0 -172
  161. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +0 -170
  162. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +0 -172
  163. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +0 -166
  164. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +0 -170
  165. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +0 -165
  166. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +0 -166
  167. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +0 -164
  168. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -162
  169. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -168
  170. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -174
  171. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -173
  172. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -171
  173. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -160
  174. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -172
  175. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -167
  176. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -168
  177. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -175
  178. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -171
  179. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -174
  180. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -174
  181. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -171
  182. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -179
  183. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -172
  184. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -175
  185. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -167
  186. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -174
  187. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -170
  188. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -168
  189. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -165
  190. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -175
  191. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -171
  192. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -164
  193. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -177
  194. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -171
  195. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -169
  196. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -186
  197. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -181
  198. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -180
  199. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -185
  200. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -178
  201. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -178
  202. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -180
  203. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -175
  204. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -169
  205. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -181
  206. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -176
  207. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +0 -168
  208. package/packages/orq-rc/src/funcs/modelsCreate.ts +0 -162
  209. package/packages/orq-rc/src/funcs/modelsCreateAutorouter.ts +0 -163
  210. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +0 -163
  211. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +0 -163
  212. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +0 -163
  213. package/packages/orq-rc/src/funcs/modelsDelete.ts +0 -168
  214. package/packages/orq-rc/src/funcs/modelsDisable.ts +0 -168
  215. package/packages/orq-rc/src/funcs/modelsEnable.ts +0 -163
  216. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +0 -166
  217. package/packages/orq-rc/src/funcs/modelsList.ts +0 -144
  218. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +0 -144
  219. package/packages/orq-rc/src/funcs/modelsUpdate.ts +0 -168
  220. package/packages/orq-rc/src/funcs/modelsUpdateAutorouter.ts +0 -169
  221. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +0 -169
  222. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +0 -169
  223. package/packages/orq-rc/src/funcs/modelsValidate.ts +0 -163
  224. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +0 -164
  225. package/packages/orq-rc/src/funcs/piiDetect.ts +0 -162
  226. package/packages/orq-rc/src/funcs/piiRedact.ts +0 -162
  227. package/packages/orq-rc/src/funcs/piiRestore.ts +0 -162
  228. package/packages/orq-rc/src/funcs/policiesCreate.ts +0 -162
  229. package/packages/orq-rc/src/funcs/policiesDelete.ts +0 -168
  230. package/packages/orq-rc/src/funcs/policiesList.ts +0 -170
  231. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +0 -167
  232. package/packages/orq-rc/src/funcs/policiesUpdate.ts +0 -168
  233. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +0 -161
  234. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +0 -161
  235. package/packages/orq-rc/src/funcs/projectsCreate.ts +0 -162
  236. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -168
  237. package/packages/orq-rc/src/funcs/projectsGet.ts +0 -168
  238. package/packages/orq-rc/src/funcs/projectsList.ts +0 -170
  239. package/packages/orq-rc/src/funcs/projectsUpdate.ts +0 -171
  240. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -162
  241. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -174
  242. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -182
  243. package/packages/orq-rc/src/funcs/promptsList.ts +0 -169
  244. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -174
  245. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -167
  246. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -174
  247. package/packages/orq-rc/src/funcs/reportingQuery.ts +0 -162
  248. package/packages/orq-rc/src/funcs/responsesCreate.ts +0 -170
  249. package/packages/orq-rc/src/funcs/responsesGet.ts +0 -167
  250. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -163
  251. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -272
  252. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -262
  253. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -170
  254. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -170
  255. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -163
  256. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -224
  257. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -162
  258. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -220
  259. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -169
  260. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -160
  261. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -162
  262. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +0 -163
  263. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +0 -168
  264. package/packages/orq-rc/src/funcs/routingRulesList.ts +0 -170
  265. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +0 -167
  266. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +0 -168
  267. package/packages/orq-rc/src/funcs/schedulesCreate.ts +0 -185
  268. package/packages/orq-rc/src/funcs/schedulesDelete.ts +0 -184
  269. package/packages/orq-rc/src/funcs/schedulesList.ts +0 -167
  270. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +0 -183
  271. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +0 -190
  272. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +0 -191
  273. package/packages/orq-rc/src/funcs/skillsCreate.ts +0 -162
  274. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -168
  275. package/packages/orq-rc/src/funcs/skillsGet.ts +0 -168
  276. package/packages/orq-rc/src/funcs/skillsList.ts +0 -170
  277. package/packages/orq-rc/src/funcs/skillsUpdate.ts +0 -171
  278. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -165
  279. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -168
  280. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -184
  281. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -191
  282. package/packages/orq-rc/src/funcs/toolsList.ts +0 -178
  283. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -167
  284. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -177
  285. package/packages/orq-rc/src/hooks/global.ts +0 -44
  286. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  287. package/packages/orq-rc/src/hooks/index.ts +0 -6
  288. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  289. package/packages/orq-rc/src/hooks/types.ts +0 -112
  290. package/packages/orq-rc/src/index.ts +0 -9
  291. package/packages/orq-rc/src/lib/base64.ts +0 -37
  292. package/packages/orq-rc/src/lib/config.ts +0 -64
  293. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  294. package/packages/orq-rc/src/lib/encodings.ts +0 -525
  295. package/packages/orq-rc/src/lib/env.ts +0 -57
  296. package/packages/orq-rc/src/lib/event-streams.ts +0 -165
  297. package/packages/orq-rc/src/lib/files.ts +0 -104
  298. package/packages/orq-rc/src/lib/http.ts +0 -323
  299. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  300. package/packages/orq-rc/src/lib/logger.ts +0 -9
  301. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  302. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  303. package/packages/orq-rc/src/lib/retries.ts +0 -218
  304. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  305. package/packages/orq-rc/src/lib/sdks.ts +0 -406
  306. package/packages/orq-rc/src/lib/security.ts +0 -275
  307. package/packages/orq-rc/src/lib/url.ts +0 -35
  308. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  309. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  310. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  311. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  312. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  313. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  314. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  315. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  316. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -520
  317. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -795
  318. package/packages/orq-rc/src/models/components/allprojects.ts +0 -39
  319. package/packages/orq-rc/src/models/components/apikey.ts +0 -169
  320. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -82
  321. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -21
  322. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  323. package/packages/orq-rc/src/models/components/autorouterconfig.ts +0 -78
  324. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +0 -44
  325. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +0 -60
  326. package/packages/orq-rc/src/models/components/budgetlimit.ts +0 -83
  327. package/packages/orq-rc/src/models/components/conversationparam.ts +0 -51
  328. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  329. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -91
  330. package/packages/orq-rc/src/models/components/createapikeyresponse.ts +0 -49
  331. package/packages/orq-rc/src/models/components/createfilerequest.ts +0 -53
  332. package/packages/orq-rc/src/models/components/createfileresponse.ts +0 -32
  333. package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
  334. package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
  335. package/packages/orq-rc/src/models/components/createmodelparameter.ts +0 -54
  336. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -46
  337. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -35
  338. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -70
  339. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -35
  340. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  341. package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
  342. package/packages/orq-rc/src/models/components/deleteapikeyresponse.ts +0 -27
  343. package/packages/orq-rc/src/models/components/deletefileresponse.ts +0 -27
  344. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
  345. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +0 -27
  346. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +0 -27
  347. package/packages/orq-rc/src/models/components/detectrequest.ts +0 -56
  348. package/packages/orq-rc/src/models/components/detectresponse.ts +0 -41
  349. package/packages/orq-rc/src/models/components/domain.ts +0 -75
  350. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +0 -59
  351. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +0 -48
  352. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +0 -66
  353. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +0 -42
  354. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +0 -101
  355. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +0 -45
  356. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +0 -39
  357. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  358. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  359. package/packages/orq-rc/src/models/components/evaluatorref.ts +0 -93
  360. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  361. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  362. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  363. package/packages/orq-rc/src/models/components/expression.ts +0 -33
  364. package/packages/orq-rc/src/models/components/expressioninput.ts +0 -29
  365. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  366. package/packages/orq-rc/src/models/components/fallbackconfig.ts +0 -27
  367. package/packages/orq-rc/src/models/components/file.ts +0 -52
  368. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  369. package/packages/orq-rc/src/models/components/filepart.ts +0 -223
  370. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -21
  371. package/packages/orq-rc/src/models/components/filter.ts +0 -137
  372. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  373. package/packages/orq-rc/src/models/components/getapikeyresponse.ts +0 -40
  374. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +0 -36
  375. package/packages/orq-rc/src/models/components/getfileresponse.ts +0 -32
  376. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -35
  377. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -35
  378. package/packages/orq-rc/src/models/components/guardrailref.ts +0 -91
  379. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -66
  380. package/packages/orq-rc/src/models/components/identity.ts +0 -83
  381. package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
  382. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -18
  383. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  384. package/packages/orq-rc/src/models/components/incompletedetails.ts +0 -31
  385. package/packages/orq-rc/src/models/components/index.ts +0 -190
  386. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +0 -45
  387. package/packages/orq-rc/src/models/components/legacytokenfamily.ts +0 -19
  388. package/packages/orq-rc/src/models/components/limits.ts +0 -70
  389. package/packages/orq-rc/src/models/components/listapikeysresponse.ts +0 -56
  390. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  391. package/packages/orq-rc/src/models/components/listfilesresponse.ts +0 -41
  392. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
  393. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -53
  394. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -53
  395. package/packages/orq-rc/src/models/components/litellmmodel.ts +0 -50
  396. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +0 -97
  397. package/packages/orq-rc/src/models/components/litellmparams.ts +0 -43
  398. package/packages/orq-rc/src/models/components/memoryparam.ts +0 -56
  399. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +0 -82
  400. package/packages/orq-rc/src/models/components/modeldocument.ts +0 -112
  401. package/packages/orq-rc/src/models/components/modelmetadata.ts +0 -720
  402. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +0 -53
  403. package/packages/orq-rc/src/models/components/modelref.ts +0 -70
  404. package/packages/orq-rc/src/models/components/modelsconfig.ts +0 -73
  405. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +0 -36
  406. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  407. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  408. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  409. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -70
  410. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -23
  411. package/packages/orq-rc/src/models/components/policy.ts +0 -80
  412. package/packages/orq-rc/src/models/components/policyretryconfig.ts +0 -64
  413. package/packages/orq-rc/src/models/components/price.ts +0 -56
  414. package/packages/orq-rc/src/models/components/pricing.ts +0 -93
  415. package/packages/orq-rc/src/models/components/pricingvariant.ts +0 -90
  416. package/packages/orq-rc/src/models/components/project.ts +0 -108
  417. package/packages/orq-rc/src/models/components/projectscope.ts +0 -70
  418. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  419. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +0 -60
  420. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +0 -45
  421. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  422. package/packages/orq-rc/src/models/components/publicmodelentry.ts +0 -71
  423. package/packages/orq-rc/src/models/components/publicschedule.ts +0 -118
  424. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +0 -39
  425. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +0 -84
  426. package/packages/orq-rc/src/models/components/publicusage.ts +0 -77
  427. package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
  428. package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -99
  429. package/packages/orq-rc/src/models/components/reasoning.ts +0 -33
  430. package/packages/orq-rc/src/models/components/reasoningparam.ts +0 -30
  431. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  432. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  433. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  434. package/packages/orq-rc/src/models/components/redactrequest.ts +0 -33
  435. package/packages/orq-rc/src/models/components/redactresponse.ts +0 -41
  436. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  437. package/packages/orq-rc/src/models/components/requestlimit.ts +0 -69
  438. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  439. package/packages/orq-rc/src/models/components/responseerror.ts +0 -33
  440. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +0 -52
  441. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  442. package/packages/orq-rc/src/models/components/responseidentity.ts +0 -48
  443. package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
  444. package/packages/orq-rc/src/models/components/responseretryconfig.ts +0 -45
  445. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  446. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  447. package/packages/orq-rc/src/models/components/responsethread.ts +0 -30
  448. package/packages/orq-rc/src/models/components/restorerequest.ts +0 -38
  449. package/packages/orq-rc/src/models/components/restoreresponse.ts +0 -36
  450. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
  451. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  452. package/packages/orq-rc/src/models/components/routingrule.ts +0 -67
  453. package/packages/orq-rc/src/models/components/security.ts +0 -32
  454. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -43
  455. package/packages/orq-rc/src/models/components/singleproject.ts +0 -56
  456. package/packages/orq-rc/src/models/components/skill.ts +0 -109
  457. package/packages/orq-rc/src/models/components/streamoptions.ts +0 -32
  458. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  459. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  460. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  461. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +0 -59
  462. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  463. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -107
  464. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  465. package/packages/orq-rc/src/models/components/tokenlimit.ts +0 -69
  466. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  467. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  468. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -235
  469. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -219
  470. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -205
  471. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  472. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  473. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  474. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  475. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  476. package/packages/orq-rc/src/models/components/totals.ts +0 -34
  477. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -99
  478. package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +0 -40
  479. package/packages/orq-rc/src/models/components/updatefilerequest.ts +0 -40
  480. package/packages/orq-rc/src/models/components/updatefileresponse.ts +0 -32
  481. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
  482. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
  483. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +0 -61
  484. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -60
  485. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -35
  486. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -82
  487. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -35
  488. package/packages/orq-rc/src/models/components/userowner.ts +0 -56
  489. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +0 -37
  490. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +0 -45
  491. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +0 -53
  492. package/packages/orq-rc/src/models/components/vertexparameters.ts +0 -47
  493. package/packages/orq-rc/src/models/components/vertexparamrange.ts +0 -34
  494. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +0 -34
  495. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  496. package/packages/orq-rc/src/models/errors/createagentschedule.ts +0 -105
  497. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  498. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  499. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  500. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  501. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  502. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +0 -56
  503. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  504. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  505. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  506. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  507. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  508. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  509. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  510. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  511. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  512. package/packages/orq-rc/src/models/errors/index.ts +0 -38
  513. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  514. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  515. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  516. package/packages/orq-rc/src/models/errors/postv2feedback.ts +0 -96
  517. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +0 -51
  518. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  519. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  520. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +0 -56
  521. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  522. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  523. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  524. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +0 -105
  525. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  526. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +0 -105
  527. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  528. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  529. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  530. package/packages/orq-rc/src/models/operations/apikeydelete.ts +0 -39
  531. package/packages/orq-rc/src/models/operations/apikeyget.ts +0 -39
  532. package/packages/orq-rc/src/models/operations/apikeylist.ts +0 -107
  533. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +0 -44
  534. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  535. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6380
  536. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -671
  537. package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -227
  538. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -162
  539. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6399
  540. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  541. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3474
  542. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  543. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2554
  544. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -443
  545. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -219
  546. package/packages/orq-rc/src/models/operations/createeval.ts +0 -4456
  547. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1034
  548. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  549. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  550. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -958
  551. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  552. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  553. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  554. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  555. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5408
  556. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  557. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +0 -1506
  558. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  559. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2490
  560. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  561. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  562. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  563. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +0 -46
  564. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -82
  565. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  566. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  567. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  568. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  569. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  570. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  571. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -31
  572. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  573. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  574. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  575. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  576. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  577. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  578. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  579. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4968
  580. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -4178
  581. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1276
  582. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4698
  583. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -36
  584. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -36
  585. package/packages/orq-rc/src/models/operations/fileget.ts +0 -32
  586. package/packages/orq-rc/src/models/operations/filelist.ts +0 -45
  587. package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -41
  588. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  589. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  590. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  591. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  592. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3176
  593. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1389
  594. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -142
  595. package/packages/orq-rc/src/models/operations/getevals.ts +0 -3346
  596. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  597. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  598. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3101
  599. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3146
  600. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  601. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  602. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  603. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  604. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  605. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +0 -124
  606. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +0 -39
  607. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +0 -102
  608. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +0 -94
  609. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +0 -153
  610. package/packages/orq-rc/src/models/operations/index.ts +0 -169
  611. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -801
  612. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1260
  613. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2699
  614. package/packages/orq-rc/src/models/operations/listagentschedules.ts +0 -69
  615. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -289
  616. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -282
  617. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  618. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  619. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -241
  620. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -59
  621. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  622. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -60
  623. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3221
  624. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +0 -90
  625. package/packages/orq-rc/src/models/operations/modelcreate.ts +0 -184
  626. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +0 -151
  627. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +0 -218
  628. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +0 -202
  629. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +0 -144
  630. package/packages/orq-rc/src/models/operations/modeldelete.ts +0 -34
  631. package/packages/orq-rc/src/models/operations/modeldisable.ts +0 -39
  632. package/packages/orq-rc/src/models/operations/modelenable.ts +0 -36
  633. package/packages/orq-rc/src/models/operations/modelupdate.ts +0 -198
  634. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +0 -189
  635. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +0 -248
  636. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +0 -236
  637. package/packages/orq-rc/src/models/operations/modelvalidate.ts +0 -57
  638. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +0 -57
  639. package/packages/orq-rc/src/models/operations/parse.ts +0 -784
  640. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  641. package/packages/orq-rc/src/models/operations/policycreate.ts +0 -138
  642. package/packages/orq-rc/src/models/operations/policydelete.ts +0 -39
  643. package/packages/orq-rc/src/models/operations/policyget.ts +0 -110
  644. package/packages/orq-rc/src/models/operations/policylist.ts +0 -94
  645. package/packages/orq-rc/src/models/operations/policyupdate.ts +0 -174
  646. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  647. package/packages/orq-rc/src/models/operations/postv2feedback.ts +0 -214
  648. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -321
  649. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
  650. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +0 -135
  651. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -365
  652. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  653. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -39
  654. package/packages/orq-rc/src/models/operations/projectget.ts +0 -39
  655. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -58
  656. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -44
  657. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2754
  658. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -162
  659. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  660. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  661. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  662. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -39
  663. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  664. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  665. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  666. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +0 -225
  667. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1370
  668. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +0 -124
  669. package/packages/orq-rc/src/models/operations/routingruledelete.ts +0 -39
  670. package/packages/orq-rc/src/models/operations/routingruleget.ts +0 -102
  671. package/packages/orq-rc/src/models/operations/routingrulelist.ts +0 -94
  672. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +0 -154
  673. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4954
  674. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  675. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -39
  676. package/packages/orq-rc/src/models/operations/skillget.ts +0 -40
  677. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -61
  678. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -44
  679. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -693
  680. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5126
  681. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +0 -86
  682. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6704
  683. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -241
  684. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  685. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  686. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  687. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  688. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3819
  689. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -40
  690. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  691. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  692. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  693. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  694. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5490
  695. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2801
  696. package/packages/orq-rc/src/sdk/agents.ts +0 -216
  697. package/packages/orq-rc/src/sdk/annotations.ts +0 -45
  698. package/packages/orq-rc/src/sdk/apikeys.ts +0 -116
  699. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  700. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  701. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  702. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  703. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  704. package/packages/orq-rc/src/sdk/deployments.ts +0 -82
  705. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  706. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  707. package/packages/orq-rc/src/sdk/evals.ts +0 -102
  708. package/packages/orq-rc/src/sdk/feedback.ts +0 -33
  709. package/packages/orq-rc/src/sdk/files.ts +0 -115
  710. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  711. package/packages/orq-rc/src/sdk/guardrailrules.ts +0 -99
  712. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -84
  713. package/packages/orq-rc/src/sdk/identities.ts +0 -100
  714. package/packages/orq-rc/src/sdk/images.ts +0 -25
  715. package/packages/orq-rc/src/sdk/index.ts +0 -5
  716. package/packages/orq-rc/src/sdk/knowledge.ts +0 -312
  717. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  718. package/packages/orq-rc/src/sdk/models.ts +0 -330
  719. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  720. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  721. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -53
  722. package/packages/orq-rc/src/sdk/pii.ts +0 -63
  723. package/packages/orq-rc/src/sdk/policies.ts +0 -99
  724. package/packages/orq-rc/src/sdk/projects.ts +0 -100
  725. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  726. package/packages/orq-rc/src/sdk/reporting.ts +0 -27
  727. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  728. package/packages/orq-rc/src/sdk/responses.ts +0 -47
  729. package/packages/orq-rc/src/sdk/router.ts +0 -66
  730. package/packages/orq-rc/src/sdk/routingrules.ts +0 -99
  731. package/packages/orq-rc/src/sdk/schedules.ts +0 -117
  732. package/packages/orq-rc/src/sdk/sdk.ts +0 -189
  733. package/packages/orq-rc/src/sdk/skills.ts +0 -100
  734. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  735. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  736. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  737. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  738. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  739. package/packages/orq-rc/src/types/async.ts +0 -69
  740. package/packages/orq-rc/src/types/blobs.ts +0 -32
  741. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  742. package/packages/orq-rc/src/types/enums.ts +0 -45
  743. package/packages/orq-rc/src/types/fp.ts +0 -50
  744. package/packages/orq-rc/src/types/index.ts +0 -11
  745. package/packages/orq-rc/src/types/operations.ts +0 -105
  746. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  747. package/packages/orq-rc/src/types/streams.ts +0 -21
  748. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,4954 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as components from "../components/index.js";
11
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
-
13
- export type RunAgentResponseFormatAgentsJsonSchema = {
14
- /**
15
- * A description of what the response format is for, used by the model to determine how to respond in the format.
16
- */
17
- description?: string | undefined;
18
- /**
19
- * 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.
20
- */
21
- name: string;
22
- /**
23
- * The schema for the response format, described as a JSON Schema object.
24
- */
25
- schema?: any | undefined;
26
- /**
27
- * 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.
28
- */
29
- strict?: boolean | undefined;
30
- };
31
-
32
- /**
33
- * @remarks
34
- *
35
- * JSON Schema response format. Used to generate structured JSON responses
36
- */
37
- export type RunAgentResponseFormatJSONSchema = {
38
- type: "json_schema";
39
- jsonSchema: RunAgentResponseFormatAgentsJsonSchema;
40
- };
41
-
42
- /**
43
- * @remarks
44
- *
45
- * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
46
- */
47
- export type RunAgentResponseFormatJSONObject = {
48
- type: "json_object";
49
- };
50
-
51
- /**
52
- * @remarks
53
- *
54
- * Default response format. Used to generate text responses
55
- */
56
- export type RunAgentResponseFormatText = {
57
- type: "text";
58
- };
59
-
60
- /**
61
- * An object specifying the format that the model must output
62
- */
63
- export type RunAgentModelConfigurationResponseFormat =
64
- | RunAgentResponseFormatText
65
- | RunAgentResponseFormatJSONObject
66
- | RunAgentResponseFormatJSONSchema;
67
-
68
- /**
69
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
70
- *
71
- * @remarks
72
- *
73
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
74
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
75
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
76
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
77
- *
78
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
79
- */
80
- export const RunAgentModelConfigurationReasoningEffort = {
81
- None: "none",
82
- Minimal: "minimal",
83
- Low: "low",
84
- Medium: "medium",
85
- High: "high",
86
- Xhigh: "xhigh",
87
- } as const;
88
- /**
89
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
90
- *
91
- * @remarks
92
- *
93
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
94
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
95
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
96
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
97
- *
98
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
99
- */
100
- export type RunAgentModelConfigurationReasoningEffort = ClosedEnum<
101
- typeof RunAgentModelConfigurationReasoningEffort
102
- >;
103
-
104
- /**
105
- * Up to 4 sequences where the API will stop generating further tokens.
106
- */
107
- export type RunAgentModelConfigurationStop = string | Array<string>;
108
-
109
- export type RunAgentModelConfigurationThinking =
110
- | components.ThinkingConfigDisabledSchema
111
- | components.ThinkingConfigEnabledSchema
112
- | components.ThinkingConfigAdaptiveSchema;
113
-
114
- /**
115
- * The type of the tool. Currently, only function is supported.
116
- */
117
- export const RunAgentToolChoiceType = {
118
- Function: "function",
119
- } as const;
120
- /**
121
- * The type of the tool. Currently, only function is supported.
122
- */
123
- export type RunAgentToolChoiceType = ClosedEnum<typeof RunAgentToolChoiceType>;
124
-
125
- export type RunAgentToolChoiceFunction = {
126
- /**
127
- * The name of the function to call.
128
- */
129
- name: string;
130
- };
131
-
132
- export type RunAgentToolChoice2 = {
133
- /**
134
- * The type of the tool. Currently, only function is supported.
135
- */
136
- type?: RunAgentToolChoiceType | undefined;
137
- function: RunAgentToolChoiceFunction;
138
- };
139
-
140
- export const RunAgentToolChoice1 = {
141
- None: "none",
142
- Auto: "auto",
143
- Required: "required",
144
- } as const;
145
- export type RunAgentToolChoice1 = ClosedEnum<typeof RunAgentToolChoice1>;
146
-
147
- /**
148
- * Controls which (if any) tool is called by the model.
149
- */
150
- export type RunAgentModelConfigurationToolChoice =
151
- | RunAgentToolChoice2
152
- | RunAgentToolChoice1;
153
-
154
- export const RunAgentModelConfigurationModalities = {
155
- Text: "text",
156
- Audio: "audio",
157
- } as const;
158
- export type RunAgentModelConfigurationModalities = ClosedEnum<
159
- typeof RunAgentModelConfigurationModalities
160
- >;
161
-
162
- /**
163
- * The key of the guardrail.
164
- */
165
- export const RunAgentId1 = {
166
- OrqPiiDetection: "orq_pii_detection",
167
- OrqSexualModeration: "orq_sexual_moderation",
168
- OrqHarmfulModeration: "orq_harmful_moderation",
169
- } as const;
170
- /**
171
- * The key of the guardrail.
172
- */
173
- export type RunAgentId1 = ClosedEnum<typeof RunAgentId1>;
174
-
175
- export type RunAgentModelConfigurationId = RunAgentId1 | string;
176
-
177
- /**
178
- * Determines whether the guardrail runs on the input (user message) or output (model response).
179
- */
180
- export const RunAgentModelConfigurationExecuteOn = {
181
- Input: "input",
182
- Output: "output",
183
- } as const;
184
- /**
185
- * Determines whether the guardrail runs on the input (user message) or output (model response).
186
- */
187
- export type RunAgentModelConfigurationExecuteOn = ClosedEnum<
188
- typeof RunAgentModelConfigurationExecuteOn
189
- >;
190
-
191
- export type RunAgentModelConfigurationGuardrails = {
192
- id: RunAgentId1 | string;
193
- /**
194
- * Determines whether the guardrail runs on the input (user message) or output (model response).
195
- */
196
- executeOn: RunAgentModelConfigurationExecuteOn;
197
- };
198
-
199
- export type RunAgentModelConfigurationFallbacks = {
200
- /**
201
- * Fallback model identifier
202
- */
203
- model: string;
204
- };
205
-
206
- export const RunAgentModelConfigurationType = {
207
- ExactMatch: "exact_match",
208
- } as const;
209
- export type RunAgentModelConfigurationType = ClosedEnum<
210
- typeof RunAgentModelConfigurationType
211
- >;
212
-
213
- /**
214
- * Cache configuration for the request.
215
- */
216
- export type RunAgentModelConfigurationCache = {
217
- /**
218
- * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
219
- */
220
- ttl?: number | undefined;
221
- type: RunAgentModelConfigurationType;
222
- };
223
-
224
- export const RunAgentLoadBalancerType = {
225
- WeightBased: "weight_based",
226
- } as const;
227
- export type RunAgentLoadBalancerType = ClosedEnum<
228
- typeof RunAgentLoadBalancerType
229
- >;
230
-
231
- export type RunAgentLoadBalancerModels = {
232
- /**
233
- * Model identifier for load balancing
234
- */
235
- model: string;
236
- /**
237
- * Weight assigned to this model for load balancing
238
- */
239
- weight?: number | undefined;
240
- };
241
-
242
- export type RunAgentLoadBalancer1 = {
243
- type: RunAgentLoadBalancerType;
244
- models: Array<RunAgentLoadBalancerModels>;
245
- };
246
-
247
- /**
248
- * Load balancer configuration for the request.
249
- */
250
- export type RunAgentModelConfigurationLoadBalancer = RunAgentLoadBalancer1;
251
-
252
- /**
253
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
254
- */
255
- export type RunAgentModelConfigurationTimeout = {
256
- /**
257
- * Timeout value in milliseconds
258
- */
259
- callTimeout: number;
260
- };
261
-
262
- /**
263
- * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
264
- */
265
- export type RunAgentModelConfigurationParameters = {
266
- /**
267
- * The name to display on the trace. If not specified, the default system name will be used.
268
- */
269
- name?: string | undefined;
270
- /**
271
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
272
- */
273
- frequencyPenalty?: number | null | undefined;
274
- /**
275
- * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
276
- *
277
- * @remarks
278
- *
279
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
280
- */
281
- maxTokens?: number | null | undefined;
282
- /**
283
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
284
- */
285
- maxCompletionTokens?: number | null | undefined;
286
- /**
287
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
288
- */
289
- presencePenalty?: number | null | undefined;
290
- /**
291
- * An object specifying the format that the model must output
292
- */
293
- responseFormat?:
294
- | RunAgentResponseFormatText
295
- | RunAgentResponseFormatJSONObject
296
- | RunAgentResponseFormatJSONSchema
297
- | undefined;
298
- /**
299
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
300
- *
301
- * @remarks
302
- *
303
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
304
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
305
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
306
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
307
- *
308
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
309
- */
310
- reasoningEffort?: RunAgentModelConfigurationReasoningEffort | undefined;
311
- /**
312
- * Adjusts response verbosity. Lower levels yield shorter answers.
313
- */
314
- verbosity?: string | undefined;
315
- /**
316
- * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
317
- */
318
- seed?: number | null | undefined;
319
- /**
320
- * Up to 4 sequences where the API will stop generating further tokens.
321
- */
322
- stop?: string | Array<string> | null | undefined;
323
- thinking?:
324
- | components.ThinkingConfigDisabledSchema
325
- | components.ThinkingConfigEnabledSchema
326
- | components.ThinkingConfigAdaptiveSchema
327
- | undefined;
328
- /**
329
- * 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.
330
- */
331
- temperature?: number | null | undefined;
332
- /**
333
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
334
- */
335
- topP?: number | null | undefined;
336
- /**
337
- * Limits the model to consider only the top k most likely tokens at each step.
338
- */
339
- topK?: number | null | undefined;
340
- /**
341
- * Controls which (if any) tool is called by the model.
342
- */
343
- toolChoice?: RunAgentToolChoice2 | RunAgentToolChoice1 | undefined;
344
- /**
345
- * Whether to enable parallel function calling during tool use.
346
- */
347
- parallelToolCalls?: boolean | undefined;
348
- /**
349
- * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
350
- */
351
- modalities?: Array<RunAgentModelConfigurationModalities> | null | undefined;
352
- /**
353
- * A list of guardrails to apply to the request.
354
- */
355
- guardrails?: Array<RunAgentModelConfigurationGuardrails> | undefined;
356
- /**
357
- * Array of fallback models to use if primary model fails
358
- */
359
- fallbacks?: Array<RunAgentModelConfigurationFallbacks> | undefined;
360
- /**
361
- * Cache configuration for the request.
362
- */
363
- cache?: RunAgentModelConfigurationCache | undefined;
364
- /**
365
- * Load balancer configuration for the request.
366
- */
367
- loadBalancer?: RunAgentLoadBalancer1 | undefined;
368
- /**
369
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
370
- */
371
- timeout?: RunAgentModelConfigurationTimeout | undefined;
372
- };
373
-
374
- /**
375
- * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
376
- */
377
- export type RunAgentModelConfigurationRetry = {
378
- /**
379
- * Number of retry attempts (1-5)
380
- */
381
- count?: number | undefined;
382
- /**
383
- * HTTP status codes that trigger retry logic
384
- */
385
- onCodes?: Array<number> | undefined;
386
- };
387
-
388
- /**
389
- * @remarks
390
- *
391
- * Model configuration with parameters and retry settings.
392
- */
393
- export type RunAgentModelConfiguration2 = {
394
- /**
395
- * A model ID string (e.g., `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`). Only models that support tool calling can be used with agents.
396
- */
397
- id: string;
398
- /**
399
- * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
400
- */
401
- parameters?: RunAgentModelConfigurationParameters | undefined;
402
- /**
403
- * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
404
- */
405
- retry?: RunAgentModelConfigurationRetry | undefined;
406
- };
407
-
408
- /**
409
- * Model configuration for this execution. Can override the agent manifest defaults if the agent already exists.
410
- */
411
- export type RunAgentModelConfiguration = RunAgentModelConfiguration2 | string;
412
-
413
- export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema = {
414
- /**
415
- * A description of what the response format is for, used by the model to determine how to respond in the format.
416
- */
417
- description?: string | undefined;
418
- /**
419
- * 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.
420
- */
421
- name: string;
422
- /**
423
- * The schema for the response format, described as a JSON Schema object.
424
- */
425
- schema?: any | undefined;
426
- /**
427
- * 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.
428
- */
429
- strict?: boolean | undefined;
430
- };
431
-
432
- /**
433
- * @remarks
434
- *
435
- * JSON Schema response format. Used to generate structured JSON responses
436
- */
437
- export type RunAgentResponseFormatAgentsRequestJSONSchema = {
438
- type: "json_schema";
439
- jsonSchema: RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema;
440
- };
441
-
442
- /**
443
- * @remarks
444
- *
445
- * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
446
- */
447
- export type RunAgentResponseFormatAgentsJSONObject = {
448
- type: "json_object";
449
- };
450
-
451
- /**
452
- * @remarks
453
- *
454
- * Default response format. Used to generate text responses
455
- */
456
- export type RunAgentResponseFormatAgentsText = {
457
- type: "text";
458
- };
459
-
460
- /**
461
- * An object specifying the format that the model must output
462
- */
463
- export type RunAgentFallbackModelConfigurationResponseFormat =
464
- | RunAgentResponseFormatAgentsText
465
- | RunAgentResponseFormatAgentsJSONObject
466
- | RunAgentResponseFormatAgentsRequestJSONSchema;
467
-
468
- /**
469
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
470
- *
471
- * @remarks
472
- *
473
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
474
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
475
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
476
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
477
- *
478
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
479
- */
480
- export const RunAgentFallbackModelConfigurationReasoningEffort = {
481
- None: "none",
482
- Minimal: "minimal",
483
- Low: "low",
484
- Medium: "medium",
485
- High: "high",
486
- Xhigh: "xhigh",
487
- } as const;
488
- /**
489
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
490
- *
491
- * @remarks
492
- *
493
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
494
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
495
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
496
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
497
- *
498
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
499
- */
500
- export type RunAgentFallbackModelConfigurationReasoningEffort = ClosedEnum<
501
- typeof RunAgentFallbackModelConfigurationReasoningEffort
502
- >;
503
-
504
- /**
505
- * Up to 4 sequences where the API will stop generating further tokens.
506
- */
507
- export type RunAgentFallbackModelConfigurationStop = string | Array<string>;
508
-
509
- export type RunAgentFallbackModelConfigurationThinking =
510
- | components.ThinkingConfigDisabledSchema
511
- | components.ThinkingConfigEnabledSchema
512
- | components.ThinkingConfigAdaptiveSchema;
513
-
514
- /**
515
- * The type of the tool. Currently, only function is supported.
516
- */
517
- export const RunAgentToolChoiceAgentsType = {
518
- Function: "function",
519
- } as const;
520
- /**
521
- * The type of the tool. Currently, only function is supported.
522
- */
523
- export type RunAgentToolChoiceAgentsType = ClosedEnum<
524
- typeof RunAgentToolChoiceAgentsType
525
- >;
526
-
527
- export type RunAgentToolChoiceAgentsFunction = {
528
- /**
529
- * The name of the function to call.
530
- */
531
- name: string;
532
- };
533
-
534
- export type RunAgentToolChoiceAgents2 = {
535
- /**
536
- * The type of the tool. Currently, only function is supported.
537
- */
538
- type?: RunAgentToolChoiceAgentsType | undefined;
539
- function: RunAgentToolChoiceAgentsFunction;
540
- };
541
-
542
- export const RunAgentToolChoiceAgents1 = {
543
- None: "none",
544
- Auto: "auto",
545
- Required: "required",
546
- } as const;
547
- export type RunAgentToolChoiceAgents1 = ClosedEnum<
548
- typeof RunAgentToolChoiceAgents1
549
- >;
550
-
551
- /**
552
- * Controls which (if any) tool is called by the model.
553
- */
554
- export type RunAgentFallbackModelConfigurationToolChoice =
555
- | RunAgentToolChoiceAgents2
556
- | RunAgentToolChoiceAgents1;
557
-
558
- export const RunAgentFallbackModelConfigurationModalities = {
559
- Text: "text",
560
- Audio: "audio",
561
- } as const;
562
- export type RunAgentFallbackModelConfigurationModalities = ClosedEnum<
563
- typeof RunAgentFallbackModelConfigurationModalities
564
- >;
565
-
566
- /**
567
- * The key of the guardrail.
568
- */
569
- export const RunAgentIdAgents1 = {
570
- OrqPiiDetection: "orq_pii_detection",
571
- OrqSexualModeration: "orq_sexual_moderation",
572
- OrqHarmfulModeration: "orq_harmful_moderation",
573
- } as const;
574
- /**
575
- * The key of the guardrail.
576
- */
577
- export type RunAgentIdAgents1 = ClosedEnum<typeof RunAgentIdAgents1>;
578
-
579
- export type RunAgentFallbackModelConfigurationId = RunAgentIdAgents1 | string;
580
-
581
- /**
582
- * Determines whether the guardrail runs on the input (user message) or output (model response).
583
- */
584
- export const RunAgentFallbackModelConfigurationExecuteOn = {
585
- Input: "input",
586
- Output: "output",
587
- } as const;
588
- /**
589
- * Determines whether the guardrail runs on the input (user message) or output (model response).
590
- */
591
- export type RunAgentFallbackModelConfigurationExecuteOn = ClosedEnum<
592
- typeof RunAgentFallbackModelConfigurationExecuteOn
593
- >;
594
-
595
- export type RunAgentFallbackModelConfigurationGuardrails = {
596
- id: RunAgentIdAgents1 | string;
597
- /**
598
- * Determines whether the guardrail runs on the input (user message) or output (model response).
599
- */
600
- executeOn: RunAgentFallbackModelConfigurationExecuteOn;
601
- };
602
-
603
- export type RunAgentFallbackModelConfigurationFallbacks = {
604
- /**
605
- * Fallback model identifier
606
- */
607
- model: string;
608
- };
609
-
610
- export const RunAgentFallbackModelConfigurationType = {
611
- ExactMatch: "exact_match",
612
- } as const;
613
- export type RunAgentFallbackModelConfigurationType = ClosedEnum<
614
- typeof RunAgentFallbackModelConfigurationType
615
- >;
616
-
617
- /**
618
- * Cache configuration for the request.
619
- */
620
- export type RunAgentFallbackModelConfigurationCache = {
621
- /**
622
- * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
623
- */
624
- ttl?: number | undefined;
625
- type: RunAgentFallbackModelConfigurationType;
626
- };
627
-
628
- export const RunAgentLoadBalancerAgentsType = {
629
- WeightBased: "weight_based",
630
- } as const;
631
- export type RunAgentLoadBalancerAgentsType = ClosedEnum<
632
- typeof RunAgentLoadBalancerAgentsType
633
- >;
634
-
635
- export type RunAgentLoadBalancerAgentsModels = {
636
- /**
637
- * Model identifier for load balancing
638
- */
639
- model: string;
640
- /**
641
- * Weight assigned to this model for load balancing
642
- */
643
- weight?: number | undefined;
644
- };
645
-
646
- export type RunAgentLoadBalancerAgents1 = {
647
- type: RunAgentLoadBalancerAgentsType;
648
- models: Array<RunAgentLoadBalancerAgentsModels>;
649
- };
650
-
651
- /**
652
- * Load balancer configuration for the request.
653
- */
654
- export type RunAgentFallbackModelConfigurationLoadBalancer =
655
- RunAgentLoadBalancerAgents1;
656
-
657
- /**
658
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
659
- */
660
- export type RunAgentFallbackModelConfigurationTimeout = {
661
- /**
662
- * Timeout value in milliseconds
663
- */
664
- callTimeout: number;
665
- };
666
-
667
- /**
668
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
669
- */
670
- export type RunAgentFallbackModelConfigurationParameters = {
671
- /**
672
- * The name to display on the trace. If not specified, the default system name will be used.
673
- */
674
- name?: string | undefined;
675
- /**
676
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
677
- */
678
- frequencyPenalty?: number | null | undefined;
679
- /**
680
- * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
681
- *
682
- * @remarks
683
- *
684
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
685
- */
686
- maxTokens?: number | null | undefined;
687
- /**
688
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
689
- */
690
- maxCompletionTokens?: number | null | undefined;
691
- /**
692
- * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
693
- */
694
- presencePenalty?: number | null | undefined;
695
- /**
696
- * An object specifying the format that the model must output
697
- */
698
- responseFormat?:
699
- | RunAgentResponseFormatAgentsText
700
- | RunAgentResponseFormatAgentsJSONObject
701
- | RunAgentResponseFormatAgentsRequestJSONSchema
702
- | undefined;
703
- /**
704
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
705
- *
706
- * @remarks
707
- *
708
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
709
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
710
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
711
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
712
- *
713
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
714
- */
715
- reasoningEffort?:
716
- | RunAgentFallbackModelConfigurationReasoningEffort
717
- | undefined;
718
- /**
719
- * Adjusts response verbosity. Lower levels yield shorter answers.
720
- */
721
- verbosity?: string | undefined;
722
- /**
723
- * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
724
- */
725
- seed?: number | null | undefined;
726
- /**
727
- * Up to 4 sequences where the API will stop generating further tokens.
728
- */
729
- stop?: string | Array<string> | null | undefined;
730
- thinking?:
731
- | components.ThinkingConfigDisabledSchema
732
- | components.ThinkingConfigEnabledSchema
733
- | components.ThinkingConfigAdaptiveSchema
734
- | undefined;
735
- /**
736
- * 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.
737
- */
738
- temperature?: number | null | undefined;
739
- /**
740
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
741
- */
742
- topP?: number | null | undefined;
743
- /**
744
- * Limits the model to consider only the top k most likely tokens at each step.
745
- */
746
- topK?: number | null | undefined;
747
- /**
748
- * Controls which (if any) tool is called by the model.
749
- */
750
- toolChoice?:
751
- | RunAgentToolChoiceAgents2
752
- | RunAgentToolChoiceAgents1
753
- | undefined;
754
- /**
755
- * Whether to enable parallel function calling during tool use.
756
- */
757
- parallelToolCalls?: boolean | undefined;
758
- /**
759
- * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
760
- */
761
- modalities?:
762
- | Array<RunAgentFallbackModelConfigurationModalities>
763
- | null
764
- | undefined;
765
- /**
766
- * A list of guardrails to apply to the request.
767
- */
768
- guardrails?: Array<RunAgentFallbackModelConfigurationGuardrails> | undefined;
769
- /**
770
- * Array of fallback models to use if primary model fails
771
- */
772
- fallbacks?: Array<RunAgentFallbackModelConfigurationFallbacks> | undefined;
773
- /**
774
- * Cache configuration for the request.
775
- */
776
- cache?: RunAgentFallbackModelConfigurationCache | undefined;
777
- /**
778
- * Load balancer configuration for the request.
779
- */
780
- loadBalancer?: RunAgentLoadBalancerAgents1 | undefined;
781
- /**
782
- * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
783
- */
784
- timeout?: RunAgentFallbackModelConfigurationTimeout | undefined;
785
- };
786
-
787
- /**
788
- * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
789
- */
790
- export type RunAgentFallbackModelConfigurationRetry = {
791
- /**
792
- * Number of retry attempts (1-5)
793
- */
794
- count?: number | undefined;
795
- /**
796
- * HTTP status codes that trigger retry logic
797
- */
798
- onCodes?: Array<number> | undefined;
799
- };
800
-
801
- /**
802
- * Fallback model configuration with optional parameters and retry settings.
803
- */
804
- export type RunAgentFallbackModelConfiguration2 = {
805
- /**
806
- * A fallback model ID string. Must support tool calling.
807
- */
808
- id: string;
809
- /**
810
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
811
- */
812
- parameters?: RunAgentFallbackModelConfigurationParameters | undefined;
813
- /**
814
- * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
815
- */
816
- retry?: RunAgentFallbackModelConfigurationRetry | undefined;
817
- };
818
-
819
- /**
820
- * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
821
- */
822
- export type RunAgentFallbackModelConfiguration =
823
- | RunAgentFallbackModelConfiguration2
824
- | string;
825
-
826
- /**
827
- * Message containing tool execution results
828
- */
829
- export const RunAgentRoleToolMessage = {
830
- Tool: "tool",
831
- } as const;
832
- /**
833
- * Message containing tool execution results
834
- */
835
- export type RunAgentRoleToolMessage = ClosedEnum<
836
- typeof RunAgentRoleToolMessage
837
- >;
838
-
839
- /**
840
- * Message from the end user
841
- */
842
- export const RunAgentRoleUserMessage = {
843
- User: "user",
844
- } as const;
845
- /**
846
- * Message from the end user
847
- */
848
- export type RunAgentRoleUserMessage = ClosedEnum<
849
- typeof RunAgentRoleUserMessage
850
- >;
851
-
852
- /**
853
- * Message role (user or tool for continuing executions)
854
- */
855
- export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
856
-
857
- /**
858
- * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
859
- */
860
- export type RunAgentPublicMessagePart =
861
- | components.TextPart
862
- | components.FilePart
863
- | components.ToolResultPart
864
- | components.ErrorPart;
865
-
866
- /**
867
- * The A2A format message containing the task for the agent to perform.
868
- */
869
- export type RunAgentA2AMessage = {
870
- /**
871
- * Optional A2A message ID in ULID format
872
- */
873
- messageId?: string | undefined;
874
- /**
875
- * Message role (user or tool for continuing executions)
876
- */
877
- role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
878
- /**
879
- * A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
880
- */
881
- parts: Array<
882
- | components.TextPart
883
- | components.FilePart
884
- | components.ToolResultPart
885
- | components.ErrorPart
886
- >;
887
- };
888
-
889
- /**
890
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
891
- */
892
- export type RunAgentIdentity = {
893
- /**
894
- * Unique identifier for the contact
895
- */
896
- id: string;
897
- /**
898
- * Display name of the contact
899
- */
900
- displayName?: string | undefined;
901
- /**
902
- * Email address of the contact
903
- */
904
- email?: string | undefined;
905
- /**
906
- * A hash of key/value pairs containing any other data about the contact
907
- */
908
- metadata?: Array<{ [k: string]: any }> | undefined;
909
- /**
910
- * URL to the contact's avatar or logo
911
- */
912
- logoUrl?: string | undefined;
913
- /**
914
- * A list of tags associated with the contact
915
- */
916
- tags?: Array<string> | undefined;
917
- };
918
-
919
- /**
920
- * @deprecated Use identity instead. Information about the contact making the request.
921
- *
922
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
923
- */
924
- export type RunAgentContact = {
925
- /**
926
- * Unique identifier for the contact
927
- */
928
- id: string;
929
- /**
930
- * Display name of the contact
931
- */
932
- displayName?: string | undefined;
933
- /**
934
- * Email address of the contact
935
- */
936
- email?: string | undefined;
937
- /**
938
- * A hash of key/value pairs containing any other data about the contact
939
- */
940
- metadata?: Array<{ [k: string]: any }> | undefined;
941
- /**
942
- * URL to the contact's avatar or logo
943
- */
944
- logoUrl?: string | undefined;
945
- /**
946
- * A list of tags associated with the contact
947
- */
948
- tags?: Array<string> | undefined;
949
- };
950
-
951
- /**
952
- * Thread information to group related requests
953
- */
954
- export type RunAgentThread = {
955
- /**
956
- * Unique thread identifier to group related invocations.
957
- */
958
- id: string;
959
- /**
960
- * Optional tags to differentiate or categorize threads
961
- */
962
- tags?: Array<string> | undefined;
963
- };
964
-
965
- /**
966
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
967
- */
968
- export type RunAgentMemory = {
969
- /**
970
- * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
971
- */
972
- entityId: string;
973
- };
974
-
975
- export type RunAgentKnowledgeBases = {
976
- /**
977
- * Unique identifier of the knowledge base to search
978
- */
979
- knowledgeId: string;
980
- };
981
-
982
- export type RunAgentTeamOfAgents = {
983
- /**
984
- * The unique key of the agent within the workspace
985
- */
986
- key: string;
987
- /**
988
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
989
- */
990
- role?: string | undefined;
991
- };
992
-
993
- export type AgentToolInputRunHeaders = {
994
- value: string;
995
- encrypted?: boolean | undefined;
996
- };
997
-
998
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType =
999
- {
1000
- Object: "object",
1001
- } as const;
1002
- export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType =
1003
- ClosedEnum<
1004
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType
1005
- >;
1006
-
1007
- export type AgentToolInputRunSchema = {
1008
- type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType;
1009
- properties?: { [k: string]: any } | undefined;
1010
- required?: Array<string> | undefined;
1011
- };
1012
-
1013
- export type Tools = {
1014
- id?: string | undefined;
1015
- name: string;
1016
- description?: string | undefined;
1017
- schema: AgentToolInputRunSchema;
1018
- };
1019
-
1020
- /**
1021
- * The connection type used by the MCP server
1022
- */
1023
- export const ConnectionType = {
1024
- Http: "http",
1025
- Sse: "sse",
1026
- } as const;
1027
- /**
1028
- * The connection type used by the MCP server
1029
- */
1030
- export type ConnectionType = ClosedEnum<typeof ConnectionType>;
1031
-
1032
- export type Mcp = {
1033
- /**
1034
- * The MCP server URL (cached for execution)
1035
- */
1036
- serverUrl: string;
1037
- /**
1038
- * HTTP headers for MCP server requests with encryption support
1039
- */
1040
- headers?: { [k: string]: AgentToolInputRunHeaders } | undefined;
1041
- /**
1042
- * Array of tools available from the MCP server
1043
- */
1044
- tools: Array<Tools>;
1045
- /**
1046
- * The connection type used by the MCP server
1047
- */
1048
- connectionType: ConnectionType;
1049
- };
1050
-
1051
- /**
1052
- * MCP tool with inline definition for on-the-fly creation in run endpoint
1053
- */
1054
- export type MCPToolRun = {
1055
- type: "mcp";
1056
- /**
1057
- * Unique key of the tool as it will be displayed in the UI
1058
- */
1059
- key: string;
1060
- id?: string | undefined;
1061
- displayName?: string | undefined;
1062
- /**
1063
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1064
- */
1065
- description: string;
1066
- mcp: Mcp;
1067
- requiresApproval?: boolean | undefined;
1068
- };
1069
-
1070
- /**
1071
- * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1072
- */
1073
- export type Schema = {
1074
- /**
1075
- * The JSON Schema type
1076
- */
1077
- type: string;
1078
- /**
1079
- * The properties of the JSON Schema object
1080
- */
1081
- properties: { [k: string]: any };
1082
- /**
1083
- * Array of required property names
1084
- */
1085
- required: Array<string>;
1086
- additionalProperties?: { [k: string]: any } | undefined;
1087
- };
1088
-
1089
- export type AgentToolInputRunJsonSchema = {
1090
- /**
1091
- * 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.
1092
- */
1093
- name: string;
1094
- /**
1095
- * A description of what the response format is for. This will be shown to the user.
1096
- */
1097
- description: string;
1098
- /**
1099
- * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1100
- */
1101
- schema: Schema;
1102
- /**
1103
- * 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`. Only compatible with `OpenAI` models.
1104
- */
1105
- strict?: boolean | undefined;
1106
- };
1107
-
1108
- /**
1109
- * JSON Schema tool with inline definition for on-the-fly creation in run endpoint
1110
- */
1111
- export type JSONSchemaToolRun = {
1112
- type: "json_schema";
1113
- /**
1114
- * Unique key of the tool as it will be displayed in the UI
1115
- */
1116
- key: string;
1117
- id?: string | undefined;
1118
- displayName?: string | undefined;
1119
- /**
1120
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1121
- */
1122
- description: string;
1123
- jsonSchema: AgentToolInputRunJsonSchema;
1124
- requiresApproval?: boolean | undefined;
1125
- };
1126
-
1127
- /**
1128
- * The type must be "object"
1129
- */
1130
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
1131
- {
1132
- Object: "object",
1133
- } as const;
1134
- /**
1135
- * The type must be "object"
1136
- */
1137
- export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType =
1138
- ClosedEnum<
1139
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
1140
- >;
1141
-
1142
- /**
1143
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1144
- */
1145
- export type RunAgentAgentToolInputRunParameters = {
1146
- /**
1147
- * The type must be "object"
1148
- */
1149
- type:
1150
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType;
1151
- /**
1152
- * The properties of the function parameters
1153
- */
1154
- properties: { [k: string]: any };
1155
- /**
1156
- * Array of required parameter names
1157
- */
1158
- required: Array<string>;
1159
- additionalProperties?: { [k: string]: any } | undefined;
1160
- };
1161
-
1162
- export type AgentToolInputRunFunction = {
1163
- /**
1164
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1165
- */
1166
- name: string;
1167
- /**
1168
- * A description of what the function does, used by the model to choose when and how to call the function.
1169
- */
1170
- description?: string | undefined;
1171
- /**
1172
- * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
1173
- */
1174
- strict?: boolean | undefined;
1175
- /**
1176
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1177
- */
1178
- parameters?: RunAgentAgentToolInputRunParameters | undefined;
1179
- };
1180
-
1181
- /**
1182
- * Function tool with inline definition for on-the-fly creation in run endpoint
1183
- */
1184
- export type FunctionToolRun = {
1185
- type: "function";
1186
- /**
1187
- * Unique key of the tool as it will be displayed in the UI
1188
- */
1189
- key: string;
1190
- id?: string | undefined;
1191
- displayName?: string | undefined;
1192
- description?: string | undefined;
1193
- function: AgentToolInputRunFunction;
1194
- requiresApproval?: boolean | undefined;
1195
- };
1196
-
1197
- /**
1198
- * The type must be "object"
1199
- */
1200
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
1201
- {
1202
- Object: "object",
1203
- } as const;
1204
- /**
1205
- * The type must be "object"
1206
- */
1207
- export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType =
1208
- ClosedEnum<
1209
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
1210
- >;
1211
-
1212
- /**
1213
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1214
- */
1215
- export type AgentToolInputRunParameters = {
1216
- /**
1217
- * The type must be "object"
1218
- */
1219
- type:
1220
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType;
1221
- /**
1222
- * The properties of the function parameters
1223
- */
1224
- properties: { [k: string]: any };
1225
- /**
1226
- * Array of required parameter names
1227
- */
1228
- required: Array<string>;
1229
- additionalProperties?: { [k: string]: any } | undefined;
1230
- };
1231
-
1232
- export const Language = {
1233
- Python: "python",
1234
- } as const;
1235
- export type Language = ClosedEnum<typeof Language>;
1236
-
1237
- export type CodeTool = {
1238
- /**
1239
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1240
- */
1241
- parameters?: AgentToolInputRunParameters | undefined;
1242
- language: Language;
1243
- /**
1244
- * The code to execute.
1245
- */
1246
- code: string;
1247
- };
1248
-
1249
- /**
1250
- * Code execution tool with inline definition for on-the-fly creation in run endpoint
1251
- */
1252
- export type CodeToolRun = {
1253
- type: "code";
1254
- /**
1255
- * Unique key of the tool as it will be displayed in the UI
1256
- */
1257
- key: string;
1258
- id?: string | undefined;
1259
- displayName?: string | undefined;
1260
- /**
1261
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1262
- */
1263
- description: string;
1264
- codeTool: CodeTool;
1265
- requiresApproval?: boolean | undefined;
1266
- };
1267
-
1268
- /**
1269
- * The HTTP method to use.
1270
- */
1271
- export const Method = {
1272
- Get: "GET",
1273
- Post: "POST",
1274
- Put: "PUT",
1275
- Delete: "DELETE",
1276
- } as const;
1277
- /**
1278
- * The HTTP method to use.
1279
- */
1280
- export type Method = ClosedEnum<typeof Method>;
1281
-
1282
- export type Headers2 = {
1283
- value: string;
1284
- encrypted?: boolean | undefined;
1285
- };
1286
-
1287
- export type Headers = Headers2 | string;
1288
-
1289
- /**
1290
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1291
- */
1292
- export type Blueprint = {
1293
- /**
1294
- * The URL to send the request to.
1295
- */
1296
- url: string;
1297
- /**
1298
- * The HTTP method to use.
1299
- */
1300
- method: Method;
1301
- /**
1302
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
1303
- */
1304
- headers?: { [k: string]: Headers2 | string } | undefined;
1305
- /**
1306
- * The body to send with the request.
1307
- */
1308
- body?: { [k: string]: any } | undefined;
1309
- };
1310
-
1311
- /**
1312
- * The type of the argument.
1313
- */
1314
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
1315
- {
1316
- String: "string",
1317
- Number: "number",
1318
- Boolean: "boolean",
1319
- } as const;
1320
- /**
1321
- * The type of the argument.
1322
- */
1323
- export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
1324
- ClosedEnum<
1325
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
1326
- >;
1327
-
1328
- /**
1329
- * The default value of the argument.
1330
- */
1331
- export type DefaultValue = string | number | boolean;
1332
-
1333
- export type Arguments = {
1334
- /**
1335
- * The type of the argument.
1336
- */
1337
- type:
1338
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
1339
- /**
1340
- * A description of the argument.
1341
- */
1342
- description: string;
1343
- /**
1344
- * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
1345
- */
1346
- sendToModel?: boolean | undefined;
1347
- /**
1348
- * The default value of the argument.
1349
- */
1350
- defaultValue?: string | number | boolean | undefined;
1351
- };
1352
-
1353
- export type Http = {
1354
- /**
1355
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1356
- */
1357
- blueprint: Blueprint;
1358
- /**
1359
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
1360
- */
1361
- arguments?: { [k: string]: Arguments } | undefined;
1362
- };
1363
-
1364
- /**
1365
- * HTTP tool with inline definition for on-the-fly creation in run endpoint
1366
- */
1367
- export type HTTPToolRun = {
1368
- type: "http";
1369
- /**
1370
- * Unique key of the tool as it will be displayed in the UI
1371
- */
1372
- key: string;
1373
- id?: string | undefined;
1374
- displayName?: string | undefined;
1375
- /**
1376
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1377
- */
1378
- description: string;
1379
- http: Http;
1380
- requiresApproval?: boolean | undefined;
1381
- };
1382
-
1383
- /**
1384
- * Returns the current date and time
1385
- */
1386
- export type AgentToolInputRunCurrentDateTool = {
1387
- type: "current_date";
1388
- /**
1389
- * Whether this tool requires approval before execution
1390
- */
1391
- requiresApproval?: boolean | undefined;
1392
- };
1393
-
1394
- /**
1395
- * Queries knowledge bases for information
1396
- */
1397
- export type AgentToolInputRunQueryKnowledgeBaseTool = {
1398
- type: "query_knowledge_base";
1399
- /**
1400
- * Whether this tool requires approval before execution
1401
- */
1402
- requiresApproval?: boolean | undefined;
1403
- };
1404
-
1405
- /**
1406
- * Lists available knowledge bases
1407
- */
1408
- export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
1409
- type: "retrieve_knowledge_bases";
1410
- /**
1411
- * Whether this tool requires approval before execution
1412
- */
1413
- requiresApproval?: boolean | undefined;
1414
- };
1415
-
1416
- /**
1417
- * Deletes documents from memory stores
1418
- */
1419
- export type AgentToolInputRunDeleteMemoryDocumentTool = {
1420
- type: "delete_memory_document";
1421
- /**
1422
- * Whether this tool requires approval before execution
1423
- */
1424
- requiresApproval?: boolean | undefined;
1425
- };
1426
-
1427
- /**
1428
- * Lists available memory stores
1429
- */
1430
- export type AgentToolInputRunRetrieveMemoryStoresTool = {
1431
- type: "retrieve_memory_stores";
1432
- /**
1433
- * Whether this tool requires approval before execution
1434
- */
1435
- requiresApproval?: boolean | undefined;
1436
- };
1437
-
1438
- /**
1439
- * Writes information to agent memory stores
1440
- */
1441
- export type AgentToolInputRunWriteMemoryStoreTool = {
1442
- type: "write_memory_store";
1443
- /**
1444
- * Whether this tool requires approval before execution
1445
- */
1446
- requiresApproval?: boolean | undefined;
1447
- };
1448
-
1449
- /**
1450
- * Queries agent memory stores for context
1451
- */
1452
- export type AgentToolInputRunQueryMemoryStoreTool = {
1453
- type: "query_memory_store";
1454
- /**
1455
- * Whether this tool requires approval before execution
1456
- */
1457
- requiresApproval?: boolean | undefined;
1458
- };
1459
-
1460
- /**
1461
- * Retrieves available agents in the system
1462
- */
1463
- export type AgentToolInputRunRetrieveAgentsTool = {
1464
- type: "retrieve_agents";
1465
- /**
1466
- * Whether this tool requires approval before execution
1467
- */
1468
- requiresApproval?: boolean | undefined;
1469
- };
1470
-
1471
- /**
1472
- * Delegates tasks to specialized sub-agents
1473
- */
1474
- export type AgentToolInputRunCallSubAgentTool = {
1475
- type: "call_sub_agent";
1476
- /**
1477
- * Whether this tool requires approval before execution
1478
- */
1479
- requiresApproval?: boolean | undefined;
1480
- };
1481
-
1482
- /**
1483
- * Scrapes and extracts content from web pages
1484
- */
1485
- export type AgentToolInputRunWebScraperTool = {
1486
- type: "web_scraper";
1487
- /**
1488
- * Whether this tool requires approval before execution
1489
- */
1490
- requiresApproval?: boolean | undefined;
1491
- };
1492
-
1493
- /**
1494
- * Performs Google searches to retrieve web content
1495
- */
1496
- export type AgentToolInputRunGoogleSearchTool = {
1497
- type: "google_search";
1498
- /**
1499
- * Whether this tool requires approval before execution
1500
- */
1501
- requiresApproval?: boolean | undefined;
1502
- };
1503
-
1504
- /**
1505
- * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, JSON Schema, MCP) support full inline definitions for on-the-fly creation.
1506
- */
1507
- export type AgentToolInputRun =
1508
- | AgentToolInputRunGoogleSearchTool
1509
- | AgentToolInputRunWebScraperTool
1510
- | AgentToolInputRunCallSubAgentTool
1511
- | AgentToolInputRunRetrieveAgentsTool
1512
- | AgentToolInputRunQueryMemoryStoreTool
1513
- | AgentToolInputRunWriteMemoryStoreTool
1514
- | AgentToolInputRunRetrieveMemoryStoresTool
1515
- | AgentToolInputRunDeleteMemoryDocumentTool
1516
- | AgentToolInputRunRetrieveKnowledgeBasesTool
1517
- | AgentToolInputRunQueryKnowledgeBaseTool
1518
- | AgentToolInputRunCurrentDateTool
1519
- | HTTPToolRun
1520
- | CodeToolRun
1521
- | FunctionToolRun
1522
- | JSONSchemaToolRun
1523
- | MCPToolRun;
1524
-
1525
- /**
1526
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1527
- */
1528
- export const RunAgentToolApprovalRequired = {
1529
- All: "all",
1530
- RespectTool: "respect_tool",
1531
- None: "none",
1532
- } as const;
1533
- /**
1534
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1535
- */
1536
- export type RunAgentToolApprovalRequired = ClosedEnum<
1537
- typeof RunAgentToolApprovalRequired
1538
- >;
1539
-
1540
- /**
1541
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1542
- */
1543
- export const RunAgentExecuteOn = {
1544
- Input: "input",
1545
- Output: "output",
1546
- } as const;
1547
- /**
1548
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1549
- */
1550
- export type RunAgentExecuteOn = ClosedEnum<typeof RunAgentExecuteOn>;
1551
-
1552
- export type RunAgentEvaluators = {
1553
- /**
1554
- * Unique key or identifier of the evaluator
1555
- */
1556
- id: string;
1557
- /**
1558
- * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1559
- */
1560
- sampleRate?: number | undefined;
1561
- /**
1562
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1563
- */
1564
- executeOn: RunAgentExecuteOn;
1565
- };
1566
-
1567
- /**
1568
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1569
- */
1570
- export const RunAgentAgentsExecuteOn = {
1571
- Input: "input",
1572
- Output: "output",
1573
- } as const;
1574
- /**
1575
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1576
- */
1577
- export type RunAgentAgentsExecuteOn = ClosedEnum<
1578
- typeof RunAgentAgentsExecuteOn
1579
- >;
1580
-
1581
- export type RunAgentGuardrails = {
1582
- /**
1583
- * Unique key or identifier of the evaluator
1584
- */
1585
- id: string;
1586
- /**
1587
- * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1588
- */
1589
- sampleRate?: number | undefined;
1590
- /**
1591
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1592
- */
1593
- executeOn: RunAgentAgentsExecuteOn;
1594
- };
1595
-
1596
- export type RunAgentSettings = {
1597
- /**
1598
- * Tools available to the agent
1599
- */
1600
- tools?:
1601
- | Array<
1602
- | AgentToolInputRunGoogleSearchTool
1603
- | AgentToolInputRunWebScraperTool
1604
- | AgentToolInputRunCallSubAgentTool
1605
- | AgentToolInputRunRetrieveAgentsTool
1606
- | AgentToolInputRunQueryMemoryStoreTool
1607
- | AgentToolInputRunWriteMemoryStoreTool
1608
- | AgentToolInputRunRetrieveMemoryStoresTool
1609
- | AgentToolInputRunDeleteMemoryDocumentTool
1610
- | AgentToolInputRunRetrieveKnowledgeBasesTool
1611
- | AgentToolInputRunQueryKnowledgeBaseTool
1612
- | AgentToolInputRunCurrentDateTool
1613
- | HTTPToolRun
1614
- | CodeToolRun
1615
- | FunctionToolRun
1616
- | JSONSchemaToolRun
1617
- | MCPToolRun
1618
- >
1619
- | undefined;
1620
- /**
1621
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1622
- */
1623
- toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
1624
- /**
1625
- * Maximum iterations(llm calls) before the agent will stop executing.
1626
- */
1627
- maxIterations?: number | undefined;
1628
- /**
1629
- * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1630
- */
1631
- maxExecutionTime?: number | undefined;
1632
- /**
1633
- * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1634
- */
1635
- maxCost?: number | undefined;
1636
- /**
1637
- * Configuration for an evaluator applied to the agent
1638
- */
1639
- evaluators?: Array<RunAgentEvaluators> | undefined;
1640
- /**
1641
- * Configuration for a guardrail applied to the agent
1642
- */
1643
- guardrails?: Array<RunAgentGuardrails> | undefined;
1644
- };
1645
-
1646
- /**
1647
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1648
- */
1649
- export const RunAgentEngine = {
1650
- Text: "text",
1651
- Jinja: "jinja",
1652
- Mustache: "mustache",
1653
- } as const;
1654
- /**
1655
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1656
- */
1657
- export type RunAgentEngine = ClosedEnum<typeof RunAgentEngine>;
1658
-
1659
- export type RunAgentRequestBody = {
1660
- /**
1661
- * A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
1662
- */
1663
- key: string;
1664
- /**
1665
- * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
1666
- */
1667
- taskId?: string | undefined;
1668
- /**
1669
- * Model configuration for this execution. Can override the agent manifest defaults if the agent already exists.
1670
- */
1671
- model: RunAgentModelConfiguration2 | string;
1672
- /**
1673
- * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1674
- */
1675
- fallbackModels?:
1676
- | Array<RunAgentFallbackModelConfiguration2 | string>
1677
- | undefined;
1678
- /**
1679
- * Specifies the agent's function and area of expertise.
1680
- */
1681
- role: string;
1682
- /**
1683
- * Provides context and purpose for the agent. Combined with the system prompt template to generate the agent's instructions.
1684
- */
1685
- instructions: string;
1686
- /**
1687
- * The A2A format message containing the task for the agent to perform.
1688
- */
1689
- message: RunAgentA2AMessage;
1690
- /**
1691
- * Optional variables for template replacement in system prompt, instructions, and messages
1692
- */
1693
- variables?: { [k: string]: any } | undefined;
1694
- /**
1695
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1696
- */
1697
- identity?: RunAgentIdentity | undefined;
1698
- /**
1699
- * @deprecated Use identity instead. Information about the contact making the request.
1700
- *
1701
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1702
- */
1703
- contact?: RunAgentContact | undefined;
1704
- /**
1705
- * Thread information to group related requests
1706
- */
1707
- thread?: RunAgentThread | undefined;
1708
- /**
1709
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
1710
- */
1711
- memory?: RunAgentMemory | undefined;
1712
- /**
1713
- * Entity storage path.
1714
- *
1715
- * @remarks
1716
- *
1717
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1718
- *
1719
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1720
- */
1721
- path: string;
1722
- /**
1723
- * A brief summary of the agent's purpose.
1724
- */
1725
- description?: string | undefined;
1726
- /**
1727
- * A custom system prompt template for the agent. If omitted, the default template is used.
1728
- */
1729
- systemPrompt?: string | null | undefined;
1730
- /**
1731
- * Array of memory store identifiers that are accessible to the agent. Accepts both memory store IDs and keys.
1732
- */
1733
- memoryStores?: Array<string> | undefined;
1734
- /**
1735
- * Knowledge base configurations for the agent to access
1736
- */
1737
- knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
1738
- /**
1739
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1740
- */
1741
- teamOfAgents?: Array<RunAgentTeamOfAgents> | undefined;
1742
- settings: RunAgentSettings;
1743
- /**
1744
- * Optional metadata for the agent run as key-value pairs that will be included in traces
1745
- */
1746
- metadata?: { [k: string]: any } | undefined;
1747
- /**
1748
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1749
- */
1750
- engine?: RunAgentEngine | undefined;
1751
- };
1752
-
1753
- /**
1754
- * A2A entity type identifier
1755
- */
1756
- export const RunAgentKind = {
1757
- Task: "task",
1758
- } as const;
1759
- /**
1760
- * A2A entity type identifier
1761
- */
1762
- export type RunAgentKind = ClosedEnum<typeof RunAgentKind>;
1763
-
1764
- /**
1765
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1766
- */
1767
- export const RunAgentTaskState = {
1768
- Submitted: "submitted",
1769
- Working: "working",
1770
- InputRequired: "input-required",
1771
- AuthRequired: "auth-required",
1772
- Completed: "completed",
1773
- Failed: "failed",
1774
- Canceled: "canceled",
1775
- Rejected: "rejected",
1776
- } as const;
1777
- /**
1778
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1779
- */
1780
- export type RunAgentTaskState = ClosedEnum<typeof RunAgentTaskState>;
1781
-
1782
- export const RunAgentAgentsKind = {
1783
- Message: "message",
1784
- } as const;
1785
- export type RunAgentAgentsKind = ClosedEnum<typeof RunAgentAgentsKind>;
1786
-
1787
- /**
1788
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1789
- */
1790
- export const RunAgentExtendedMessageRole = {
1791
- User: "user",
1792
- Agent: "agent",
1793
- Tool: "tool",
1794
- System: "system",
1795
- } as const;
1796
- /**
1797
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1798
- */
1799
- export type RunAgentExtendedMessageRole = ClosedEnum<
1800
- typeof RunAgentExtendedMessageRole
1801
- >;
1802
-
1803
- export type RunAgentParts =
1804
- | components.TextPart
1805
- | components.ErrorPart
1806
- | components.DataPart
1807
- | components.FilePart
1808
- | components.ToolCallPart
1809
- | components.ToolResultPart;
1810
-
1811
- /**
1812
- * Optional A2A message providing additional context about the current status
1813
- */
1814
- export type RunAgentTaskStatusMessage = {
1815
- kind: RunAgentAgentsKind;
1816
- messageId: string;
1817
- /**
1818
- * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1819
- */
1820
- role: RunAgentExtendedMessageRole;
1821
- parts: Array<
1822
- | components.TextPart
1823
- | components.ErrorPart
1824
- | components.DataPart
1825
- | components.FilePart
1826
- | components.ToolCallPart
1827
- | components.ToolResultPart
1828
- >;
1829
- };
1830
-
1831
- /**
1832
- * Current task status information
1833
- */
1834
- export type RunAgentTaskStatus = {
1835
- /**
1836
- * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1837
- */
1838
- state: RunAgentTaskState;
1839
- /**
1840
- * ISO 8601 timestamp of when the status was updated
1841
- */
1842
- timestamp?: string | undefined;
1843
- /**
1844
- * Optional A2A message providing additional context about the current status
1845
- */
1846
- message?: RunAgentTaskStatusMessage | undefined;
1847
- };
1848
-
1849
- /**
1850
- * Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
1851
- */
1852
- export type RunAgentA2ATaskResponse = {
1853
- /**
1854
- * The unique ID of the created agent execution task
1855
- */
1856
- id: string;
1857
- /**
1858
- * The correlation ID for this execution (used for tracking)
1859
- */
1860
- contextId: string;
1861
- /**
1862
- * A2A entity type identifier
1863
- */
1864
- kind: RunAgentKind;
1865
- /**
1866
- * Current task status information
1867
- */
1868
- status: RunAgentTaskStatus;
1869
- /**
1870
- * Array of messages in the task conversation. Only present when blocking mode is enabled.
1871
- */
1872
- messages?: Array<components.ExtendedMessage> | undefined;
1873
- /**
1874
- * Task metadata containing workspace_id and trace_id for feedback and tracking
1875
- */
1876
- metadata?: { [k: string]: any } | undefined;
1877
- };
1878
-
1879
- /** @internal */
1880
- export type RunAgentResponseFormatAgentsJsonSchema$Outbound = {
1881
- description?: string | undefined;
1882
- name: string;
1883
- schema?: any | undefined;
1884
- strict: boolean;
1885
- };
1886
-
1887
- /** @internal */
1888
- export const RunAgentResponseFormatAgentsJsonSchema$outboundSchema: z.ZodType<
1889
- RunAgentResponseFormatAgentsJsonSchema$Outbound,
1890
- z.ZodTypeDef,
1891
- RunAgentResponseFormatAgentsJsonSchema
1892
- > = z.object({
1893
- description: z.string().optional(),
1894
- name: z.string(),
1895
- schema: z.any().optional(),
1896
- strict: z.boolean().default(false),
1897
- });
1898
-
1899
- export function runAgentResponseFormatAgentsJsonSchemaToJSON(
1900
- runAgentResponseFormatAgentsJsonSchema:
1901
- RunAgentResponseFormatAgentsJsonSchema,
1902
- ): string {
1903
- return JSON.stringify(
1904
- RunAgentResponseFormatAgentsJsonSchema$outboundSchema.parse(
1905
- runAgentResponseFormatAgentsJsonSchema,
1906
- ),
1907
- );
1908
- }
1909
-
1910
- /** @internal */
1911
- export type RunAgentResponseFormatJSONSchema$Outbound = {
1912
- type: "json_schema";
1913
- json_schema: RunAgentResponseFormatAgentsJsonSchema$Outbound;
1914
- };
1915
-
1916
- /** @internal */
1917
- export const RunAgentResponseFormatJSONSchema$outboundSchema: z.ZodType<
1918
- RunAgentResponseFormatJSONSchema$Outbound,
1919
- z.ZodTypeDef,
1920
- RunAgentResponseFormatJSONSchema
1921
- > = z.object({
1922
- type: z.literal("json_schema"),
1923
- jsonSchema: z.lazy(() =>
1924
- RunAgentResponseFormatAgentsJsonSchema$outboundSchema
1925
- ),
1926
- }).transform((v) => {
1927
- return remap$(v, {
1928
- jsonSchema: "json_schema",
1929
- });
1930
- });
1931
-
1932
- export function runAgentResponseFormatJSONSchemaToJSON(
1933
- runAgentResponseFormatJSONSchema: RunAgentResponseFormatJSONSchema,
1934
- ): string {
1935
- return JSON.stringify(
1936
- RunAgentResponseFormatJSONSchema$outboundSchema.parse(
1937
- runAgentResponseFormatJSONSchema,
1938
- ),
1939
- );
1940
- }
1941
-
1942
- /** @internal */
1943
- export type RunAgentResponseFormatJSONObject$Outbound = {
1944
- type: "json_object";
1945
- };
1946
-
1947
- /** @internal */
1948
- export const RunAgentResponseFormatJSONObject$outboundSchema: z.ZodType<
1949
- RunAgentResponseFormatJSONObject$Outbound,
1950
- z.ZodTypeDef,
1951
- RunAgentResponseFormatJSONObject
1952
- > = z.object({
1953
- type: z.literal("json_object"),
1954
- });
1955
-
1956
- export function runAgentResponseFormatJSONObjectToJSON(
1957
- runAgentResponseFormatJSONObject: RunAgentResponseFormatJSONObject,
1958
- ): string {
1959
- return JSON.stringify(
1960
- RunAgentResponseFormatJSONObject$outboundSchema.parse(
1961
- runAgentResponseFormatJSONObject,
1962
- ),
1963
- );
1964
- }
1965
-
1966
- /** @internal */
1967
- export type RunAgentResponseFormatText$Outbound = {
1968
- type: "text";
1969
- };
1970
-
1971
- /** @internal */
1972
- export const RunAgentResponseFormatText$outboundSchema: z.ZodType<
1973
- RunAgentResponseFormatText$Outbound,
1974
- z.ZodTypeDef,
1975
- RunAgentResponseFormatText
1976
- > = z.object({
1977
- type: z.literal("text"),
1978
- });
1979
-
1980
- export function runAgentResponseFormatTextToJSON(
1981
- runAgentResponseFormatText: RunAgentResponseFormatText,
1982
- ): string {
1983
- return JSON.stringify(
1984
- RunAgentResponseFormatText$outboundSchema.parse(runAgentResponseFormatText),
1985
- );
1986
- }
1987
-
1988
- /** @internal */
1989
- export type RunAgentModelConfigurationResponseFormat$Outbound =
1990
- | RunAgentResponseFormatText$Outbound
1991
- | RunAgentResponseFormatJSONObject$Outbound
1992
- | RunAgentResponseFormatJSONSchema$Outbound;
1993
-
1994
- /** @internal */
1995
- export const RunAgentModelConfigurationResponseFormat$outboundSchema: z.ZodType<
1996
- RunAgentModelConfigurationResponseFormat$Outbound,
1997
- z.ZodTypeDef,
1998
- RunAgentModelConfigurationResponseFormat
1999
- > = z.union([
2000
- z.lazy(() => RunAgentResponseFormatText$outboundSchema),
2001
- z.lazy(() => RunAgentResponseFormatJSONObject$outboundSchema),
2002
- z.lazy(() => RunAgentResponseFormatJSONSchema$outboundSchema),
2003
- ]);
2004
-
2005
- export function runAgentModelConfigurationResponseFormatToJSON(
2006
- runAgentModelConfigurationResponseFormat:
2007
- RunAgentModelConfigurationResponseFormat,
2008
- ): string {
2009
- return JSON.stringify(
2010
- RunAgentModelConfigurationResponseFormat$outboundSchema.parse(
2011
- runAgentModelConfigurationResponseFormat,
2012
- ),
2013
- );
2014
- }
2015
-
2016
- /** @internal */
2017
- export const RunAgentModelConfigurationReasoningEffort$outboundSchema:
2018
- z.ZodNativeEnum<typeof RunAgentModelConfigurationReasoningEffort> = z
2019
- .nativeEnum(RunAgentModelConfigurationReasoningEffort);
2020
-
2021
- /** @internal */
2022
- export type RunAgentModelConfigurationStop$Outbound = string | Array<string>;
2023
-
2024
- /** @internal */
2025
- export const RunAgentModelConfigurationStop$outboundSchema: z.ZodType<
2026
- RunAgentModelConfigurationStop$Outbound,
2027
- z.ZodTypeDef,
2028
- RunAgentModelConfigurationStop
2029
- > = z.union([z.string(), z.array(z.string())]);
2030
-
2031
- export function runAgentModelConfigurationStopToJSON(
2032
- runAgentModelConfigurationStop: RunAgentModelConfigurationStop,
2033
- ): string {
2034
- return JSON.stringify(
2035
- RunAgentModelConfigurationStop$outboundSchema.parse(
2036
- runAgentModelConfigurationStop,
2037
- ),
2038
- );
2039
- }
2040
-
2041
- /** @internal */
2042
- export type RunAgentModelConfigurationThinking$Outbound =
2043
- | components.ThinkingConfigDisabledSchema$Outbound
2044
- | components.ThinkingConfigEnabledSchema$Outbound
2045
- | components.ThinkingConfigAdaptiveSchema$Outbound;
2046
-
2047
- /** @internal */
2048
- export const RunAgentModelConfigurationThinking$outboundSchema: z.ZodType<
2049
- RunAgentModelConfigurationThinking$Outbound,
2050
- z.ZodTypeDef,
2051
- RunAgentModelConfigurationThinking
2052
- > = z.union([
2053
- components.ThinkingConfigDisabledSchema$outboundSchema,
2054
- components.ThinkingConfigEnabledSchema$outboundSchema,
2055
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
2056
- ]);
2057
-
2058
- export function runAgentModelConfigurationThinkingToJSON(
2059
- runAgentModelConfigurationThinking: RunAgentModelConfigurationThinking,
2060
- ): string {
2061
- return JSON.stringify(
2062
- RunAgentModelConfigurationThinking$outboundSchema.parse(
2063
- runAgentModelConfigurationThinking,
2064
- ),
2065
- );
2066
- }
2067
-
2068
- /** @internal */
2069
- export const RunAgentToolChoiceType$outboundSchema: z.ZodNativeEnum<
2070
- typeof RunAgentToolChoiceType
2071
- > = z.nativeEnum(RunAgentToolChoiceType);
2072
-
2073
- /** @internal */
2074
- export type RunAgentToolChoiceFunction$Outbound = {
2075
- name: string;
2076
- };
2077
-
2078
- /** @internal */
2079
- export const RunAgentToolChoiceFunction$outboundSchema: z.ZodType<
2080
- RunAgentToolChoiceFunction$Outbound,
2081
- z.ZodTypeDef,
2082
- RunAgentToolChoiceFunction
2083
- > = z.object({
2084
- name: z.string(),
2085
- });
2086
-
2087
- export function runAgentToolChoiceFunctionToJSON(
2088
- runAgentToolChoiceFunction: RunAgentToolChoiceFunction,
2089
- ): string {
2090
- return JSON.stringify(
2091
- RunAgentToolChoiceFunction$outboundSchema.parse(runAgentToolChoiceFunction),
2092
- );
2093
- }
2094
-
2095
- /** @internal */
2096
- export type RunAgentToolChoice2$Outbound = {
2097
- type?: string | undefined;
2098
- function: RunAgentToolChoiceFunction$Outbound;
2099
- };
2100
-
2101
- /** @internal */
2102
- export const RunAgentToolChoice2$outboundSchema: z.ZodType<
2103
- RunAgentToolChoice2$Outbound,
2104
- z.ZodTypeDef,
2105
- RunAgentToolChoice2
2106
- > = z.object({
2107
- type: RunAgentToolChoiceType$outboundSchema.optional(),
2108
- function: z.lazy(() => RunAgentToolChoiceFunction$outboundSchema),
2109
- });
2110
-
2111
- export function runAgentToolChoice2ToJSON(
2112
- runAgentToolChoice2: RunAgentToolChoice2,
2113
- ): string {
2114
- return JSON.stringify(
2115
- RunAgentToolChoice2$outboundSchema.parse(runAgentToolChoice2),
2116
- );
2117
- }
2118
-
2119
- /** @internal */
2120
- export const RunAgentToolChoice1$outboundSchema: z.ZodNativeEnum<
2121
- typeof RunAgentToolChoice1
2122
- > = z.nativeEnum(RunAgentToolChoice1);
2123
-
2124
- /** @internal */
2125
- export type RunAgentModelConfigurationToolChoice$Outbound =
2126
- | RunAgentToolChoice2$Outbound
2127
- | string;
2128
-
2129
- /** @internal */
2130
- export const RunAgentModelConfigurationToolChoice$outboundSchema: z.ZodType<
2131
- RunAgentModelConfigurationToolChoice$Outbound,
2132
- z.ZodTypeDef,
2133
- RunAgentModelConfigurationToolChoice
2134
- > = z.union([
2135
- z.lazy(() => RunAgentToolChoice2$outboundSchema),
2136
- RunAgentToolChoice1$outboundSchema,
2137
- ]);
2138
-
2139
- export function runAgentModelConfigurationToolChoiceToJSON(
2140
- runAgentModelConfigurationToolChoice: RunAgentModelConfigurationToolChoice,
2141
- ): string {
2142
- return JSON.stringify(
2143
- RunAgentModelConfigurationToolChoice$outboundSchema.parse(
2144
- runAgentModelConfigurationToolChoice,
2145
- ),
2146
- );
2147
- }
2148
-
2149
- /** @internal */
2150
- export const RunAgentModelConfigurationModalities$outboundSchema:
2151
- z.ZodNativeEnum<typeof RunAgentModelConfigurationModalities> = z.nativeEnum(
2152
- RunAgentModelConfigurationModalities,
2153
- );
2154
-
2155
- /** @internal */
2156
- export const RunAgentId1$outboundSchema: z.ZodNativeEnum<typeof RunAgentId1> = z
2157
- .nativeEnum(RunAgentId1);
2158
-
2159
- /** @internal */
2160
- export type RunAgentModelConfigurationId$Outbound = string | string;
2161
-
2162
- /** @internal */
2163
- export const RunAgentModelConfigurationId$outboundSchema: z.ZodType<
2164
- RunAgentModelConfigurationId$Outbound,
2165
- z.ZodTypeDef,
2166
- RunAgentModelConfigurationId
2167
- > = z.union([RunAgentId1$outboundSchema, z.string()]);
2168
-
2169
- export function runAgentModelConfigurationIdToJSON(
2170
- runAgentModelConfigurationId: RunAgentModelConfigurationId,
2171
- ): string {
2172
- return JSON.stringify(
2173
- RunAgentModelConfigurationId$outboundSchema.parse(
2174
- runAgentModelConfigurationId,
2175
- ),
2176
- );
2177
- }
2178
-
2179
- /** @internal */
2180
- export const RunAgentModelConfigurationExecuteOn$outboundSchema:
2181
- z.ZodNativeEnum<typeof RunAgentModelConfigurationExecuteOn> = z.nativeEnum(
2182
- RunAgentModelConfigurationExecuteOn,
2183
- );
2184
-
2185
- /** @internal */
2186
- export type RunAgentModelConfigurationGuardrails$Outbound = {
2187
- id: string | string;
2188
- execute_on: string;
2189
- };
2190
-
2191
- /** @internal */
2192
- export const RunAgentModelConfigurationGuardrails$outboundSchema: z.ZodType<
2193
- RunAgentModelConfigurationGuardrails$Outbound,
2194
- z.ZodTypeDef,
2195
- RunAgentModelConfigurationGuardrails
2196
- > = z.object({
2197
- id: z.union([RunAgentId1$outboundSchema, z.string()]),
2198
- executeOn: RunAgentModelConfigurationExecuteOn$outboundSchema,
2199
- }).transform((v) => {
2200
- return remap$(v, {
2201
- executeOn: "execute_on",
2202
- });
2203
- });
2204
-
2205
- export function runAgentModelConfigurationGuardrailsToJSON(
2206
- runAgentModelConfigurationGuardrails: RunAgentModelConfigurationGuardrails,
2207
- ): string {
2208
- return JSON.stringify(
2209
- RunAgentModelConfigurationGuardrails$outboundSchema.parse(
2210
- runAgentModelConfigurationGuardrails,
2211
- ),
2212
- );
2213
- }
2214
-
2215
- /** @internal */
2216
- export type RunAgentModelConfigurationFallbacks$Outbound = {
2217
- model: string;
2218
- };
2219
-
2220
- /** @internal */
2221
- export const RunAgentModelConfigurationFallbacks$outboundSchema: z.ZodType<
2222
- RunAgentModelConfigurationFallbacks$Outbound,
2223
- z.ZodTypeDef,
2224
- RunAgentModelConfigurationFallbacks
2225
- > = z.object({
2226
- model: z.string(),
2227
- });
2228
-
2229
- export function runAgentModelConfigurationFallbacksToJSON(
2230
- runAgentModelConfigurationFallbacks: RunAgentModelConfigurationFallbacks,
2231
- ): string {
2232
- return JSON.stringify(
2233
- RunAgentModelConfigurationFallbacks$outboundSchema.parse(
2234
- runAgentModelConfigurationFallbacks,
2235
- ),
2236
- );
2237
- }
2238
-
2239
- /** @internal */
2240
- export const RunAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2241
- typeof RunAgentModelConfigurationType
2242
- > = z.nativeEnum(RunAgentModelConfigurationType);
2243
-
2244
- /** @internal */
2245
- export type RunAgentModelConfigurationCache$Outbound = {
2246
- ttl: number;
2247
- type: string;
2248
- };
2249
-
2250
- /** @internal */
2251
- export const RunAgentModelConfigurationCache$outboundSchema: z.ZodType<
2252
- RunAgentModelConfigurationCache$Outbound,
2253
- z.ZodTypeDef,
2254
- RunAgentModelConfigurationCache
2255
- > = z.object({
2256
- ttl: z.number().default(1800),
2257
- type: RunAgentModelConfigurationType$outboundSchema,
2258
- });
2259
-
2260
- export function runAgentModelConfigurationCacheToJSON(
2261
- runAgentModelConfigurationCache: RunAgentModelConfigurationCache,
2262
- ): string {
2263
- return JSON.stringify(
2264
- RunAgentModelConfigurationCache$outboundSchema.parse(
2265
- runAgentModelConfigurationCache,
2266
- ),
2267
- );
2268
- }
2269
-
2270
- /** @internal */
2271
- export const RunAgentLoadBalancerType$outboundSchema: z.ZodNativeEnum<
2272
- typeof RunAgentLoadBalancerType
2273
- > = z.nativeEnum(RunAgentLoadBalancerType);
2274
-
2275
- /** @internal */
2276
- export type RunAgentLoadBalancerModels$Outbound = {
2277
- model: string;
2278
- weight: number;
2279
- };
2280
-
2281
- /** @internal */
2282
- export const RunAgentLoadBalancerModels$outboundSchema: z.ZodType<
2283
- RunAgentLoadBalancerModels$Outbound,
2284
- z.ZodTypeDef,
2285
- RunAgentLoadBalancerModels
2286
- > = z.object({
2287
- model: z.string(),
2288
- weight: z.number().default(0.5),
2289
- });
2290
-
2291
- export function runAgentLoadBalancerModelsToJSON(
2292
- runAgentLoadBalancerModels: RunAgentLoadBalancerModels,
2293
- ): string {
2294
- return JSON.stringify(
2295
- RunAgentLoadBalancerModels$outboundSchema.parse(runAgentLoadBalancerModels),
2296
- );
2297
- }
2298
-
2299
- /** @internal */
2300
- export type RunAgentLoadBalancer1$Outbound = {
2301
- type: string;
2302
- models: Array<RunAgentLoadBalancerModels$Outbound>;
2303
- };
2304
-
2305
- /** @internal */
2306
- export const RunAgentLoadBalancer1$outboundSchema: z.ZodType<
2307
- RunAgentLoadBalancer1$Outbound,
2308
- z.ZodTypeDef,
2309
- RunAgentLoadBalancer1
2310
- > = z.object({
2311
- type: RunAgentLoadBalancerType$outboundSchema,
2312
- models: z.array(z.lazy(() => RunAgentLoadBalancerModels$outboundSchema)),
2313
- });
2314
-
2315
- export function runAgentLoadBalancer1ToJSON(
2316
- runAgentLoadBalancer1: RunAgentLoadBalancer1,
2317
- ): string {
2318
- return JSON.stringify(
2319
- RunAgentLoadBalancer1$outboundSchema.parse(runAgentLoadBalancer1),
2320
- );
2321
- }
2322
-
2323
- /** @internal */
2324
- export type RunAgentModelConfigurationLoadBalancer$Outbound =
2325
- RunAgentLoadBalancer1$Outbound;
2326
-
2327
- /** @internal */
2328
- export const RunAgentModelConfigurationLoadBalancer$outboundSchema: z.ZodType<
2329
- RunAgentModelConfigurationLoadBalancer$Outbound,
2330
- z.ZodTypeDef,
2331
- RunAgentModelConfigurationLoadBalancer
2332
- > = z.lazy(() => RunAgentLoadBalancer1$outboundSchema);
2333
-
2334
- export function runAgentModelConfigurationLoadBalancerToJSON(
2335
- runAgentModelConfigurationLoadBalancer:
2336
- RunAgentModelConfigurationLoadBalancer,
2337
- ): string {
2338
- return JSON.stringify(
2339
- RunAgentModelConfigurationLoadBalancer$outboundSchema.parse(
2340
- runAgentModelConfigurationLoadBalancer,
2341
- ),
2342
- );
2343
- }
2344
-
2345
- /** @internal */
2346
- export type RunAgentModelConfigurationTimeout$Outbound = {
2347
- call_timeout: number;
2348
- };
2349
-
2350
- /** @internal */
2351
- export const RunAgentModelConfigurationTimeout$outboundSchema: z.ZodType<
2352
- RunAgentModelConfigurationTimeout$Outbound,
2353
- z.ZodTypeDef,
2354
- RunAgentModelConfigurationTimeout
2355
- > = z.object({
2356
- callTimeout: z.number(),
2357
- }).transform((v) => {
2358
- return remap$(v, {
2359
- callTimeout: "call_timeout",
2360
- });
2361
- });
2362
-
2363
- export function runAgentModelConfigurationTimeoutToJSON(
2364
- runAgentModelConfigurationTimeout: RunAgentModelConfigurationTimeout,
2365
- ): string {
2366
- return JSON.stringify(
2367
- RunAgentModelConfigurationTimeout$outboundSchema.parse(
2368
- runAgentModelConfigurationTimeout,
2369
- ),
2370
- );
2371
- }
2372
-
2373
- /** @internal */
2374
- export type RunAgentModelConfigurationParameters$Outbound = {
2375
- name?: string | undefined;
2376
- frequency_penalty?: number | null | undefined;
2377
- max_tokens?: number | null | undefined;
2378
- max_completion_tokens?: number | null | undefined;
2379
- presence_penalty?: number | null | undefined;
2380
- response_format?:
2381
- | RunAgentResponseFormatText$Outbound
2382
- | RunAgentResponseFormatJSONObject$Outbound
2383
- | RunAgentResponseFormatJSONSchema$Outbound
2384
- | undefined;
2385
- reasoning_effort?: string | undefined;
2386
- verbosity?: string | undefined;
2387
- seed?: number | null | undefined;
2388
- stop?: string | Array<string> | null | undefined;
2389
- thinking?:
2390
- | components.ThinkingConfigDisabledSchema$Outbound
2391
- | components.ThinkingConfigEnabledSchema$Outbound
2392
- | components.ThinkingConfigAdaptiveSchema$Outbound
2393
- | undefined;
2394
- temperature?: number | null | undefined;
2395
- top_p?: number | null | undefined;
2396
- top_k?: number | null | undefined;
2397
- tool_choice?: RunAgentToolChoice2$Outbound | string | undefined;
2398
- parallel_tool_calls?: boolean | undefined;
2399
- modalities?: Array<string> | null | undefined;
2400
- guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
2401
- fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
2402
- cache?: RunAgentModelConfigurationCache$Outbound | undefined;
2403
- load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
2404
- timeout?: RunAgentModelConfigurationTimeout$Outbound | undefined;
2405
- };
2406
-
2407
- /** @internal */
2408
- export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
2409
- RunAgentModelConfigurationParameters$Outbound,
2410
- z.ZodTypeDef,
2411
- RunAgentModelConfigurationParameters
2412
- > = z.object({
2413
- name: z.string().optional(),
2414
- frequencyPenalty: z.nullable(z.number()).optional(),
2415
- maxTokens: z.nullable(z.number().int()).optional(),
2416
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
2417
- presencePenalty: z.nullable(z.number()).optional(),
2418
- responseFormat: z.union([
2419
- z.lazy(() => RunAgentResponseFormatText$outboundSchema),
2420
- z.lazy(() => RunAgentResponseFormatJSONObject$outboundSchema),
2421
- z.lazy(() => RunAgentResponseFormatJSONSchema$outboundSchema),
2422
- ]).optional(),
2423
- reasoningEffort: RunAgentModelConfigurationReasoningEffort$outboundSchema
2424
- .optional(),
2425
- verbosity: z.string().optional(),
2426
- seed: z.nullable(z.number()).optional(),
2427
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2428
- thinking: z.union([
2429
- components.ThinkingConfigDisabledSchema$outboundSchema,
2430
- components.ThinkingConfigEnabledSchema$outboundSchema,
2431
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
2432
- ]).optional(),
2433
- temperature: z.nullable(z.number()).optional(),
2434
- topP: z.nullable(z.number()).optional(),
2435
- topK: z.nullable(z.number()).optional(),
2436
- toolChoice: z.union([
2437
- z.lazy(() => RunAgentToolChoice2$outboundSchema),
2438
- RunAgentToolChoice1$outboundSchema,
2439
- ]).optional(),
2440
- parallelToolCalls: z.boolean().optional(),
2441
- modalities: z.nullable(
2442
- z.array(RunAgentModelConfigurationModalities$outboundSchema),
2443
- ).optional(),
2444
- guardrails: z.array(
2445
- z.lazy(() => RunAgentModelConfigurationGuardrails$outboundSchema),
2446
- ).optional(),
2447
- fallbacks: z.array(
2448
- z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
2449
- ).optional(),
2450
- cache: z.lazy(() => RunAgentModelConfigurationCache$outboundSchema)
2451
- .optional(),
2452
- loadBalancer: z.lazy(() => RunAgentLoadBalancer1$outboundSchema).optional(),
2453
- timeout: z.lazy(() => RunAgentModelConfigurationTimeout$outboundSchema)
2454
- .optional(),
2455
- }).transform((v) => {
2456
- return remap$(v, {
2457
- frequencyPenalty: "frequency_penalty",
2458
- maxTokens: "max_tokens",
2459
- maxCompletionTokens: "max_completion_tokens",
2460
- presencePenalty: "presence_penalty",
2461
- responseFormat: "response_format",
2462
- reasoningEffort: "reasoning_effort",
2463
- topP: "top_p",
2464
- topK: "top_k",
2465
- toolChoice: "tool_choice",
2466
- parallelToolCalls: "parallel_tool_calls",
2467
- loadBalancer: "load_balancer",
2468
- });
2469
- });
2470
-
2471
- export function runAgentModelConfigurationParametersToJSON(
2472
- runAgentModelConfigurationParameters: RunAgentModelConfigurationParameters,
2473
- ): string {
2474
- return JSON.stringify(
2475
- RunAgentModelConfigurationParameters$outboundSchema.parse(
2476
- runAgentModelConfigurationParameters,
2477
- ),
2478
- );
2479
- }
2480
-
2481
- /** @internal */
2482
- export type RunAgentModelConfigurationRetry$Outbound = {
2483
- count: number;
2484
- on_codes?: Array<number> | undefined;
2485
- };
2486
-
2487
- /** @internal */
2488
- export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
2489
- RunAgentModelConfigurationRetry$Outbound,
2490
- z.ZodTypeDef,
2491
- RunAgentModelConfigurationRetry
2492
- > = z.object({
2493
- count: z.number().default(3),
2494
- onCodes: z.array(z.number()).optional(),
2495
- }).transform((v) => {
2496
- return remap$(v, {
2497
- onCodes: "on_codes",
2498
- });
2499
- });
2500
-
2501
- export function runAgentModelConfigurationRetryToJSON(
2502
- runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
2503
- ): string {
2504
- return JSON.stringify(
2505
- RunAgentModelConfigurationRetry$outboundSchema.parse(
2506
- runAgentModelConfigurationRetry,
2507
- ),
2508
- );
2509
- }
2510
-
2511
- /** @internal */
2512
- export type RunAgentModelConfiguration2$Outbound = {
2513
- id: string;
2514
- parameters?: RunAgentModelConfigurationParameters$Outbound | undefined;
2515
- retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
2516
- };
2517
-
2518
- /** @internal */
2519
- export const RunAgentModelConfiguration2$outboundSchema: z.ZodType<
2520
- RunAgentModelConfiguration2$Outbound,
2521
- z.ZodTypeDef,
2522
- RunAgentModelConfiguration2
2523
- > = z.object({
2524
- id: z.string(),
2525
- parameters: z.lazy(() => RunAgentModelConfigurationParameters$outboundSchema)
2526
- .optional(),
2527
- retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
2528
- .optional(),
2529
- });
2530
-
2531
- export function runAgentModelConfiguration2ToJSON(
2532
- runAgentModelConfiguration2: RunAgentModelConfiguration2,
2533
- ): string {
2534
- return JSON.stringify(
2535
- RunAgentModelConfiguration2$outboundSchema.parse(
2536
- runAgentModelConfiguration2,
2537
- ),
2538
- );
2539
- }
2540
-
2541
- /** @internal */
2542
- export type RunAgentModelConfiguration$Outbound =
2543
- | RunAgentModelConfiguration2$Outbound
2544
- | string;
2545
-
2546
- /** @internal */
2547
- export const RunAgentModelConfiguration$outboundSchema: z.ZodType<
2548
- RunAgentModelConfiguration$Outbound,
2549
- z.ZodTypeDef,
2550
- RunAgentModelConfiguration
2551
- > = z.union([
2552
- z.lazy(() => RunAgentModelConfiguration2$outboundSchema),
2553
- z.string(),
2554
- ]);
2555
-
2556
- export function runAgentModelConfigurationToJSON(
2557
- runAgentModelConfiguration: RunAgentModelConfiguration,
2558
- ): string {
2559
- return JSON.stringify(
2560
- RunAgentModelConfiguration$outboundSchema.parse(runAgentModelConfiguration),
2561
- );
2562
- }
2563
-
2564
- /** @internal */
2565
- export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
2566
- {
2567
- description?: string | undefined;
2568
- name: string;
2569
- schema?: any | undefined;
2570
- strict: boolean;
2571
- };
2572
-
2573
- /** @internal */
2574
- export const RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema:
2575
- z.ZodType<
2576
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound,
2577
- z.ZodTypeDef,
2578
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema
2579
- > = z.object({
2580
- description: z.string().optional(),
2581
- name: z.string(),
2582
- schema: z.any().optional(),
2583
- strict: z.boolean().default(false),
2584
- });
2585
-
2586
- export function runAgentResponseFormatAgentsRequestRequestBodyJsonSchemaToJSON(
2587
- runAgentResponseFormatAgentsRequestRequestBodyJsonSchema:
2588
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema,
2589
- ): string {
2590
- return JSON.stringify(
2591
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
2592
- .parse(runAgentResponseFormatAgentsRequestRequestBodyJsonSchema),
2593
- );
2594
- }
2595
-
2596
- /** @internal */
2597
- export type RunAgentResponseFormatAgentsRequestJSONSchema$Outbound = {
2598
- type: "json_schema";
2599
- json_schema:
2600
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound;
2601
- };
2602
-
2603
- /** @internal */
2604
- export const RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema:
2605
- z.ZodType<
2606
- RunAgentResponseFormatAgentsRequestJSONSchema$Outbound,
2607
- z.ZodTypeDef,
2608
- RunAgentResponseFormatAgentsRequestJSONSchema
2609
- > = z.object({
2610
- type: z.literal("json_schema"),
2611
- jsonSchema: z.lazy(() =>
2612
- RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
2613
- ),
2614
- }).transform((v) => {
2615
- return remap$(v, {
2616
- jsonSchema: "json_schema",
2617
- });
2618
- });
2619
-
2620
- export function runAgentResponseFormatAgentsRequestJSONSchemaToJSON(
2621
- runAgentResponseFormatAgentsRequestJSONSchema:
2622
- RunAgentResponseFormatAgentsRequestJSONSchema,
2623
- ): string {
2624
- return JSON.stringify(
2625
- RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema.parse(
2626
- runAgentResponseFormatAgentsRequestJSONSchema,
2627
- ),
2628
- );
2629
- }
2630
-
2631
- /** @internal */
2632
- export type RunAgentResponseFormatAgentsJSONObject$Outbound = {
2633
- type: "json_object";
2634
- };
2635
-
2636
- /** @internal */
2637
- export const RunAgentResponseFormatAgentsJSONObject$outboundSchema: z.ZodType<
2638
- RunAgentResponseFormatAgentsJSONObject$Outbound,
2639
- z.ZodTypeDef,
2640
- RunAgentResponseFormatAgentsJSONObject
2641
- > = z.object({
2642
- type: z.literal("json_object"),
2643
- });
2644
-
2645
- export function runAgentResponseFormatAgentsJSONObjectToJSON(
2646
- runAgentResponseFormatAgentsJSONObject:
2647
- RunAgentResponseFormatAgentsJSONObject,
2648
- ): string {
2649
- return JSON.stringify(
2650
- RunAgentResponseFormatAgentsJSONObject$outboundSchema.parse(
2651
- runAgentResponseFormatAgentsJSONObject,
2652
- ),
2653
- );
2654
- }
2655
-
2656
- /** @internal */
2657
- export type RunAgentResponseFormatAgentsText$Outbound = {
2658
- type: "text";
2659
- };
2660
-
2661
- /** @internal */
2662
- export const RunAgentResponseFormatAgentsText$outboundSchema: z.ZodType<
2663
- RunAgentResponseFormatAgentsText$Outbound,
2664
- z.ZodTypeDef,
2665
- RunAgentResponseFormatAgentsText
2666
- > = z.object({
2667
- type: z.literal("text"),
2668
- });
2669
-
2670
- export function runAgentResponseFormatAgentsTextToJSON(
2671
- runAgentResponseFormatAgentsText: RunAgentResponseFormatAgentsText,
2672
- ): string {
2673
- return JSON.stringify(
2674
- RunAgentResponseFormatAgentsText$outboundSchema.parse(
2675
- runAgentResponseFormatAgentsText,
2676
- ),
2677
- );
2678
- }
2679
-
2680
- /** @internal */
2681
- export type RunAgentFallbackModelConfigurationResponseFormat$Outbound =
2682
- | RunAgentResponseFormatAgentsText$Outbound
2683
- | RunAgentResponseFormatAgentsJSONObject$Outbound
2684
- | RunAgentResponseFormatAgentsRequestJSONSchema$Outbound;
2685
-
2686
- /** @internal */
2687
- export const RunAgentFallbackModelConfigurationResponseFormat$outboundSchema:
2688
- z.ZodType<
2689
- RunAgentFallbackModelConfigurationResponseFormat$Outbound,
2690
- z.ZodTypeDef,
2691
- RunAgentFallbackModelConfigurationResponseFormat
2692
- > = z.union([
2693
- z.lazy(() => RunAgentResponseFormatAgentsText$outboundSchema),
2694
- z.lazy(() => RunAgentResponseFormatAgentsJSONObject$outboundSchema),
2695
- z.lazy(() => RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema),
2696
- ]);
2697
-
2698
- export function runAgentFallbackModelConfigurationResponseFormatToJSON(
2699
- runAgentFallbackModelConfigurationResponseFormat:
2700
- RunAgentFallbackModelConfigurationResponseFormat,
2701
- ): string {
2702
- return JSON.stringify(
2703
- RunAgentFallbackModelConfigurationResponseFormat$outboundSchema.parse(
2704
- runAgentFallbackModelConfigurationResponseFormat,
2705
- ),
2706
- );
2707
- }
2708
-
2709
- /** @internal */
2710
- export const RunAgentFallbackModelConfigurationReasoningEffort$outboundSchema:
2711
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationReasoningEffort> = z
2712
- .nativeEnum(RunAgentFallbackModelConfigurationReasoningEffort);
2713
-
2714
- /** @internal */
2715
- export type RunAgentFallbackModelConfigurationStop$Outbound =
2716
- | string
2717
- | Array<string>;
2718
-
2719
- /** @internal */
2720
- export const RunAgentFallbackModelConfigurationStop$outboundSchema: z.ZodType<
2721
- RunAgentFallbackModelConfigurationStop$Outbound,
2722
- z.ZodTypeDef,
2723
- RunAgentFallbackModelConfigurationStop
2724
- > = z.union([z.string(), z.array(z.string())]);
2725
-
2726
- export function runAgentFallbackModelConfigurationStopToJSON(
2727
- runAgentFallbackModelConfigurationStop:
2728
- RunAgentFallbackModelConfigurationStop,
2729
- ): string {
2730
- return JSON.stringify(
2731
- RunAgentFallbackModelConfigurationStop$outboundSchema.parse(
2732
- runAgentFallbackModelConfigurationStop,
2733
- ),
2734
- );
2735
- }
2736
-
2737
- /** @internal */
2738
- export type RunAgentFallbackModelConfigurationThinking$Outbound =
2739
- | components.ThinkingConfigDisabledSchema$Outbound
2740
- | components.ThinkingConfigEnabledSchema$Outbound
2741
- | components.ThinkingConfigAdaptiveSchema$Outbound;
2742
-
2743
- /** @internal */
2744
- export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
2745
- z.ZodType<
2746
- RunAgentFallbackModelConfigurationThinking$Outbound,
2747
- z.ZodTypeDef,
2748
- RunAgentFallbackModelConfigurationThinking
2749
- > = z.union([
2750
- components.ThinkingConfigDisabledSchema$outboundSchema,
2751
- components.ThinkingConfigEnabledSchema$outboundSchema,
2752
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
2753
- ]);
2754
-
2755
- export function runAgentFallbackModelConfigurationThinkingToJSON(
2756
- runAgentFallbackModelConfigurationThinking:
2757
- RunAgentFallbackModelConfigurationThinking,
2758
- ): string {
2759
- return JSON.stringify(
2760
- RunAgentFallbackModelConfigurationThinking$outboundSchema.parse(
2761
- runAgentFallbackModelConfigurationThinking,
2762
- ),
2763
- );
2764
- }
2765
-
2766
- /** @internal */
2767
- export const RunAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
2768
- typeof RunAgentToolChoiceAgentsType
2769
- > = z.nativeEnum(RunAgentToolChoiceAgentsType);
2770
-
2771
- /** @internal */
2772
- export type RunAgentToolChoiceAgentsFunction$Outbound = {
2773
- name: string;
2774
- };
2775
-
2776
- /** @internal */
2777
- export const RunAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<
2778
- RunAgentToolChoiceAgentsFunction$Outbound,
2779
- z.ZodTypeDef,
2780
- RunAgentToolChoiceAgentsFunction
2781
- > = z.object({
2782
- name: z.string(),
2783
- });
2784
-
2785
- export function runAgentToolChoiceAgentsFunctionToJSON(
2786
- runAgentToolChoiceAgentsFunction: RunAgentToolChoiceAgentsFunction,
2787
- ): string {
2788
- return JSON.stringify(
2789
- RunAgentToolChoiceAgentsFunction$outboundSchema.parse(
2790
- runAgentToolChoiceAgentsFunction,
2791
- ),
2792
- );
2793
- }
2794
-
2795
- /** @internal */
2796
- export type RunAgentToolChoiceAgents2$Outbound = {
2797
- type?: string | undefined;
2798
- function: RunAgentToolChoiceAgentsFunction$Outbound;
2799
- };
2800
-
2801
- /** @internal */
2802
- export const RunAgentToolChoiceAgents2$outboundSchema: z.ZodType<
2803
- RunAgentToolChoiceAgents2$Outbound,
2804
- z.ZodTypeDef,
2805
- RunAgentToolChoiceAgents2
2806
- > = z.object({
2807
- type: RunAgentToolChoiceAgentsType$outboundSchema.optional(),
2808
- function: z.lazy(() => RunAgentToolChoiceAgentsFunction$outboundSchema),
2809
- });
2810
-
2811
- export function runAgentToolChoiceAgents2ToJSON(
2812
- runAgentToolChoiceAgents2: RunAgentToolChoiceAgents2,
2813
- ): string {
2814
- return JSON.stringify(
2815
- RunAgentToolChoiceAgents2$outboundSchema.parse(runAgentToolChoiceAgents2),
2816
- );
2817
- }
2818
-
2819
- /** @internal */
2820
- export const RunAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
2821
- typeof RunAgentToolChoiceAgents1
2822
- > = z.nativeEnum(RunAgentToolChoiceAgents1);
2823
-
2824
- /** @internal */
2825
- export type RunAgentFallbackModelConfigurationToolChoice$Outbound =
2826
- | RunAgentToolChoiceAgents2$Outbound
2827
- | string;
2828
-
2829
- /** @internal */
2830
- export const RunAgentFallbackModelConfigurationToolChoice$outboundSchema:
2831
- z.ZodType<
2832
- RunAgentFallbackModelConfigurationToolChoice$Outbound,
2833
- z.ZodTypeDef,
2834
- RunAgentFallbackModelConfigurationToolChoice
2835
- > = z.union([
2836
- z.lazy(() => RunAgentToolChoiceAgents2$outboundSchema),
2837
- RunAgentToolChoiceAgents1$outboundSchema,
2838
- ]);
2839
-
2840
- export function runAgentFallbackModelConfigurationToolChoiceToJSON(
2841
- runAgentFallbackModelConfigurationToolChoice:
2842
- RunAgentFallbackModelConfigurationToolChoice,
2843
- ): string {
2844
- return JSON.stringify(
2845
- RunAgentFallbackModelConfigurationToolChoice$outboundSchema.parse(
2846
- runAgentFallbackModelConfigurationToolChoice,
2847
- ),
2848
- );
2849
- }
2850
-
2851
- /** @internal */
2852
- export const RunAgentFallbackModelConfigurationModalities$outboundSchema:
2853
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationModalities> = z
2854
- .nativeEnum(RunAgentFallbackModelConfigurationModalities);
2855
-
2856
- /** @internal */
2857
- export const RunAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
2858
- typeof RunAgentIdAgents1
2859
- > = z.nativeEnum(RunAgentIdAgents1);
2860
-
2861
- /** @internal */
2862
- export type RunAgentFallbackModelConfigurationId$Outbound = string | string;
2863
-
2864
- /** @internal */
2865
- export const RunAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
2866
- RunAgentFallbackModelConfigurationId$Outbound,
2867
- z.ZodTypeDef,
2868
- RunAgentFallbackModelConfigurationId
2869
- > = z.union([RunAgentIdAgents1$outboundSchema, z.string()]);
2870
-
2871
- export function runAgentFallbackModelConfigurationIdToJSON(
2872
- runAgentFallbackModelConfigurationId: RunAgentFallbackModelConfigurationId,
2873
- ): string {
2874
- return JSON.stringify(
2875
- RunAgentFallbackModelConfigurationId$outboundSchema.parse(
2876
- runAgentFallbackModelConfigurationId,
2877
- ),
2878
- );
2879
- }
2880
-
2881
- /** @internal */
2882
- export const RunAgentFallbackModelConfigurationExecuteOn$outboundSchema:
2883
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationExecuteOn> = z
2884
- .nativeEnum(RunAgentFallbackModelConfigurationExecuteOn);
2885
-
2886
- /** @internal */
2887
- export type RunAgentFallbackModelConfigurationGuardrails$Outbound = {
2888
- id: string | string;
2889
- execute_on: string;
2890
- };
2891
-
2892
- /** @internal */
2893
- export const RunAgentFallbackModelConfigurationGuardrails$outboundSchema:
2894
- z.ZodType<
2895
- RunAgentFallbackModelConfigurationGuardrails$Outbound,
2896
- z.ZodTypeDef,
2897
- RunAgentFallbackModelConfigurationGuardrails
2898
- > = z.object({
2899
- id: z.union([RunAgentIdAgents1$outboundSchema, z.string()]),
2900
- executeOn: RunAgentFallbackModelConfigurationExecuteOn$outboundSchema,
2901
- }).transform((v) => {
2902
- return remap$(v, {
2903
- executeOn: "execute_on",
2904
- });
2905
- });
2906
-
2907
- export function runAgentFallbackModelConfigurationGuardrailsToJSON(
2908
- runAgentFallbackModelConfigurationGuardrails:
2909
- RunAgentFallbackModelConfigurationGuardrails,
2910
- ): string {
2911
- return JSON.stringify(
2912
- RunAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
2913
- runAgentFallbackModelConfigurationGuardrails,
2914
- ),
2915
- );
2916
- }
2917
-
2918
- /** @internal */
2919
- export type RunAgentFallbackModelConfigurationFallbacks$Outbound = {
2920
- model: string;
2921
- };
2922
-
2923
- /** @internal */
2924
- export const RunAgentFallbackModelConfigurationFallbacks$outboundSchema:
2925
- z.ZodType<
2926
- RunAgentFallbackModelConfigurationFallbacks$Outbound,
2927
- z.ZodTypeDef,
2928
- RunAgentFallbackModelConfigurationFallbacks
2929
- > = z.object({
2930
- model: z.string(),
2931
- });
2932
-
2933
- export function runAgentFallbackModelConfigurationFallbacksToJSON(
2934
- runAgentFallbackModelConfigurationFallbacks:
2935
- RunAgentFallbackModelConfigurationFallbacks,
2936
- ): string {
2937
- return JSON.stringify(
2938
- RunAgentFallbackModelConfigurationFallbacks$outboundSchema.parse(
2939
- runAgentFallbackModelConfigurationFallbacks,
2940
- ),
2941
- );
2942
- }
2943
-
2944
- /** @internal */
2945
- export const RunAgentFallbackModelConfigurationType$outboundSchema:
2946
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> = z.nativeEnum(
2947
- RunAgentFallbackModelConfigurationType,
2948
- );
2949
-
2950
- /** @internal */
2951
- export type RunAgentFallbackModelConfigurationCache$Outbound = {
2952
- ttl: number;
2953
- type: string;
2954
- };
2955
-
2956
- /** @internal */
2957
- export const RunAgentFallbackModelConfigurationCache$outboundSchema: z.ZodType<
2958
- RunAgentFallbackModelConfigurationCache$Outbound,
2959
- z.ZodTypeDef,
2960
- RunAgentFallbackModelConfigurationCache
2961
- > = z.object({
2962
- ttl: z.number().default(1800),
2963
- type: RunAgentFallbackModelConfigurationType$outboundSchema,
2964
- });
2965
-
2966
- export function runAgentFallbackModelConfigurationCacheToJSON(
2967
- runAgentFallbackModelConfigurationCache:
2968
- RunAgentFallbackModelConfigurationCache,
2969
- ): string {
2970
- return JSON.stringify(
2971
- RunAgentFallbackModelConfigurationCache$outboundSchema.parse(
2972
- runAgentFallbackModelConfigurationCache,
2973
- ),
2974
- );
2975
- }
2976
-
2977
- /** @internal */
2978
- export const RunAgentLoadBalancerAgentsType$outboundSchema: z.ZodNativeEnum<
2979
- typeof RunAgentLoadBalancerAgentsType
2980
- > = z.nativeEnum(RunAgentLoadBalancerAgentsType);
2981
-
2982
- /** @internal */
2983
- export type RunAgentLoadBalancerAgentsModels$Outbound = {
2984
- model: string;
2985
- weight: number;
2986
- };
2987
-
2988
- /** @internal */
2989
- export const RunAgentLoadBalancerAgentsModels$outboundSchema: z.ZodType<
2990
- RunAgentLoadBalancerAgentsModels$Outbound,
2991
- z.ZodTypeDef,
2992
- RunAgentLoadBalancerAgentsModels
2993
- > = z.object({
2994
- model: z.string(),
2995
- weight: z.number().default(0.5),
2996
- });
2997
-
2998
- export function runAgentLoadBalancerAgentsModelsToJSON(
2999
- runAgentLoadBalancerAgentsModels: RunAgentLoadBalancerAgentsModels,
3000
- ): string {
3001
- return JSON.stringify(
3002
- RunAgentLoadBalancerAgentsModels$outboundSchema.parse(
3003
- runAgentLoadBalancerAgentsModels,
3004
- ),
3005
- );
3006
- }
3007
-
3008
- /** @internal */
3009
- export type RunAgentLoadBalancerAgents1$Outbound = {
3010
- type: string;
3011
- models: Array<RunAgentLoadBalancerAgentsModels$Outbound>;
3012
- };
3013
-
3014
- /** @internal */
3015
- export const RunAgentLoadBalancerAgents1$outboundSchema: z.ZodType<
3016
- RunAgentLoadBalancerAgents1$Outbound,
3017
- z.ZodTypeDef,
3018
- RunAgentLoadBalancerAgents1
3019
- > = z.object({
3020
- type: RunAgentLoadBalancerAgentsType$outboundSchema,
3021
- models: z.array(
3022
- z.lazy(() => RunAgentLoadBalancerAgentsModels$outboundSchema),
3023
- ),
3024
- });
3025
-
3026
- export function runAgentLoadBalancerAgents1ToJSON(
3027
- runAgentLoadBalancerAgents1: RunAgentLoadBalancerAgents1,
3028
- ): string {
3029
- return JSON.stringify(
3030
- RunAgentLoadBalancerAgents1$outboundSchema.parse(
3031
- runAgentLoadBalancerAgents1,
3032
- ),
3033
- );
3034
- }
3035
-
3036
- /** @internal */
3037
- export type RunAgentFallbackModelConfigurationLoadBalancer$Outbound =
3038
- RunAgentLoadBalancerAgents1$Outbound;
3039
-
3040
- /** @internal */
3041
- export const RunAgentFallbackModelConfigurationLoadBalancer$outboundSchema:
3042
- z.ZodType<
3043
- RunAgentFallbackModelConfigurationLoadBalancer$Outbound,
3044
- z.ZodTypeDef,
3045
- RunAgentFallbackModelConfigurationLoadBalancer
3046
- > = z.lazy(() => RunAgentLoadBalancerAgents1$outboundSchema);
3047
-
3048
- export function runAgentFallbackModelConfigurationLoadBalancerToJSON(
3049
- runAgentFallbackModelConfigurationLoadBalancer:
3050
- RunAgentFallbackModelConfigurationLoadBalancer,
3051
- ): string {
3052
- return JSON.stringify(
3053
- RunAgentFallbackModelConfigurationLoadBalancer$outboundSchema.parse(
3054
- runAgentFallbackModelConfigurationLoadBalancer,
3055
- ),
3056
- );
3057
- }
3058
-
3059
- /** @internal */
3060
- export type RunAgentFallbackModelConfigurationTimeout$Outbound = {
3061
- call_timeout: number;
3062
- };
3063
-
3064
- /** @internal */
3065
- export const RunAgentFallbackModelConfigurationTimeout$outboundSchema:
3066
- z.ZodType<
3067
- RunAgentFallbackModelConfigurationTimeout$Outbound,
3068
- z.ZodTypeDef,
3069
- RunAgentFallbackModelConfigurationTimeout
3070
- > = z.object({
3071
- callTimeout: z.number(),
3072
- }).transform((v) => {
3073
- return remap$(v, {
3074
- callTimeout: "call_timeout",
3075
- });
3076
- });
3077
-
3078
- export function runAgentFallbackModelConfigurationTimeoutToJSON(
3079
- runAgentFallbackModelConfigurationTimeout:
3080
- RunAgentFallbackModelConfigurationTimeout,
3081
- ): string {
3082
- return JSON.stringify(
3083
- RunAgentFallbackModelConfigurationTimeout$outboundSchema.parse(
3084
- runAgentFallbackModelConfigurationTimeout,
3085
- ),
3086
- );
3087
- }
3088
-
3089
- /** @internal */
3090
- export type RunAgentFallbackModelConfigurationParameters$Outbound = {
3091
- name?: string | undefined;
3092
- frequency_penalty?: number | null | undefined;
3093
- max_tokens?: number | null | undefined;
3094
- max_completion_tokens?: number | null | undefined;
3095
- presence_penalty?: number | null | undefined;
3096
- response_format?:
3097
- | RunAgentResponseFormatAgentsText$Outbound
3098
- | RunAgentResponseFormatAgentsJSONObject$Outbound
3099
- | RunAgentResponseFormatAgentsRequestJSONSchema$Outbound
3100
- | undefined;
3101
- reasoning_effort?: string | undefined;
3102
- verbosity?: string | undefined;
3103
- seed?: number | null | undefined;
3104
- stop?: string | Array<string> | null | undefined;
3105
- thinking?:
3106
- | components.ThinkingConfigDisabledSchema$Outbound
3107
- | components.ThinkingConfigEnabledSchema$Outbound
3108
- | components.ThinkingConfigAdaptiveSchema$Outbound
3109
- | undefined;
3110
- temperature?: number | null | undefined;
3111
- top_p?: number | null | undefined;
3112
- top_k?: number | null | undefined;
3113
- tool_choice?: RunAgentToolChoiceAgents2$Outbound | string | undefined;
3114
- parallel_tool_calls?: boolean | undefined;
3115
- modalities?: Array<string> | null | undefined;
3116
- guardrails?:
3117
- | Array<RunAgentFallbackModelConfigurationGuardrails$Outbound>
3118
- | undefined;
3119
- fallbacks?:
3120
- | Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
3121
- | undefined;
3122
- cache?: RunAgentFallbackModelConfigurationCache$Outbound | undefined;
3123
- load_balancer?: RunAgentLoadBalancerAgents1$Outbound | undefined;
3124
- timeout?: RunAgentFallbackModelConfigurationTimeout$Outbound | undefined;
3125
- };
3126
-
3127
- /** @internal */
3128
- export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
3129
- z.ZodType<
3130
- RunAgentFallbackModelConfigurationParameters$Outbound,
3131
- z.ZodTypeDef,
3132
- RunAgentFallbackModelConfigurationParameters
3133
- > = z.object({
3134
- name: z.string().optional(),
3135
- frequencyPenalty: z.nullable(z.number()).optional(),
3136
- maxTokens: z.nullable(z.number().int()).optional(),
3137
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
3138
- presencePenalty: z.nullable(z.number()).optional(),
3139
- responseFormat: z.union([
3140
- z.lazy(() => RunAgentResponseFormatAgentsText$outboundSchema),
3141
- z.lazy(() => RunAgentResponseFormatAgentsJSONObject$outboundSchema),
3142
- z.lazy(() =>
3143
- RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3144
- ),
3145
- ]).optional(),
3146
- reasoningEffort:
3147
- RunAgentFallbackModelConfigurationReasoningEffort$outboundSchema
3148
- .optional(),
3149
- verbosity: z.string().optional(),
3150
- seed: z.nullable(z.number()).optional(),
3151
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3152
- thinking: z.union([
3153
- components.ThinkingConfigDisabledSchema$outboundSchema,
3154
- components.ThinkingConfigEnabledSchema$outboundSchema,
3155
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
3156
- ]).optional(),
3157
- temperature: z.nullable(z.number()).optional(),
3158
- topP: z.nullable(z.number()).optional(),
3159
- topK: z.nullable(z.number()).optional(),
3160
- toolChoice: z.union([
3161
- z.lazy(() => RunAgentToolChoiceAgents2$outboundSchema),
3162
- RunAgentToolChoiceAgents1$outboundSchema,
3163
- ]).optional(),
3164
- parallelToolCalls: z.boolean().optional(),
3165
- modalities: z.nullable(
3166
- z.array(RunAgentFallbackModelConfigurationModalities$outboundSchema),
3167
- ).optional(),
3168
- guardrails: z.array(
3169
- z.lazy(() => RunAgentFallbackModelConfigurationGuardrails$outboundSchema),
3170
- ).optional(),
3171
- fallbacks: z.array(
3172
- z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
3173
- ).optional(),
3174
- cache: z.lazy(() => RunAgentFallbackModelConfigurationCache$outboundSchema)
3175
- .optional(),
3176
- loadBalancer: z.lazy(() => RunAgentLoadBalancerAgents1$outboundSchema)
3177
- .optional(),
3178
- timeout: z.lazy(() =>
3179
- RunAgentFallbackModelConfigurationTimeout$outboundSchema
3180
- ).optional(),
3181
- }).transform((v) => {
3182
- return remap$(v, {
3183
- frequencyPenalty: "frequency_penalty",
3184
- maxTokens: "max_tokens",
3185
- maxCompletionTokens: "max_completion_tokens",
3186
- presencePenalty: "presence_penalty",
3187
- responseFormat: "response_format",
3188
- reasoningEffort: "reasoning_effort",
3189
- topP: "top_p",
3190
- topK: "top_k",
3191
- toolChoice: "tool_choice",
3192
- parallelToolCalls: "parallel_tool_calls",
3193
- loadBalancer: "load_balancer",
3194
- });
3195
- });
3196
-
3197
- export function runAgentFallbackModelConfigurationParametersToJSON(
3198
- runAgentFallbackModelConfigurationParameters:
3199
- RunAgentFallbackModelConfigurationParameters,
3200
- ): string {
3201
- return JSON.stringify(
3202
- RunAgentFallbackModelConfigurationParameters$outboundSchema.parse(
3203
- runAgentFallbackModelConfigurationParameters,
3204
- ),
3205
- );
3206
- }
3207
-
3208
- /** @internal */
3209
- export type RunAgentFallbackModelConfigurationRetry$Outbound = {
3210
- count: number;
3211
- on_codes?: Array<number> | undefined;
3212
- };
3213
-
3214
- /** @internal */
3215
- export const RunAgentFallbackModelConfigurationRetry$outboundSchema: z.ZodType<
3216
- RunAgentFallbackModelConfigurationRetry$Outbound,
3217
- z.ZodTypeDef,
3218
- RunAgentFallbackModelConfigurationRetry
3219
- > = z.object({
3220
- count: z.number().default(3),
3221
- onCodes: z.array(z.number()).optional(),
3222
- }).transform((v) => {
3223
- return remap$(v, {
3224
- onCodes: "on_codes",
3225
- });
3226
- });
3227
-
3228
- export function runAgentFallbackModelConfigurationRetryToJSON(
3229
- runAgentFallbackModelConfigurationRetry:
3230
- RunAgentFallbackModelConfigurationRetry,
3231
- ): string {
3232
- return JSON.stringify(
3233
- RunAgentFallbackModelConfigurationRetry$outboundSchema.parse(
3234
- runAgentFallbackModelConfigurationRetry,
3235
- ),
3236
- );
3237
- }
3238
-
3239
- /** @internal */
3240
- export type RunAgentFallbackModelConfiguration2$Outbound = {
3241
- id: string;
3242
- parameters?:
3243
- | RunAgentFallbackModelConfigurationParameters$Outbound
3244
- | undefined;
3245
- retry?: RunAgentFallbackModelConfigurationRetry$Outbound | undefined;
3246
- };
3247
-
3248
- /** @internal */
3249
- export const RunAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
3250
- RunAgentFallbackModelConfiguration2$Outbound,
3251
- z.ZodTypeDef,
3252
- RunAgentFallbackModelConfiguration2
3253
- > = z.object({
3254
- id: z.string(),
3255
- parameters: z.lazy(() =>
3256
- RunAgentFallbackModelConfigurationParameters$outboundSchema
3257
- ).optional(),
3258
- retry: z.lazy(() => RunAgentFallbackModelConfigurationRetry$outboundSchema)
3259
- .optional(),
3260
- });
3261
-
3262
- export function runAgentFallbackModelConfiguration2ToJSON(
3263
- runAgentFallbackModelConfiguration2: RunAgentFallbackModelConfiguration2,
3264
- ): string {
3265
- return JSON.stringify(
3266
- RunAgentFallbackModelConfiguration2$outboundSchema.parse(
3267
- runAgentFallbackModelConfiguration2,
3268
- ),
3269
- );
3270
- }
3271
-
3272
- /** @internal */
3273
- export type RunAgentFallbackModelConfiguration$Outbound =
3274
- | RunAgentFallbackModelConfiguration2$Outbound
3275
- | string;
3276
-
3277
- /** @internal */
3278
- export const RunAgentFallbackModelConfiguration$outboundSchema: z.ZodType<
3279
- RunAgentFallbackModelConfiguration$Outbound,
3280
- z.ZodTypeDef,
3281
- RunAgentFallbackModelConfiguration
3282
- > = z.union([
3283
- z.lazy(() => RunAgentFallbackModelConfiguration2$outboundSchema),
3284
- z.string(),
3285
- ]);
3286
-
3287
- export function runAgentFallbackModelConfigurationToJSON(
3288
- runAgentFallbackModelConfiguration: RunAgentFallbackModelConfiguration,
3289
- ): string {
3290
- return JSON.stringify(
3291
- RunAgentFallbackModelConfiguration$outboundSchema.parse(
3292
- runAgentFallbackModelConfiguration,
3293
- ),
3294
- );
3295
- }
3296
-
3297
- /** @internal */
3298
- export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
3299
- typeof RunAgentRoleToolMessage
3300
- > = z.nativeEnum(RunAgentRoleToolMessage);
3301
-
3302
- /** @internal */
3303
- export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
3304
- typeof RunAgentRoleUserMessage
3305
- > = z.nativeEnum(RunAgentRoleUserMessage);
3306
-
3307
- /** @internal */
3308
- export type RunAgentRole$Outbound = string | string;
3309
-
3310
- /** @internal */
3311
- export const RunAgentRole$outboundSchema: z.ZodType<
3312
- RunAgentRole$Outbound,
3313
- z.ZodTypeDef,
3314
- RunAgentRole
3315
- > = z.union([
3316
- RunAgentRoleUserMessage$outboundSchema,
3317
- RunAgentRoleToolMessage$outboundSchema,
3318
- ]);
3319
-
3320
- export function runAgentRoleToJSON(runAgentRole: RunAgentRole): string {
3321
- return JSON.stringify(RunAgentRole$outboundSchema.parse(runAgentRole));
3322
- }
3323
-
3324
- /** @internal */
3325
- export type RunAgentPublicMessagePart$Outbound =
3326
- | components.TextPart$Outbound
3327
- | components.FilePart$Outbound
3328
- | components.ToolResultPart$Outbound
3329
- | components.ErrorPart$Outbound;
3330
-
3331
- /** @internal */
3332
- export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
3333
- RunAgentPublicMessagePart$Outbound,
3334
- z.ZodTypeDef,
3335
- RunAgentPublicMessagePart
3336
- > = z.union([
3337
- components.TextPart$outboundSchema,
3338
- components.FilePart$outboundSchema,
3339
- components.ToolResultPart$outboundSchema,
3340
- components.ErrorPart$outboundSchema,
3341
- ]);
3342
-
3343
- export function runAgentPublicMessagePartToJSON(
3344
- runAgentPublicMessagePart: RunAgentPublicMessagePart,
3345
- ): string {
3346
- return JSON.stringify(
3347
- RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
3348
- );
3349
- }
3350
-
3351
- /** @internal */
3352
- export type RunAgentA2AMessage$Outbound = {
3353
- messageId?: string | undefined;
3354
- role: string | string;
3355
- parts: Array<
3356
- | components.TextPart$Outbound
3357
- | components.FilePart$Outbound
3358
- | components.ToolResultPart$Outbound
3359
- | components.ErrorPart$Outbound
3360
- >;
3361
- };
3362
-
3363
- /** @internal */
3364
- export const RunAgentA2AMessage$outboundSchema: z.ZodType<
3365
- RunAgentA2AMessage$Outbound,
3366
- z.ZodTypeDef,
3367
- RunAgentA2AMessage
3368
- > = z.object({
3369
- messageId: z.string().optional(),
3370
- role: z.union([
3371
- RunAgentRoleUserMessage$outboundSchema,
3372
- RunAgentRoleToolMessage$outboundSchema,
3373
- ]),
3374
- parts: z.array(
3375
- z.union([
3376
- components.TextPart$outboundSchema,
3377
- components.FilePart$outboundSchema,
3378
- components.ToolResultPart$outboundSchema,
3379
- components.ErrorPart$outboundSchema,
3380
- ]),
3381
- ),
3382
- });
3383
-
3384
- export function runAgentA2AMessageToJSON(
3385
- runAgentA2AMessage: RunAgentA2AMessage,
3386
- ): string {
3387
- return JSON.stringify(
3388
- RunAgentA2AMessage$outboundSchema.parse(runAgentA2AMessage),
3389
- );
3390
- }
3391
-
3392
- /** @internal */
3393
- export type RunAgentIdentity$Outbound = {
3394
- id: string;
3395
- display_name?: string | undefined;
3396
- email?: string | undefined;
3397
- metadata?: Array<{ [k: string]: any }> | undefined;
3398
- logo_url?: string | undefined;
3399
- tags?: Array<string> | undefined;
3400
- };
3401
-
3402
- /** @internal */
3403
- export const RunAgentIdentity$outboundSchema: z.ZodType<
3404
- RunAgentIdentity$Outbound,
3405
- z.ZodTypeDef,
3406
- RunAgentIdentity
3407
- > = z.object({
3408
- id: z.string(),
3409
- displayName: z.string().optional(),
3410
- email: z.string().optional(),
3411
- metadata: z.array(z.record(z.any())).optional(),
3412
- logoUrl: z.string().optional(),
3413
- tags: z.array(z.string()).optional(),
3414
- }).transform((v) => {
3415
- return remap$(v, {
3416
- displayName: "display_name",
3417
- logoUrl: "logo_url",
3418
- });
3419
- });
3420
-
3421
- export function runAgentIdentityToJSON(
3422
- runAgentIdentity: RunAgentIdentity,
3423
- ): string {
3424
- return JSON.stringify(
3425
- RunAgentIdentity$outboundSchema.parse(runAgentIdentity),
3426
- );
3427
- }
3428
-
3429
- /** @internal */
3430
- export type RunAgentContact$Outbound = {
3431
- id: string;
3432
- display_name?: string | undefined;
3433
- email?: string | undefined;
3434
- metadata?: Array<{ [k: string]: any }> | undefined;
3435
- logo_url?: string | undefined;
3436
- tags?: Array<string> | undefined;
3437
- };
3438
-
3439
- /** @internal */
3440
- export const RunAgentContact$outboundSchema: z.ZodType<
3441
- RunAgentContact$Outbound,
3442
- z.ZodTypeDef,
3443
- RunAgentContact
3444
- > = z.object({
3445
- id: z.string(),
3446
- displayName: z.string().optional(),
3447
- email: z.string().optional(),
3448
- metadata: z.array(z.record(z.any())).optional(),
3449
- logoUrl: z.string().optional(),
3450
- tags: z.array(z.string()).optional(),
3451
- }).transform((v) => {
3452
- return remap$(v, {
3453
- displayName: "display_name",
3454
- logoUrl: "logo_url",
3455
- });
3456
- });
3457
-
3458
- export function runAgentContactToJSON(
3459
- runAgentContact: RunAgentContact,
3460
- ): string {
3461
- return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
3462
- }
3463
-
3464
- /** @internal */
3465
- export type RunAgentThread$Outbound = {
3466
- id: string;
3467
- tags?: Array<string> | undefined;
3468
- };
3469
-
3470
- /** @internal */
3471
- export const RunAgentThread$outboundSchema: z.ZodType<
3472
- RunAgentThread$Outbound,
3473
- z.ZodTypeDef,
3474
- RunAgentThread
3475
- > = z.object({
3476
- id: z.string(),
3477
- tags: z.array(z.string()).optional(),
3478
- });
3479
-
3480
- export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
3481
- return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
3482
- }
3483
-
3484
- /** @internal */
3485
- export type RunAgentMemory$Outbound = {
3486
- entity_id: string;
3487
- };
3488
-
3489
- /** @internal */
3490
- export const RunAgentMemory$outboundSchema: z.ZodType<
3491
- RunAgentMemory$Outbound,
3492
- z.ZodTypeDef,
3493
- RunAgentMemory
3494
- > = z.object({
3495
- entityId: z.string(),
3496
- }).transform((v) => {
3497
- return remap$(v, {
3498
- entityId: "entity_id",
3499
- });
3500
- });
3501
-
3502
- export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
3503
- return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
3504
- }
3505
-
3506
- /** @internal */
3507
- export type RunAgentKnowledgeBases$Outbound = {
3508
- knowledge_id: string;
3509
- };
3510
-
3511
- /** @internal */
3512
- export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
3513
- RunAgentKnowledgeBases$Outbound,
3514
- z.ZodTypeDef,
3515
- RunAgentKnowledgeBases
3516
- > = z.object({
3517
- knowledgeId: z.string(),
3518
- }).transform((v) => {
3519
- return remap$(v, {
3520
- knowledgeId: "knowledge_id",
3521
- });
3522
- });
3523
-
3524
- export function runAgentKnowledgeBasesToJSON(
3525
- runAgentKnowledgeBases: RunAgentKnowledgeBases,
3526
- ): string {
3527
- return JSON.stringify(
3528
- RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
3529
- );
3530
- }
3531
-
3532
- /** @internal */
3533
- export type RunAgentTeamOfAgents$Outbound = {
3534
- key: string;
3535
- role?: string | undefined;
3536
- };
3537
-
3538
- /** @internal */
3539
- export const RunAgentTeamOfAgents$outboundSchema: z.ZodType<
3540
- RunAgentTeamOfAgents$Outbound,
3541
- z.ZodTypeDef,
3542
- RunAgentTeamOfAgents
3543
- > = z.object({
3544
- key: z.string(),
3545
- role: z.string().optional(),
3546
- });
3547
-
3548
- export function runAgentTeamOfAgentsToJSON(
3549
- runAgentTeamOfAgents: RunAgentTeamOfAgents,
3550
- ): string {
3551
- return JSON.stringify(
3552
- RunAgentTeamOfAgents$outboundSchema.parse(runAgentTeamOfAgents),
3553
- );
3554
- }
3555
-
3556
- /** @internal */
3557
- export type AgentToolInputRunHeaders$Outbound = {
3558
- value: string;
3559
- encrypted: boolean;
3560
- };
3561
-
3562
- /** @internal */
3563
- export const AgentToolInputRunHeaders$outboundSchema: z.ZodType<
3564
- AgentToolInputRunHeaders$Outbound,
3565
- z.ZodTypeDef,
3566
- AgentToolInputRunHeaders
3567
- > = z.object({
3568
- value: z.string(),
3569
- encrypted: z.boolean().default(false),
3570
- });
3571
-
3572
- export function agentToolInputRunHeadersToJSON(
3573
- agentToolInputRunHeaders: AgentToolInputRunHeaders,
3574
- ): string {
3575
- return JSON.stringify(
3576
- AgentToolInputRunHeaders$outboundSchema.parse(agentToolInputRunHeaders),
3577
- );
3578
- }
3579
-
3580
- /** @internal */
3581
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$outboundSchema:
3582
- z.ZodNativeEnum<
3583
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType
3584
- > = z.nativeEnum(
3585
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType,
3586
- );
3587
-
3588
- /** @internal */
3589
- export type AgentToolInputRunSchema$Outbound = {
3590
- type: string;
3591
- properties?: { [k: string]: any } | undefined;
3592
- required?: Array<string> | undefined;
3593
- };
3594
-
3595
- /** @internal */
3596
- export const AgentToolInputRunSchema$outboundSchema: z.ZodType<
3597
- AgentToolInputRunSchema$Outbound,
3598
- z.ZodTypeDef,
3599
- AgentToolInputRunSchema
3600
- > = z.object({
3601
- type:
3602
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$outboundSchema,
3603
- properties: z.record(z.any()).optional(),
3604
- required: z.array(z.string()).optional(),
3605
- });
3606
-
3607
- export function agentToolInputRunSchemaToJSON(
3608
- agentToolInputRunSchema: AgentToolInputRunSchema,
3609
- ): string {
3610
- return JSON.stringify(
3611
- AgentToolInputRunSchema$outboundSchema.parse(agentToolInputRunSchema),
3612
- );
3613
- }
3614
-
3615
- /** @internal */
3616
- export type Tools$Outbound = {
3617
- id: string;
3618
- name: string;
3619
- description?: string | undefined;
3620
- schema: AgentToolInputRunSchema$Outbound;
3621
- };
3622
-
3623
- /** @internal */
3624
- export const Tools$outboundSchema: z.ZodType<
3625
- Tools$Outbound,
3626
- z.ZodTypeDef,
3627
- Tools
3628
- > = z.object({
3629
- id: z.string().default("01KT9EQS0A451S0CZSMND2K1PX"),
3630
- name: z.string(),
3631
- description: z.string().optional(),
3632
- schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
3633
- });
3634
-
3635
- export function toolsToJSON(tools: Tools): string {
3636
- return JSON.stringify(Tools$outboundSchema.parse(tools));
3637
- }
3638
-
3639
- /** @internal */
3640
- export const ConnectionType$outboundSchema: z.ZodNativeEnum<
3641
- typeof ConnectionType
3642
- > = z.nativeEnum(ConnectionType);
3643
-
3644
- /** @internal */
3645
- export type Mcp$Outbound = {
3646
- server_url: string;
3647
- headers?: { [k: string]: AgentToolInputRunHeaders$Outbound } | undefined;
3648
- tools: Array<Tools$Outbound>;
3649
- connection_type: string;
3650
- };
3651
-
3652
- /** @internal */
3653
- export const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp> = z
3654
- .object({
3655
- serverUrl: z.string(),
3656
- headers: z.record(z.lazy(() => AgentToolInputRunHeaders$outboundSchema))
3657
- .optional(),
3658
- tools: z.array(z.lazy(() => Tools$outboundSchema)),
3659
- connectionType: ConnectionType$outboundSchema,
3660
- }).transform((v) => {
3661
- return remap$(v, {
3662
- serverUrl: "server_url",
3663
- connectionType: "connection_type",
3664
- });
3665
- });
3666
-
3667
- export function mcpToJSON(mcp: Mcp): string {
3668
- return JSON.stringify(Mcp$outboundSchema.parse(mcp));
3669
- }
3670
-
3671
- /** @internal */
3672
- export type MCPToolRun$Outbound = {
3673
- type: "mcp";
3674
- key: string;
3675
- _id?: string | undefined;
3676
- display_name?: string | undefined;
3677
- description: string;
3678
- mcp: Mcp$Outbound;
3679
- requires_approval: boolean;
3680
- };
3681
-
3682
- /** @internal */
3683
- export const MCPToolRun$outboundSchema: z.ZodType<
3684
- MCPToolRun$Outbound,
3685
- z.ZodTypeDef,
3686
- MCPToolRun
3687
- > = z.object({
3688
- type: z.literal("mcp"),
3689
- key: z.string(),
3690
- id: z.string().optional(),
3691
- displayName: z.string().optional(),
3692
- description: z.string(),
3693
- mcp: z.lazy(() => Mcp$outboundSchema),
3694
- requiresApproval: z.boolean().default(false),
3695
- }).transform((v) => {
3696
- return remap$(v, {
3697
- id: "_id",
3698
- displayName: "display_name",
3699
- requiresApproval: "requires_approval",
3700
- });
3701
- });
3702
-
3703
- export function mcpToolRunToJSON(mcpToolRun: MCPToolRun): string {
3704
- return JSON.stringify(MCPToolRun$outboundSchema.parse(mcpToolRun));
3705
- }
3706
-
3707
- /** @internal */
3708
- export type Schema$Outbound = {
3709
- type: string;
3710
- properties: { [k: string]: any };
3711
- required: Array<string>;
3712
- [additionalProperties: string]: unknown;
3713
- };
3714
-
3715
- /** @internal */
3716
- export const Schema$outboundSchema: z.ZodType<
3717
- Schema$Outbound,
3718
- z.ZodTypeDef,
3719
- Schema
3720
- > = z.object({
3721
- type: z.string(),
3722
- properties: z.record(z.any()),
3723
- required: z.array(z.string()),
3724
- additionalProperties: z.record(z.any()).optional(),
3725
- }).transform((v) => {
3726
- return {
3727
- ...v.additionalProperties,
3728
- ...remap$(v, {
3729
- additionalProperties: null,
3730
- }),
3731
- };
3732
- });
3733
-
3734
- export function schemaToJSON(schema: Schema): string {
3735
- return JSON.stringify(Schema$outboundSchema.parse(schema));
3736
- }
3737
-
3738
- /** @internal */
3739
- export type AgentToolInputRunJsonSchema$Outbound = {
3740
- name: string;
3741
- description: string;
3742
- schema: Schema$Outbound;
3743
- strict?: boolean | undefined;
3744
- };
3745
-
3746
- /** @internal */
3747
- export const AgentToolInputRunJsonSchema$outboundSchema: z.ZodType<
3748
- AgentToolInputRunJsonSchema$Outbound,
3749
- z.ZodTypeDef,
3750
- AgentToolInputRunJsonSchema
3751
- > = z.object({
3752
- name: z.string(),
3753
- description: z.string(),
3754
- schema: z.lazy(() => Schema$outboundSchema),
3755
- strict: z.boolean().optional(),
3756
- });
3757
-
3758
- export function agentToolInputRunJsonSchemaToJSON(
3759
- agentToolInputRunJsonSchema: AgentToolInputRunJsonSchema,
3760
- ): string {
3761
- return JSON.stringify(
3762
- AgentToolInputRunJsonSchema$outboundSchema.parse(
3763
- agentToolInputRunJsonSchema,
3764
- ),
3765
- );
3766
- }
3767
-
3768
- /** @internal */
3769
- export type JSONSchemaToolRun$Outbound = {
3770
- type: "json_schema";
3771
- key: string;
3772
- _id?: string | undefined;
3773
- display_name?: string | undefined;
3774
- description: string;
3775
- json_schema: AgentToolInputRunJsonSchema$Outbound;
3776
- requires_approval: boolean;
3777
- };
3778
-
3779
- /** @internal */
3780
- export const JSONSchemaToolRun$outboundSchema: z.ZodType<
3781
- JSONSchemaToolRun$Outbound,
3782
- z.ZodTypeDef,
3783
- JSONSchemaToolRun
3784
- > = z.object({
3785
- type: z.literal("json_schema"),
3786
- key: z.string(),
3787
- id: z.string().optional(),
3788
- displayName: z.string().optional(),
3789
- description: z.string(),
3790
- jsonSchema: z.lazy(() => AgentToolInputRunJsonSchema$outboundSchema),
3791
- requiresApproval: z.boolean().default(false),
3792
- }).transform((v) => {
3793
- return remap$(v, {
3794
- id: "_id",
3795
- displayName: "display_name",
3796
- jsonSchema: "json_schema",
3797
- requiresApproval: "requires_approval",
3798
- });
3799
- });
3800
-
3801
- export function jsonSchemaToolRunToJSON(
3802
- jsonSchemaToolRun: JSONSchemaToolRun,
3803
- ): string {
3804
- return JSON.stringify(
3805
- JSONSchemaToolRun$outboundSchema.parse(jsonSchemaToolRun),
3806
- );
3807
- }
3808
-
3809
- /** @internal */
3810
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema:
3811
- z.ZodNativeEnum<
3812
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType
3813
- > = z.nativeEnum(
3814
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType,
3815
- );
3816
-
3817
- /** @internal */
3818
- export type RunAgentAgentToolInputRunParameters$Outbound = {
3819
- type: string;
3820
- properties: { [k: string]: any };
3821
- required: Array<string>;
3822
- [additionalProperties: string]: unknown;
3823
- };
3824
-
3825
- /** @internal */
3826
- export const RunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<
3827
- RunAgentAgentToolInputRunParameters$Outbound,
3828
- z.ZodTypeDef,
3829
- RunAgentAgentToolInputRunParameters
3830
- > = z.object({
3831
- type:
3832
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema,
3833
- properties: z.record(z.any()),
3834
- required: z.array(z.string()),
3835
- additionalProperties: z.record(z.any()).optional(),
3836
- }).transform((v) => {
3837
- return {
3838
- ...v.additionalProperties,
3839
- ...remap$(v, {
3840
- additionalProperties: null,
3841
- }),
3842
- };
3843
- });
3844
-
3845
- export function runAgentAgentToolInputRunParametersToJSON(
3846
- runAgentAgentToolInputRunParameters: RunAgentAgentToolInputRunParameters,
3847
- ): string {
3848
- return JSON.stringify(
3849
- RunAgentAgentToolInputRunParameters$outboundSchema.parse(
3850
- runAgentAgentToolInputRunParameters,
3851
- ),
3852
- );
3853
- }
3854
-
3855
- /** @internal */
3856
- export type AgentToolInputRunFunction$Outbound = {
3857
- name: string;
3858
- description?: string | undefined;
3859
- strict?: boolean | undefined;
3860
- parameters?: RunAgentAgentToolInputRunParameters$Outbound | undefined;
3861
- };
3862
-
3863
- /** @internal */
3864
- export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
3865
- AgentToolInputRunFunction$Outbound,
3866
- z.ZodTypeDef,
3867
- AgentToolInputRunFunction
3868
- > = z.object({
3869
- name: z.string(),
3870
- description: z.string().optional(),
3871
- strict: z.boolean().optional(),
3872
- parameters: z.lazy(() => RunAgentAgentToolInputRunParameters$outboundSchema)
3873
- .optional(),
3874
- });
3875
-
3876
- export function agentToolInputRunFunctionToJSON(
3877
- agentToolInputRunFunction: AgentToolInputRunFunction,
3878
- ): string {
3879
- return JSON.stringify(
3880
- AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
3881
- );
3882
- }
3883
-
3884
- /** @internal */
3885
- export type FunctionToolRun$Outbound = {
3886
- type: "function";
3887
- key: string;
3888
- _id?: string | undefined;
3889
- display_name?: string | undefined;
3890
- description?: string | undefined;
3891
- function: AgentToolInputRunFunction$Outbound;
3892
- requires_approval: boolean;
3893
- };
3894
-
3895
- /** @internal */
3896
- export const FunctionToolRun$outboundSchema: z.ZodType<
3897
- FunctionToolRun$Outbound,
3898
- z.ZodTypeDef,
3899
- FunctionToolRun
3900
- > = z.object({
3901
- type: z.literal("function"),
3902
- key: z.string(),
3903
- id: z.string().optional(),
3904
- displayName: z.string().optional(),
3905
- description: z.string().optional(),
3906
- function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
3907
- requiresApproval: z.boolean().default(false),
3908
- }).transform((v) => {
3909
- return remap$(v, {
3910
- id: "_id",
3911
- displayName: "display_name",
3912
- requiresApproval: "requires_approval",
3913
- });
3914
- });
3915
-
3916
- export function functionToolRunToJSON(
3917
- functionToolRun: FunctionToolRun,
3918
- ): string {
3919
- return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
3920
- }
3921
-
3922
- /** @internal */
3923
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema:
3924
- z.ZodNativeEnum<
3925
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType
3926
- > = z.nativeEnum(
3927
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType,
3928
- );
3929
-
3930
- /** @internal */
3931
- export type AgentToolInputRunParameters$Outbound = {
3932
- type: string;
3933
- properties: { [k: string]: any };
3934
- required: Array<string>;
3935
- [additionalProperties: string]: unknown;
3936
- };
3937
-
3938
- /** @internal */
3939
- export const AgentToolInputRunParameters$outboundSchema: z.ZodType<
3940
- AgentToolInputRunParameters$Outbound,
3941
- z.ZodTypeDef,
3942
- AgentToolInputRunParameters
3943
- > = z.object({
3944
- type:
3945
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema,
3946
- properties: z.record(z.any()),
3947
- required: z.array(z.string()),
3948
- additionalProperties: z.record(z.any()).optional(),
3949
- }).transform((v) => {
3950
- return {
3951
- ...v.additionalProperties,
3952
- ...remap$(v, {
3953
- additionalProperties: null,
3954
- }),
3955
- };
3956
- });
3957
-
3958
- export function agentToolInputRunParametersToJSON(
3959
- agentToolInputRunParameters: AgentToolInputRunParameters,
3960
- ): string {
3961
- return JSON.stringify(
3962
- AgentToolInputRunParameters$outboundSchema.parse(
3963
- agentToolInputRunParameters,
3964
- ),
3965
- );
3966
- }
3967
-
3968
- /** @internal */
3969
- export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> = z
3970
- .nativeEnum(Language);
3971
-
3972
- /** @internal */
3973
- export type CodeTool$Outbound = {
3974
- parameters?: AgentToolInputRunParameters$Outbound | undefined;
3975
- language: string;
3976
- code: string;
3977
- };
3978
-
3979
- /** @internal */
3980
- export const CodeTool$outboundSchema: z.ZodType<
3981
- CodeTool$Outbound,
3982
- z.ZodTypeDef,
3983
- CodeTool
3984
- > = z.object({
3985
- parameters: z.lazy(() => AgentToolInputRunParameters$outboundSchema)
3986
- .optional(),
3987
- language: Language$outboundSchema,
3988
- code: z.string(),
3989
- });
3990
-
3991
- export function codeToolToJSON(codeTool: CodeTool): string {
3992
- return JSON.stringify(CodeTool$outboundSchema.parse(codeTool));
3993
- }
3994
-
3995
- /** @internal */
3996
- export type CodeToolRun$Outbound = {
3997
- type: "code";
3998
- key: string;
3999
- _id?: string | undefined;
4000
- display_name?: string | undefined;
4001
- description: string;
4002
- code_tool: CodeTool$Outbound;
4003
- requires_approval: boolean;
4004
- };
4005
-
4006
- /** @internal */
4007
- export const CodeToolRun$outboundSchema: z.ZodType<
4008
- CodeToolRun$Outbound,
4009
- z.ZodTypeDef,
4010
- CodeToolRun
4011
- > = z.object({
4012
- type: z.literal("code"),
4013
- key: z.string(),
4014
- id: z.string().optional(),
4015
- displayName: z.string().optional(),
4016
- description: z.string(),
4017
- codeTool: z.lazy(() => CodeTool$outboundSchema),
4018
- requiresApproval: z.boolean().default(false),
4019
- }).transform((v) => {
4020
- return remap$(v, {
4021
- id: "_id",
4022
- displayName: "display_name",
4023
- codeTool: "code_tool",
4024
- requiresApproval: "requires_approval",
4025
- });
4026
- });
4027
-
4028
- export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
4029
- return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
4030
- }
4031
-
4032
- /** @internal */
4033
- export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> = z
4034
- .nativeEnum(Method);
4035
-
4036
- /** @internal */
4037
- export type Headers2$Outbound = {
4038
- value: string;
4039
- encrypted: boolean;
4040
- };
4041
-
4042
- /** @internal */
4043
- export const Headers2$outboundSchema: z.ZodType<
4044
- Headers2$Outbound,
4045
- z.ZodTypeDef,
4046
- Headers2
4047
- > = z.object({
4048
- value: z.string(),
4049
- encrypted: z.boolean().default(false),
4050
- });
4051
-
4052
- export function headers2ToJSON(headers2: Headers2): string {
4053
- return JSON.stringify(Headers2$outboundSchema.parse(headers2));
4054
- }
4055
-
4056
- /** @internal */
4057
- export type Headers$Outbound = Headers2$Outbound | string;
4058
-
4059
- /** @internal */
4060
- export const Headers$outboundSchema: z.ZodType<
4061
- Headers$Outbound,
4062
- z.ZodTypeDef,
4063
- Headers
4064
- > = z.union([z.lazy(() => Headers2$outboundSchema), z.string()]);
4065
-
4066
- export function headersToJSON(headers: Headers): string {
4067
- return JSON.stringify(Headers$outboundSchema.parse(headers));
4068
- }
4069
-
4070
- /** @internal */
4071
- export type Blueprint$Outbound = {
4072
- url: string;
4073
- method: string;
4074
- headers?: { [k: string]: Headers2$Outbound | string } | undefined;
4075
- body?: { [k: string]: any } | undefined;
4076
- };
4077
-
4078
- /** @internal */
4079
- export const Blueprint$outboundSchema: z.ZodType<
4080
- Blueprint$Outbound,
4081
- z.ZodTypeDef,
4082
- Blueprint
4083
- > = z.object({
4084
- url: z.string(),
4085
- method: Method$outboundSchema,
4086
- headers: z.record(
4087
- z.union([z.lazy(() => Headers2$outboundSchema), z.string()]),
4088
- ).optional(),
4089
- body: z.record(z.any()).optional(),
4090
- });
4091
-
4092
- export function blueprintToJSON(blueprint: Blueprint): string {
4093
- return JSON.stringify(Blueprint$outboundSchema.parse(blueprint));
4094
- }
4095
-
4096
- /** @internal */
4097
- export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
4098
- z.ZodNativeEnum<
4099
- typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
4100
- > = z.nativeEnum(
4101
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
4102
- );
4103
-
4104
- /** @internal */
4105
- export type DefaultValue$Outbound = string | number | boolean;
4106
-
4107
- /** @internal */
4108
- export const DefaultValue$outboundSchema: z.ZodType<
4109
- DefaultValue$Outbound,
4110
- z.ZodTypeDef,
4111
- DefaultValue
4112
- > = z.union([z.string(), z.number(), z.boolean()]);
4113
-
4114
- export function defaultValueToJSON(defaultValue: DefaultValue): string {
4115
- return JSON.stringify(DefaultValue$outboundSchema.parse(defaultValue));
4116
- }
4117
-
4118
- /** @internal */
4119
- export type Arguments$Outbound = {
4120
- type: string;
4121
- description: string;
4122
- send_to_model: boolean;
4123
- default_value?: string | number | boolean | undefined;
4124
- };
4125
-
4126
- /** @internal */
4127
- export const Arguments$outboundSchema: z.ZodType<
4128
- Arguments$Outbound,
4129
- z.ZodTypeDef,
4130
- Arguments
4131
- > = z.object({
4132
- type:
4133
- RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
4134
- description: z.string(),
4135
- sendToModel: z.boolean().default(true),
4136
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
4137
- }).transform((v) => {
4138
- return remap$(v, {
4139
- sendToModel: "send_to_model",
4140
- defaultValue: "default_value",
4141
- });
4142
- });
4143
-
4144
- export function argumentsToJSON(value: Arguments): string {
4145
- return JSON.stringify(Arguments$outboundSchema.parse(value));
4146
- }
4147
-
4148
- /** @internal */
4149
- export type Http$Outbound = {
4150
- blueprint: Blueprint$Outbound;
4151
- arguments?: { [k: string]: Arguments$Outbound } | undefined;
4152
- };
4153
-
4154
- /** @internal */
4155
- export const Http$outboundSchema: z.ZodType<Http$Outbound, z.ZodTypeDef, Http> =
4156
- z.object({
4157
- blueprint: z.lazy(() => Blueprint$outboundSchema),
4158
- arguments: z.record(z.lazy(() => Arguments$outboundSchema)).optional(),
4159
- });
4160
-
4161
- export function httpToJSON(http: Http): string {
4162
- return JSON.stringify(Http$outboundSchema.parse(http));
4163
- }
4164
-
4165
- /** @internal */
4166
- export type HTTPToolRun$Outbound = {
4167
- type: "http";
4168
- key: string;
4169
- _id?: string | undefined;
4170
- display_name?: string | undefined;
4171
- description: string;
4172
- http: Http$Outbound;
4173
- requires_approval: boolean;
4174
- };
4175
-
4176
- /** @internal */
4177
- export const HTTPToolRun$outboundSchema: z.ZodType<
4178
- HTTPToolRun$Outbound,
4179
- z.ZodTypeDef,
4180
- HTTPToolRun
4181
- > = z.object({
4182
- type: z.literal("http"),
4183
- key: z.string(),
4184
- id: z.string().optional(),
4185
- displayName: z.string().optional(),
4186
- description: z.string(),
4187
- http: z.lazy(() => Http$outboundSchema),
4188
- requiresApproval: z.boolean().default(false),
4189
- }).transform((v) => {
4190
- return remap$(v, {
4191
- id: "_id",
4192
- displayName: "display_name",
4193
- requiresApproval: "requires_approval",
4194
- });
4195
- });
4196
-
4197
- export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
4198
- return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
4199
- }
4200
-
4201
- /** @internal */
4202
- export type AgentToolInputRunCurrentDateTool$Outbound = {
4203
- type: "current_date";
4204
- requires_approval?: boolean | undefined;
4205
- };
4206
-
4207
- /** @internal */
4208
- export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
4209
- AgentToolInputRunCurrentDateTool$Outbound,
4210
- z.ZodTypeDef,
4211
- AgentToolInputRunCurrentDateTool
4212
- > = z.object({
4213
- type: z.literal("current_date"),
4214
- requiresApproval: z.boolean().optional(),
4215
- }).transform((v) => {
4216
- return remap$(v, {
4217
- requiresApproval: "requires_approval",
4218
- });
4219
- });
4220
-
4221
- export function agentToolInputRunCurrentDateToolToJSON(
4222
- agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
4223
- ): string {
4224
- return JSON.stringify(
4225
- AgentToolInputRunCurrentDateTool$outboundSchema.parse(
4226
- agentToolInputRunCurrentDateTool,
4227
- ),
4228
- );
4229
- }
4230
-
4231
- /** @internal */
4232
- export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
4233
- type: "query_knowledge_base";
4234
- requires_approval?: boolean | undefined;
4235
- };
4236
-
4237
- /** @internal */
4238
- export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4239
- AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
4240
- z.ZodTypeDef,
4241
- AgentToolInputRunQueryKnowledgeBaseTool
4242
- > = z.object({
4243
- type: z.literal("query_knowledge_base"),
4244
- requiresApproval: z.boolean().optional(),
4245
- }).transform((v) => {
4246
- return remap$(v, {
4247
- requiresApproval: "requires_approval",
4248
- });
4249
- });
4250
-
4251
- export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
4252
- agentToolInputRunQueryKnowledgeBaseTool:
4253
- AgentToolInputRunQueryKnowledgeBaseTool,
4254
- ): string {
4255
- return JSON.stringify(
4256
- AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
4257
- agentToolInputRunQueryKnowledgeBaseTool,
4258
- ),
4259
- );
4260
- }
4261
-
4262
- /** @internal */
4263
- export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
4264
- type: "retrieve_knowledge_bases";
4265
- requires_approval?: boolean | undefined;
4266
- };
4267
-
4268
- /** @internal */
4269
- export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
4270
- z.ZodType<
4271
- AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
4272
- z.ZodTypeDef,
4273
- AgentToolInputRunRetrieveKnowledgeBasesTool
4274
- > = z.object({
4275
- type: z.literal("retrieve_knowledge_bases"),
4276
- requiresApproval: z.boolean().optional(),
4277
- }).transform((v) => {
4278
- return remap$(v, {
4279
- requiresApproval: "requires_approval",
4280
- });
4281
- });
4282
-
4283
- export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
4284
- agentToolInputRunRetrieveKnowledgeBasesTool:
4285
- AgentToolInputRunRetrieveKnowledgeBasesTool,
4286
- ): string {
4287
- return JSON.stringify(
4288
- AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
4289
- agentToolInputRunRetrieveKnowledgeBasesTool,
4290
- ),
4291
- );
4292
- }
4293
-
4294
- /** @internal */
4295
- export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
4296
- type: "delete_memory_document";
4297
- requires_approval?: boolean | undefined;
4298
- };
4299
-
4300
- /** @internal */
4301
- export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
4302
- z.ZodType<
4303
- AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
4304
- z.ZodTypeDef,
4305
- AgentToolInputRunDeleteMemoryDocumentTool
4306
- > = z.object({
4307
- type: z.literal("delete_memory_document"),
4308
- requiresApproval: z.boolean().optional(),
4309
- }).transform((v) => {
4310
- return remap$(v, {
4311
- requiresApproval: "requires_approval",
4312
- });
4313
- });
4314
-
4315
- export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
4316
- agentToolInputRunDeleteMemoryDocumentTool:
4317
- AgentToolInputRunDeleteMemoryDocumentTool,
4318
- ): string {
4319
- return JSON.stringify(
4320
- AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
4321
- agentToolInputRunDeleteMemoryDocumentTool,
4322
- ),
4323
- );
4324
- }
4325
-
4326
- /** @internal */
4327
- export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
4328
- type: "retrieve_memory_stores";
4329
- requires_approval?: boolean | undefined;
4330
- };
4331
-
4332
- /** @internal */
4333
- export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
4334
- z.ZodType<
4335
- AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
4336
- z.ZodTypeDef,
4337
- AgentToolInputRunRetrieveMemoryStoresTool
4338
- > = z.object({
4339
- type: z.literal("retrieve_memory_stores"),
4340
- requiresApproval: z.boolean().optional(),
4341
- }).transform((v) => {
4342
- return remap$(v, {
4343
- requiresApproval: "requires_approval",
4344
- });
4345
- });
4346
-
4347
- export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
4348
- agentToolInputRunRetrieveMemoryStoresTool:
4349
- AgentToolInputRunRetrieveMemoryStoresTool,
4350
- ): string {
4351
- return JSON.stringify(
4352
- AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
4353
- agentToolInputRunRetrieveMemoryStoresTool,
4354
- ),
4355
- );
4356
- }
4357
-
4358
- /** @internal */
4359
- export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
4360
- type: "write_memory_store";
4361
- requires_approval?: boolean | undefined;
4362
- };
4363
-
4364
- /** @internal */
4365
- export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
4366
- AgentToolInputRunWriteMemoryStoreTool$Outbound,
4367
- z.ZodTypeDef,
4368
- AgentToolInputRunWriteMemoryStoreTool
4369
- > = z.object({
4370
- type: z.literal("write_memory_store"),
4371
- requiresApproval: z.boolean().optional(),
4372
- }).transform((v) => {
4373
- return remap$(v, {
4374
- requiresApproval: "requires_approval",
4375
- });
4376
- });
4377
-
4378
- export function agentToolInputRunWriteMemoryStoreToolToJSON(
4379
- agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
4380
- ): string {
4381
- return JSON.stringify(
4382
- AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
4383
- agentToolInputRunWriteMemoryStoreTool,
4384
- ),
4385
- );
4386
- }
4387
-
4388
- /** @internal */
4389
- export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
4390
- type: "query_memory_store";
4391
- requires_approval?: boolean | undefined;
4392
- };
4393
-
4394
- /** @internal */
4395
- export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
4396
- AgentToolInputRunQueryMemoryStoreTool$Outbound,
4397
- z.ZodTypeDef,
4398
- AgentToolInputRunQueryMemoryStoreTool
4399
- > = z.object({
4400
- type: z.literal("query_memory_store"),
4401
- requiresApproval: z.boolean().optional(),
4402
- }).transform((v) => {
4403
- return remap$(v, {
4404
- requiresApproval: "requires_approval",
4405
- });
4406
- });
4407
-
4408
- export function agentToolInputRunQueryMemoryStoreToolToJSON(
4409
- agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
4410
- ): string {
4411
- return JSON.stringify(
4412
- AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
4413
- agentToolInputRunQueryMemoryStoreTool,
4414
- ),
4415
- );
4416
- }
4417
-
4418
- /** @internal */
4419
- export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
4420
- type: "retrieve_agents";
4421
- requires_approval?: boolean | undefined;
4422
- };
4423
-
4424
- /** @internal */
4425
- export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
4426
- AgentToolInputRunRetrieveAgentsTool$Outbound,
4427
- z.ZodTypeDef,
4428
- AgentToolInputRunRetrieveAgentsTool
4429
- > = z.object({
4430
- type: z.literal("retrieve_agents"),
4431
- requiresApproval: z.boolean().optional(),
4432
- }).transform((v) => {
4433
- return remap$(v, {
4434
- requiresApproval: "requires_approval",
4435
- });
4436
- });
4437
-
4438
- export function agentToolInputRunRetrieveAgentsToolToJSON(
4439
- agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
4440
- ): string {
4441
- return JSON.stringify(
4442
- AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
4443
- agentToolInputRunRetrieveAgentsTool,
4444
- ),
4445
- );
4446
- }
4447
-
4448
- /** @internal */
4449
- export type AgentToolInputRunCallSubAgentTool$Outbound = {
4450
- type: "call_sub_agent";
4451
- requires_approval?: boolean | undefined;
4452
- };
4453
-
4454
- /** @internal */
4455
- export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
4456
- AgentToolInputRunCallSubAgentTool$Outbound,
4457
- z.ZodTypeDef,
4458
- AgentToolInputRunCallSubAgentTool
4459
- > = z.object({
4460
- type: z.literal("call_sub_agent"),
4461
- requiresApproval: z.boolean().optional(),
4462
- }).transform((v) => {
4463
- return remap$(v, {
4464
- requiresApproval: "requires_approval",
4465
- });
4466
- });
4467
-
4468
- export function agentToolInputRunCallSubAgentToolToJSON(
4469
- agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
4470
- ): string {
4471
- return JSON.stringify(
4472
- AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
4473
- agentToolInputRunCallSubAgentTool,
4474
- ),
4475
- );
4476
- }
4477
-
4478
- /** @internal */
4479
- export type AgentToolInputRunWebScraperTool$Outbound = {
4480
- type: "web_scraper";
4481
- requires_approval?: boolean | undefined;
4482
- };
4483
-
4484
- /** @internal */
4485
- export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
4486
- AgentToolInputRunWebScraperTool$Outbound,
4487
- z.ZodTypeDef,
4488
- AgentToolInputRunWebScraperTool
4489
- > = z.object({
4490
- type: z.literal("web_scraper"),
4491
- requiresApproval: z.boolean().optional(),
4492
- }).transform((v) => {
4493
- return remap$(v, {
4494
- requiresApproval: "requires_approval",
4495
- });
4496
- });
4497
-
4498
- export function agentToolInputRunWebScraperToolToJSON(
4499
- agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
4500
- ): string {
4501
- return JSON.stringify(
4502
- AgentToolInputRunWebScraperTool$outboundSchema.parse(
4503
- agentToolInputRunWebScraperTool,
4504
- ),
4505
- );
4506
- }
4507
-
4508
- /** @internal */
4509
- export type AgentToolInputRunGoogleSearchTool$Outbound = {
4510
- type: "google_search";
4511
- requires_approval?: boolean | undefined;
4512
- };
4513
-
4514
- /** @internal */
4515
- export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
4516
- AgentToolInputRunGoogleSearchTool$Outbound,
4517
- z.ZodTypeDef,
4518
- AgentToolInputRunGoogleSearchTool
4519
- > = z.object({
4520
- type: z.literal("google_search"),
4521
- requiresApproval: z.boolean().optional(),
4522
- }).transform((v) => {
4523
- return remap$(v, {
4524
- requiresApproval: "requires_approval",
4525
- });
4526
- });
4527
-
4528
- export function agentToolInputRunGoogleSearchToolToJSON(
4529
- agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
4530
- ): string {
4531
- return JSON.stringify(
4532
- AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
4533
- agentToolInputRunGoogleSearchTool,
4534
- ),
4535
- );
4536
- }
4537
-
4538
- /** @internal */
4539
- export type AgentToolInputRun$Outbound =
4540
- | AgentToolInputRunGoogleSearchTool$Outbound
4541
- | AgentToolInputRunWebScraperTool$Outbound
4542
- | AgentToolInputRunCallSubAgentTool$Outbound
4543
- | AgentToolInputRunRetrieveAgentsTool$Outbound
4544
- | AgentToolInputRunQueryMemoryStoreTool$Outbound
4545
- | AgentToolInputRunWriteMemoryStoreTool$Outbound
4546
- | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
4547
- | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
4548
- | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
4549
- | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
4550
- | AgentToolInputRunCurrentDateTool$Outbound
4551
- | HTTPToolRun$Outbound
4552
- | CodeToolRun$Outbound
4553
- | FunctionToolRun$Outbound
4554
- | JSONSchemaToolRun$Outbound
4555
- | MCPToolRun$Outbound;
4556
-
4557
- /** @internal */
4558
- export const AgentToolInputRun$outboundSchema: z.ZodType<
4559
- AgentToolInputRun$Outbound,
4560
- z.ZodTypeDef,
4561
- AgentToolInputRun
4562
- > = z.union([
4563
- z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
4564
- z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
4565
- z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
4566
- z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
4567
- z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
4568
- z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
4569
- z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
4570
- z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
4571
- z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
4572
- z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
4573
- z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
4574
- z.lazy(() => HTTPToolRun$outboundSchema),
4575
- z.lazy(() => CodeToolRun$outboundSchema),
4576
- z.lazy(() => FunctionToolRun$outboundSchema),
4577
- z.lazy(() => JSONSchemaToolRun$outboundSchema),
4578
- z.lazy(() => MCPToolRun$outboundSchema),
4579
- ]);
4580
-
4581
- export function agentToolInputRunToJSON(
4582
- agentToolInputRun: AgentToolInputRun,
4583
- ): string {
4584
- return JSON.stringify(
4585
- AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
4586
- );
4587
- }
4588
-
4589
- /** @internal */
4590
- export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
4591
- typeof RunAgentToolApprovalRequired
4592
- > = z.nativeEnum(RunAgentToolApprovalRequired);
4593
-
4594
- /** @internal */
4595
- export const RunAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
4596
- typeof RunAgentExecuteOn
4597
- > = z.nativeEnum(RunAgentExecuteOn);
4598
-
4599
- /** @internal */
4600
- export type RunAgentEvaluators$Outbound = {
4601
- id: string;
4602
- sample_rate: number;
4603
- execute_on: string;
4604
- };
4605
-
4606
- /** @internal */
4607
- export const RunAgentEvaluators$outboundSchema: z.ZodType<
4608
- RunAgentEvaluators$Outbound,
4609
- z.ZodTypeDef,
4610
- RunAgentEvaluators
4611
- > = z.object({
4612
- id: z.string(),
4613
- sampleRate: z.number().default(50),
4614
- executeOn: RunAgentExecuteOn$outboundSchema,
4615
- }).transform((v) => {
4616
- return remap$(v, {
4617
- sampleRate: "sample_rate",
4618
- executeOn: "execute_on",
4619
- });
4620
- });
4621
-
4622
- export function runAgentEvaluatorsToJSON(
4623
- runAgentEvaluators: RunAgentEvaluators,
4624
- ): string {
4625
- return JSON.stringify(
4626
- RunAgentEvaluators$outboundSchema.parse(runAgentEvaluators),
4627
- );
4628
- }
4629
-
4630
- /** @internal */
4631
- export const RunAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
4632
- typeof RunAgentAgentsExecuteOn
4633
- > = z.nativeEnum(RunAgentAgentsExecuteOn);
4634
-
4635
- /** @internal */
4636
- export type RunAgentGuardrails$Outbound = {
4637
- id: string;
4638
- sample_rate: number;
4639
- execute_on: string;
4640
- };
4641
-
4642
- /** @internal */
4643
- export const RunAgentGuardrails$outboundSchema: z.ZodType<
4644
- RunAgentGuardrails$Outbound,
4645
- z.ZodTypeDef,
4646
- RunAgentGuardrails
4647
- > = z.object({
4648
- id: z.string(),
4649
- sampleRate: z.number().default(50),
4650
- executeOn: RunAgentAgentsExecuteOn$outboundSchema,
4651
- }).transform((v) => {
4652
- return remap$(v, {
4653
- sampleRate: "sample_rate",
4654
- executeOn: "execute_on",
4655
- });
4656
- });
4657
-
4658
- export function runAgentGuardrailsToJSON(
4659
- runAgentGuardrails: RunAgentGuardrails,
4660
- ): string {
4661
- return JSON.stringify(
4662
- RunAgentGuardrails$outboundSchema.parse(runAgentGuardrails),
4663
- );
4664
- }
4665
-
4666
- /** @internal */
4667
- export type RunAgentSettings$Outbound = {
4668
- tools?:
4669
- | Array<
4670
- | AgentToolInputRunGoogleSearchTool$Outbound
4671
- | AgentToolInputRunWebScraperTool$Outbound
4672
- | AgentToolInputRunCallSubAgentTool$Outbound
4673
- | AgentToolInputRunRetrieveAgentsTool$Outbound
4674
- | AgentToolInputRunQueryMemoryStoreTool$Outbound
4675
- | AgentToolInputRunWriteMemoryStoreTool$Outbound
4676
- | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
4677
- | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
4678
- | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
4679
- | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
4680
- | AgentToolInputRunCurrentDateTool$Outbound
4681
- | HTTPToolRun$Outbound
4682
- | CodeToolRun$Outbound
4683
- | FunctionToolRun$Outbound
4684
- | JSONSchemaToolRun$Outbound
4685
- | MCPToolRun$Outbound
4686
- >
4687
- | undefined;
4688
- tool_approval_required: string;
4689
- max_iterations: number;
4690
- max_execution_time: number;
4691
- max_cost: number;
4692
- evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
4693
- guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
4694
- };
4695
-
4696
- /** @internal */
4697
- export const RunAgentSettings$outboundSchema: z.ZodType<
4698
- RunAgentSettings$Outbound,
4699
- z.ZodTypeDef,
4700
- RunAgentSettings
4701
- > = z.object({
4702
- tools: z.array(
4703
- z.union([
4704
- z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
4705
- z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
4706
- z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
4707
- z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
4708
- z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
4709
- z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
4710
- z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
4711
- z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
4712
- z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
4713
- z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
4714
- z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
4715
- z.lazy(() => HTTPToolRun$outboundSchema),
4716
- z.lazy(() => CodeToolRun$outboundSchema),
4717
- z.lazy(() => FunctionToolRun$outboundSchema),
4718
- z.lazy(() => JSONSchemaToolRun$outboundSchema),
4719
- z.lazy(() => MCPToolRun$outboundSchema),
4720
- ]),
4721
- ).optional(),
4722
- toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
4723
- "none",
4724
- ),
4725
- maxIterations: z.number().int().default(100),
4726
- maxExecutionTime: z.number().int().default(600),
4727
- maxCost: z.number().default(0),
4728
- evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
4729
- .optional(),
4730
- guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
4731
- .optional(),
4732
- }).transform((v) => {
4733
- return remap$(v, {
4734
- toolApprovalRequired: "tool_approval_required",
4735
- maxIterations: "max_iterations",
4736
- maxExecutionTime: "max_execution_time",
4737
- maxCost: "max_cost",
4738
- });
4739
- });
4740
-
4741
- export function runAgentSettingsToJSON(
4742
- runAgentSettings: RunAgentSettings,
4743
- ): string {
4744
- return JSON.stringify(
4745
- RunAgentSettings$outboundSchema.parse(runAgentSettings),
4746
- );
4747
- }
4748
-
4749
- /** @internal */
4750
- export const RunAgentEngine$outboundSchema: z.ZodNativeEnum<
4751
- typeof RunAgentEngine
4752
- > = z.nativeEnum(RunAgentEngine);
4753
-
4754
- /** @internal */
4755
- export type RunAgentRequestBody$Outbound = {
4756
- key: string;
4757
- task_id?: string | undefined;
4758
- model: RunAgentModelConfiguration2$Outbound | string;
4759
- fallback_models?:
4760
- | Array<RunAgentFallbackModelConfiguration2$Outbound | string>
4761
- | undefined;
4762
- role: string;
4763
- instructions: string;
4764
- message: RunAgentA2AMessage$Outbound;
4765
- variables?: { [k: string]: any } | undefined;
4766
- identity?: RunAgentIdentity$Outbound | undefined;
4767
- contact?: RunAgentContact$Outbound | undefined;
4768
- thread?: RunAgentThread$Outbound | undefined;
4769
- memory?: RunAgentMemory$Outbound | undefined;
4770
- path: string;
4771
- description?: string | undefined;
4772
- system_prompt?: string | null | undefined;
4773
- memory_stores?: Array<string> | undefined;
4774
- knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
4775
- team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
4776
- settings: RunAgentSettings$Outbound;
4777
- metadata?: { [k: string]: any } | undefined;
4778
- engine: string;
4779
- };
4780
-
4781
- /** @internal */
4782
- export const RunAgentRequestBody$outboundSchema: z.ZodType<
4783
- RunAgentRequestBody$Outbound,
4784
- z.ZodTypeDef,
4785
- RunAgentRequestBody
4786
- > = z.object({
4787
- key: z.string(),
4788
- taskId: z.string().optional(),
4789
- model: z.union([
4790
- z.lazy(() => RunAgentModelConfiguration2$outboundSchema),
4791
- z.string(),
4792
- ]),
4793
- fallbackModels: z.array(
4794
- z.union([
4795
- z.lazy(() => RunAgentFallbackModelConfiguration2$outboundSchema),
4796
- z.string(),
4797
- ]),
4798
- ).optional(),
4799
- role: z.string(),
4800
- instructions: z.string(),
4801
- message: z.lazy(() => RunAgentA2AMessage$outboundSchema),
4802
- variables: z.record(z.any()).optional(),
4803
- identity: z.lazy(() => RunAgentIdentity$outboundSchema).optional(),
4804
- contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
4805
- thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
4806
- memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
4807
- path: z.string(),
4808
- description: z.string().optional(),
4809
- systemPrompt: z.nullable(z.string()).optional(),
4810
- memoryStores: z.array(z.string()).optional(),
4811
- knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4812
- .optional(),
4813
- teamOfAgents: z.array(z.lazy(() => RunAgentTeamOfAgents$outboundSchema))
4814
- .optional(),
4815
- settings: z.lazy(() => RunAgentSettings$outboundSchema),
4816
- metadata: z.record(z.any()).optional(),
4817
- engine: RunAgentEngine$outboundSchema.default("text"),
4818
- }).transform((v) => {
4819
- return remap$(v, {
4820
- taskId: "task_id",
4821
- fallbackModels: "fallback_models",
4822
- systemPrompt: "system_prompt",
4823
- memoryStores: "memory_stores",
4824
- knowledgeBases: "knowledge_bases",
4825
- teamOfAgents: "team_of_agents",
4826
- });
4827
- });
4828
-
4829
- export function runAgentRequestBodyToJSON(
4830
- runAgentRequestBody: RunAgentRequestBody,
4831
- ): string {
4832
- return JSON.stringify(
4833
- RunAgentRequestBody$outboundSchema.parse(runAgentRequestBody),
4834
- );
4835
- }
4836
-
4837
- /** @internal */
4838
- export const RunAgentKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentKind> =
4839
- z.nativeEnum(RunAgentKind);
4840
-
4841
- /** @internal */
4842
- export const RunAgentTaskState$inboundSchema: z.ZodNativeEnum<
4843
- typeof RunAgentTaskState
4844
- > = z.nativeEnum(RunAgentTaskState);
4845
-
4846
- /** @internal */
4847
- export const RunAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
4848
- typeof RunAgentAgentsKind
4849
- > = z.nativeEnum(RunAgentAgentsKind);
4850
-
4851
- /** @internal */
4852
- export const RunAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
4853
- typeof RunAgentExtendedMessageRole
4854
- > = z.nativeEnum(RunAgentExtendedMessageRole);
4855
-
4856
- /** @internal */
4857
- export const RunAgentParts$inboundSchema: z.ZodType<
4858
- RunAgentParts,
4859
- z.ZodTypeDef,
4860
- unknown
4861
- > = z.union([
4862
- components.TextPart$inboundSchema,
4863
- components.ErrorPart$inboundSchema,
4864
- components.DataPart$inboundSchema,
4865
- components.FilePart$inboundSchema,
4866
- components.ToolCallPart$inboundSchema,
4867
- components.ToolResultPart$inboundSchema,
4868
- ]);
4869
-
4870
- export function runAgentPartsFromJSON(
4871
- jsonString: string,
4872
- ): SafeParseResult<RunAgentParts, SDKValidationError> {
4873
- return safeParse(
4874
- jsonString,
4875
- (x) => RunAgentParts$inboundSchema.parse(JSON.parse(x)),
4876
- `Failed to parse 'RunAgentParts' from JSON`,
4877
- );
4878
- }
4879
-
4880
- /** @internal */
4881
- export const RunAgentTaskStatusMessage$inboundSchema: z.ZodType<
4882
- RunAgentTaskStatusMessage,
4883
- z.ZodTypeDef,
4884
- unknown
4885
- > = z.object({
4886
- kind: RunAgentAgentsKind$inboundSchema,
4887
- messageId: z.string(),
4888
- role: RunAgentExtendedMessageRole$inboundSchema,
4889
- parts: z.array(
4890
- z.union([
4891
- components.TextPart$inboundSchema,
4892
- components.ErrorPart$inboundSchema,
4893
- components.DataPart$inboundSchema,
4894
- components.FilePart$inboundSchema,
4895
- components.ToolCallPart$inboundSchema,
4896
- components.ToolResultPart$inboundSchema,
4897
- ]),
4898
- ),
4899
- });
4900
-
4901
- export function runAgentTaskStatusMessageFromJSON(
4902
- jsonString: string,
4903
- ): SafeParseResult<RunAgentTaskStatusMessage, SDKValidationError> {
4904
- return safeParse(
4905
- jsonString,
4906
- (x) => RunAgentTaskStatusMessage$inboundSchema.parse(JSON.parse(x)),
4907
- `Failed to parse 'RunAgentTaskStatusMessage' from JSON`,
4908
- );
4909
- }
4910
-
4911
- /** @internal */
4912
- export const RunAgentTaskStatus$inboundSchema: z.ZodType<
4913
- RunAgentTaskStatus,
4914
- z.ZodTypeDef,
4915
- unknown
4916
- > = z.object({
4917
- state: RunAgentTaskState$inboundSchema,
4918
- timestamp: z.string().optional(),
4919
- message: z.lazy(() => RunAgentTaskStatusMessage$inboundSchema).optional(),
4920
- });
4921
-
4922
- export function runAgentTaskStatusFromJSON(
4923
- jsonString: string,
4924
- ): SafeParseResult<RunAgentTaskStatus, SDKValidationError> {
4925
- return safeParse(
4926
- jsonString,
4927
- (x) => RunAgentTaskStatus$inboundSchema.parse(JSON.parse(x)),
4928
- `Failed to parse 'RunAgentTaskStatus' from JSON`,
4929
- );
4930
- }
4931
-
4932
- /** @internal */
4933
- export const RunAgentA2ATaskResponse$inboundSchema: z.ZodType<
4934
- RunAgentA2ATaskResponse,
4935
- z.ZodTypeDef,
4936
- unknown
4937
- > = z.object({
4938
- id: z.string(),
4939
- contextId: z.string(),
4940
- kind: RunAgentKind$inboundSchema,
4941
- status: z.lazy(() => RunAgentTaskStatus$inboundSchema),
4942
- messages: z.array(components.ExtendedMessage$inboundSchema).optional(),
4943
- metadata: z.record(z.any()).optional(),
4944
- });
4945
-
4946
- export function runAgentA2ATaskResponseFromJSON(
4947
- jsonString: string,
4948
- ): SafeParseResult<RunAgentA2ATaskResponse, SDKValidationError> {
4949
- return safeParse(
4950
- jsonString,
4951
- (x) => RunAgentA2ATaskResponse$inboundSchema.parse(JSON.parse(x)),
4952
- `Failed to parse 'RunAgentA2ATaskResponse' from JSON`,
4953
- );
4954
- }