@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35

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 (219) hide show
  1. package/README.md +27 -23
  2. package/bin/mcp-server.js +6400 -6141
  3. package/bin/mcp-server.js.map +66 -58
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/conversationsGenerateName.d.ts +18 -0
  6. package/funcs/conversationsGenerateName.d.ts.map +1 -0
  7. package/funcs/conversationsGenerateName.js +128 -0
  8. package/funcs/conversationsGenerateName.js.map +1 -0
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.d.ts.map +1 -1
  14. package/mcp-server/server.js +3 -1
  15. package/mcp-server/server.js.map +1 -1
  16. package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
  17. package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
  18. package/mcp-server/tools/conversationsGenerateName.js +66 -0
  19. package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
  20. package/models/components/agentresponsemessage.d.ts +56 -0
  21. package/models/components/agentresponsemessage.d.ts.map +1 -0
  22. package/models/components/agentresponsemessage.js +116 -0
  23. package/models/components/agentresponsemessage.js.map +1 -0
  24. package/models/components/agentstartedstreamingevent.d.ts +6 -6
  25. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  26. package/models/components/agentstartedstreamingevent.js +11 -12
  27. package/models/components/agentstartedstreamingevent.js.map +1 -1
  28. package/models/components/conversationresponse.d.ts +39 -5
  29. package/models/components/conversationresponse.d.ts.map +1 -1
  30. package/models/components/conversationresponse.js +52 -8
  31. package/models/components/conversationresponse.js.map +1 -1
  32. package/models/components/createagentresponse.d.ts +124 -0
  33. package/models/components/createagentresponse.d.ts.map +1 -0
  34. package/models/components/createagentresponse.js +191 -0
  35. package/models/components/createagentresponse.js.map +1 -0
  36. package/models/components/index.d.ts +4 -0
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +4 -0
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/invokedeploymentrequest.d.ts +8 -8
  41. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  42. package/models/components/invokedeploymentrequest.js +13 -11
  43. package/models/components/invokedeploymentrequest.js.map +1 -1
  44. package/models/components/partdoneevent.js +2 -2
  45. package/models/components/reasoningpart.js +2 -2
  46. package/models/components/responsedoneevent.d.ts +24 -24
  47. package/models/components/responsedoneevent.d.ts.map +1 -1
  48. package/models/components/responsedoneevent.js +31 -32
  49. package/models/components/responsedoneevent.js.map +1 -1
  50. package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
  51. package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
  52. package/models/components/thinkingconfigdisabledschema.js +58 -0
  53. package/models/components/thinkingconfigdisabledschema.js.map +1 -0
  54. package/models/components/thinkingconfigenabledschema.d.ts +49 -0
  55. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
  56. package/models/components/thinkingconfigenabledschema.js +84 -0
  57. package/models/components/thinkingconfigenabledschema.js.map +1 -0
  58. package/models/errors/generateconversationname.d.ts +55 -0
  59. package/models/errors/generateconversationname.d.ts.map +1 -0
  60. package/models/errors/generateconversationname.js +106 -0
  61. package/models/errors/generateconversationname.js.map +1 -0
  62. package/models/errors/index.d.ts +1 -0
  63. package/models/errors/index.d.ts.map +1 -1
  64. package/models/errors/index.js +1 -0
  65. package/models/errors/index.js.map +1 -1
  66. package/models/operations/createagentrequest.d.ts +17 -204
  67. package/models/operations/createagentrequest.d.ts.map +1 -1
  68. package/models/operations/createagentrequest.js +75 -194
  69. package/models/operations/createagentrequest.js.map +1 -1
  70. package/models/operations/createagentresponserequest.d.ts +22 -166
  71. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  72. package/models/operations/createagentresponserequest.js +32 -227
  73. package/models/operations/createagentresponserequest.js.map +1 -1
  74. package/models/operations/createbudget.js +2 -2
  75. package/models/operations/createcontact.js +2 -2
  76. package/models/operations/createconversation.d.ts +62 -8
  77. package/models/operations/createconversation.d.ts.map +1 -1
  78. package/models/operations/createconversation.js +94 -10
  79. package/models/operations/createconversation.js.map +1 -1
  80. package/models/operations/createdataset.js +2 -2
  81. package/models/operations/createdatasetitem.js +8 -8
  82. package/models/operations/createdatasource.js +2 -2
  83. package/models/operations/createeval.js +28 -28
  84. package/models/operations/createprompt.d.ts +10 -10
  85. package/models/operations/createprompt.d.ts.map +1 -1
  86. package/models/operations/createprompt.js +13 -13
  87. package/models/operations/createprompt.js.map +1 -1
  88. package/models/operations/createtool.js +12 -12
  89. package/models/operations/fileget.js +2 -2
  90. package/models/operations/filelist.js +2 -2
  91. package/models/operations/fileupload.js +2 -2
  92. package/models/operations/generateconversationname.d.ts +136 -0
  93. package/models/operations/generateconversationname.d.ts.map +1 -0
  94. package/models/operations/generateconversationname.js +179 -0
  95. package/models/operations/generateconversationname.js.map +1 -0
  96. package/models/operations/getalltools.js +12 -12
  97. package/models/operations/getbudget.js +2 -2
  98. package/models/operations/getevals.js +28 -28
  99. package/models/operations/index.d.ts +1 -0
  100. package/models/operations/index.d.ts.map +1 -1
  101. package/models/operations/index.js +1 -0
  102. package/models/operations/index.js.map +1 -1
  103. package/models/operations/invokeagent.d.ts +6 -6
  104. package/models/operations/invokeagent.d.ts.map +1 -1
  105. package/models/operations/invokeagent.js +10 -9
  106. package/models/operations/invokeagent.js.map +1 -1
  107. package/models/operations/listagents.d.ts +9 -102
  108. package/models/operations/listagents.d.ts.map +1 -1
  109. package/models/operations/listagents.js +38 -97
  110. package/models/operations/listagents.js.map +1 -1
  111. package/models/operations/listbudgets.js +2 -2
  112. package/models/operations/listcontacts.js +2 -2
  113. package/models/operations/listdatasetdatapoints.js +8 -8
  114. package/models/operations/listdatasets.js +2 -2
  115. package/models/operations/listdatasources.js +2 -2
  116. package/models/operations/retrieveagentrequest.d.ts +9 -102
  117. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  118. package/models/operations/retrieveagentrequest.js +38 -97
  119. package/models/operations/retrieveagentrequest.js.map +1 -1
  120. package/models/operations/retrievecontact.js +2 -2
  121. package/models/operations/retrieveconversation.d.ts +39 -5
  122. package/models/operations/retrieveconversation.d.ts.map +1 -1
  123. package/models/operations/retrieveconversation.js +53 -8
  124. package/models/operations/retrieveconversation.js.map +1 -1
  125. package/models/operations/retrievedatapoint.js +8 -8
  126. package/models/operations/retrievedataset.js +2 -2
  127. package/models/operations/retrievedatasource.js +2 -2
  128. package/models/operations/retrievetool.js +12 -12
  129. package/models/operations/runagent.d.ts +8 -102
  130. package/models/operations/runagent.d.ts.map +1 -1
  131. package/models/operations/runagent.js +41 -104
  132. package/models/operations/runagent.js.map +1 -1
  133. package/models/operations/streamrunagent.d.ts +8 -102
  134. package/models/operations/streamrunagent.d.ts.map +1 -1
  135. package/models/operations/streamrunagent.js +41 -103
  136. package/models/operations/streamrunagent.js.map +1 -1
  137. package/models/operations/updateagent.d.ts +17 -204
  138. package/models/operations/updateagent.d.ts.map +1 -1
  139. package/models/operations/updateagent.js +75 -193
  140. package/models/operations/updateagent.js.map +1 -1
  141. package/models/operations/updatebudget.js +2 -2
  142. package/models/operations/updatecontact.js +2 -2
  143. package/models/operations/updateconversation.d.ts +63 -6
  144. package/models/operations/updateconversation.d.ts.map +1 -1
  145. package/models/operations/updateconversation.js +93 -9
  146. package/models/operations/updateconversation.js.map +1 -1
  147. package/models/operations/updatedatapoint.js +8 -8
  148. package/models/operations/updatedataset.js +2 -2
  149. package/models/operations/updatedatasource.js +2 -2
  150. package/models/operations/updateeval.js +28 -28
  151. package/models/operations/updatetool.js +14 -14
  152. package/package.json +1 -1
  153. package/sdk/conversations.d.ts +7 -0
  154. package/sdk/conversations.d.ts.map +1 -1
  155. package/sdk/conversations.js +10 -0
  156. package/sdk/conversations.js.map +1 -1
  157. package/src/funcs/conversationsGenerateName.ts +194 -0
  158. package/src/lib/config.ts +3 -3
  159. package/src/mcp-server/mcp-server.ts +1 -1
  160. package/src/mcp-server/server.ts +3 -1
  161. package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  162. package/src/models/components/agentresponsemessage.ts +185 -0
  163. package/src/models/components/agentstartedstreamingevent.ts +30 -21
  164. package/src/models/components/conversationresponse.ts +100 -12
  165. package/src/models/components/createagentresponse.ts +340 -0
  166. package/src/models/components/index.ts +4 -0
  167. package/src/models/components/invokedeploymentrequest.ts +25 -17
  168. package/src/models/components/partdoneevent.ts +2 -2
  169. package/src/models/components/reasoningpart.ts +2 -2
  170. package/src/models/components/responsedoneevent.ts +93 -68
  171. package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  172. package/src/models/components/thinkingconfigenabledschema.ts +106 -0
  173. package/src/models/errors/generateconversationname.ts +132 -0
  174. package/src/models/errors/index.ts +1 -0
  175. package/src/models/operations/createagentrequest.ts +123 -369
  176. package/src/models/operations/createagentresponserequest.ts +71 -513
  177. package/src/models/operations/createbudget.ts +2 -2
  178. package/src/models/operations/createcontact.ts +2 -2
  179. package/src/models/operations/createconversation.ts +192 -17
  180. package/src/models/operations/createdataset.ts +2 -2
  181. package/src/models/operations/createdatasetitem.ts +8 -8
  182. package/src/models/operations/createdatasource.ts +2 -2
  183. package/src/models/operations/createeval.ts +28 -28
  184. package/src/models/operations/createprompt.ts +23 -25
  185. package/src/models/operations/createtool.ts +12 -12
  186. package/src/models/operations/fileget.ts +2 -2
  187. package/src/models/operations/filelist.ts +2 -2
  188. package/src/models/operations/fileupload.ts +2 -2
  189. package/src/models/operations/generateconversationname.ts +341 -0
  190. package/src/models/operations/getalltools.ts +12 -12
  191. package/src/models/operations/getbudget.ts +2 -2
  192. package/src/models/operations/getevals.ts +28 -28
  193. package/src/models/operations/index.ts +1 -0
  194. package/src/models/operations/invokeagent.ts +19 -26
  195. package/src/models/operations/listagents.ts +63 -186
  196. package/src/models/operations/listbudgets.ts +2 -2
  197. package/src/models/operations/listcontacts.ts +2 -2
  198. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  199. package/src/models/operations/listdatasets.ts +2 -2
  200. package/src/models/operations/listdatasources.ts +2 -2
  201. package/src/models/operations/retrieveagentrequest.ts +61 -194
  202. package/src/models/operations/retrievecontact.ts +2 -2
  203. package/src/models/operations/retrieveconversation.ts +107 -12
  204. package/src/models/operations/retrievedatapoint.ts +8 -8
  205. package/src/models/operations/retrievedataset.ts +2 -2
  206. package/src/models/operations/retrievedatasource.ts +2 -2
  207. package/src/models/operations/retrievetool.ts +12 -12
  208. package/src/models/operations/runagent.ts +64 -194
  209. package/src/models/operations/streamrunagent.ts +62 -201
  210. package/src/models/operations/updateagent.ts +123 -379
  211. package/src/models/operations/updatebudget.ts +2 -2
  212. package/src/models/operations/updatecontact.ts +2 -2
  213. package/src/models/operations/updateconversation.ts +192 -14
  214. package/src/models/operations/updatedatapoint.ts +8 -8
  215. package/src/models/operations/updatedataset.ts +2 -2
  216. package/src/models/operations/updatedatasource.ts +2 -2
  217. package/src/models/operations/updateeval.ts +28 -28
  218. package/src/models/operations/updatetool.ts +14 -14
  219. package/src/sdk/conversations.ts +20 -0
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
145
145
  z.ZodTypeDef,
146
146
  unknown
147
147
  > = z.object({
148
- _id: z.string().default("01KBZ0NX3J95Y3RZ1FCDX0SBFX"),
148
+ _id: z.string().default("01KC3CE2NRQNYAH3JN6XW199SS"),
149
149
  display_name: z.string(),
150
150
  description: z.string().optional(),
151
151
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
188
188
  z.ZodTypeDef,
189
189
  RetrieveDatasourceResponseBody
190
190
  > = z.object({
191
- id: z.string().default("01KBZ0NX3J95Y3RZ1FCDX0SBFX"),
191
+ id: z.string().default("01KC3CE2NRQNYAH3JN6XW199SS"),
192
192
  displayName: z.string(),
193
193
  description: z.string().optional(),
194
194
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -858,7 +858,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
858
858
  z.ZodTypeDef,
859
859
  unknown
860
860
  > = z.object({
861
- _id: z.string().default("tool_01KBZ0NX0KK5F42XTSYF7QRFWA"),
861
+ _id: z.string().default("tool_01KC3CE2JC55Q4D04QS6ZNDMVR"),
862
862
  path: z.string(),
863
863
  key: z.string(),
864
864
  display_name: z.string().optional(),
@@ -913,7 +913,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$outboundSchema:
913
913
  z.ZodTypeDef,
914
914
  RetrieveToolResponseBodyCodeExecutionTool
915
915
  > = z.object({
916
- id: z.string().default("tool_01KBZ0NX0KK5F42XTSYF7QRFWA"),
916
+ id: z.string().default("tool_01KC3CE2JC55Q4D04QS6ZNDMVR"),
917
917
  path: z.string(),
918
918
  key: z.string(),
919
919
  displayName: z.string().optional(),
@@ -1092,7 +1092,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
1092
1092
  z.ZodTypeDef,
1093
1093
  unknown
1094
1094
  > = z.object({
1095
- id: z.string().default("01KBZ0NX0H377EPFSFDX1H9YNQ"),
1095
+ id: z.string().default("01KC3CE2JB2AVBHPRXZSHRC9CC"),
1096
1096
  name: z.string(),
1097
1097
  description: z.string().optional(),
1098
1098
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
1111
1111
  z.ZodTypeDef,
1112
1112
  RetrieveToolResponseBodyTools
1113
1113
  > = z.object({
1114
- id: z.string().default("01KBZ0NX0H377EPFSFDX1H9YNQ"),
1114
+ id: z.string().default("01KC3CE2JB2AVBHPRXZSHRC9CC"),
1115
1115
  name: z.string(),
1116
1116
  description: z.string().optional(),
1117
1117
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
@@ -1217,7 +1217,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
1217
1217
  z.ZodTypeDef,
1218
1218
  unknown
1219
1219
  > = z.object({
1220
- _id: z.string().default("tool_01KBZ0NX0GRTDCP4W90HWNADD3"),
1220
+ _id: z.string().default("tool_01KC3CE2JAVTFDX7QFR6VFA4VM"),
1221
1221
  path: z.string(),
1222
1222
  key: z.string(),
1223
1223
  display_name: z.string().optional(),
@@ -1270,7 +1270,7 @@ export const RetrieveToolResponseBodyMCPTool$outboundSchema: z.ZodType<
1270
1270
  z.ZodTypeDef,
1271
1271
  RetrieveToolResponseBodyMCPTool
1272
1272
  > = z.object({
1273
- id: z.string().default("tool_01KBZ0NX0GRTDCP4W90HWNADD3"),
1273
+ id: z.string().default("tool_01KC3CE2JAVTFDX7QFR6VFA4VM"),
1274
1274
  path: z.string(),
1275
1275
  key: z.string(),
1276
1276
  displayName: z.string().optional(),
@@ -1641,7 +1641,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1641
1641
  z.ZodTypeDef,
1642
1642
  unknown
1643
1643
  > = z.object({
1644
- _id: z.string().default("tool_01KBZ0NX0D9QW7K55V64KXEWSF"),
1644
+ _id: z.string().default("tool_01KC3CE2J8MY4R7S2GSCCF7NXF"),
1645
1645
  path: z.string(),
1646
1646
  key: z.string(),
1647
1647
  display_name: z.string().optional(),
@@ -1694,7 +1694,7 @@ export const RetrieveToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
1694
1694
  z.ZodTypeDef,
1695
1695
  RetrieveToolResponseBodyHTTPTool
1696
1696
  > = z.object({
1697
- id: z.string().default("tool_01KBZ0NX0D9QW7K55V64KXEWSF"),
1697
+ id: z.string().default("tool_01KC3CE2J8MY4R7S2GSCCF7NXF"),
1698
1698
  path: z.string(),
1699
1699
  key: z.string(),
1700
1700
  displayName: z.string().optional(),
@@ -1868,7 +1868,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1868
1868
  z.ZodTypeDef,
1869
1869
  unknown
1870
1870
  > = z.object({
1871
- _id: z.string().default("tool_01KBZ0NX0BSXEPGB0AWDR329M5"),
1871
+ _id: z.string().default("tool_01KC3CE2HZ1FQGFEJ7454XEVJ0"),
1872
1872
  path: z.string(),
1873
1873
  key: z.string(),
1874
1874
  display_name: z.string().optional(),
@@ -1920,7 +1920,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
1920
1920
  z.ZodTypeDef,
1921
1921
  RetrieveToolResponseBodyJSONSchemaTool
1922
1922
  > = z.object({
1923
- id: z.string().default("tool_01KBZ0NX0BSXEPGB0AWDR329M5"),
1923
+ id: z.string().default("tool_01KC3CE2HZ1FQGFEJ7454XEVJ0"),
1924
1924
  path: z.string(),
1925
1925
  key: z.string(),
1926
1926
  displayName: z.string().optional(),
@@ -2113,7 +2113,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2113
2113
  z.ZodTypeDef,
2114
2114
  unknown
2115
2115
  > = z.object({
2116
- _id: z.string().default("tool_01KBZ0NX08AVX0FHQQDV4DX68C"),
2116
+ _id: z.string().default("tool_01KC3CE2HX1SGGSM7YTGSG3N4M"),
2117
2117
  path: z.string(),
2118
2118
  key: z.string(),
2119
2119
  display_name: z.string().optional(),
@@ -2164,7 +2164,7 @@ export const RetrieveToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
2164
2164
  z.ZodTypeDef,
2165
2165
  RetrieveToolResponseBodyFunctionTool
2166
2166
  > = z.object({
2167
- id: z.string().default("tool_01KBZ0NX08AVX0FHQQDV4DX68C"),
2167
+ id: z.string().default("tool_01KC3CE2HX1SGGSM7YTGSG3N4M"),
2168
2168
  path: z.string(),
2169
2169
  key: z.string(),
2170
2170
  displayName: z.string().optional(),
@@ -132,48 +132,9 @@ export type RunAgentModelConfigurationStreamOptions = {
132
132
  includeUsage?: boolean | undefined;
133
133
  };
134
134
 
135
- /**
136
- * Enables or disables the thinking mode capability
137
- */
138
- export const RunAgentModelConfigurationType = {
139
- Enabled: "enabled",
140
- Disabled: "disabled",
141
- } as const;
142
- /**
143
- * Enables or disables the thinking mode capability
144
- */
145
- export type RunAgentModelConfigurationType = ClosedEnum<
146
- typeof RunAgentModelConfigurationType
147
- >;
148
-
149
- /**
150
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
151
- */
152
- export const RunAgentModelConfigurationThinkingLevel = {
153
- Low: "low",
154
- High: "high",
155
- } as const;
156
- /**
157
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
158
- */
159
- export type RunAgentModelConfigurationThinkingLevel = ClosedEnum<
160
- typeof RunAgentModelConfigurationThinkingLevel
161
- >;
162
-
163
- export type RunAgentModelConfigurationThinking = {
164
- /**
165
- * Enables or disables the thinking mode capability
166
- */
167
- type: RunAgentModelConfigurationType;
168
- /**
169
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
170
- */
171
- budgetTokens: number;
172
- /**
173
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
174
- */
175
- thinkingLevel?: RunAgentModelConfigurationThinkingLevel | undefined;
176
- };
135
+ export type RunAgentModelConfigurationThinking =
136
+ | components.ThinkingConfigDisabledSchema
137
+ | components.ThinkingConfigEnabledSchema;
177
138
 
178
139
  /**
179
140
  * The type of the tool. Currently, only function is supported.
@@ -291,7 +252,10 @@ export type RunAgentModelConfigurationParameters = {
291
252
  * Options for streaming response. Only set this when you set stream: true.
292
253
  */
293
254
  streamOptions?: RunAgentModelConfigurationStreamOptions | null | undefined;
294
- thinking?: RunAgentModelConfigurationThinking | undefined;
255
+ thinking?:
256
+ | components.ThinkingConfigDisabledSchema
257
+ | components.ThinkingConfigEnabledSchema
258
+ | undefined;
295
259
  /**
296
260
  * 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.
297
261
  */
@@ -476,48 +440,9 @@ export type RunAgentFallbackModelConfigurationStreamOptions = {
476
440
  includeUsage?: boolean | undefined;
477
441
  };
478
442
 
479
- /**
480
- * Enables or disables the thinking mode capability
481
- */
482
- export const RunAgentFallbackModelConfigurationType = {
483
- Enabled: "enabled",
484
- Disabled: "disabled",
485
- } as const;
486
- /**
487
- * Enables or disables the thinking mode capability
488
- */
489
- export type RunAgentFallbackModelConfigurationType = ClosedEnum<
490
- typeof RunAgentFallbackModelConfigurationType
491
- >;
492
-
493
- /**
494
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
495
- */
496
- export const RunAgentFallbackModelConfigurationThinkingLevel = {
497
- Low: "low",
498
- High: "high",
499
- } as const;
500
- /**
501
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
502
- */
503
- export type RunAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
504
- typeof RunAgentFallbackModelConfigurationThinkingLevel
505
- >;
506
-
507
- export type RunAgentFallbackModelConfigurationThinking = {
508
- /**
509
- * Enables or disables the thinking mode capability
510
- */
511
- type: RunAgentFallbackModelConfigurationType;
512
- /**
513
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
514
- */
515
- budgetTokens: number;
516
- /**
517
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
518
- */
519
- thinkingLevel?: RunAgentFallbackModelConfigurationThinkingLevel | undefined;
520
- };
443
+ export type RunAgentFallbackModelConfigurationThinking =
444
+ | components.ThinkingConfigDisabledSchema
445
+ | components.ThinkingConfigEnabledSchema;
521
446
 
522
447
  /**
523
448
  * The type of the tool. Currently, only function is supported.
@@ -642,7 +567,10 @@ export type RunAgentFallbackModelConfigurationParameters = {
642
567
  | RunAgentFallbackModelConfigurationStreamOptions
643
568
  | null
644
569
  | undefined;
645
- thinking?: RunAgentFallbackModelConfigurationThinking | undefined;
570
+ thinking?:
571
+ | components.ThinkingConfigDisabledSchema
572
+ | components.ThinkingConfigEnabledSchema
573
+ | undefined;
646
574
  /**
647
575
  * 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.
648
576
  */
@@ -2015,63 +1943,29 @@ export function runAgentModelConfigurationStreamOptionsFromJSON(
2015
1943
  );
2016
1944
  }
2017
1945
 
2018
- /** @internal */
2019
- export const RunAgentModelConfigurationType$inboundSchema: z.ZodNativeEnum<
2020
- typeof RunAgentModelConfigurationType
2021
- > = z.nativeEnum(RunAgentModelConfigurationType);
2022
- /** @internal */
2023
- export const RunAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2024
- typeof RunAgentModelConfigurationType
2025
- > = RunAgentModelConfigurationType$inboundSchema;
2026
-
2027
- /** @internal */
2028
- export const RunAgentModelConfigurationThinkingLevel$inboundSchema:
2029
- z.ZodNativeEnum<typeof RunAgentModelConfigurationThinkingLevel> = z
2030
- .nativeEnum(RunAgentModelConfigurationThinkingLevel);
2031
- /** @internal */
2032
- export const RunAgentModelConfigurationThinkingLevel$outboundSchema:
2033
- z.ZodNativeEnum<typeof RunAgentModelConfigurationThinkingLevel> =
2034
- RunAgentModelConfigurationThinkingLevel$inboundSchema;
2035
-
2036
1946
  /** @internal */
2037
1947
  export const RunAgentModelConfigurationThinking$inboundSchema: z.ZodType<
2038
1948
  RunAgentModelConfigurationThinking,
2039
1949
  z.ZodTypeDef,
2040
1950
  unknown
2041
- > = z.object({
2042
- type: RunAgentModelConfigurationType$inboundSchema,
2043
- budget_tokens: z.number(),
2044
- thinking_level: RunAgentModelConfigurationThinkingLevel$inboundSchema
2045
- .optional(),
2046
- }).transform((v) => {
2047
- return remap$(v, {
2048
- "budget_tokens": "budgetTokens",
2049
- "thinking_level": "thinkingLevel",
2050
- });
2051
- });
1951
+ > = z.union([
1952
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1953
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1954
+ ]);
2052
1955
  /** @internal */
2053
- export type RunAgentModelConfigurationThinking$Outbound = {
2054
- type: string;
2055
- budget_tokens: number;
2056
- thinking_level?: string | undefined;
2057
- };
1956
+ export type RunAgentModelConfigurationThinking$Outbound =
1957
+ | components.ThinkingConfigDisabledSchema$Outbound
1958
+ | components.ThinkingConfigEnabledSchema$Outbound;
2058
1959
 
2059
1960
  /** @internal */
2060
1961
  export const RunAgentModelConfigurationThinking$outboundSchema: z.ZodType<
2061
1962
  RunAgentModelConfigurationThinking$Outbound,
2062
1963
  z.ZodTypeDef,
2063
1964
  RunAgentModelConfigurationThinking
2064
- > = z.object({
2065
- type: RunAgentModelConfigurationType$outboundSchema,
2066
- budgetTokens: z.number(),
2067
- thinkingLevel: RunAgentModelConfigurationThinkingLevel$outboundSchema
2068
- .optional(),
2069
- }).transform((v) => {
2070
- return remap$(v, {
2071
- budgetTokens: "budget_tokens",
2072
- thinkingLevel: "thinking_level",
2073
- });
2074
- });
1965
+ > = z.union([
1966
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1967
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1968
+ ]);
2075
1969
 
2076
1970
  export function runAgentModelConfigurationThinkingToJSON(
2077
1971
  runAgentModelConfigurationThinking: RunAgentModelConfigurationThinking,
@@ -2273,8 +2167,10 @@ export const RunAgentModelConfigurationParameters$inboundSchema: z.ZodType<
2273
2167
  stream_options: z.nullable(
2274
2168
  z.lazy(() => RunAgentModelConfigurationStreamOptions$inboundSchema),
2275
2169
  ).optional(),
2276
- thinking: z.lazy(() => RunAgentModelConfigurationThinking$inboundSchema)
2277
- .optional(),
2170
+ thinking: z.union([
2171
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2172
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2173
+ ]).optional(),
2278
2174
  temperature: z.nullable(z.number()).optional(),
2279
2175
  top_p: z.nullable(z.number()).optional(),
2280
2176
  top_k: z.nullable(z.number()).optional(),
@@ -2325,7 +2221,10 @@ export type RunAgentModelConfigurationParameters$Outbound = {
2325
2221
  | RunAgentModelConfigurationStreamOptions$Outbound
2326
2222
  | null
2327
2223
  | undefined;
2328
- thinking?: RunAgentModelConfigurationThinking$Outbound | undefined;
2224
+ thinking?:
2225
+ | components.ThinkingConfigDisabledSchema$Outbound
2226
+ | components.ThinkingConfigEnabledSchema$Outbound
2227
+ | undefined;
2329
2228
  temperature?: number | null | undefined;
2330
2229
  top_p?: number | null | undefined;
2331
2230
  top_k?: number | null | undefined;
@@ -2362,8 +2261,10 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
2362
2261
  streamOptions: z.nullable(
2363
2262
  z.lazy(() => RunAgentModelConfigurationStreamOptions$outboundSchema),
2364
2263
  ).optional(),
2365
- thinking: z.lazy(() => RunAgentModelConfigurationThinking$outboundSchema)
2366
- .optional(),
2264
+ thinking: z.union([
2265
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2266
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2267
+ ]).optional(),
2367
2268
  temperature: z.nullable(z.number()).optional(),
2368
2269
  topP: z.nullable(z.number()).optional(),
2369
2270
  topK: z.nullable(z.number()).optional(),
@@ -2984,46 +2885,17 @@ export function runAgentFallbackModelConfigurationStreamOptionsFromJSON(
2984
2885
  );
2985
2886
  }
2986
2887
 
2987
- /** @internal */
2988
- export const RunAgentFallbackModelConfigurationType$inboundSchema:
2989
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> = z.nativeEnum(
2990
- RunAgentFallbackModelConfigurationType,
2991
- );
2992
- /** @internal */
2993
- export const RunAgentFallbackModelConfigurationType$outboundSchema:
2994
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> =
2995
- RunAgentFallbackModelConfigurationType$inboundSchema;
2996
-
2997
- /** @internal */
2998
- export const RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
2999
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationThinkingLevel> = z
3000
- .nativeEnum(RunAgentFallbackModelConfigurationThinkingLevel);
3001
- /** @internal */
3002
- export const RunAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
3003
- z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationThinkingLevel> =
3004
- RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
3005
-
3006
2888
  /** @internal */
3007
2889
  export const RunAgentFallbackModelConfigurationThinking$inboundSchema:
3008
2890
  z.ZodType<RunAgentFallbackModelConfigurationThinking, z.ZodTypeDef, unknown> =
3009
- z.object({
3010
- type: RunAgentFallbackModelConfigurationType$inboundSchema,
3011
- budget_tokens: z.number(),
3012
- thinking_level:
3013
- RunAgentFallbackModelConfigurationThinkingLevel$inboundSchema
3014
- .optional(),
3015
- }).transform((v) => {
3016
- return remap$(v, {
3017
- "budget_tokens": "budgetTokens",
3018
- "thinking_level": "thinkingLevel",
3019
- });
3020
- });
2891
+ z.union([
2892
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2893
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2894
+ ]);
3021
2895
  /** @internal */
3022
- export type RunAgentFallbackModelConfigurationThinking$Outbound = {
3023
- type: string;
3024
- budget_tokens: number;
3025
- thinking_level?: string | undefined;
3026
- };
2896
+ export type RunAgentFallbackModelConfigurationThinking$Outbound =
2897
+ | components.ThinkingConfigDisabledSchema$Outbound
2898
+ | components.ThinkingConfigEnabledSchema$Outbound;
3027
2899
 
3028
2900
  /** @internal */
3029
2901
  export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
@@ -3031,17 +2903,10 @@ export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
3031
2903
  RunAgentFallbackModelConfigurationThinking$Outbound,
3032
2904
  z.ZodTypeDef,
3033
2905
  RunAgentFallbackModelConfigurationThinking
3034
- > = z.object({
3035
- type: RunAgentFallbackModelConfigurationType$outboundSchema,
3036
- budgetTokens: z.number(),
3037
- thinkingLevel:
3038
- RunAgentFallbackModelConfigurationThinkingLevel$outboundSchema.optional(),
3039
- }).transform((v) => {
3040
- return remap$(v, {
3041
- budgetTokens: "budget_tokens",
3042
- thinkingLevel: "thinking_level",
3043
- });
3044
- });
2906
+ > = z.union([
2907
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2908
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2909
+ ]);
3045
2910
 
3046
2911
  export function runAgentFallbackModelConfigurationThinkingToJSON(
3047
2912
  runAgentFallbackModelConfigurationThinking:
@@ -3262,9 +3127,10 @@ export const RunAgentFallbackModelConfigurationParameters$inboundSchema:
3262
3127
  RunAgentFallbackModelConfigurationStreamOptions$inboundSchema
3263
3128
  ),
3264
3129
  ).optional(),
3265
- thinking: z.lazy(() =>
3266
- RunAgentFallbackModelConfigurationThinking$inboundSchema
3267
- ).optional(),
3130
+ thinking: z.union([
3131
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3132
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3133
+ ]).optional(),
3268
3134
  temperature: z.nullable(z.number()).optional(),
3269
3135
  top_p: z.nullable(z.number()).optional(),
3270
3136
  top_k: z.nullable(z.number()).optional(),
@@ -3315,7 +3181,10 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
3315
3181
  | RunAgentFallbackModelConfigurationStreamOptions$Outbound
3316
3182
  | null
3317
3183
  | undefined;
3318
- thinking?: RunAgentFallbackModelConfigurationThinking$Outbound | undefined;
3184
+ thinking?:
3185
+ | components.ThinkingConfigDisabledSchema$Outbound
3186
+ | components.ThinkingConfigEnabledSchema$Outbound
3187
+ | undefined;
3319
3188
  temperature?: number | null | undefined;
3320
3189
  top_p?: number | null | undefined;
3321
3190
  top_k?: number | null | undefined;
@@ -3357,9 +3226,10 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
3357
3226
  RunAgentFallbackModelConfigurationStreamOptions$outboundSchema
3358
3227
  ),
3359
3228
  ).optional(),
3360
- thinking: z.lazy(() =>
3361
- RunAgentFallbackModelConfigurationThinking$outboundSchema
3362
- ).optional(),
3229
+ thinking: z.union([
3230
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3231
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3232
+ ]).optional(),
3363
3233
  temperature: z.nullable(z.number()).optional(),
3364
3234
  topP: z.nullable(z.number()).optional(),
3365
3235
  topK: z.nullable(z.number()).optional(),
@@ -4004,7 +3874,7 @@ export function schemaFromJSON(
4004
3874
  /** @internal */
4005
3875
  export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
4006
3876
  .object({
4007
- id: z.string().default("01KBZ0NWKVJ280ZVT2TNR34K3G"),
3877
+ id: z.string().default("01KC3CE23C1WG4ACM482CRY1P4"),
4008
3878
  name: z.string(),
4009
3879
  description: z.string().optional(),
4010
3880
  schema: z.lazy(() => Schema$inboundSchema),
@@ -4023,7 +3893,7 @@ export const Tools$outboundSchema: z.ZodType<
4023
3893
  z.ZodTypeDef,
4024
3894
  Tools
4025
3895
  > = z.object({
4026
- id: z.string().default("01KBZ0NWKVJ280ZVT2TNR34K3G"),
3896
+ id: z.string().default("01KC3CE23C1WG4ACM482CRY1P4"),
4027
3897
  name: z.string(),
4028
3898
  description: z.string().optional(),
4029
3899
  schema: z.lazy(() => Schema$outboundSchema),
@@ -5720,7 +5590,7 @@ export const RunAgentSettings$inboundSchema: z.ZodType<
5720
5590
  "none",
5721
5591
  ),
5722
5592
  max_iterations: z.number().int().default(100),
5723
- max_execution_time: z.number().int().default(300),
5593
+ max_execution_time: z.number().int().default(600),
5724
5594
  evaluators: z.array(z.lazy(() => RunAgentEvaluators$inboundSchema))
5725
5595
  .optional(),
5726
5596
  guardrails: z.array(z.lazy(() => RunAgentGuardrails$inboundSchema))
@@ -5789,7 +5659,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
5789
5659
  "none",
5790
5660
  ),
5791
5661
  maxIterations: z.number().int().default(100),
5792
- maxExecutionTime: z.number().int().default(300),
5662
+ maxExecutionTime: z.number().int().default(600),
5793
5663
  evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
5794
5664
  .optional(),
5795
5665
  guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))