@sean.holung/minicode 0.2.1 → 0.2.2

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 (1459) hide show
  1. package/node_modules/@anthropic-ai/sdk/.github/logo.svg +3 -0
  2. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +2201 -0
  3. package/node_modules/@anthropic-ai/sdk/LICENSE +8 -0
  4. package/node_modules/@anthropic-ai/sdk/README.md +824 -0
  5. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts +3 -0
  6. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -0
  7. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts +3 -0
  8. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  9. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +226 -0
  10. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -0
  11. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +223 -0
  12. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -0
  13. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +2 -0
  14. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -0
  15. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +2 -0
  16. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -0
  17. package/node_modules/@anthropic-ai/sdk/api-promise.js +6 -0
  18. package/node_modules/@anthropic-ai/sdk/api-promise.js.map +1 -0
  19. package/node_modules/@anthropic-ai/sdk/api-promise.mjs +2 -0
  20. package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -0
  21. package/node_modules/@anthropic-ai/sdk/bin/cli +53 -0
  22. package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +82 -0
  23. package/node_modules/@anthropic-ai/sdk/client.d.mts +246 -0
  24. package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -0
  25. package/node_modules/@anthropic-ai/sdk/client.d.ts +246 -0
  26. package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -0
  27. package/node_modules/@anthropic-ai/sdk/client.js +571 -0
  28. package/node_modules/@anthropic-ai/sdk/client.js.map +1 -0
  29. package/node_modules/@anthropic-ai/sdk/client.mjs +566 -0
  30. package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -0
  31. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +49 -0
  32. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -0
  33. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +49 -0
  34. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -0
  35. package/node_modules/@anthropic-ai/sdk/core/api-promise.js +76 -0
  36. package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -0
  37. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +72 -0
  38. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -0
  39. package/node_modules/@anthropic-ai/sdk/core/error.d.mts +47 -0
  40. package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -0
  41. package/node_modules/@anthropic-ai/sdk/core/error.d.ts +47 -0
  42. package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -0
  43. package/node_modules/@anthropic-ai/sdk/core/error.js +114 -0
  44. package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -0
  45. package/node_modules/@anthropic-ai/sdk/core/error.mjs +98 -0
  46. package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -0
  47. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +105 -0
  48. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -0
  49. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +105 -0
  50. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -0
  51. package/node_modules/@anthropic-ai/sdk/core/pagination.js +185 -0
  52. package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -0
  53. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +177 -0
  54. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -0
  55. package/node_modules/@anthropic-ai/sdk/core/resource.d.mts +6 -0
  56. package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -0
  57. package/node_modules/@anthropic-ai/sdk/core/resource.d.ts +6 -0
  58. package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -0
  59. package/node_modules/@anthropic-ai/sdk/core/resource.js +11 -0
  60. package/node_modules/@anthropic-ai/sdk/core/resource.js.map +1 -0
  61. package/node_modules/@anthropic-ai/sdk/core/resource.mjs +7 -0
  62. package/node_modules/@anthropic-ai/sdk/core/resource.mjs.map +1 -0
  63. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +33 -0
  64. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -0
  65. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +33 -0
  66. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -0
  67. package/node_modules/@anthropic-ai/sdk/core/streaming.js +288 -0
  68. package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -0
  69. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +283 -0
  70. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -0
  71. package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +3 -0
  72. package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -0
  73. package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts +3 -0
  74. package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -0
  75. package/node_modules/@anthropic-ai/sdk/core/uploads.js +6 -0
  76. package/node_modules/@anthropic-ai/sdk/core/uploads.js.map +1 -0
  77. package/node_modules/@anthropic-ai/sdk/core/uploads.mjs +2 -0
  78. package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -0
  79. package/node_modules/@anthropic-ai/sdk/error.d.mts +2 -0
  80. package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -0
  81. package/node_modules/@anthropic-ai/sdk/error.d.ts +2 -0
  82. package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -0
  83. package/node_modules/@anthropic-ai/sdk/error.js +6 -0
  84. package/node_modules/@anthropic-ai/sdk/error.js.map +1 -0
  85. package/node_modules/@anthropic-ai/sdk/error.mjs +2 -0
  86. package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -0
  87. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts +31 -0
  88. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map +1 -0
  89. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts +31 -0
  90. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map +1 -0
  91. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js +56 -0
  92. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map +1 -0
  93. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs +52 -0
  94. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map +1 -0
  95. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts +303 -0
  96. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map +1 -0
  97. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts +303 -0
  98. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map +1 -0
  99. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +419 -0
  100. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map +1 -0
  101. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +406 -0
  102. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs.map +1 -0
  103. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts +11 -0
  104. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts.map +1 -0
  105. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts +11 -0
  106. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts.map +1 -0
  107. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.js +18 -0
  108. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.js.map +1 -0
  109. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.mjs +15 -0
  110. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.mjs.map +1 -0
  111. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts +27 -0
  112. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts.map +1 -0
  113. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts +27 -0
  114. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts.map +1 -0
  115. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js +57 -0
  116. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js.map +1 -0
  117. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs +52 -0
  118. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs.map +1 -0
  119. package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts +3 -0
  120. package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts.map +1 -0
  121. package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts +3 -0
  122. package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts.map +1 -0
  123. package/node_modules/@anthropic-ai/sdk/helpers/index.js +8 -0
  124. package/node_modules/@anthropic-ai/sdk/helpers/index.js.map +1 -0
  125. package/node_modules/@anthropic-ai/sdk/helpers/index.mjs +3 -0
  126. package/node_modules/@anthropic-ai/sdk/helpers/index.mjs.map +1 -0
  127. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts +18 -0
  128. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts.map +1 -0
  129. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts +18 -0
  130. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts.map +1 -0
  131. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.js +37 -0
  132. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.js.map +1 -0
  133. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs +34 -0
  134. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs.map +1 -0
  135. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts +13 -0
  136. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts.map +1 -0
  137. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts +13 -0
  138. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts.map +1 -0
  139. package/node_modules/@anthropic-ai/sdk/helpers/zod.js +47 -0
  140. package/node_modules/@anthropic-ai/sdk/helpers/zod.js.map +1 -0
  141. package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs +43 -0
  142. package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs.map +1 -0
  143. package/node_modules/@anthropic-ai/sdk/index.d.mts +8 -0
  144. package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -0
  145. package/node_modules/@anthropic-ai/sdk/index.d.ts +8 -0
  146. package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -0
  147. package/node_modules/@anthropic-ai/sdk/index.js +35 -0
  148. package/node_modules/@anthropic-ai/sdk/index.js.map +1 -0
  149. package/node_modules/@anthropic-ai/sdk/index.mjs +8 -0
  150. package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -0
  151. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts +73 -0
  152. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts.map +1 -0
  153. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts +73 -0
  154. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts.map +1 -0
  155. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +4 -0
  156. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.js.map +1 -0
  157. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +3 -0
  158. package/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs.map +1 -0
  159. package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts +5 -0
  160. package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -0
  161. package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts +5 -0
  162. package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -0
  163. package/node_modules/@anthropic-ai/sdk/internal/constants.js +18 -0
  164. package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -0
  165. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +15 -0
  166. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -0
  167. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts +10 -0
  168. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -0
  169. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts +10 -0
  170. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -0
  171. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +39 -0
  172. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js.map +1 -0
  173. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +35 -0
  174. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -0
  175. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts +17 -0
  176. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts.map +1 -0
  177. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts +17 -0
  178. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts.map +1 -0
  179. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +113 -0
  180. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.js.map +1 -0
  181. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +108 -0
  182. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -0
  183. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts +15 -0
  184. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts.map +1 -0
  185. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts +15 -0
  186. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts.map +1 -0
  187. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +162 -0
  188. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +1 -0
  189. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +157 -0
  190. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -0
  191. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts +3 -0
  192. package/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +1 -0
  193. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts +3 -0
  194. package/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +1 -0
  195. package/node_modules/@anthropic-ai/sdk/internal/errors.js +41 -0
  196. package/node_modules/@anthropic-ai/sdk/internal/errors.js.map +1 -0
  197. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs +36 -0
  198. package/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +1 -0
  199. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +22 -0
  200. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -0
  201. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +22 -0
  202. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -0
  203. package/node_modules/@anthropic-ai/sdk/internal/headers.js +79 -0
  204. package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -0
  205. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +74 -0
  206. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -0
  207. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +17 -0
  208. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -0
  209. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +17 -0
  210. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -0
  211. package/node_modules/@anthropic-ai/sdk/internal/parse.js +60 -0
  212. package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -0
  213. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +56 -0
  214. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -0
  215. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +77 -0
  216. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -0
  217. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +77 -0
  218. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -0
  219. package/node_modules/@anthropic-ai/sdk/internal/request-options.js +14 -0
  220. package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -0
  221. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
  222. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -0
  223. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts +17 -0
  224. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts.map +1 -0
  225. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts +17 -0
  226. package/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts.map +1 -0
  227. package/node_modules/@anthropic-ai/sdk/internal/shim-types.js +4 -0
  228. package/node_modules/@anthropic-ai/sdk/internal/shim-types.js.map +1 -0
  229. package/node_modules/@anthropic-ai/sdk/internal/shim-types.mjs +3 -0
  230. package/node_modules/@anthropic-ai/sdk/internal/shim-types.mjs.map +1 -0
  231. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +20 -0
  232. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -0
  233. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +20 -0
  234. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -0
  235. package/node_modules/@anthropic-ai/sdk/internal/shims.js +92 -0
  236. package/node_modules/@anthropic-ai/sdk/internal/shims.js.map +1 -0
  237. package/node_modules/@anthropic-ai/sdk/internal/shims.mjs +85 -0
  238. package/node_modules/@anthropic-ai/sdk/internal/shims.mjs.map +1 -0
  239. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts +8 -0
  240. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts.map +1 -0
  241. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts +8 -0
  242. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts.map +1 -0
  243. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.js +38 -0
  244. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.js.map +1 -0
  245. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs +35 -0
  246. package/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs.map +1 -0
  247. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts +45 -0
  248. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -0
  249. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts +45 -0
  250. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -0
  251. package/node_modules/@anthropic-ai/sdk/internal/to-file.js +96 -0
  252. package/node_modules/@anthropic-ai/sdk/internal/to-file.js.map +1 -0
  253. package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +93 -0
  254. package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -0
  255. package/node_modules/@anthropic-ai/sdk/internal/tslib.js +81 -0
  256. package/node_modules/@anthropic-ai/sdk/internal/tslib.mjs +17 -0
  257. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +69 -0
  258. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -0
  259. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +69 -0
  260. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -0
  261. package/node_modules/@anthropic-ai/sdk/internal/types.js +4 -0
  262. package/node_modules/@anthropic-ai/sdk/internal/types.js.map +1 -0
  263. package/node_modules/@anthropic-ai/sdk/internal/types.mjs +3 -0
  264. package/node_modules/@anthropic-ai/sdk/internal/types.mjs.map +1 -0
  265. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +42 -0
  266. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -0
  267. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts +42 -0
  268. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -0
  269. package/node_modules/@anthropic-ai/sdk/internal/uploads.js +145 -0
  270. package/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +1 -0
  271. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +135 -0
  272. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -0
  273. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts +3 -0
  274. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts.map +1 -0
  275. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts +3 -0
  276. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts.map +1 -0
  277. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +38 -0
  278. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.js.map +1 -0
  279. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +33 -0
  280. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -0
  281. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts +4 -0
  282. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts.map +1 -0
  283. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts +4 -0
  284. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts.map +1 -0
  285. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js +31 -0
  286. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js.map +1 -0
  287. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs +26 -0
  288. package/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs.map +1 -0
  289. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts +9 -0
  290. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts.map +1 -0
  291. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts +9 -0
  292. package/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts.map +1 -0
  293. package/node_modules/@anthropic-ai/sdk/internal/utils/env.js +22 -0
  294. package/node_modules/@anthropic-ai/sdk/internal/utils/env.js.map +1 -0
  295. package/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +18 -0
  296. package/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs.map +1 -0
  297. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +37 -0
  298. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -0
  299. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +37 -0
  300. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -0
  301. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +86 -0
  302. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -0
  303. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +80 -0
  304. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -0
  305. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts +15 -0
  306. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts.map +1 -0
  307. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts +15 -0
  308. package/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts.map +1 -0
  309. package/node_modules/@anthropic-ai/sdk/internal/utils/path.js +79 -0
  310. package/node_modules/@anthropic-ai/sdk/internal/utils/path.js.map +1 -0
  311. package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs +74 -0
  312. package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -0
  313. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +2 -0
  314. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -0
  315. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +2 -0
  316. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -0
  317. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +7 -0
  318. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -0
  319. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +3 -0
  320. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -0
  321. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts +5 -0
  322. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts.map +1 -0
  323. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts +5 -0
  324. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts.map +1 -0
  325. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +19 -0
  326. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js.map +1 -0
  327. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +15 -0
  328. package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs.map +1 -0
  329. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +19 -0
  330. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +1 -0
  331. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +19 -0
  332. package/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +1 -0
  333. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js +119 -0
  334. package/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +1 -0
  335. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +100 -0
  336. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -0
  337. package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts +7 -0
  338. package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -0
  339. package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts +7 -0
  340. package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -0
  341. package/node_modules/@anthropic-ai/sdk/internal/utils.js +11 -0
  342. package/node_modules/@anthropic-ai/sdk/internal/utils.js.map +1 -0
  343. package/node_modules/@anthropic-ai/sdk/internal/utils.mjs +8 -0
  344. package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -0
  345. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +122 -0
  346. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -0
  347. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +122 -0
  348. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -0
  349. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +620 -0
  350. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -0
  351. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +616 -0
  352. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -0
  353. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +121 -0
  354. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -0
  355. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +121 -0
  356. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -0
  357. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +595 -0
  358. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -0
  359. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +591 -0
  360. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -0
  361. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts +37 -0
  362. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts.map +1 -0
  363. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts +37 -0
  364. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts.map +1 -0
  365. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.js +79 -0
  366. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.js.map +1 -0
  367. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs +75 -0
  368. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs.map +1 -0
  369. package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts +32 -0
  370. package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts.map +1 -0
  371. package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts +32 -0
  372. package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts.map +1 -0
  373. package/node_modules/@anthropic-ai/sdk/lib/parser.js +66 -0
  374. package/node_modules/@anthropic-ai/sdk/lib/parser.js.map +1 -0
  375. package/node_modules/@anthropic-ai/sdk/lib/parser.mjs +62 -0
  376. package/node_modules/@anthropic-ai/sdk/lib/parser.mjs.map +1 -0
  377. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts +34 -0
  378. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts.map +1 -0
  379. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts +34 -0
  380. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts.map +1 -0
  381. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js +70 -0
  382. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js.map +1 -0
  383. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs +63 -0
  384. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs.map +1 -0
  385. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +12 -0
  386. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts.map +1 -0
  387. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts +12 -0
  388. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts.map +1 -0
  389. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js +3 -0
  390. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js.map +1 -0
  391. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs +2 -0
  392. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs.map +1 -0
  393. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +136 -0
  394. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -0
  395. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts +136 -0
  396. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -0
  397. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +376 -0
  398. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -0
  399. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +372 -0
  400. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -0
  401. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts +25 -0
  402. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts.map +1 -0
  403. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts +25 -0
  404. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts.map +1 -0
  405. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.js +28 -0
  406. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.js.map +1 -0
  407. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs +25 -0
  408. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs.map +1 -0
  409. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts +33 -0
  410. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts.map +1 -0
  411. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts +33 -0
  412. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts.map +1 -0
  413. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.js +42 -0
  414. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.js.map +1 -0
  415. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs +38 -0
  416. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs.map +1 -0
  417. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts +132 -0
  418. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts.map +1 -0
  419. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts +132 -0
  420. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts.map +1 -0
  421. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js +294 -0
  422. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js.map +1 -0
  423. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs +290 -0
  424. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs.map +1 -0
  425. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.d.mts +3 -0
  426. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.d.mts.map +1 -0
  427. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.d.ts +3 -0
  428. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.d.ts.map +1 -0
  429. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.js +114 -0
  430. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.js.map +1 -0
  431. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs +111 -0
  432. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs.map +1 -0
  433. package/node_modules/@anthropic-ai/sdk/package.json +211 -0
  434. package/node_modules/@anthropic-ai/sdk/pagination.d.mts +2 -0
  435. package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -0
  436. package/node_modules/@anthropic-ai/sdk/pagination.d.ts +2 -0
  437. package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -0
  438. package/node_modules/@anthropic-ai/sdk/pagination.js +6 -0
  439. package/node_modules/@anthropic-ai/sdk/pagination.js.map +1 -0
  440. package/node_modules/@anthropic-ai/sdk/pagination.mjs +2 -0
  441. package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -0
  442. package/node_modules/@anthropic-ai/sdk/resource.d.mts +2 -0
  443. package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -0
  444. package/node_modules/@anthropic-ai/sdk/resource.d.ts +2 -0
  445. package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -0
  446. package/node_modules/@anthropic-ai/sdk/resource.js +6 -0
  447. package/node_modules/@anthropic-ai/sdk/resource.js.map +1 -0
  448. package/node_modules/@anthropic-ai/sdk/resource.mjs +2 -0
  449. package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -0
  450. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +66 -0
  451. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -0
  452. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +66 -0
  453. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -0
  454. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +29 -0
  455. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -0
  456. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +24 -0
  457. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -0
  458. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +151 -0
  459. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -0
  460. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +151 -0
  461. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -0
  462. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +124 -0
  463. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -0
  464. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +120 -0
  465. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -0
  466. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +6 -0
  467. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -0
  468. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +6 -0
  469. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -0
  470. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +15 -0
  471. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -0
  472. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +7 -0
  473. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -0
  474. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +641 -0
  475. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -0
  476. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +641 -0
  477. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -0
  478. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +204 -0
  479. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -0
  480. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +200 -0
  481. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -0
  482. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +4 -0
  483. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -0
  484. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +4 -0
  485. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -0
  486. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +12 -0
  487. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -0
  488. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +5 -0
  489. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -0
  490. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +2888 -0
  491. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -0
  492. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +2888 -0
  493. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -0
  494. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +163 -0
  495. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -0
  496. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +156 -0
  497. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -0
  498. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts +2 -0
  499. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -0
  500. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts +2 -0
  501. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -0
  502. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +6 -0
  503. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.js.map +1 -0
  504. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +3 -0
  505. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -0
  506. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +74 -0
  507. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -0
  508. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +74 -0
  509. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -0
  510. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +60 -0
  511. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js.map +1 -0
  512. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +56 -0
  513. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -0
  514. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +3 -0
  515. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -0
  516. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +3 -0
  517. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -0
  518. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js +9 -0
  519. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -0
  520. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs +4 -0
  521. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -0
  522. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +249 -0
  523. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -0
  524. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +249 -0
  525. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -0
  526. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +98 -0
  527. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -0
  528. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +93 -0
  529. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -0
  530. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +257 -0
  531. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -0
  532. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +257 -0
  533. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -0
  534. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +100 -0
  535. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -0
  536. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +96 -0
  537. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -0
  538. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts +2 -0
  539. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts.map +1 -0
  540. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts +2 -0
  541. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts.map +1 -0
  542. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.js +6 -0
  543. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.js.map +1 -0
  544. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs +3 -0
  545. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs.map +1 -0
  546. package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +2 -0
  547. package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -0
  548. package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts +2 -0
  549. package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -0
  550. package/node_modules/@anthropic-ai/sdk/resources/beta.js +6 -0
  551. package/node_modules/@anthropic-ai/sdk/resources/beta.js.map +1 -0
  552. package/node_modules/@anthropic-ai/sdk/resources/beta.mjs +3 -0
  553. package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -0
  554. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +182 -0
  555. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -0
  556. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +182 -0
  557. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -0
  558. package/node_modules/@anthropic-ai/sdk/resources/completions.js +23 -0
  559. package/node_modules/@anthropic-ai/sdk/resources/completions.js.map +1 -0
  560. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +19 -0
  561. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -0
  562. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +6 -0
  563. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -0
  564. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +6 -0
  565. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -0
  566. package/node_modules/@anthropic-ai/sdk/resources/index.js +15 -0
  567. package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -0
  568. package/node_modules/@anthropic-ai/sdk/resources/index.mjs +7 -0
  569. package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -0
  570. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +304 -0
  571. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -0
  572. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +304 -0
  573. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -0
  574. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +153 -0
  575. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -0
  576. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +149 -0
  577. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -0
  578. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +3 -0
  579. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -0
  580. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +3 -0
  581. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -0
  582. package/node_modules/@anthropic-ai/sdk/resources/messages/index.js +9 -0
  583. package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -0
  584. package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +4 -0
  585. package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -0
  586. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +2198 -0
  587. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -0
  588. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +2198 -0
  589. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -0
  590. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +128 -0
  591. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -0
  592. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +123 -0
  593. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -0
  594. package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +2 -0
  595. package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -0
  596. package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +2 -0
  597. package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -0
  598. package/node_modules/@anthropic-ai/sdk/resources/messages.js +6 -0
  599. package/node_modules/@anthropic-ai/sdk/resources/messages.js.map +1 -0
  600. package/node_modules/@anthropic-ai/sdk/resources/messages.mjs +3 -0
  601. package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -0
  602. package/node_modules/@anthropic-ai/sdk/resources/models.d.mts +59 -0
  603. package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -0
  604. package/node_modules/@anthropic-ai/sdk/resources/models.d.ts +59 -0
  605. package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -0
  606. package/node_modules/@anthropic-ai/sdk/resources/models.js +45 -0
  607. package/node_modules/@anthropic-ai/sdk/resources/models.js.map +1 -0
  608. package/node_modules/@anthropic-ai/sdk/resources/models.mjs +41 -0
  609. package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -0
  610. package/node_modules/@anthropic-ai/sdk/resources/shared.d.mts +43 -0
  611. package/node_modules/@anthropic-ai/sdk/resources/shared.d.mts.map +1 -0
  612. package/node_modules/@anthropic-ai/sdk/resources/shared.d.ts +43 -0
  613. package/node_modules/@anthropic-ai/sdk/resources/shared.d.ts.map +1 -0
  614. package/node_modules/@anthropic-ai/sdk/resources/shared.js +4 -0
  615. package/node_modules/@anthropic-ai/sdk/resources/shared.js.map +1 -0
  616. package/node_modules/@anthropic-ai/sdk/resources/shared.mjs +3 -0
  617. package/node_modules/@anthropic-ai/sdk/resources/shared.mjs.map +1 -0
  618. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts +2 -0
  619. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts.map +1 -0
  620. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +2 -0
  621. package/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +1 -0
  622. package/node_modules/@anthropic-ai/sdk/resources/top-level.js +4 -0
  623. package/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +1 -0
  624. package/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +3 -0
  625. package/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +1 -0
  626. package/node_modules/@anthropic-ai/sdk/resources.d.mts +2 -0
  627. package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -0
  628. package/node_modules/@anthropic-ai/sdk/resources.d.ts +2 -0
  629. package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -0
  630. package/node_modules/@anthropic-ai/sdk/resources.js +5 -0
  631. package/node_modules/@anthropic-ai/sdk/resources.js.map +1 -0
  632. package/node_modules/@anthropic-ai/sdk/resources.mjs +2 -0
  633. package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -0
  634. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +3 -0
  635. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +264 -0
  636. package/node_modules/@anthropic-ai/sdk/src/api-promise.ts +2 -0
  637. package/node_modules/@anthropic-ai/sdk/src/client.ts +1305 -0
  638. package/node_modules/@anthropic-ai/sdk/src/core/README.md +3 -0
  639. package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +101 -0
  640. package/node_modules/@anthropic-ai/sdk/src/core/error.ts +133 -0
  641. package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +331 -0
  642. package/node_modules/@anthropic-ai/sdk/src/core/resource.ts +11 -0
  643. package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +345 -0
  644. package/node_modules/@anthropic-ai/sdk/src/core/uploads.ts +2 -0
  645. package/node_modules/@anthropic-ai/sdk/src/error.ts +2 -0
  646. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/json-schema.ts +75 -0
  647. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/mcp.ts +624 -0
  648. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/memory.ts +28 -0
  649. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/zod.ts +72 -0
  650. package/node_modules/@anthropic-ai/sdk/src/helpers/index.ts +2 -0
  651. package/node_modules/@anthropic-ai/sdk/src/helpers/json-schema.ts +48 -0
  652. package/node_modules/@anthropic-ai/sdk/src/helpers/zod.ts +58 -0
  653. package/node_modules/@anthropic-ai/sdk/src/index.ts +31 -0
  654. package/node_modules/@anthropic-ai/sdk/src/internal/README.md +3 -0
  655. package/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +93 -0
  656. package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +15 -0
  657. package/node_modules/@anthropic-ai/sdk/src/internal/decoders/jsonl.ts +48 -0
  658. package/node_modules/@anthropic-ai/sdk/src/internal/decoders/line.ts +135 -0
  659. package/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +196 -0
  660. package/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +33 -0
  661. package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +99 -0
  662. package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +90 -0
  663. package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +93 -0
  664. package/node_modules/@anthropic-ai/sdk/src/internal/shim-types.ts +26 -0
  665. package/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +107 -0
  666. package/node_modules/@anthropic-ai/sdk/src/internal/stream-utils.ts +32 -0
  667. package/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +159 -0
  668. package/node_modules/@anthropic-ai/sdk/src/internal/types.ts +95 -0
  669. package/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +204 -0
  670. package/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +40 -0
  671. package/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +32 -0
  672. package/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +18 -0
  673. package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +127 -0
  674. package/node_modules/@anthropic-ai/sdk/src/internal/utils/path.ts +88 -0
  675. package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +3 -0
  676. package/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +17 -0
  677. package/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +112 -0
  678. package/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +8 -0
  679. package/node_modules/@anthropic-ai/sdk/src/lib/.keep +4 -0
  680. package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +764 -0
  681. package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +743 -0
  682. package/node_modules/@anthropic-ai/sdk/src/lib/beta-parser.ts +148 -0
  683. package/node_modules/@anthropic-ai/sdk/src/lib/parser.ts +125 -0
  684. package/node_modules/@anthropic-ai/sdk/src/lib/stainless-helper-header.ts +80 -0
  685. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +40 -0
  686. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +481 -0
  687. package/node_modules/@anthropic-ai/sdk/src/lib/tools/CompactionControl.ts +52 -0
  688. package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolError.ts +47 -0
  689. package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolRunner.ts +381 -0
  690. package/node_modules/@anthropic-ai/sdk/src/lib/transform-json-schema.ts +124 -0
  691. package/node_modules/@anthropic-ai/sdk/src/pagination.ts +2 -0
  692. package/node_modules/@anthropic-ai/sdk/src/resource.ts +2 -0
  693. package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +580 -0
  694. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +261 -0
  695. package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +251 -0
  696. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +821 -0
  697. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +227 -0
  698. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +4242 -0
  699. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +3 -0
  700. package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +118 -0
  701. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +26 -0
  702. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +384 -0
  703. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +374 -0
  704. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills.ts +3 -0
  705. package/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +3 -0
  706. package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +230 -0
  707. package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +196 -0
  708. package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +396 -0
  709. package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +185 -0
  710. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +3261 -0
  711. package/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +3 -0
  712. package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +103 -0
  713. package/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +74 -0
  714. package/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +3 -0
  715. package/node_modules/@anthropic-ai/sdk/src/resources.ts +1 -0
  716. package/node_modules/@anthropic-ai/sdk/src/streaming.ts +2 -0
  717. package/node_modules/@anthropic-ai/sdk/src/tsconfig.json +11 -0
  718. package/node_modules/@anthropic-ai/sdk/src/uploads.ts +2 -0
  719. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -0
  720. package/node_modules/@anthropic-ai/sdk/streaming.d.mts +2 -0
  721. package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -0
  722. package/node_modules/@anthropic-ai/sdk/streaming.d.ts +2 -0
  723. package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -0
  724. package/node_modules/@anthropic-ai/sdk/streaming.js +6 -0
  725. package/node_modules/@anthropic-ai/sdk/streaming.js.map +1 -0
  726. package/node_modules/@anthropic-ai/sdk/streaming.mjs +2 -0
  727. package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -0
  728. package/node_modules/@anthropic-ai/sdk/uploads.d.mts +2 -0
  729. package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -0
  730. package/node_modules/@anthropic-ai/sdk/uploads.d.ts +2 -0
  731. package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -0
  732. package/node_modules/@anthropic-ai/sdk/uploads.js +6 -0
  733. package/node_modules/@anthropic-ai/sdk/uploads.js.map +1 -0
  734. package/node_modules/@anthropic-ai/sdk/uploads.mjs +2 -0
  735. package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -0
  736. package/node_modules/@anthropic-ai/sdk/version.d.mts +2 -0
  737. package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -0
  738. package/node_modules/@anthropic-ai/sdk/version.d.ts +2 -0
  739. package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -0
  740. package/node_modules/@anthropic-ai/sdk/version.js +5 -0
  741. package/node_modules/@anthropic-ai/sdk/version.js.map +1 -0
  742. package/node_modules/@anthropic-ai/sdk/version.mjs +2 -0
  743. package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -0
  744. package/node_modules/@babel/runtime/LICENSE +22 -0
  745. package/node_modules/@babel/runtime/README.md +19 -0
  746. package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
  747. package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
  748. package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
  749. package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
  750. package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
  751. package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
  752. package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
  753. package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
  754. package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
  755. package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
  756. package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
  757. package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
  758. package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
  759. package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
  760. package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
  761. package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
  762. package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
  763. package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
  764. package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
  765. package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
  766. package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
  767. package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
  768. package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
  769. package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
  770. package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
  771. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
  772. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
  773. package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
  774. package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
  775. package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
  776. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
  777. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
  778. package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
  779. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
  780. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
  781. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
  782. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
  783. package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
  784. package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
  785. package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
  786. package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
  787. package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
  788. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
  789. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
  790. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
  791. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
  792. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
  793. package/node_modules/@babel/runtime/helpers/construct.js +10 -0
  794. package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
  795. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
  796. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
  797. package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
  798. package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
  799. package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
  800. package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
  801. package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
  802. package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
  803. package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
  804. package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
  805. package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
  806. package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
  807. package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
  808. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
  809. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
  810. package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
  811. package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
  812. package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
  813. package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
  814. package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
  815. package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
  816. package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
  817. package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
  818. package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
  819. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
  820. package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
  821. package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
  822. package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
  823. package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
  824. package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
  825. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
  826. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
  827. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
  828. package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
  829. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  830. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
  831. package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
  832. package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
  833. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
  834. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
  835. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
  836. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  837. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
  838. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
  839. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
  840. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
  841. package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
  842. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
  843. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  844. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
  845. package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
  846. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
  847. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
  848. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
  849. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  850. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
  851. package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
  852. package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
  853. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
  854. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
  855. package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
  856. package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
  857. package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
  858. package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
  859. package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
  860. package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
  861. package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
  862. package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
  863. package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
  864. package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
  865. package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
  866. package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
  867. package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
  868. package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
  869. package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
  870. package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
  871. package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
  872. package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
  873. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
  874. package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
  875. package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
  876. package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
  877. package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
  878. package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
  879. package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
  880. package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
  881. package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
  882. package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
  883. package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
  884. package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
  885. package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
  886. package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
  887. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
  888. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  889. package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
  890. package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
  891. package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
  892. package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
  893. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
  894. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
  895. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
  896. package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +22 -0
  897. package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
  898. package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +77 -0
  899. package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
  900. package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
  901. package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
  902. package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
  903. package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
  904. package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
  905. package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
  906. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
  907. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
  908. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
  909. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
  910. package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
  911. package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
  912. package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
  913. package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
  914. package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
  915. package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
  916. package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
  917. package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
  918. package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
  919. package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
  920. package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
  921. package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
  922. package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
  923. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +69 -0
  924. package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
  925. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
  926. package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
  927. package/node_modules/@babel/runtime/helpers/extends.js +10 -0
  928. package/node_modules/@babel/runtime/helpers/get.js +11 -0
  929. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
  930. package/node_modules/@babel/runtime/helpers/identity.js +4 -0
  931. package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
  932. package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
  933. package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
  934. package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
  935. package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
  936. package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
  937. package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
  938. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
  939. package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
  940. package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
  941. package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
  942. package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
  943. package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
  944. package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
  945. package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
  946. package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
  947. package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
  948. package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
  949. package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
  950. package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
  951. package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
  952. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
  953. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
  954. package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
  955. package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
  956. package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
  957. package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
  958. package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
  959. package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
  960. package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +22 -0
  961. package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
  962. package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +77 -0
  963. package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
  964. package/node_modules/@babel/runtime/helpers/set.js +22 -0
  965. package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
  966. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
  967. package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
  968. package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
  969. package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
  970. package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
  971. package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
  972. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
  973. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
  974. package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
  975. package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
  976. package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
  977. package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
  978. package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
  979. package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
  980. package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
  981. package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
  982. package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
  983. package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
  984. package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
  985. package/node_modules/@babel/runtime/helpers/using.js +12 -0
  986. package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
  987. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +69 -0
  988. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
  989. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
  990. package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
  991. package/node_modules/@babel/runtime/package.json +1107 -0
  992. package/node_modules/@babel/runtime/regenerator/index.js +15 -0
  993. package/node_modules/@minicode/agent-sdk/README.md +292 -0
  994. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +61 -0
  995. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -0
  996. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +210 -0
  997. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -0
  998. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts +70 -0
  999. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts.map +1 -0
  1000. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js +2 -0
  1001. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js.map +1 -0
  1002. package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts +15 -0
  1003. package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts.map +1 -0
  1004. package/node_modules/@minicode/agent-sdk/dist/src/index.js +22 -0
  1005. package/node_modules/@minicode/agent-sdk/dist/src/index.js.map +1 -0
  1006. package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts +35 -0
  1007. package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -0
  1008. package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +375 -0
  1009. package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -0
  1010. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts +8 -0
  1011. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts.map +1 -0
  1012. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js +92 -0
  1013. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js.map +1 -0
  1014. package/node_modules/@minicode/agent-sdk/dist/src/safety/guardrails.d.ts +9 -0
  1015. package/node_modules/@minicode/agent-sdk/dist/src/safety/guardrails.d.ts.map +1 -0
  1016. package/node_modules/@minicode/agent-sdk/dist/src/safety/guardrails.js +56 -0
  1017. package/node_modules/@minicode/agent-sdk/dist/src/safety/guardrails.js.map +1 -0
  1018. package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts +21 -0
  1019. package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts.map +1 -0
  1020. package/node_modules/@minicode/agent-sdk/dist/src/session/session.js +110 -0
  1021. package/node_modules/@minicode/agent-sdk/dist/src/session/session.js.map +1 -0
  1022. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts +6 -0
  1023. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts.map +1 -0
  1024. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js +72 -0
  1025. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js.map +1 -0
  1026. package/node_modules/@minicode/agent-sdk/dist/src/tools/helpers.d.ts +6 -0
  1027. package/node_modules/@minicode/agent-sdk/dist/src/tools/helpers.d.ts.map +1 -0
  1028. package/node_modules/@minicode/agent-sdk/dist/src/tools/helpers.js +43 -0
  1029. package/node_modules/@minicode/agent-sdk/dist/src/tools/helpers.js.map +1 -0
  1030. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts +3 -0
  1031. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts.map +1 -0
  1032. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js +64 -0
  1033. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js.map +1 -0
  1034. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts +3 -0
  1035. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts.map +1 -0
  1036. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js +80 -0
  1037. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js.map +1 -0
  1038. package/node_modules/@minicode/agent-sdk/dist/src/tools/registry.d.ts +15 -0
  1039. package/node_modules/@minicode/agent-sdk/dist/src/tools/registry.d.ts.map +1 -0
  1040. package/node_modules/@minicode/agent-sdk/dist/src/tools/registry.js +59 -0
  1041. package/node_modules/@minicode/agent-sdk/dist/src/tools/registry.js.map +1 -0
  1042. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts +3 -0
  1043. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts.map +1 -0
  1044. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js +93 -0
  1045. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js.map +1 -0
  1046. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts +3 -0
  1047. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts.map +1 -0
  1048. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js +154 -0
  1049. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js.map +1 -0
  1050. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts +6 -0
  1051. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts.map +1 -0
  1052. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js +44 -0
  1053. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js.map +1 -0
  1054. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.d.ts +2 -0
  1055. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.d.ts.map +1 -0
  1056. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js +225 -0
  1057. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js.map +1 -0
  1058. package/node_modules/@minicode/agent-sdk/dist/tests/file-tools.test.d.ts +2 -0
  1059. package/node_modules/@minicode/agent-sdk/dist/tests/file-tools.test.d.ts.map +1 -0
  1060. package/node_modules/@minicode/agent-sdk/dist/tests/file-tools.test.js +114 -0
  1061. package/node_modules/@minicode/agent-sdk/dist/tests/file-tools.test.js.map +1 -0
  1062. package/node_modules/@minicode/agent-sdk/dist/tests/guardrails.test.d.ts +2 -0
  1063. package/node_modules/@minicode/agent-sdk/dist/tests/guardrails.test.d.ts.map +1 -0
  1064. package/node_modules/@minicode/agent-sdk/dist/tests/guardrails.test.js +48 -0
  1065. package/node_modules/@minicode/agent-sdk/dist/tests/guardrails.test.js.map +1 -0
  1066. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.d.ts +2 -0
  1067. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.d.ts.map +1 -0
  1068. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js +155 -0
  1069. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js.map +1 -0
  1070. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.d.ts +2 -0
  1071. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.d.ts.map +1 -0
  1072. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js +117 -0
  1073. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js.map +1 -0
  1074. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.d.ts +2 -0
  1075. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.d.ts.map +1 -0
  1076. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js +76 -0
  1077. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js.map +1 -0
  1078. package/node_modules/@minicode/agent-sdk/dist/tests/test-utils.d.ts +3 -0
  1079. package/node_modules/@minicode/agent-sdk/dist/tests/test-utils.d.ts.map +1 -0
  1080. package/node_modules/@minicode/agent-sdk/dist/tests/test-utils.js +19 -0
  1081. package/node_modules/@minicode/agent-sdk/dist/tests/test-utils.js.map +1 -0
  1082. package/node_modules/@minicode/agent-sdk/dist/tests/tool-registry.test.d.ts +2 -0
  1083. package/node_modules/@minicode/agent-sdk/dist/tests/tool-registry.test.d.ts.map +1 -0
  1084. package/node_modules/@minicode/agent-sdk/dist/tests/tool-registry.test.js +69 -0
  1085. package/node_modules/@minicode/agent-sdk/dist/tests/tool-registry.test.js.map +1 -0
  1086. package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -0
  1087. package/node_modules/@minicode/agent-sdk/package.json +32 -0
  1088. package/node_modules/json-schema-to-ts/LICENSE +21 -0
  1089. package/node_modules/json-schema-to-ts/README.md +1046 -0
  1090. package/node_modules/json-schema-to-ts/lib/cjs/definitions/deserializationPattern.js +6 -0
  1091. package/node_modules/json-schema-to-ts/lib/cjs/definitions/deserializationPattern.js.map +1 -0
  1092. package/node_modules/json-schema-to-ts/lib/cjs/definitions/extendedJsonSchema.js +6 -0
  1093. package/node_modules/json-schema-to-ts/lib/cjs/definitions/extendedJsonSchema.js.map +1 -0
  1094. package/node_modules/json-schema-to-ts/lib/cjs/definitions/fromSchemaOptions.js +6 -0
  1095. package/node_modules/json-schema-to-ts/lib/cjs/definitions/fromSchemaOptions.js.map +1 -0
  1096. package/node_modules/json-schema-to-ts/lib/cjs/definitions/index.js +6 -0
  1097. package/node_modules/json-schema-to-ts/lib/cjs/definitions/index.js.map +1 -0
  1098. package/node_modules/json-schema-to-ts/lib/cjs/definitions/jsonSchema.js +25 -0
  1099. package/node_modules/json-schema-to-ts/lib/cjs/definitions/jsonSchema.js.map +1 -0
  1100. package/node_modules/json-schema-to-ts/lib/cjs/index.js +26 -0
  1101. package/node_modules/json-schema-to-ts/lib/cjs/index.js.map +1 -0
  1102. package/node_modules/json-schema-to-ts/lib/cjs/parse-options.js +6 -0
  1103. package/node_modules/json-schema-to-ts/lib/cjs/parse-options.js.map +1 -0
  1104. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/allOf.js +6 -0
  1105. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/allOf.js.map +1 -0
  1106. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/anyOf.js +6 -0
  1107. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/anyOf.js.map +1 -0
  1108. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/array.js +6 -0
  1109. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/array.js.map +1 -0
  1110. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/const.js +6 -0
  1111. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/const.js.map +1 -0
  1112. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/deserialize.js +6 -0
  1113. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/deserialize.js.map +1 -0
  1114. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/enum.js +6 -0
  1115. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/enum.js.map +1 -0
  1116. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/ifThenElse.js +6 -0
  1117. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/ifThenElse.js.map +1 -0
  1118. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/index.js +6 -0
  1119. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/index.js.map +1 -0
  1120. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/multipleTypes.js +6 -0
  1121. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/multipleTypes.js.map +1 -0
  1122. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/not.js +6 -0
  1123. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/not.js.map +1 -0
  1124. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/nullable.js +6 -0
  1125. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/nullable.js.map +1 -0
  1126. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/object.js +6 -0
  1127. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/object.js.map +1 -0
  1128. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/oneOf.js +6 -0
  1129. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/oneOf.js.map +1 -0
  1130. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/external.js +6 -0
  1131. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/external.js.map +1 -0
  1132. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/index.js +6 -0
  1133. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/index.js.map +1 -0
  1134. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/internal.js +6 -0
  1135. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/internal.js.map +1 -0
  1136. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/utils.js +6 -0
  1137. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/references/utils.js.map +1 -0
  1138. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/singleType.js +6 -0
  1139. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/singleType.js.map +1 -0
  1140. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/utils.js +6 -0
  1141. package/node_modules/json-schema-to-ts/lib/cjs/parse-schema/utils.js.map +1 -0
  1142. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/and.js +6 -0
  1143. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/and.js.map +1 -0
  1144. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/extends.js +6 -0
  1145. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/extends.js.map +1 -0
  1146. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/get.js +6 -0
  1147. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/get.js.map +1 -0
  1148. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/if.js +6 -0
  1149. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/if.js.map +1 -0
  1150. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/index.js +6 -0
  1151. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/index.js.map +1 -0
  1152. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/join.js +6 -0
  1153. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/join.js.map +1 -0
  1154. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/key.js +6 -0
  1155. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/key.js.map +1 -0
  1156. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/narrow.js +6 -0
  1157. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/narrow.js.map +1 -0
  1158. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/not.js +6 -0
  1159. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/not.js.map +1 -0
  1160. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/pop.js +6 -0
  1161. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/pop.js.map +1 -0
  1162. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/split.js +6 -0
  1163. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/split.js.map +1 -0
  1164. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/tail.js +6 -0
  1165. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/tail.js.map +1 -0
  1166. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/writable.js +6 -0
  1167. package/node_modules/json-schema-to-ts/lib/cjs/type-utils/writable.js.map +1 -0
  1168. package/node_modules/json-schema-to-ts/lib/cjs/utils/asConst.js +26 -0
  1169. package/node_modules/json-schema-to-ts/lib/cjs/utils/asConst.js.map +1 -0
  1170. package/node_modules/json-schema-to-ts/lib/cjs/utils/index.js +28 -0
  1171. package/node_modules/json-schema-to-ts/lib/cjs/utils/index.js.map +1 -0
  1172. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/compiler.js +52 -0
  1173. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/compiler.js.map +1 -0
  1174. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/index.js +22 -0
  1175. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/index.js.map +1 -0
  1176. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/validator.js +46 -0
  1177. package/node_modules/json-schema-to-ts/lib/cjs/utils/type-guards/validator.js.map +1 -0
  1178. package/node_modules/json-schema-to-ts/lib/esm/definitions/deserializationPattern.js +2 -0
  1179. package/node_modules/json-schema-to-ts/lib/esm/definitions/deserializationPattern.js.map +1 -0
  1180. package/node_modules/json-schema-to-ts/lib/esm/definitions/extendedJsonSchema.js +2 -0
  1181. package/node_modules/json-schema-to-ts/lib/esm/definitions/extendedJsonSchema.js.map +1 -0
  1182. package/node_modules/json-schema-to-ts/lib/esm/definitions/fromSchemaOptions.js +2 -0
  1183. package/node_modules/json-schema-to-ts/lib/esm/definitions/fromSchemaOptions.js.map +1 -0
  1184. package/node_modules/json-schema-to-ts/lib/esm/definitions/index.js +2 -0
  1185. package/node_modules/json-schema-to-ts/lib/esm/definitions/index.js.map +1 -0
  1186. package/node_modules/json-schema-to-ts/lib/esm/definitions/jsonSchema.js +17 -0
  1187. package/node_modules/json-schema-to-ts/lib/esm/definitions/jsonSchema.js.map +1 -0
  1188. package/node_modules/json-schema-to-ts/lib/esm/index.js +11 -0
  1189. package/node_modules/json-schema-to-ts/lib/esm/index.js.map +1 -0
  1190. package/node_modules/json-schema-to-ts/lib/esm/parse-options.js +2 -0
  1191. package/node_modules/json-schema-to-ts/lib/esm/parse-options.js.map +1 -0
  1192. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/allOf.js +2 -0
  1193. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/allOf.js.map +1 -0
  1194. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/anyOf.js +2 -0
  1195. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/anyOf.js.map +1 -0
  1196. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/array.js +2 -0
  1197. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/array.js.map +1 -0
  1198. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/const.js +2 -0
  1199. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/const.js.map +1 -0
  1200. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/deserialize.js +2 -0
  1201. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/deserialize.js.map +1 -0
  1202. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/enum.js +2 -0
  1203. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/enum.js.map +1 -0
  1204. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/ifThenElse.js +2 -0
  1205. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/ifThenElse.js.map +1 -0
  1206. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/index.js +2 -0
  1207. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/index.js.map +1 -0
  1208. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/multipleTypes.js +2 -0
  1209. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/multipleTypes.js.map +1 -0
  1210. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/not.js +2 -0
  1211. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/not.js.map +1 -0
  1212. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/nullable.js +2 -0
  1213. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/nullable.js.map +1 -0
  1214. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/object.js +2 -0
  1215. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/object.js.map +1 -0
  1216. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/oneOf.js +2 -0
  1217. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/oneOf.js.map +1 -0
  1218. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/external.js +2 -0
  1219. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/external.js.map +1 -0
  1220. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/index.js +2 -0
  1221. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/index.js.map +1 -0
  1222. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/internal.js +2 -0
  1223. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/internal.js.map +1 -0
  1224. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/utils.js +2 -0
  1225. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/references/utils.js.map +1 -0
  1226. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/singleType.js +2 -0
  1227. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/singleType.js.map +1 -0
  1228. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/utils.js +2 -0
  1229. package/node_modules/json-schema-to-ts/lib/esm/parse-schema/utils.js.map +1 -0
  1230. package/node_modules/json-schema-to-ts/lib/esm/type-utils/and.js +2 -0
  1231. package/node_modules/json-schema-to-ts/lib/esm/type-utils/and.js.map +1 -0
  1232. package/node_modules/json-schema-to-ts/lib/esm/type-utils/extends.js +2 -0
  1233. package/node_modules/json-schema-to-ts/lib/esm/type-utils/extends.js.map +1 -0
  1234. package/node_modules/json-schema-to-ts/lib/esm/type-utils/get.js +2 -0
  1235. package/node_modules/json-schema-to-ts/lib/esm/type-utils/get.js.map +1 -0
  1236. package/node_modules/json-schema-to-ts/lib/esm/type-utils/if.js +2 -0
  1237. package/node_modules/json-schema-to-ts/lib/esm/type-utils/if.js.map +1 -0
  1238. package/node_modules/json-schema-to-ts/lib/esm/type-utils/index.js +2 -0
  1239. package/node_modules/json-schema-to-ts/lib/esm/type-utils/index.js.map +1 -0
  1240. package/node_modules/json-schema-to-ts/lib/esm/type-utils/join.js +2 -0
  1241. package/node_modules/json-schema-to-ts/lib/esm/type-utils/join.js.map +1 -0
  1242. package/node_modules/json-schema-to-ts/lib/esm/type-utils/key.js +2 -0
  1243. package/node_modules/json-schema-to-ts/lib/esm/type-utils/key.js.map +1 -0
  1244. package/node_modules/json-schema-to-ts/lib/esm/type-utils/narrow.js +2 -0
  1245. package/node_modules/json-schema-to-ts/lib/esm/type-utils/narrow.js.map +1 -0
  1246. package/node_modules/json-schema-to-ts/lib/esm/type-utils/not.js +2 -0
  1247. package/node_modules/json-schema-to-ts/lib/esm/type-utils/not.js.map +1 -0
  1248. package/node_modules/json-schema-to-ts/lib/esm/type-utils/pop.js +2 -0
  1249. package/node_modules/json-schema-to-ts/lib/esm/type-utils/pop.js.map +1 -0
  1250. package/node_modules/json-schema-to-ts/lib/esm/type-utils/split.js +2 -0
  1251. package/node_modules/json-schema-to-ts/lib/esm/type-utils/split.js.map +1 -0
  1252. package/node_modules/json-schema-to-ts/lib/esm/type-utils/tail.js +2 -0
  1253. package/node_modules/json-schema-to-ts/lib/esm/type-utils/tail.js.map +1 -0
  1254. package/node_modules/json-schema-to-ts/lib/esm/type-utils/writable.js +2 -0
  1255. package/node_modules/json-schema-to-ts/lib/esm/type-utils/writable.js.map +1 -0
  1256. package/node_modules/json-schema-to-ts/lib/esm/utils/asConst.js +17 -0
  1257. package/node_modules/json-schema-to-ts/lib/esm/utils/asConst.js.map +1 -0
  1258. package/node_modules/json-schema-to-ts/lib/esm/utils/index.js +3 -0
  1259. package/node_modules/json-schema-to-ts/lib/esm/utils/index.js.map +1 -0
  1260. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/compiler.js +43 -0
  1261. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/compiler.js.map +1 -0
  1262. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/index.js +3 -0
  1263. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/index.js.map +1 -0
  1264. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/validator.js +37 -0
  1265. package/node_modules/json-schema-to-ts/lib/esm/utils/type-guards/validator.js.map +1 -0
  1266. package/node_modules/json-schema-to-ts/lib/types/definitions/deserializationPattern.d.ts +4 -0
  1267. package/node_modules/json-schema-to-ts/lib/types/definitions/deserializationPattern.js +1 -0
  1268. package/node_modules/json-schema-to-ts/lib/types/definitions/extendedJsonSchema.d.ts +75 -0
  1269. package/node_modules/json-schema-to-ts/lib/types/definitions/extendedJsonSchema.js +1 -0
  1270. package/node_modules/json-schema-to-ts/lib/types/definitions/fromSchemaOptions.d.ts +24 -0
  1271. package/node_modules/json-schema-to-ts/lib/types/definitions/fromSchemaOptions.js +1 -0
  1272. package/node_modules/json-schema-to-ts/lib/types/definitions/index.d.ts +4 -0
  1273. package/node_modules/json-schema-to-ts/lib/types/definitions/index.js +1 -0
  1274. package/node_modules/json-schema-to-ts/lib/types/definitions/jsonSchema.d.ts +57 -0
  1275. package/node_modules/json-schema-to-ts/lib/types/definitions/jsonSchema.js +1 -0
  1276. package/node_modules/json-schema-to-ts/lib/types/index.d.ts +9 -0
  1277. package/node_modules/json-schema-to-ts/lib/types/index.js +1 -0
  1278. package/node_modules/json-schema-to-ts/lib/types/parse-options.d.ts +12 -0
  1279. package/node_modules/json-schema-to-ts/lib/types/parse-options.js +1 -0
  1280. package/node_modules/json-schema-to-ts/lib/types/parse-schema/allOf.d.ts +13 -0
  1281. package/node_modules/json-schema-to-ts/lib/types/parse-schema/allOf.js +1 -0
  1282. package/node_modules/json-schema-to-ts/lib/types/parse-schema/anyOf.d.ts +13 -0
  1283. package/node_modules/json-schema-to-ts/lib/types/parse-schema/anyOf.js +1 -0
  1284. package/node_modules/json-schema-to-ts/lib/types/parse-schema/array.d.ts +57 -0
  1285. package/node_modules/json-schema-to-ts/lib/types/parse-schema/array.js +1 -0
  1286. package/node_modules/json-schema-to-ts/lib/types/parse-schema/const.d.ts +10 -0
  1287. package/node_modules/json-schema-to-ts/lib/types/parse-schema/const.js +1 -0
  1288. package/node_modules/json-schema-to-ts/lib/types/parse-schema/deserialize.d.ts +11 -0
  1289. package/node_modules/json-schema-to-ts/lib/types/parse-schema/deserialize.js +1 -0
  1290. package/node_modules/json-schema-to-ts/lib/types/parse-schema/enum.d.ts +10 -0
  1291. package/node_modules/json-schema-to-ts/lib/types/parse-schema/enum.js +1 -0
  1292. package/node_modules/json-schema-to-ts/lib/types/parse-schema/ifThenElse.d.ts +14 -0
  1293. package/node_modules/json-schema-to-ts/lib/types/parse-schema/ifThenElse.js +1 -0
  1294. package/node_modules/json-schema-to-ts/lib/types/parse-schema/index.d.ts +26 -0
  1295. package/node_modules/json-schema-to-ts/lib/types/parse-schema/index.js +1 -0
  1296. package/node_modules/json-schema-to-ts/lib/types/parse-schema/multipleTypes.d.ts +11 -0
  1297. package/node_modules/json-schema-to-ts/lib/types/parse-schema/multipleTypes.js +1 -0
  1298. package/node_modules/json-schema-to-ts/lib/types/parse-schema/not.d.ts +10 -0
  1299. package/node_modules/json-schema-to-ts/lib/types/parse-schema/not.js +1 -0
  1300. package/node_modules/json-schema-to-ts/lib/types/parse-schema/nullable.d.ts +9 -0
  1301. package/node_modules/json-schema-to-ts/lib/types/parse-schema/nullable.js +1 -0
  1302. package/node_modules/json-schema-to-ts/lib/types/parse-schema/object.d.ts +37 -0
  1303. package/node_modules/json-schema-to-ts/lib/types/parse-schema/object.js +1 -0
  1304. package/node_modules/json-schema-to-ts/lib/types/parse-schema/oneOf.d.ts +13 -0
  1305. package/node_modules/json-schema-to-ts/lib/types/parse-schema/oneOf.js +1 -0
  1306. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/external.d.ts +22 -0
  1307. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/external.js +1 -0
  1308. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/index.d.ts +9 -0
  1309. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/index.js +1 -0
  1310. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/internal.d.ts +4 -0
  1311. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/internal.js +1 -0
  1312. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/utils.d.ts +6 -0
  1313. package/node_modules/json-schema-to-ts/lib/types/parse-schema/references/utils.js +1 -0
  1314. package/node_modules/json-schema-to-ts/lib/types/parse-schema/singleType.d.ts +19 -0
  1315. package/node_modules/json-schema-to-ts/lib/types/parse-schema/singleType.js +1 -0
  1316. package/node_modules/json-schema-to-ts/lib/types/parse-schema/utils.d.ts +17 -0
  1317. package/node_modules/json-schema-to-ts/lib/types/parse-schema/utils.js +1 -0
  1318. package/node_modules/json-schema-to-ts/lib/types/type-utils/and.d.ts +1 -0
  1319. package/node_modules/json-schema-to-ts/lib/types/type-utils/and.js +1 -0
  1320. package/node_modules/json-schema-to-ts/lib/types/type-utils/extends.d.ts +1 -0
  1321. package/node_modules/json-schema-to-ts/lib/types/type-utils/extends.js +1 -0
  1322. package/node_modules/json-schema-to-ts/lib/types/type-utils/get.d.ts +1 -0
  1323. package/node_modules/json-schema-to-ts/lib/types/type-utils/get.js +1 -0
  1324. package/node_modules/json-schema-to-ts/lib/types/type-utils/if.d.ts +1 -0
  1325. package/node_modules/json-schema-to-ts/lib/types/type-utils/if.js +1 -0
  1326. package/node_modules/json-schema-to-ts/lib/types/type-utils/index.d.ts +12 -0
  1327. package/node_modules/json-schema-to-ts/lib/types/type-utils/index.js +1 -0
  1328. package/node_modules/json-schema-to-ts/lib/types/type-utils/join.d.ts +1 -0
  1329. package/node_modules/json-schema-to-ts/lib/types/type-utils/join.js +1 -0
  1330. package/node_modules/json-schema-to-ts/lib/types/type-utils/key.d.ts +1 -0
  1331. package/node_modules/json-schema-to-ts/lib/types/type-utils/key.js +1 -0
  1332. package/node_modules/json-schema-to-ts/lib/types/type-utils/narrow.d.ts +3 -0
  1333. package/node_modules/json-schema-to-ts/lib/types/type-utils/narrow.js +1 -0
  1334. package/node_modules/json-schema-to-ts/lib/types/type-utils/not.d.ts +1 -0
  1335. package/node_modules/json-schema-to-ts/lib/types/type-utils/not.js +1 -0
  1336. package/node_modules/json-schema-to-ts/lib/types/type-utils/pop.d.ts +1 -0
  1337. package/node_modules/json-schema-to-ts/lib/types/type-utils/pop.js +1 -0
  1338. package/node_modules/json-schema-to-ts/lib/types/type-utils/split.d.ts +4 -0
  1339. package/node_modules/json-schema-to-ts/lib/types/type-utils/split.js +1 -0
  1340. package/node_modules/json-schema-to-ts/lib/types/type-utils/tail.d.ts +1 -0
  1341. package/node_modules/json-schema-to-ts/lib/types/type-utils/tail.js +1 -0
  1342. package/node_modules/json-schema-to-ts/lib/types/type-utils/writable.d.ts +5 -0
  1343. package/node_modules/json-schema-to-ts/lib/types/type-utils/writable.js +1 -0
  1344. package/node_modules/json-schema-to-ts/lib/types/utils/asConst.d.ts +2 -0
  1345. package/node_modules/json-schema-to-ts/lib/types/utils/asConst.js +1 -0
  1346. package/node_modules/json-schema-to-ts/lib/types/utils/index.d.ts +3 -0
  1347. package/node_modules/json-schema-to-ts/lib/types/utils/index.js +2 -0
  1348. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/compiler.d.ts +6 -0
  1349. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/compiler.js +4 -0
  1350. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/index.d.ts +4 -0
  1351. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/index.js +2 -0
  1352. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/validator.d.ts +6 -0
  1353. package/node_modules/json-schema-to-ts/lib/types/utils/type-guards/validator.js +1 -0
  1354. package/node_modules/json-schema-to-ts/package.json +89 -0
  1355. package/node_modules/ts-algebra/.eslintignore +3 -0
  1356. package/node_modules/ts-algebra/.eslintrc.js +153 -0
  1357. package/node_modules/ts-algebra/.nvmrc +1 -0
  1358. package/node_modules/ts-algebra/.prettierignore +4 -0
  1359. package/node_modules/ts-algebra/.prettierrc +9 -0
  1360. package/node_modules/ts-algebra/LICENSE +21 -0
  1361. package/node_modules/ts-algebra/README.md +737 -0
  1362. package/node_modules/ts-algebra/lib/index.d.ts +2 -0
  1363. package/node_modules/ts-algebra/lib/index.js +4 -0
  1364. package/node_modules/ts-algebra/lib/meta-types/any.d.ts +15 -0
  1365. package/node_modules/ts-algebra/lib/meta-types/any.js +1 -0
  1366. package/node_modules/ts-algebra/lib/meta-types/array.d.ts +22 -0
  1367. package/node_modules/ts-algebra/lib/meta-types/array.js +1 -0
  1368. package/node_modules/ts-algebra/lib/meta-types/const.d.ts +19 -0
  1369. package/node_modules/ts-algebra/lib/meta-types/const.js +1 -0
  1370. package/node_modules/ts-algebra/lib/meta-types/enum.d.ts +19 -0
  1371. package/node_modules/ts-algebra/lib/meta-types/enum.js +1 -0
  1372. package/node_modules/ts-algebra/lib/meta-types/exclusion/any.d.ts +12 -0
  1373. package/node_modules/ts-algebra/lib/meta-types/exclusion/any.js +1 -0
  1374. package/node_modules/ts-algebra/lib/meta-types/exclusion/array.d.ts +16 -0
  1375. package/node_modules/ts-algebra/lib/meta-types/exclusion/array.js +1 -0
  1376. package/node_modules/ts-algebra/lib/meta-types/exclusion/const.d.ts +27 -0
  1377. package/node_modules/ts-algebra/lib/meta-types/exclusion/const.js +1 -0
  1378. package/node_modules/ts-algebra/lib/meta-types/exclusion/enum.d.ts +20 -0
  1379. package/node_modules/ts-algebra/lib/meta-types/exclusion/enum.js +1 -0
  1380. package/node_modules/ts-algebra/lib/meta-types/exclusion/index.d.ts +20 -0
  1381. package/node_modules/ts-algebra/lib/meta-types/exclusion/index.js +1 -0
  1382. package/node_modules/ts-algebra/lib/meta-types/exclusion/object.d.ts +51 -0
  1383. package/node_modules/ts-algebra/lib/meta-types/exclusion/object.js +1 -0
  1384. package/node_modules/ts-algebra/lib/meta-types/exclusion/primitive.d.ts +12 -0
  1385. package/node_modules/ts-algebra/lib/meta-types/exclusion/primitive.js +1 -0
  1386. package/node_modules/ts-algebra/lib/meta-types/exclusion/tuple.d.ts +87 -0
  1387. package/node_modules/ts-algebra/lib/meta-types/exclusion/tuple.js +1 -0
  1388. package/node_modules/ts-algebra/lib/meta-types/exclusion/union.d.ts +8 -0
  1389. package/node_modules/ts-algebra/lib/meta-types/exclusion/union.js +1 -0
  1390. package/node_modules/ts-algebra/lib/meta-types/exclusion/utils.d.ts +31 -0
  1391. package/node_modules/ts-algebra/lib/meta-types/exclusion/utils.js +1 -0
  1392. package/node_modules/ts-algebra/lib/meta-types/index.d.ts +14 -0
  1393. package/node_modules/ts-algebra/lib/meta-types/index.js +1 -0
  1394. package/node_modules/ts-algebra/lib/meta-types/intersection/any.d.ts +19 -0
  1395. package/node_modules/ts-algebra/lib/meta-types/intersection/any.js +1 -0
  1396. package/node_modules/ts-algebra/lib/meta-types/intersection/array.d.ts +21 -0
  1397. package/node_modules/ts-algebra/lib/meta-types/intersection/array.js +1 -0
  1398. package/node_modules/ts-algebra/lib/meta-types/intersection/const.d.ts +33 -0
  1399. package/node_modules/ts-algebra/lib/meta-types/intersection/const.js +1 -0
  1400. package/node_modules/ts-algebra/lib/meta-types/intersection/enum.d.ts +23 -0
  1401. package/node_modules/ts-algebra/lib/meta-types/intersection/enum.js +1 -0
  1402. package/node_modules/ts-algebra/lib/meta-types/intersection/index.d.ts +20 -0
  1403. package/node_modules/ts-algebra/lib/meta-types/intersection/index.js +1 -0
  1404. package/node_modules/ts-algebra/lib/meta-types/intersection/object.d.ts +26 -0
  1405. package/node_modules/ts-algebra/lib/meta-types/intersection/object.js +1 -0
  1406. package/node_modules/ts-algebra/lib/meta-types/intersection/primitive.d.ts +17 -0
  1407. package/node_modules/ts-algebra/lib/meta-types/intersection/primitive.js +1 -0
  1408. package/node_modules/ts-algebra/lib/meta-types/intersection/tuple.d.ts +44 -0
  1409. package/node_modules/ts-algebra/lib/meta-types/intersection/tuple.js +1 -0
  1410. package/node_modules/ts-algebra/lib/meta-types/intersection/union.d.ts +13 -0
  1411. package/node_modules/ts-algebra/lib/meta-types/intersection/union.js +1 -0
  1412. package/node_modules/ts-algebra/lib/meta-types/intersection/utils.d.ts +5 -0
  1413. package/node_modules/ts-algebra/lib/meta-types/intersection/utils.js +1 -0
  1414. package/node_modules/ts-algebra/lib/meta-types/never.d.ts +6 -0
  1415. package/node_modules/ts-algebra/lib/meta-types/never.js +1 -0
  1416. package/node_modules/ts-algebra/lib/meta-types/object.d.ts +47 -0
  1417. package/node_modules/ts-algebra/lib/meta-types/object.js +1 -0
  1418. package/node_modules/ts-algebra/lib/meta-types/primitive.d.ts +20 -0
  1419. package/node_modules/ts-algebra/lib/meta-types/primitive.js +1 -0
  1420. package/node_modules/ts-algebra/lib/meta-types/resolve.d.ts +18 -0
  1421. package/node_modules/ts-algebra/lib/meta-types/resolve.js +1 -0
  1422. package/node_modules/ts-algebra/lib/meta-types/tuple.d.ts +39 -0
  1423. package/node_modules/ts-algebra/lib/meta-types/tuple.js +1 -0
  1424. package/node_modules/ts-algebra/lib/meta-types/type.d.ts +14 -0
  1425. package/node_modules/ts-algebra/lib/meta-types/type.js +1 -0
  1426. package/node_modules/ts-algebra/lib/meta-types/typeId.d.ts +10 -0
  1427. package/node_modules/ts-algebra/lib/meta-types/typeId.js +1 -0
  1428. package/node_modules/ts-algebra/lib/meta-types/union.d.ts +18 -0
  1429. package/node_modules/ts-algebra/lib/meta-types/union.js +1 -0
  1430. package/node_modules/ts-algebra/lib/meta-types/utils.d.ts +3 -0
  1431. package/node_modules/ts-algebra/lib/meta-types/utils.js +1 -0
  1432. package/node_modules/ts-algebra/lib/utils/and.d.ts +1 -0
  1433. package/node_modules/ts-algebra/lib/utils/and.js +1 -0
  1434. package/node_modules/ts-algebra/lib/utils/extends.d.ts +5 -0
  1435. package/node_modules/ts-algebra/lib/utils/extends.js +1 -0
  1436. package/node_modules/ts-algebra/lib/utils/if.d.ts +1 -0
  1437. package/node_modules/ts-algebra/lib/utils/if.js +1 -0
  1438. package/node_modules/ts-algebra/lib/utils/index.d.ts +12 -0
  1439. package/node_modules/ts-algebra/lib/utils/index.js +1 -0
  1440. package/node_modules/ts-algebra/lib/utils/intersectUnion.d.ts +1 -0
  1441. package/node_modules/ts-algebra/lib/utils/intersectUnion.js +1 -0
  1442. package/node_modules/ts-algebra/lib/utils/isNever.d.ts +1 -0
  1443. package/node_modules/ts-algebra/lib/utils/isNever.js +1 -0
  1444. package/node_modules/ts-algebra/lib/utils/merge.d.ts +7 -0
  1445. package/node_modules/ts-algebra/lib/utils/merge.js +1 -0
  1446. package/node_modules/ts-algebra/lib/utils/not.d.ts +1 -0
  1447. package/node_modules/ts-algebra/lib/utils/not.js +1 -0
  1448. package/node_modules/ts-algebra/lib/utils/or.d.ts +1 -0
  1449. package/node_modules/ts-algebra/lib/utils/or.js +1 -0
  1450. package/node_modules/ts-algebra/lib/utils/prettify.d.ts +4 -0
  1451. package/node_modules/ts-algebra/lib/utils/prettify.js +1 -0
  1452. package/node_modules/ts-algebra/lib/utils/tail.d.ts +1 -0
  1453. package/node_modules/ts-algebra/lib/utils/tail.js +1 -0
  1454. package/node_modules/ts-algebra/lib/utils/unionLast.d.ts +2 -0
  1455. package/node_modules/ts-algebra/lib/utils/unionLast.js +1 -0
  1456. package/node_modules/ts-algebra/lib/utils/unionPop.d.ts +2 -0
  1457. package/node_modules/ts-algebra/lib/utils/unionPop.js +1 -0
  1458. package/node_modules/ts-algebra/package.json +59 -0
  1459. package/package.json +4 -1
@@ -0,0 +1,4242 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { AnthropicError } from '../../../error';
4
+ import { Anthropic } from '../../../client';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { APIResource } from '../../../core/resource';
7
+ import { Stream } from '../../../core/streaming';
8
+ import { MODEL_NONSTREAMING_TOKENS } from '../../../internal/constants';
9
+ import { buildHeaders } from '../../../internal/headers';
10
+ import { RequestOptions } from '../../../internal/request-options';
11
+ import { stainlessHelperHeader } from '../../../lib/stainless-helper-header';
12
+ import {
13
+ parseBetaMessage,
14
+ type ExtractParsedContentFromBetaParams,
15
+ type ParsedBetaMessage,
16
+ } from '../../../lib/beta-parser';
17
+ import { BetaMessageStream } from '../../../lib/BetaMessageStream';
18
+ import {
19
+ BetaToolRunner,
20
+ BetaToolRunnerParams,
21
+ BetaToolRunnerRequestOptions,
22
+ } from '../../../lib/tools/BetaToolRunner';
23
+ import { ToolError } from '../../../lib/tools/ToolError';
24
+ import type { Model } from '../../messages/messages';
25
+ import * as MessagesAPI from '../../messages/messages';
26
+ import * as BetaAPI from '../beta';
27
+ import * as BatchesAPI from './batches';
28
+ import {
29
+ BatchCancelParams,
30
+ BatchCreateParams,
31
+ BatchDeleteParams,
32
+ BatchListParams,
33
+ BatchResultsParams,
34
+ BatchRetrieveParams,
35
+ Batches,
36
+ BetaDeletedMessageBatch,
37
+ BetaMessageBatch,
38
+ BetaMessageBatchCanceledResult,
39
+ BetaMessageBatchErroredResult,
40
+ BetaMessageBatchExpiredResult,
41
+ BetaMessageBatchIndividualResponse,
42
+ BetaMessageBatchRequestCounts,
43
+ BetaMessageBatchResult,
44
+ BetaMessageBatchSucceededResult,
45
+ BetaMessageBatchesPage,
46
+ } from './batches';
47
+ import * as MessagesMessagesAPI from './messages';
48
+
49
+ const DEPRECATED_MODELS: {
50
+ [K in Model]?: string;
51
+ } = {
52
+ 'claude-1.3': 'November 6th, 2024',
53
+ 'claude-1.3-100k': 'November 6th, 2024',
54
+ 'claude-instant-1.1': 'November 6th, 2024',
55
+ 'claude-instant-1.1-100k': 'November 6th, 2024',
56
+ 'claude-instant-1.2': 'November 6th, 2024',
57
+ 'claude-3-sonnet-20240229': 'July 21st, 2025',
58
+ 'claude-3-opus-20240229': 'January 5th, 2026',
59
+ 'claude-2.1': 'July 21st, 2025',
60
+ 'claude-2.0': 'July 21st, 2025',
61
+ 'claude-3-7-sonnet-latest': 'February 19th, 2026',
62
+ 'claude-3-7-sonnet-20250219': 'February 19th, 2026',
63
+ };
64
+
65
+ const MODELS_TO_WARN_WITH_THINKING_ENABLED: Model[] = ['claude-opus-4-6'];
66
+
67
+ export class Messages extends APIResource {
68
+ batches: BatchesAPI.Batches = new BatchesAPI.Batches(this._client);
69
+
70
+ /**
71
+ * Send a structured list of input messages with text and/or image content, and the
72
+ * model will generate the next message in the conversation.
73
+ *
74
+ * The Messages API can be used for either single queries or stateless multi-turn
75
+ * conversations.
76
+ *
77
+ * Learn more about the Messages API in our
78
+ * [user guide](https://docs.claude.com/en/docs/initial-setup)
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * const betaMessage = await client.beta.messages.create({
83
+ * max_tokens: 1024,
84
+ * messages: [{ content: 'Hello, world', role: 'user' }],
85
+ * model: 'claude-opus-4-6',
86
+ * });
87
+ * ```
88
+ */
89
+ create(params: MessageCreateParamsNonStreaming, options?: RequestOptions): APIPromise<BetaMessage>;
90
+ create(
91
+ params: MessageCreateParamsStreaming,
92
+ options?: RequestOptions,
93
+ ): APIPromise<Stream<BetaRawMessageStreamEvent>>;
94
+ create(
95
+ params: MessageCreateParamsBase,
96
+ options?: RequestOptions,
97
+ ): APIPromise<Stream<BetaRawMessageStreamEvent> | BetaMessage>;
98
+ create(
99
+ params: MessageCreateParams,
100
+ options?: RequestOptions,
101
+ ): APIPromise<BetaMessage> | APIPromise<Stream<BetaRawMessageStreamEvent>> {
102
+ // Transform deprecated output_format to output_config.format
103
+ const modifiedParams = transformOutputFormat(params);
104
+
105
+ const { betas, ...body } = modifiedParams;
106
+
107
+ if (body.model in DEPRECATED_MODELS) {
108
+ console.warn(
109
+ `The model '${body.model}' is deprecated and will reach end-of-life on ${
110
+ DEPRECATED_MODELS[body.model]
111
+ }\nPlease migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`,
112
+ );
113
+ }
114
+
115
+ if (
116
+ body.model in MODELS_TO_WARN_WITH_THINKING_ENABLED &&
117
+ body.thinking &&
118
+ body.thinking.type === 'enabled'
119
+ ) {
120
+ console.warn(
121
+ `Using Claude with ${body.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`,
122
+ );
123
+ }
124
+
125
+ let timeout = (this._client as any)._options.timeout as number | null;
126
+ if (!body.stream && timeout == null) {
127
+ const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? undefined;
128
+ timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
129
+ }
130
+
131
+ // Collect helper info from tools and messages
132
+ const helperHeader = stainlessHelperHeader(body.tools, body.messages);
133
+
134
+ return this._client.post('/v1/messages?beta=true', {
135
+ body,
136
+ timeout: timeout ?? 600000,
137
+ ...options,
138
+ headers: buildHeaders([
139
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
140
+ helperHeader,
141
+ options?.headers,
142
+ ]),
143
+ stream: modifiedParams.stream ?? false,
144
+ }) as APIPromise<BetaMessage> | APIPromise<Stream<BetaRawMessageStreamEvent>>;
145
+ }
146
+
147
+ /**
148
+ * Send a structured list of input messages with text and/or image content, along with an expected `output_format` and
149
+ * the response will be automatically parsed and available in the `parsed_output` property of the message.
150
+ *
151
+ * @example
152
+ * ```ts
153
+ * const message = await client.beta.messages.parse({
154
+ * model: 'claude-3-5-sonnet-20241022',
155
+ * max_tokens: 1024,
156
+ * messages: [{ role: 'user', content: 'What is 2+2?' }],
157
+ * output_format: zodOutputFormat(z.object({ answer: z.number() }), 'math'),
158
+ * });
159
+ *
160
+ * console.log(message.parsed_output?.answer); // 4
161
+ * ```
162
+ */
163
+ parse<Params extends MessageCreateParamsNonStreaming>(
164
+ params: Params,
165
+ options?: RequestOptions,
166
+ ): APIPromise<ParsedBetaMessage<ExtractParsedContentFromBetaParams<Params>>> {
167
+ options = {
168
+ ...options,
169
+ headers: buildHeaders([
170
+ { 'anthropic-beta': [...(params.betas ?? []), 'structured-outputs-2025-12-15'].toString() },
171
+ options?.headers,
172
+ ]),
173
+ };
174
+
175
+ return this.create(params, options).then((message) =>
176
+ parseBetaMessage(message, params, { logger: this._client.logger ?? console }),
177
+ ) as APIPromise<ParsedBetaMessage<ExtractParsedContentFromBetaParams<Params>>>;
178
+ }
179
+
180
+ /**
181
+ * Create a Message stream
182
+ */
183
+ stream<Params extends BetaMessageStreamParams>(
184
+ body: Params,
185
+ options?: RequestOptions,
186
+ ): BetaMessageStream<ExtractParsedContentFromBetaParams<Params>> {
187
+ return BetaMessageStream.createMessage(this, body, options);
188
+ }
189
+
190
+ /**
191
+ * Count the number of tokens in a Message.
192
+ *
193
+ * The Token Count API can be used to count the number of tokens in a Message,
194
+ * including tools, images, and documents, without creating it.
195
+ *
196
+ * Learn more about token counting in our
197
+ * [user guide](https://docs.claude.com/en/docs/build-with-claude/token-counting)
198
+ *
199
+ * @example
200
+ * ```ts
201
+ * const betaMessageTokensCount =
202
+ * await client.beta.messages.countTokens({
203
+ * messages: [{ content: 'string', role: 'user' }],
204
+ * model: 'claude-opus-4-6',
205
+ * });
206
+ * ```
207
+ */
208
+ countTokens(
209
+ params: MessageCountTokensParams,
210
+ options?: RequestOptions,
211
+ ): APIPromise<BetaMessageTokensCount> {
212
+ // Transform deprecated output_format to output_config.format
213
+ const modifiedParams = transformOutputFormat(params);
214
+
215
+ const { betas, ...body } = modifiedParams;
216
+ return this._client.post('/v1/messages/count_tokens?beta=true', {
217
+ body,
218
+ ...options,
219
+ headers: buildHeaders([
220
+ { 'anthropic-beta': [...(betas ?? []), 'token-counting-2024-11-01'].toString() },
221
+ options?.headers,
222
+ ]),
223
+ });
224
+ }
225
+
226
+ toolRunner(
227
+ body: BetaToolRunnerParams & { stream?: false },
228
+ options?: BetaToolRunnerRequestOptions,
229
+ ): BetaToolRunner<false>;
230
+ toolRunner(
231
+ body: BetaToolRunnerParams & { stream: true },
232
+ options?: BetaToolRunnerRequestOptions,
233
+ ): BetaToolRunner<true>;
234
+ toolRunner(body: BetaToolRunnerParams, options?: BetaToolRunnerRequestOptions): BetaToolRunner<boolean>;
235
+ toolRunner(body: BetaToolRunnerParams, options?: BetaToolRunnerRequestOptions): BetaToolRunner<boolean> {
236
+ return new BetaToolRunner(this._client as Anthropic, body, options);
237
+ }
238
+ }
239
+
240
+ /**
241
+ * Transform deprecated output_format to output_config.format
242
+ * Returns a modified copy of the params without mutating the original
243
+ */
244
+ function transformOutputFormat<T extends MessageCreateParams | MessageCountTokensParams>(params: T): T {
245
+ if (!params.output_format) {
246
+ return params;
247
+ }
248
+
249
+ if (params.output_config?.format) {
250
+ throw new AnthropicError(
251
+ 'Both output_format and output_config.format were provided. ' +
252
+ 'Please use only output_config.format (output_format is deprecated).',
253
+ );
254
+ }
255
+
256
+ const { output_format, ...rest } = params;
257
+
258
+ return {
259
+ ...rest,
260
+ output_config: {
261
+ ...params.output_config,
262
+ format: output_format,
263
+ },
264
+ } as T;
265
+ }
266
+
267
+ export interface BetaAllThinkingTurns {
268
+ type: 'all';
269
+ }
270
+
271
+ export type BetaMessageStreamParams = MessageCreateParamsBase;
272
+
273
+ export interface BetaBase64ImageSource {
274
+ data: string;
275
+
276
+ media_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
277
+
278
+ type: 'base64';
279
+ }
280
+
281
+ export interface BetaBase64PDFSource {
282
+ data: string;
283
+
284
+ media_type: 'application/pdf';
285
+
286
+ type: 'base64';
287
+ }
288
+
289
+ export interface BetaBashCodeExecutionOutputBlock {
290
+ file_id: string;
291
+
292
+ type: 'bash_code_execution_output';
293
+ }
294
+
295
+ export interface BetaBashCodeExecutionOutputBlockParam {
296
+ file_id: string;
297
+
298
+ type: 'bash_code_execution_output';
299
+ }
300
+
301
+ export interface BetaBashCodeExecutionResultBlock {
302
+ content: Array<BetaBashCodeExecutionOutputBlock>;
303
+
304
+ return_code: number;
305
+
306
+ stderr: string;
307
+
308
+ stdout: string;
309
+
310
+ type: 'bash_code_execution_result';
311
+ }
312
+
313
+ export interface BetaBashCodeExecutionResultBlockParam {
314
+ content: Array<BetaBashCodeExecutionOutputBlockParam>;
315
+
316
+ return_code: number;
317
+
318
+ stderr: string;
319
+
320
+ stdout: string;
321
+
322
+ type: 'bash_code_execution_result';
323
+ }
324
+
325
+ export interface BetaBashCodeExecutionToolResultBlock {
326
+ content: BetaBashCodeExecutionToolResultError | BetaBashCodeExecutionResultBlock;
327
+
328
+ tool_use_id: string;
329
+
330
+ type: 'bash_code_execution_tool_result';
331
+ }
332
+
333
+ export interface BetaBashCodeExecutionToolResultBlockParam {
334
+ content: BetaBashCodeExecutionToolResultErrorParam | BetaBashCodeExecutionResultBlockParam;
335
+
336
+ tool_use_id: string;
337
+
338
+ type: 'bash_code_execution_tool_result';
339
+
340
+ /**
341
+ * Create a cache control breakpoint at this content block.
342
+ */
343
+ cache_control?: BetaCacheControlEphemeral | null;
344
+ }
345
+
346
+ export interface BetaBashCodeExecutionToolResultError {
347
+ error_code:
348
+ | 'invalid_tool_input'
349
+ | 'unavailable'
350
+ | 'too_many_requests'
351
+ | 'execution_time_exceeded'
352
+ | 'output_file_too_large';
353
+
354
+ type: 'bash_code_execution_tool_result_error';
355
+ }
356
+
357
+ export interface BetaBashCodeExecutionToolResultErrorParam {
358
+ error_code:
359
+ | 'invalid_tool_input'
360
+ | 'unavailable'
361
+ | 'too_many_requests'
362
+ | 'execution_time_exceeded'
363
+ | 'output_file_too_large';
364
+
365
+ type: 'bash_code_execution_tool_result_error';
366
+ }
367
+
368
+ export interface BetaCacheControlEphemeral {
369
+ type: 'ephemeral';
370
+
371
+ /**
372
+ * The time-to-live for the cache control breakpoint.
373
+ *
374
+ * This may be one the following values:
375
+ *
376
+ * - `5m`: 5 minutes
377
+ * - `1h`: 1 hour
378
+ *
379
+ * Defaults to `5m`.
380
+ */
381
+ ttl?: '5m' | '1h';
382
+ }
383
+
384
+ export interface BetaCacheCreation {
385
+ /**
386
+ * The number of input tokens used to create the 1 hour cache entry.
387
+ */
388
+ ephemeral_1h_input_tokens: number;
389
+
390
+ /**
391
+ * The number of input tokens used to create the 5 minute cache entry.
392
+ */
393
+ ephemeral_5m_input_tokens: number;
394
+ }
395
+
396
+ export interface BetaCitationCharLocation {
397
+ cited_text: string;
398
+
399
+ document_index: number;
400
+
401
+ document_title: string | null;
402
+
403
+ end_char_index: number;
404
+
405
+ file_id: string | null;
406
+
407
+ start_char_index: number;
408
+
409
+ type: 'char_location';
410
+ }
411
+
412
+ export interface BetaCitationCharLocationParam {
413
+ cited_text: string;
414
+
415
+ document_index: number;
416
+
417
+ document_title: string | null;
418
+
419
+ end_char_index: number;
420
+
421
+ start_char_index: number;
422
+
423
+ type: 'char_location';
424
+ }
425
+
426
+ export interface BetaCitationConfig {
427
+ enabled: boolean;
428
+ }
429
+
430
+ export interface BetaCitationContentBlockLocation {
431
+ cited_text: string;
432
+
433
+ document_index: number;
434
+
435
+ document_title: string | null;
436
+
437
+ end_block_index: number;
438
+
439
+ file_id: string | null;
440
+
441
+ start_block_index: number;
442
+
443
+ type: 'content_block_location';
444
+ }
445
+
446
+ export interface BetaCitationContentBlockLocationParam {
447
+ cited_text: string;
448
+
449
+ document_index: number;
450
+
451
+ document_title: string | null;
452
+
453
+ end_block_index: number;
454
+
455
+ start_block_index: number;
456
+
457
+ type: 'content_block_location';
458
+ }
459
+
460
+ export interface BetaCitationPageLocation {
461
+ cited_text: string;
462
+
463
+ document_index: number;
464
+
465
+ document_title: string | null;
466
+
467
+ end_page_number: number;
468
+
469
+ file_id: string | null;
470
+
471
+ start_page_number: number;
472
+
473
+ type: 'page_location';
474
+ }
475
+
476
+ export interface BetaCitationPageLocationParam {
477
+ cited_text: string;
478
+
479
+ document_index: number;
480
+
481
+ document_title: string | null;
482
+
483
+ end_page_number: number;
484
+
485
+ start_page_number: number;
486
+
487
+ type: 'page_location';
488
+ }
489
+
490
+ export interface BetaCitationSearchResultLocation {
491
+ cited_text: string;
492
+
493
+ end_block_index: number;
494
+
495
+ search_result_index: number;
496
+
497
+ source: string;
498
+
499
+ start_block_index: number;
500
+
501
+ title: string | null;
502
+
503
+ type: 'search_result_location';
504
+ }
505
+
506
+ export interface BetaCitationSearchResultLocationParam {
507
+ cited_text: string;
508
+
509
+ end_block_index: number;
510
+
511
+ search_result_index: number;
512
+
513
+ source: string;
514
+
515
+ start_block_index: number;
516
+
517
+ title: string | null;
518
+
519
+ type: 'search_result_location';
520
+ }
521
+
522
+ export interface BetaCitationWebSearchResultLocationParam {
523
+ cited_text: string;
524
+
525
+ encrypted_index: string;
526
+
527
+ title: string | null;
528
+
529
+ type: 'web_search_result_location';
530
+
531
+ url: string;
532
+ }
533
+
534
+ export interface BetaCitationsConfigParam {
535
+ enabled?: boolean;
536
+ }
537
+
538
+ export interface BetaCitationsDelta {
539
+ citation:
540
+ | BetaCitationCharLocation
541
+ | BetaCitationPageLocation
542
+ | BetaCitationContentBlockLocation
543
+ | BetaCitationsWebSearchResultLocation
544
+ | BetaCitationSearchResultLocation;
545
+
546
+ type: 'citations_delta';
547
+ }
548
+
549
+ export interface BetaCitationsWebSearchResultLocation {
550
+ cited_text: string;
551
+
552
+ encrypted_index: string;
553
+
554
+ title: string | null;
555
+
556
+ type: 'web_search_result_location';
557
+
558
+ url: string;
559
+ }
560
+
561
+ export interface BetaClearThinking20251015Edit {
562
+ type: 'clear_thinking_20251015';
563
+
564
+ /**
565
+ * Number of most recent assistant turns to keep thinking blocks for. Older turns
566
+ * will have their thinking blocks removed.
567
+ */
568
+ keep?: BetaThinkingTurns | BetaAllThinkingTurns | 'all';
569
+ }
570
+
571
+ export interface BetaClearThinking20251015EditResponse {
572
+ /**
573
+ * Number of input tokens cleared by this edit.
574
+ */
575
+ cleared_input_tokens: number;
576
+
577
+ /**
578
+ * Number of thinking turns that were cleared.
579
+ */
580
+ cleared_thinking_turns: number;
581
+
582
+ /**
583
+ * The type of context management edit applied.
584
+ */
585
+ type: 'clear_thinking_20251015';
586
+ }
587
+
588
+ export interface BetaClearToolUses20250919Edit {
589
+ type: 'clear_tool_uses_20250919';
590
+
591
+ /**
592
+ * Minimum number of tokens that must be cleared when triggered. Context will only
593
+ * be modified if at least this many tokens can be removed.
594
+ */
595
+ clear_at_least?: BetaInputTokensClearAtLeast | null;
596
+
597
+ /**
598
+ * Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
599
+ */
600
+ clear_tool_inputs?: boolean | Array<string> | null;
601
+
602
+ /**
603
+ * Tool names whose uses are preserved from clearing
604
+ */
605
+ exclude_tools?: Array<string> | null;
606
+
607
+ /**
608
+ * Number of tool uses to retain in the conversation
609
+ */
610
+ keep?: BetaToolUsesKeep;
611
+
612
+ /**
613
+ * Condition that triggers the context management strategy
614
+ */
615
+ trigger?: BetaInputTokensTrigger | BetaToolUsesTrigger;
616
+ }
617
+
618
+ export interface BetaClearToolUses20250919EditResponse {
619
+ /**
620
+ * Number of input tokens cleared by this edit.
621
+ */
622
+ cleared_input_tokens: number;
623
+
624
+ /**
625
+ * Number of tool uses that were cleared.
626
+ */
627
+ cleared_tool_uses: number;
628
+
629
+ /**
630
+ * The type of context management edit applied.
631
+ */
632
+ type: 'clear_tool_uses_20250919';
633
+ }
634
+
635
+ export interface BetaCodeExecutionOutputBlock {
636
+ file_id: string;
637
+
638
+ type: 'code_execution_output';
639
+ }
640
+
641
+ export interface BetaCodeExecutionOutputBlockParam {
642
+ file_id: string;
643
+
644
+ type: 'code_execution_output';
645
+ }
646
+
647
+ export interface BetaCodeExecutionResultBlock {
648
+ content: Array<BetaCodeExecutionOutputBlock>;
649
+
650
+ return_code: number;
651
+
652
+ stderr: string;
653
+
654
+ stdout: string;
655
+
656
+ type: 'code_execution_result';
657
+ }
658
+
659
+ export interface BetaCodeExecutionResultBlockParam {
660
+ content: Array<BetaCodeExecutionOutputBlockParam>;
661
+
662
+ return_code: number;
663
+
664
+ stderr: string;
665
+
666
+ stdout: string;
667
+
668
+ type: 'code_execution_result';
669
+ }
670
+
671
+ export interface BetaCodeExecutionTool20250522 {
672
+ /**
673
+ * Name of the tool.
674
+ *
675
+ * This is how the tool will be called by the model and in `tool_use` blocks.
676
+ */
677
+ name: 'code_execution';
678
+
679
+ type: 'code_execution_20250522';
680
+
681
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
682
+
683
+ /**
684
+ * Create a cache control breakpoint at this content block.
685
+ */
686
+ cache_control?: BetaCacheControlEphemeral | null;
687
+
688
+ /**
689
+ * If true, tool will not be included in initial system prompt. Only loaded when
690
+ * returned via tool_reference from tool search.
691
+ */
692
+ defer_loading?: boolean;
693
+
694
+ /**
695
+ * When true, guarantees schema validation on tool names and inputs
696
+ */
697
+ strict?: boolean;
698
+ }
699
+
700
+ export interface BetaCodeExecutionTool20250825 {
701
+ /**
702
+ * Name of the tool.
703
+ *
704
+ * This is how the tool will be called by the model and in `tool_use` blocks.
705
+ */
706
+ name: 'code_execution';
707
+
708
+ type: 'code_execution_20250825';
709
+
710
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
711
+
712
+ /**
713
+ * Create a cache control breakpoint at this content block.
714
+ */
715
+ cache_control?: BetaCacheControlEphemeral | null;
716
+
717
+ /**
718
+ * If true, tool will not be included in initial system prompt. Only loaded when
719
+ * returned via tool_reference from tool search.
720
+ */
721
+ defer_loading?: boolean;
722
+
723
+ /**
724
+ * When true, guarantees schema validation on tool names and inputs
725
+ */
726
+ strict?: boolean;
727
+ }
728
+
729
+ /**
730
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
731
+ * checkpoint).
732
+ */
733
+ export interface BetaCodeExecutionTool20260120 {
734
+ /**
735
+ * Name of the tool.
736
+ *
737
+ * This is how the tool will be called by the model and in `tool_use` blocks.
738
+ */
739
+ name: 'code_execution';
740
+
741
+ type: 'code_execution_20260120';
742
+
743
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
744
+
745
+ /**
746
+ * Create a cache control breakpoint at this content block.
747
+ */
748
+ cache_control?: BetaCacheControlEphemeral | null;
749
+
750
+ /**
751
+ * If true, tool will not be included in initial system prompt. Only loaded when
752
+ * returned via tool_reference from tool search.
753
+ */
754
+ defer_loading?: boolean;
755
+
756
+ /**
757
+ * When true, guarantees schema validation on tool names and inputs
758
+ */
759
+ strict?: boolean;
760
+ }
761
+
762
+ export interface BetaCodeExecutionToolResultBlock {
763
+ /**
764
+ * Code execution result with encrypted stdout for PFC + web_search results.
765
+ */
766
+ content: BetaCodeExecutionToolResultBlockContent;
767
+
768
+ tool_use_id: string;
769
+
770
+ type: 'code_execution_tool_result';
771
+ }
772
+
773
+ /**
774
+ * Code execution result with encrypted stdout for PFC + web_search results.
775
+ */
776
+ export type BetaCodeExecutionToolResultBlockContent =
777
+ | BetaCodeExecutionToolResultError
778
+ | BetaCodeExecutionResultBlock
779
+ | BetaEncryptedCodeExecutionResultBlock;
780
+
781
+ export interface BetaCodeExecutionToolResultBlockParam {
782
+ /**
783
+ * Code execution result with encrypted stdout for PFC + web_search results.
784
+ */
785
+ content: BetaCodeExecutionToolResultBlockParamContent;
786
+
787
+ tool_use_id: string;
788
+
789
+ type: 'code_execution_tool_result';
790
+
791
+ /**
792
+ * Create a cache control breakpoint at this content block.
793
+ */
794
+ cache_control?: BetaCacheControlEphemeral | null;
795
+ }
796
+
797
+ /**
798
+ * Code execution result with encrypted stdout for PFC + web_search results.
799
+ */
800
+ export type BetaCodeExecutionToolResultBlockParamContent =
801
+ | BetaCodeExecutionToolResultErrorParam
802
+ | BetaCodeExecutionResultBlockParam
803
+ | BetaEncryptedCodeExecutionResultBlockParam;
804
+
805
+ export interface BetaCodeExecutionToolResultError {
806
+ error_code: BetaCodeExecutionToolResultErrorCode;
807
+
808
+ type: 'code_execution_tool_result_error';
809
+ }
810
+
811
+ export type BetaCodeExecutionToolResultErrorCode =
812
+ | 'invalid_tool_input'
813
+ | 'unavailable'
814
+ | 'too_many_requests'
815
+ | 'execution_time_exceeded';
816
+
817
+ export interface BetaCodeExecutionToolResultErrorParam {
818
+ error_code: BetaCodeExecutionToolResultErrorCode;
819
+
820
+ type: 'code_execution_tool_result_error';
821
+ }
822
+
823
+ /**
824
+ * Automatically compact older context when reaching the configured trigger
825
+ * threshold.
826
+ */
827
+ export interface BetaCompact20260112Edit {
828
+ type: 'compact_20260112';
829
+
830
+ /**
831
+ * Additional instructions for summarization.
832
+ */
833
+ instructions?: string | null;
834
+
835
+ /**
836
+ * Whether to pause after compaction and return the compaction block to the user.
837
+ */
838
+ pause_after_compaction?: boolean;
839
+
840
+ /**
841
+ * When to trigger compaction. Defaults to 150000 input tokens.
842
+ */
843
+ trigger?: BetaInputTokensTrigger | null;
844
+ }
845
+
846
+ /**
847
+ * A compaction block returned when autocompact is triggered.
848
+ *
849
+ * When content is None, it indicates the compaction failed to produce a valid
850
+ * summary (e.g., malformed output from the model). Clients may round-trip
851
+ * compaction blocks with null content; the server treats them as no-ops.
852
+ */
853
+ export interface BetaCompactionBlock {
854
+ /**
855
+ * Summary of compacted content, or null if compaction failed
856
+ */
857
+ content: string | null;
858
+
859
+ type: 'compaction';
860
+ }
861
+
862
+ /**
863
+ * A compaction block containing summary of previous context.
864
+ *
865
+ * Users should round-trip these blocks from responses to subsequent requests to
866
+ * maintain context across compaction boundaries.
867
+ *
868
+ * When content is None, the block represents a failed compaction. The server
869
+ * treats these as no-ops. Empty string content is not allowed.
870
+ */
871
+ export interface BetaCompactionBlockParam {
872
+ /**
873
+ * Summary of previously compacted content, or null if compaction failed
874
+ */
875
+ content: string | null;
876
+
877
+ type: 'compaction';
878
+
879
+ /**
880
+ * Create a cache control breakpoint at this content block.
881
+ */
882
+ cache_control?: BetaCacheControlEphemeral | null;
883
+ }
884
+
885
+ export interface BetaCompactionContentBlockDelta {
886
+ content: string | null;
887
+
888
+ type: 'compaction_delta';
889
+ }
890
+
891
+ /**
892
+ * Token usage for a compaction iteration.
893
+ */
894
+ export interface BetaCompactionIterationUsage {
895
+ /**
896
+ * Breakdown of cached tokens by TTL
897
+ */
898
+ cache_creation: BetaCacheCreation | null;
899
+
900
+ /**
901
+ * The number of input tokens used to create the cache entry.
902
+ */
903
+ cache_creation_input_tokens: number;
904
+
905
+ /**
906
+ * The number of input tokens read from the cache.
907
+ */
908
+ cache_read_input_tokens: number;
909
+
910
+ /**
911
+ * The number of input tokens which were used.
912
+ */
913
+ input_tokens: number;
914
+
915
+ /**
916
+ * The number of output tokens which were used.
917
+ */
918
+ output_tokens: number;
919
+
920
+ /**
921
+ * Usage for a compaction iteration
922
+ */
923
+ type: 'compaction';
924
+ }
925
+
926
+ /**
927
+ * Information about the container used in the request (for the code execution
928
+ * tool)
929
+ */
930
+ export interface BetaContainer {
931
+ /**
932
+ * Identifier for the container used in this request
933
+ */
934
+ id: string;
935
+
936
+ /**
937
+ * The time at which the container will expire.
938
+ */
939
+ expires_at: string;
940
+
941
+ /**
942
+ * Skills loaded in the container
943
+ */
944
+ skills: Array<BetaSkill> | null;
945
+ }
946
+
947
+ /**
948
+ * Container parameters with skills to be loaded.
949
+ */
950
+ export interface BetaContainerParams {
951
+ /**
952
+ * Container id
953
+ */
954
+ id?: string | null;
955
+
956
+ /**
957
+ * List of skills to load in the container
958
+ */
959
+ skills?: Array<BetaSkillParams> | null;
960
+ }
961
+
962
+ /**
963
+ * Response model for a file uploaded to the container.
964
+ */
965
+ export interface BetaContainerUploadBlock {
966
+ file_id: string;
967
+
968
+ type: 'container_upload';
969
+ }
970
+
971
+ /**
972
+ * A content block that represents a file to be uploaded to the container Files
973
+ * uploaded via this block will be available in the container's input directory.
974
+ */
975
+ export interface BetaContainerUploadBlockParam {
976
+ file_id: string;
977
+
978
+ type: 'container_upload';
979
+
980
+ /**
981
+ * Create a cache control breakpoint at this content block.
982
+ */
983
+ cache_control?: BetaCacheControlEphemeral | null;
984
+ }
985
+
986
+ /**
987
+ * Response model for a file uploaded to the container.
988
+ */
989
+ export type BetaContentBlock =
990
+ | BetaTextBlock
991
+ | BetaThinkingBlock
992
+ | BetaRedactedThinkingBlock
993
+ | BetaToolUseBlock
994
+ | BetaServerToolUseBlock
995
+ | BetaWebSearchToolResultBlock
996
+ | BetaWebFetchToolResultBlock
997
+ | BetaCodeExecutionToolResultBlock
998
+ | BetaBashCodeExecutionToolResultBlock
999
+ | BetaTextEditorCodeExecutionToolResultBlock
1000
+ | BetaToolSearchToolResultBlock
1001
+ | BetaMCPToolUseBlock
1002
+ | BetaMCPToolResultBlock
1003
+ | BetaContainerUploadBlock
1004
+ | BetaCompactionBlock;
1005
+
1006
+ /**
1007
+ * Regular text content.
1008
+ */
1009
+ export type BetaContentBlockParam =
1010
+ | BetaTextBlockParam
1011
+ | BetaImageBlockParam
1012
+ | BetaRequestDocumentBlock
1013
+ | BetaSearchResultBlockParam
1014
+ | BetaThinkingBlockParam
1015
+ | BetaRedactedThinkingBlockParam
1016
+ | BetaToolUseBlockParam
1017
+ | BetaToolResultBlockParam
1018
+ | BetaServerToolUseBlockParam
1019
+ | BetaWebSearchToolResultBlockParam
1020
+ | BetaWebFetchToolResultBlockParam
1021
+ | BetaCodeExecutionToolResultBlockParam
1022
+ | BetaBashCodeExecutionToolResultBlockParam
1023
+ | BetaTextEditorCodeExecutionToolResultBlockParam
1024
+ | BetaToolSearchToolResultBlockParam
1025
+ | BetaMCPToolUseBlockParam
1026
+ | BetaRequestMCPToolResultBlockParam
1027
+ | BetaContainerUploadBlockParam
1028
+ | BetaCompactionBlockParam;
1029
+
1030
+ export interface BetaContentBlockSource {
1031
+ content: string | Array<BetaContentBlockSourceContent>;
1032
+
1033
+ type: 'content';
1034
+ }
1035
+
1036
+ export type BetaContentBlockSourceContent = BetaTextBlockParam | BetaImageBlockParam;
1037
+
1038
+ export interface BetaContextManagementConfig {
1039
+ /**
1040
+ * List of context management edits to apply
1041
+ */
1042
+ edits?: Array<BetaClearToolUses20250919Edit | BetaClearThinking20251015Edit | BetaCompact20260112Edit>;
1043
+ }
1044
+
1045
+ export interface BetaContextManagementResponse {
1046
+ /**
1047
+ * List of context management edits that were applied.
1048
+ */
1049
+ applied_edits: Array<BetaClearToolUses20250919EditResponse | BetaClearThinking20251015EditResponse>;
1050
+ }
1051
+
1052
+ export interface BetaCountTokensContextManagementResponse {
1053
+ /**
1054
+ * The original token count before context management was applied
1055
+ */
1056
+ original_input_tokens: number;
1057
+ }
1058
+
1059
+ /**
1060
+ * Tool invocation directly from the model.
1061
+ */
1062
+ export interface BetaDirectCaller {
1063
+ type: 'direct';
1064
+ }
1065
+
1066
+ export interface BetaDocumentBlock {
1067
+ /**
1068
+ * Citation configuration for the document
1069
+ */
1070
+ citations: BetaCitationConfig | null;
1071
+
1072
+ source: BetaBase64PDFSource | BetaPlainTextSource;
1073
+
1074
+ /**
1075
+ * The title of the document
1076
+ */
1077
+ title: string | null;
1078
+
1079
+ type: 'document';
1080
+ }
1081
+
1082
+ /**
1083
+ * Code execution result with encrypted stdout for PFC + web_search results.
1084
+ */
1085
+ export interface BetaEncryptedCodeExecutionResultBlock {
1086
+ content: Array<BetaCodeExecutionOutputBlock>;
1087
+
1088
+ encrypted_stdout: string;
1089
+
1090
+ return_code: number;
1091
+
1092
+ stderr: string;
1093
+
1094
+ type: 'encrypted_code_execution_result';
1095
+ }
1096
+
1097
+ /**
1098
+ * Code execution result with encrypted stdout for PFC + web_search results.
1099
+ */
1100
+ export interface BetaEncryptedCodeExecutionResultBlockParam {
1101
+ content: Array<BetaCodeExecutionOutputBlockParam>;
1102
+
1103
+ encrypted_stdout: string;
1104
+
1105
+ return_code: number;
1106
+
1107
+ stderr: string;
1108
+
1109
+ type: 'encrypted_code_execution_result';
1110
+ }
1111
+
1112
+ export interface BetaFileDocumentSource {
1113
+ file_id: string;
1114
+
1115
+ type: 'file';
1116
+ }
1117
+
1118
+ export interface BetaFileImageSource {
1119
+ file_id: string;
1120
+
1121
+ type: 'file';
1122
+ }
1123
+
1124
+ export interface BetaImageBlockParam {
1125
+ source: BetaBase64ImageSource | BetaURLImageSource | BetaFileImageSource;
1126
+
1127
+ type: 'image';
1128
+
1129
+ /**
1130
+ * Create a cache control breakpoint at this content block.
1131
+ */
1132
+ cache_control?: BetaCacheControlEphemeral | null;
1133
+ }
1134
+
1135
+ export interface BetaInputJSONDelta {
1136
+ partial_json: string;
1137
+
1138
+ type: 'input_json_delta';
1139
+ }
1140
+
1141
+ export interface BetaInputTokensClearAtLeast {
1142
+ type: 'input_tokens';
1143
+
1144
+ value: number;
1145
+ }
1146
+
1147
+ export interface BetaInputTokensTrigger {
1148
+ type: 'input_tokens';
1149
+
1150
+ value: number;
1151
+ }
1152
+
1153
+ /**
1154
+ * Per-iteration token usage breakdown.
1155
+ *
1156
+ * Each entry represents one sampling iteration, with its own input/output token
1157
+ * counts and cache statistics. This allows you to:
1158
+ *
1159
+ * - Determine which iterations exceeded long context thresholds (>=200k tokens)
1160
+ * - Calculate the true context window size from the last iteration
1161
+ * - Understand token accumulation across server-side tool use loops
1162
+ */
1163
+ export type BetaIterationsUsage = Array<BetaMessageIterationUsage | BetaCompactionIterationUsage>;
1164
+
1165
+ export interface BetaJSONOutputFormat {
1166
+ /**
1167
+ * The JSON schema of the format
1168
+ */
1169
+ schema: { [key: string]: unknown };
1170
+
1171
+ type: 'json_schema';
1172
+ }
1173
+
1174
+ /**
1175
+ * Configuration for a specific tool in an MCP toolset.
1176
+ */
1177
+ export interface BetaMCPToolConfig {
1178
+ defer_loading?: boolean;
1179
+
1180
+ enabled?: boolean;
1181
+ }
1182
+
1183
+ /**
1184
+ * Default configuration for tools in an MCP toolset.
1185
+ */
1186
+ export interface BetaMCPToolDefaultConfig {
1187
+ defer_loading?: boolean;
1188
+
1189
+ enabled?: boolean;
1190
+ }
1191
+
1192
+ export interface BetaMCPToolResultBlock {
1193
+ content: string | Array<BetaTextBlock>;
1194
+
1195
+ is_error: boolean;
1196
+
1197
+ tool_use_id: string;
1198
+
1199
+ type: 'mcp_tool_result';
1200
+ }
1201
+
1202
+ export interface BetaMCPToolUseBlock {
1203
+ id: string;
1204
+
1205
+ input: unknown;
1206
+
1207
+ /**
1208
+ * The name of the MCP tool
1209
+ */
1210
+ name: string;
1211
+
1212
+ /**
1213
+ * The name of the MCP server
1214
+ */
1215
+ server_name: string;
1216
+
1217
+ type: 'mcp_tool_use';
1218
+ }
1219
+
1220
+ export interface BetaMCPToolUseBlockParam {
1221
+ id: string;
1222
+
1223
+ input: unknown;
1224
+
1225
+ name: string;
1226
+
1227
+ /**
1228
+ * The name of the MCP server
1229
+ */
1230
+ server_name: string;
1231
+
1232
+ type: 'mcp_tool_use';
1233
+
1234
+ /**
1235
+ * Create a cache control breakpoint at this content block.
1236
+ */
1237
+ cache_control?: BetaCacheControlEphemeral | null;
1238
+ }
1239
+
1240
+ /**
1241
+ * Configuration for a group of tools from an MCP server.
1242
+ *
1243
+ * Allows configuring enabled status and defer_loading for all tools from an MCP
1244
+ * server, with optional per-tool overrides.
1245
+ */
1246
+ export interface BetaMCPToolset {
1247
+ /**
1248
+ * Name of the MCP server to configure tools for
1249
+ */
1250
+ mcp_server_name: string;
1251
+
1252
+ type: 'mcp_toolset';
1253
+
1254
+ /**
1255
+ * Create a cache control breakpoint at this content block.
1256
+ */
1257
+ cache_control?: BetaCacheControlEphemeral | null;
1258
+
1259
+ /**
1260
+ * Configuration overrides for specific tools, keyed by tool name
1261
+ */
1262
+ configs?: { [key: string]: BetaMCPToolConfig } | null;
1263
+
1264
+ /**
1265
+ * Default configuration applied to all tools from this server
1266
+ */
1267
+ default_config?: BetaMCPToolDefaultConfig;
1268
+ }
1269
+
1270
+ export interface BetaMemoryTool20250818 {
1271
+ /**
1272
+ * Name of the tool.
1273
+ *
1274
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1275
+ */
1276
+ name: 'memory';
1277
+
1278
+ type: 'memory_20250818';
1279
+
1280
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1281
+
1282
+ /**
1283
+ * Create a cache control breakpoint at this content block.
1284
+ */
1285
+ cache_control?: BetaCacheControlEphemeral | null;
1286
+
1287
+ /**
1288
+ * If true, tool will not be included in initial system prompt. Only loaded when
1289
+ * returned via tool_reference from tool search.
1290
+ */
1291
+ defer_loading?: boolean;
1292
+
1293
+ input_examples?: Array<{ [key: string]: unknown }>;
1294
+
1295
+ /**
1296
+ * When true, guarantees schema validation on tool names and inputs
1297
+ */
1298
+ strict?: boolean;
1299
+ }
1300
+
1301
+ export type BetaMemoryTool20250818Command =
1302
+ | BetaMemoryTool20250818ViewCommand
1303
+ | BetaMemoryTool20250818CreateCommand
1304
+ | BetaMemoryTool20250818StrReplaceCommand
1305
+ | BetaMemoryTool20250818InsertCommand
1306
+ | BetaMemoryTool20250818DeleteCommand
1307
+ | BetaMemoryTool20250818RenameCommand;
1308
+
1309
+ export interface BetaMemoryTool20250818CreateCommand {
1310
+ /**
1311
+ * Command type identifier
1312
+ */
1313
+ command: 'create';
1314
+
1315
+ /**
1316
+ * Content to write to the file
1317
+ */
1318
+ file_text: string;
1319
+
1320
+ /**
1321
+ * Path where the file should be created
1322
+ */
1323
+ path: string;
1324
+ }
1325
+
1326
+ export interface BetaMemoryTool20250818DeleteCommand {
1327
+ /**
1328
+ * Command type identifier
1329
+ */
1330
+ command: 'delete';
1331
+
1332
+ /**
1333
+ * Path to the file or directory to delete
1334
+ */
1335
+ path: string;
1336
+ }
1337
+
1338
+ export interface BetaMemoryTool20250818InsertCommand {
1339
+ /**
1340
+ * Command type identifier
1341
+ */
1342
+ command: 'insert';
1343
+
1344
+ /**
1345
+ * Line number where text should be inserted
1346
+ */
1347
+ insert_line: number;
1348
+
1349
+ /**
1350
+ * Text to insert at the specified line
1351
+ */
1352
+ insert_text: string;
1353
+
1354
+ /**
1355
+ * Path to the file where text should be inserted
1356
+ */
1357
+ path: string;
1358
+ }
1359
+
1360
+ export interface BetaMemoryTool20250818RenameCommand {
1361
+ /**
1362
+ * Command type identifier
1363
+ */
1364
+ command: 'rename';
1365
+
1366
+ /**
1367
+ * New path for the file or directory
1368
+ */
1369
+ new_path: string;
1370
+
1371
+ /**
1372
+ * Current path of the file or directory
1373
+ */
1374
+ old_path: string;
1375
+ }
1376
+
1377
+ export interface BetaMemoryTool20250818StrReplaceCommand {
1378
+ /**
1379
+ * Command type identifier
1380
+ */
1381
+ command: 'str_replace';
1382
+
1383
+ /**
1384
+ * Text to replace with
1385
+ */
1386
+ new_str: string;
1387
+
1388
+ /**
1389
+ * Text to search for and replace
1390
+ */
1391
+ old_str: string;
1392
+
1393
+ /**
1394
+ * Path to the file where text should be replaced
1395
+ */
1396
+ path: string;
1397
+ }
1398
+
1399
+ export interface BetaMemoryTool20250818ViewCommand {
1400
+ /**
1401
+ * Command type identifier
1402
+ */
1403
+ command: 'view';
1404
+
1405
+ /**
1406
+ * Path to directory or file to view
1407
+ */
1408
+ path: string;
1409
+
1410
+ /**
1411
+ * Optional line range for viewing specific lines
1412
+ */
1413
+ view_range?: Array<number>;
1414
+ }
1415
+
1416
+ export interface BetaMessage {
1417
+ /**
1418
+ * Unique object identifier.
1419
+ *
1420
+ * The format and length of IDs may change over time.
1421
+ */
1422
+ id: string;
1423
+
1424
+ /**
1425
+ * Information about the container used in the request (for the code execution
1426
+ * tool)
1427
+ */
1428
+ container: BetaContainer | null;
1429
+
1430
+ /**
1431
+ * Content generated by the model.
1432
+ *
1433
+ * This is an array of content blocks, each of which has a `type` that determines
1434
+ * its shape.
1435
+ *
1436
+ * Example:
1437
+ *
1438
+ * ```json
1439
+ * [{ "type": "text", "text": "Hi, I'm Claude." }]
1440
+ * ```
1441
+ *
1442
+ * If the request input `messages` ended with an `assistant` turn, then the
1443
+ * response `content` will continue directly from that last turn. You can use this
1444
+ * to constrain the model's output.
1445
+ *
1446
+ * For example, if the input `messages` were:
1447
+ *
1448
+ * ```json
1449
+ * [
1450
+ * {
1451
+ * "role": "user",
1452
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
1453
+ * },
1454
+ * { "role": "assistant", "content": "The best answer is (" }
1455
+ * ]
1456
+ * ```
1457
+ *
1458
+ * Then the response `content` might be:
1459
+ *
1460
+ * ```json
1461
+ * [{ "type": "text", "text": "B)" }]
1462
+ * ```
1463
+ */
1464
+ content: Array<BetaContentBlock>;
1465
+
1466
+ /**
1467
+ * Context management response.
1468
+ *
1469
+ * Information about context management strategies applied during the request.
1470
+ */
1471
+ context_management: BetaContextManagementResponse | null;
1472
+
1473
+ /**
1474
+ * The model that will complete your prompt.\n\nSee
1475
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1476
+ * details and options.
1477
+ */
1478
+ model: MessagesAPI.Model;
1479
+
1480
+ /**
1481
+ * Conversational role of the generated message.
1482
+ *
1483
+ * This will always be `"assistant"`.
1484
+ */
1485
+ role: 'assistant';
1486
+
1487
+ /**
1488
+ * The reason that we stopped.
1489
+ *
1490
+ * This may be one the following values:
1491
+ *
1492
+ * - `"end_turn"`: the model reached a natural stopping point
1493
+ * - `"max_tokens"`: we exceeded the requested `max_tokens` or the model's maximum
1494
+ * - `"stop_sequence"`: one of your provided custom `stop_sequences` was generated
1495
+ * - `"tool_use"`: the model invoked one or more tools
1496
+ * - `"pause_turn"`: we paused a long-running turn. You may provide the response
1497
+ * back as-is in a subsequent request to let the model continue.
1498
+ * - `"refusal"`: when streaming classifiers intervene to handle potential policy
1499
+ * violations
1500
+ *
1501
+ * In non-streaming mode this value is always non-null. In streaming mode, it is
1502
+ * null in the `message_start` event and non-null otherwise.
1503
+ */
1504
+ stop_reason: BetaStopReason | null;
1505
+
1506
+ /**
1507
+ * Which custom stop sequence was generated, if any.
1508
+ *
1509
+ * This value will be a non-null string if one of your custom stop sequences was
1510
+ * generated.
1511
+ */
1512
+ stop_sequence: string | null;
1513
+
1514
+ /**
1515
+ * Object type.
1516
+ *
1517
+ * For Messages, this is always `"message"`.
1518
+ */
1519
+ type: 'message';
1520
+
1521
+ /**
1522
+ * Billing and rate-limit usage.
1523
+ *
1524
+ * Anthropic's API bills and rate-limits by token counts, as tokens represent the
1525
+ * underlying cost to our systems.
1526
+ *
1527
+ * Under the hood, the API transforms requests into a format suitable for the
1528
+ * model. The model's output then goes through a parsing stage before becoming an
1529
+ * API response. As a result, the token counts in `usage` will not match one-to-one
1530
+ * with the exact visible content of an API request or response.
1531
+ *
1532
+ * For example, `output_tokens` will be non-zero, even for an empty string response
1533
+ * from Claude.
1534
+ *
1535
+ * Total input tokens in a request is the summation of `input_tokens`,
1536
+ * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
1537
+ */
1538
+ usage: BetaUsage;
1539
+ }
1540
+
1541
+ export interface BetaMessageDeltaUsage {
1542
+ /**
1543
+ * The cumulative number of input tokens used to create the cache entry.
1544
+ */
1545
+ cache_creation_input_tokens: number | null;
1546
+
1547
+ /**
1548
+ * The cumulative number of input tokens read from the cache.
1549
+ */
1550
+ cache_read_input_tokens: number | null;
1551
+
1552
+ /**
1553
+ * The cumulative number of input tokens which were used.
1554
+ */
1555
+ input_tokens: number | null;
1556
+
1557
+ /**
1558
+ * Per-iteration token usage breakdown.
1559
+ *
1560
+ * Each entry represents one sampling iteration, with its own input/output token
1561
+ * counts and cache statistics. This allows you to:
1562
+ *
1563
+ * - Determine which iterations exceeded long context thresholds (>=200k tokens)
1564
+ * - Calculate the true context window size from the last iteration
1565
+ * - Understand token accumulation across server-side tool use loops
1566
+ */
1567
+ iterations: BetaIterationsUsage | null;
1568
+
1569
+ /**
1570
+ * The cumulative number of output tokens which were used.
1571
+ */
1572
+ output_tokens: number;
1573
+
1574
+ /**
1575
+ * The number of server tool requests.
1576
+ */
1577
+ server_tool_use: BetaServerToolUsage | null;
1578
+ }
1579
+
1580
+ /**
1581
+ * Token usage for a sampling iteration.
1582
+ */
1583
+ export interface BetaMessageIterationUsage {
1584
+ /**
1585
+ * Breakdown of cached tokens by TTL
1586
+ */
1587
+ cache_creation: BetaCacheCreation | null;
1588
+
1589
+ /**
1590
+ * The number of input tokens used to create the cache entry.
1591
+ */
1592
+ cache_creation_input_tokens: number;
1593
+
1594
+ /**
1595
+ * The number of input tokens read from the cache.
1596
+ */
1597
+ cache_read_input_tokens: number;
1598
+
1599
+ /**
1600
+ * The number of input tokens which were used.
1601
+ */
1602
+ input_tokens: number;
1603
+
1604
+ /**
1605
+ * The number of output tokens which were used.
1606
+ */
1607
+ output_tokens: number;
1608
+
1609
+ /**
1610
+ * Usage for a sampling iteration
1611
+ */
1612
+ type: 'message';
1613
+ }
1614
+
1615
+ export interface BetaMessageParam {
1616
+ content: string | Array<BetaContentBlockParam>;
1617
+
1618
+ role: 'user' | 'assistant';
1619
+ }
1620
+
1621
+ export interface BetaMessageTokensCount {
1622
+ /**
1623
+ * Information about context management applied to the message.
1624
+ */
1625
+ context_management: BetaCountTokensContextManagementResponse | null;
1626
+
1627
+ /**
1628
+ * The total number of tokens across the provided list of messages, system prompt,
1629
+ * and tools.
1630
+ */
1631
+ input_tokens: number;
1632
+ }
1633
+
1634
+ export interface BetaMetadata {
1635
+ /**
1636
+ * An external identifier for the user who is associated with the request.
1637
+ *
1638
+ * This should be a uuid, hash value, or other opaque identifier. Anthropic may use
1639
+ * this id to help detect abuse. Do not include any identifying information such as
1640
+ * name, email address, or phone number.
1641
+ */
1642
+ user_id?: string | null;
1643
+ }
1644
+
1645
+ export interface BetaOutputConfig {
1646
+ /**
1647
+ * All possible effort levels.
1648
+ */
1649
+ effort?: 'low' | 'medium' | 'high' | 'max' | null;
1650
+
1651
+ /**
1652
+ * A schema to specify Claude's output format in responses. See
1653
+ * [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
1654
+ */
1655
+ format?: BetaJSONOutputFormat | null;
1656
+ }
1657
+
1658
+ export interface BetaPlainTextSource {
1659
+ data: string;
1660
+
1661
+ media_type: 'text/plain';
1662
+
1663
+ type: 'text';
1664
+ }
1665
+
1666
+ export type BetaRawContentBlockDelta =
1667
+ | BetaTextDelta
1668
+ | BetaInputJSONDelta
1669
+ | BetaCitationsDelta
1670
+ | BetaThinkingDelta
1671
+ | BetaSignatureDelta
1672
+ | BetaCompactionContentBlockDelta;
1673
+
1674
+ export interface BetaRawContentBlockDeltaEvent {
1675
+ delta: BetaRawContentBlockDelta;
1676
+
1677
+ index: number;
1678
+
1679
+ type: 'content_block_delta';
1680
+ }
1681
+
1682
+ export interface BetaRawContentBlockStartEvent {
1683
+ /**
1684
+ * Response model for a file uploaded to the container.
1685
+ */
1686
+ content_block:
1687
+ | BetaTextBlock
1688
+ | BetaThinkingBlock
1689
+ | BetaRedactedThinkingBlock
1690
+ | BetaToolUseBlock
1691
+ | BetaServerToolUseBlock
1692
+ | BetaWebSearchToolResultBlock
1693
+ | BetaWebFetchToolResultBlock
1694
+ | BetaCodeExecutionToolResultBlock
1695
+ | BetaBashCodeExecutionToolResultBlock
1696
+ | BetaTextEditorCodeExecutionToolResultBlock
1697
+ | BetaToolSearchToolResultBlock
1698
+ | BetaMCPToolUseBlock
1699
+ | BetaMCPToolResultBlock
1700
+ | BetaContainerUploadBlock
1701
+ | BetaCompactionBlock;
1702
+
1703
+ index: number;
1704
+
1705
+ type: 'content_block_start';
1706
+ }
1707
+
1708
+ export interface BetaRawContentBlockStopEvent {
1709
+ index: number;
1710
+
1711
+ type: 'content_block_stop';
1712
+ }
1713
+
1714
+ export interface BetaRawMessageDeltaEvent {
1715
+ /**
1716
+ * Information about context management strategies applied during the request
1717
+ */
1718
+ context_management: BetaContextManagementResponse | null;
1719
+
1720
+ delta: BetaRawMessageDeltaEvent.Delta;
1721
+
1722
+ type: 'message_delta';
1723
+
1724
+ /**
1725
+ * Billing and rate-limit usage.
1726
+ *
1727
+ * Anthropic's API bills and rate-limits by token counts, as tokens represent the
1728
+ * underlying cost to our systems.
1729
+ *
1730
+ * Under the hood, the API transforms requests into a format suitable for the
1731
+ * model. The model's output then goes through a parsing stage before becoming an
1732
+ * API response. As a result, the token counts in `usage` will not match one-to-one
1733
+ * with the exact visible content of an API request or response.
1734
+ *
1735
+ * For example, `output_tokens` will be non-zero, even for an empty string response
1736
+ * from Claude.
1737
+ *
1738
+ * Total input tokens in a request is the summation of `input_tokens`,
1739
+ * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
1740
+ */
1741
+ usage: BetaMessageDeltaUsage;
1742
+ }
1743
+
1744
+ export namespace BetaRawMessageDeltaEvent {
1745
+ export interface Delta {
1746
+ /**
1747
+ * Information about the container used in the request (for the code execution
1748
+ * tool)
1749
+ */
1750
+ container: MessagesMessagesAPI.BetaContainer | null;
1751
+
1752
+ stop_reason: MessagesMessagesAPI.BetaStopReason | null;
1753
+
1754
+ stop_sequence: string | null;
1755
+ }
1756
+ }
1757
+
1758
+ export interface BetaRawMessageStartEvent {
1759
+ message: BetaMessage;
1760
+
1761
+ type: 'message_start';
1762
+ }
1763
+
1764
+ export interface BetaRawMessageStopEvent {
1765
+ type: 'message_stop';
1766
+ }
1767
+
1768
+ export type BetaRawMessageStreamEvent =
1769
+ | BetaRawMessageStartEvent
1770
+ | BetaRawMessageDeltaEvent
1771
+ | BetaRawMessageStopEvent
1772
+ | BetaRawContentBlockStartEvent
1773
+ | BetaRawContentBlockDeltaEvent
1774
+ | BetaRawContentBlockStopEvent;
1775
+
1776
+ export interface BetaRedactedThinkingBlock {
1777
+ data: string;
1778
+
1779
+ type: 'redacted_thinking';
1780
+ }
1781
+
1782
+ export interface BetaRedactedThinkingBlockParam {
1783
+ data: string;
1784
+
1785
+ type: 'redacted_thinking';
1786
+ }
1787
+
1788
+ export interface BetaRequestDocumentBlock {
1789
+ source:
1790
+ | BetaBase64PDFSource
1791
+ | BetaPlainTextSource
1792
+ | BetaContentBlockSource
1793
+ | BetaURLPDFSource
1794
+ | BetaFileDocumentSource;
1795
+
1796
+ type: 'document';
1797
+
1798
+ /**
1799
+ * Create a cache control breakpoint at this content block.
1800
+ */
1801
+ cache_control?: BetaCacheControlEphemeral | null;
1802
+
1803
+ citations?: BetaCitationsConfigParam | null;
1804
+
1805
+ context?: string | null;
1806
+
1807
+ title?: string | null;
1808
+ }
1809
+
1810
+ export interface BetaRequestMCPServerToolConfiguration {
1811
+ allowed_tools?: Array<string> | null;
1812
+
1813
+ enabled?: boolean | null;
1814
+ }
1815
+
1816
+ export interface BetaRequestMCPServerURLDefinition {
1817
+ name: string;
1818
+
1819
+ type: 'url';
1820
+
1821
+ url: string;
1822
+
1823
+ authorization_token?: string | null;
1824
+
1825
+ tool_configuration?: BetaRequestMCPServerToolConfiguration | null;
1826
+ }
1827
+
1828
+ export interface BetaRequestMCPToolResultBlockParam {
1829
+ tool_use_id: string;
1830
+
1831
+ type: 'mcp_tool_result';
1832
+
1833
+ /**
1834
+ * Create a cache control breakpoint at this content block.
1835
+ */
1836
+ cache_control?: BetaCacheControlEphemeral | null;
1837
+
1838
+ content?: string | Array<BetaTextBlockParam>;
1839
+
1840
+ is_error?: boolean;
1841
+ }
1842
+
1843
+ export interface BetaSearchResultBlockParam {
1844
+ content: Array<BetaTextBlockParam>;
1845
+
1846
+ source: string;
1847
+
1848
+ title: string;
1849
+
1850
+ type: 'search_result';
1851
+
1852
+ /**
1853
+ * Create a cache control breakpoint at this content block.
1854
+ */
1855
+ cache_control?: BetaCacheControlEphemeral | null;
1856
+
1857
+ citations?: BetaCitationsConfigParam;
1858
+ }
1859
+
1860
+ /**
1861
+ * Tool invocation generated by a server-side tool.
1862
+ */
1863
+ export interface BetaServerToolCaller {
1864
+ tool_id: string;
1865
+
1866
+ type: 'code_execution_20250825';
1867
+ }
1868
+
1869
+ export interface BetaServerToolCaller20260120 {
1870
+ tool_id: string;
1871
+
1872
+ type: 'code_execution_20260120';
1873
+ }
1874
+
1875
+ export interface BetaServerToolUsage {
1876
+ /**
1877
+ * The number of web fetch tool requests.
1878
+ */
1879
+ web_fetch_requests: number;
1880
+
1881
+ /**
1882
+ * The number of web search tool requests.
1883
+ */
1884
+ web_search_requests: number;
1885
+ }
1886
+
1887
+ export interface BetaServerToolUseBlock {
1888
+ id: string;
1889
+
1890
+ input: { [key: string]: unknown };
1891
+
1892
+ name:
1893
+ | 'web_search'
1894
+ | 'web_fetch'
1895
+ | 'code_execution'
1896
+ | 'bash_code_execution'
1897
+ | 'text_editor_code_execution'
1898
+ | 'tool_search_tool_regex'
1899
+ | 'tool_search_tool_bm25';
1900
+
1901
+ type: 'server_tool_use';
1902
+
1903
+ /**
1904
+ * Tool invocation directly from the model.
1905
+ */
1906
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
1907
+ }
1908
+
1909
+ export interface BetaServerToolUseBlockParam {
1910
+ id: string;
1911
+
1912
+ input: unknown;
1913
+
1914
+ name:
1915
+ | 'web_search'
1916
+ | 'web_fetch'
1917
+ | 'code_execution'
1918
+ | 'bash_code_execution'
1919
+ | 'text_editor_code_execution'
1920
+ | 'tool_search_tool_regex'
1921
+ | 'tool_search_tool_bm25';
1922
+
1923
+ type: 'server_tool_use';
1924
+
1925
+ /**
1926
+ * Create a cache control breakpoint at this content block.
1927
+ */
1928
+ cache_control?: BetaCacheControlEphemeral | null;
1929
+
1930
+ /**
1931
+ * Tool invocation directly from the model.
1932
+ */
1933
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
1934
+ }
1935
+
1936
+ export interface BetaSignatureDelta {
1937
+ signature: string;
1938
+
1939
+ type: 'signature_delta';
1940
+ }
1941
+
1942
+ /**
1943
+ * A skill that was loaded in a container (response model).
1944
+ */
1945
+ export interface BetaSkill {
1946
+ /**
1947
+ * Skill ID
1948
+ */
1949
+ skill_id: string;
1950
+
1951
+ /**
1952
+ * Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
1953
+ */
1954
+ type: 'anthropic' | 'custom';
1955
+
1956
+ /**
1957
+ * Skill version or 'latest' for most recent version
1958
+ */
1959
+ version: string;
1960
+ }
1961
+
1962
+ /**
1963
+ * Specification for a skill to be loaded in a container (request model).
1964
+ */
1965
+ export interface BetaSkillParams {
1966
+ /**
1967
+ * Skill ID
1968
+ */
1969
+ skill_id: string;
1970
+
1971
+ /**
1972
+ * Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
1973
+ */
1974
+ type: 'anthropic' | 'custom';
1975
+
1976
+ /**
1977
+ * Skill version or 'latest' for most recent version
1978
+ */
1979
+ version?: string;
1980
+ }
1981
+
1982
+ export type BetaStopReason =
1983
+ | 'end_turn'
1984
+ | 'max_tokens'
1985
+ | 'stop_sequence'
1986
+ | 'tool_use'
1987
+ | 'pause_turn'
1988
+ | 'compaction'
1989
+ | 'refusal'
1990
+ | 'model_context_window_exceeded';
1991
+
1992
+ export interface BetaTextBlock {
1993
+ /**
1994
+ * Citations supporting the text block.
1995
+ *
1996
+ * The type of citation returned will depend on the type of document being cited.
1997
+ * Citing a PDF results in `page_location`, plain text results in `char_location`,
1998
+ * and content document results in `content_block_location`.
1999
+ */
2000
+ citations: Array<BetaTextCitation> | null;
2001
+
2002
+ text: string;
2003
+
2004
+ type: 'text';
2005
+ }
2006
+
2007
+ export interface BetaTextBlockParam {
2008
+ text: string;
2009
+
2010
+ type: 'text';
2011
+
2012
+ /**
2013
+ * Create a cache control breakpoint at this content block.
2014
+ */
2015
+ cache_control?: BetaCacheControlEphemeral | null;
2016
+
2017
+ citations?: Array<BetaTextCitationParam> | null;
2018
+ }
2019
+
2020
+ export type BetaTextCitation =
2021
+ | BetaCitationCharLocation
2022
+ | BetaCitationPageLocation
2023
+ | BetaCitationContentBlockLocation
2024
+ | BetaCitationsWebSearchResultLocation
2025
+ | BetaCitationSearchResultLocation;
2026
+
2027
+ export type BetaTextCitationParam =
2028
+ | BetaCitationCharLocationParam
2029
+ | BetaCitationPageLocationParam
2030
+ | BetaCitationContentBlockLocationParam
2031
+ | BetaCitationWebSearchResultLocationParam
2032
+ | BetaCitationSearchResultLocationParam;
2033
+
2034
+ export interface BetaTextDelta {
2035
+ text: string;
2036
+
2037
+ type: 'text_delta';
2038
+ }
2039
+
2040
+ export interface BetaTextEditorCodeExecutionCreateResultBlock {
2041
+ is_file_update: boolean;
2042
+
2043
+ type: 'text_editor_code_execution_create_result';
2044
+ }
2045
+
2046
+ export interface BetaTextEditorCodeExecutionCreateResultBlockParam {
2047
+ is_file_update: boolean;
2048
+
2049
+ type: 'text_editor_code_execution_create_result';
2050
+ }
2051
+
2052
+ export interface BetaTextEditorCodeExecutionStrReplaceResultBlock {
2053
+ lines: Array<string> | null;
2054
+
2055
+ new_lines: number | null;
2056
+
2057
+ new_start: number | null;
2058
+
2059
+ old_lines: number | null;
2060
+
2061
+ old_start: number | null;
2062
+
2063
+ type: 'text_editor_code_execution_str_replace_result';
2064
+ }
2065
+
2066
+ export interface BetaTextEditorCodeExecutionStrReplaceResultBlockParam {
2067
+ type: 'text_editor_code_execution_str_replace_result';
2068
+
2069
+ lines?: Array<string> | null;
2070
+
2071
+ new_lines?: number | null;
2072
+
2073
+ new_start?: number | null;
2074
+
2075
+ old_lines?: number | null;
2076
+
2077
+ old_start?: number | null;
2078
+ }
2079
+
2080
+ export interface BetaTextEditorCodeExecutionToolResultBlock {
2081
+ content:
2082
+ | BetaTextEditorCodeExecutionToolResultError
2083
+ | BetaTextEditorCodeExecutionViewResultBlock
2084
+ | BetaTextEditorCodeExecutionCreateResultBlock
2085
+ | BetaTextEditorCodeExecutionStrReplaceResultBlock;
2086
+
2087
+ tool_use_id: string;
2088
+
2089
+ type: 'text_editor_code_execution_tool_result';
2090
+ }
2091
+
2092
+ export interface BetaTextEditorCodeExecutionToolResultBlockParam {
2093
+ content:
2094
+ | BetaTextEditorCodeExecutionToolResultErrorParam
2095
+ | BetaTextEditorCodeExecutionViewResultBlockParam
2096
+ | BetaTextEditorCodeExecutionCreateResultBlockParam
2097
+ | BetaTextEditorCodeExecutionStrReplaceResultBlockParam;
2098
+
2099
+ tool_use_id: string;
2100
+
2101
+ type: 'text_editor_code_execution_tool_result';
2102
+
2103
+ /**
2104
+ * Create a cache control breakpoint at this content block.
2105
+ */
2106
+ cache_control?: BetaCacheControlEphemeral | null;
2107
+ }
2108
+
2109
+ export interface BetaTextEditorCodeExecutionToolResultError {
2110
+ error_code:
2111
+ | 'invalid_tool_input'
2112
+ | 'unavailable'
2113
+ | 'too_many_requests'
2114
+ | 'execution_time_exceeded'
2115
+ | 'file_not_found';
2116
+
2117
+ error_message: string | null;
2118
+
2119
+ type: 'text_editor_code_execution_tool_result_error';
2120
+ }
2121
+
2122
+ export interface BetaTextEditorCodeExecutionToolResultErrorParam {
2123
+ error_code:
2124
+ | 'invalid_tool_input'
2125
+ | 'unavailable'
2126
+ | 'too_many_requests'
2127
+ | 'execution_time_exceeded'
2128
+ | 'file_not_found';
2129
+
2130
+ type: 'text_editor_code_execution_tool_result_error';
2131
+
2132
+ error_message?: string | null;
2133
+ }
2134
+
2135
+ export interface BetaTextEditorCodeExecutionViewResultBlock {
2136
+ content: string;
2137
+
2138
+ file_type: 'text' | 'image' | 'pdf';
2139
+
2140
+ num_lines: number | null;
2141
+
2142
+ start_line: number | null;
2143
+
2144
+ total_lines: number | null;
2145
+
2146
+ type: 'text_editor_code_execution_view_result';
2147
+ }
2148
+
2149
+ export interface BetaTextEditorCodeExecutionViewResultBlockParam {
2150
+ content: string;
2151
+
2152
+ file_type: 'text' | 'image' | 'pdf';
2153
+
2154
+ type: 'text_editor_code_execution_view_result';
2155
+
2156
+ num_lines?: number | null;
2157
+
2158
+ start_line?: number | null;
2159
+
2160
+ total_lines?: number | null;
2161
+ }
2162
+
2163
+ export interface BetaThinkingBlock {
2164
+ signature: string;
2165
+
2166
+ thinking: string;
2167
+
2168
+ type: 'thinking';
2169
+ }
2170
+
2171
+ export interface BetaThinkingBlockParam {
2172
+ signature: string;
2173
+
2174
+ thinking: string;
2175
+
2176
+ type: 'thinking';
2177
+ }
2178
+
2179
+ export interface BetaThinkingConfigAdaptive {
2180
+ type: 'adaptive';
2181
+ }
2182
+
2183
+ export interface BetaThinkingConfigDisabled {
2184
+ type: 'disabled';
2185
+ }
2186
+
2187
+ export interface BetaThinkingConfigEnabled {
2188
+ /**
2189
+ * Determines how many tokens Claude can use for its internal reasoning process.
2190
+ * Larger budgets can enable more thorough analysis for complex problems, improving
2191
+ * response quality.
2192
+ *
2193
+ * Must be ≥1024 and less than `max_tokens`.
2194
+ *
2195
+ * See
2196
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
2197
+ * for details.
2198
+ */
2199
+ budget_tokens: number;
2200
+
2201
+ type: 'enabled';
2202
+ }
2203
+
2204
+ /**
2205
+ * Configuration for enabling Claude's extended thinking.
2206
+ *
2207
+ * When enabled, responses include `thinking` content blocks showing Claude's
2208
+ * thinking process before the final answer. Requires a minimum budget of 1,024
2209
+ * tokens and counts towards your `max_tokens` limit.
2210
+ *
2211
+ * See
2212
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
2213
+ * for details.
2214
+ */
2215
+ export type BetaThinkingConfigParam =
2216
+ | BetaThinkingConfigEnabled
2217
+ | BetaThinkingConfigDisabled
2218
+ | BetaThinkingConfigAdaptive;
2219
+
2220
+ export interface BetaThinkingDelta {
2221
+ thinking: string;
2222
+
2223
+ type: 'thinking_delta';
2224
+ }
2225
+
2226
+ export interface BetaThinkingTurns {
2227
+ type: 'thinking_turns';
2228
+
2229
+ value: number;
2230
+ }
2231
+
2232
+ export interface BetaTool {
2233
+ /**
2234
+ * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
2235
+ *
2236
+ * This defines the shape of the `input` that your tool accepts and that the model
2237
+ * will produce.
2238
+ */
2239
+ input_schema: BetaTool.InputSchema;
2240
+
2241
+ /**
2242
+ * Name of the tool.
2243
+ *
2244
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2245
+ */
2246
+ name: string;
2247
+
2248
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2249
+
2250
+ /**
2251
+ * Create a cache control breakpoint at this content block.
2252
+ */
2253
+ cache_control?: BetaCacheControlEphemeral | null;
2254
+
2255
+ /**
2256
+ * If true, tool will not be included in initial system prompt. Only loaded when
2257
+ * returned via tool_reference from tool search.
2258
+ */
2259
+ defer_loading?: boolean;
2260
+
2261
+ /**
2262
+ * Description of what this tool does.
2263
+ *
2264
+ * Tool descriptions should be as detailed as possible. The more information that
2265
+ * the model has about what the tool is and how to use it, the better it will
2266
+ * perform. You can use natural language descriptions to reinforce important
2267
+ * aspects of the tool input JSON schema.
2268
+ */
2269
+ description?: string;
2270
+
2271
+ /**
2272
+ * Enable eager input streaming for this tool. When true, tool input parameters
2273
+ * will be streamed incrementally as they are generated, and types will be inferred
2274
+ * on-the-fly rather than buffering the full JSON output. When false, streaming is
2275
+ * disabled for this tool even if the fine-grained-tool-streaming beta is active.
2276
+ * When null (default), uses the default behavior based on beta headers.
2277
+ */
2278
+ eager_input_streaming?: boolean | null;
2279
+
2280
+ input_examples?: Array<{ [key: string]: unknown }>;
2281
+
2282
+ /**
2283
+ * When true, guarantees schema validation on tool names and inputs
2284
+ */
2285
+ strict?: boolean;
2286
+
2287
+ type?: 'custom' | null;
2288
+ }
2289
+
2290
+ export namespace BetaTool {
2291
+ /**
2292
+ * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
2293
+ *
2294
+ * This defines the shape of the `input` that your tool accepts and that the model
2295
+ * will produce.
2296
+ */
2297
+ export interface InputSchema {
2298
+ type: 'object';
2299
+
2300
+ properties?: unknown | null;
2301
+
2302
+ required?: string[] | readonly string[] | null;
2303
+
2304
+ [k: string]: unknown;
2305
+ }
2306
+ }
2307
+
2308
+ export interface BetaToolBash20241022 {
2309
+ /**
2310
+ * Name of the tool.
2311
+ *
2312
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2313
+ */
2314
+ name: 'bash';
2315
+
2316
+ type: 'bash_20241022';
2317
+
2318
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2319
+
2320
+ /**
2321
+ * Create a cache control breakpoint at this content block.
2322
+ */
2323
+ cache_control?: BetaCacheControlEphemeral | null;
2324
+
2325
+ /**
2326
+ * If true, tool will not be included in initial system prompt. Only loaded when
2327
+ * returned via tool_reference from tool search.
2328
+ */
2329
+ defer_loading?: boolean;
2330
+
2331
+ input_examples?: Array<{ [key: string]: unknown }>;
2332
+
2333
+ /**
2334
+ * When true, guarantees schema validation on tool names and inputs
2335
+ */
2336
+ strict?: boolean;
2337
+ }
2338
+
2339
+ export interface BetaToolBash20250124 {
2340
+ /**
2341
+ * Name of the tool.
2342
+ *
2343
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2344
+ */
2345
+ name: 'bash';
2346
+
2347
+ type: 'bash_20250124';
2348
+
2349
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2350
+
2351
+ /**
2352
+ * Create a cache control breakpoint at this content block.
2353
+ */
2354
+ cache_control?: BetaCacheControlEphemeral | null;
2355
+
2356
+ /**
2357
+ * If true, tool will not be included in initial system prompt. Only loaded when
2358
+ * returned via tool_reference from tool search.
2359
+ */
2360
+ defer_loading?: boolean;
2361
+
2362
+ input_examples?: Array<{ [key: string]: unknown }>;
2363
+
2364
+ /**
2365
+ * When true, guarantees schema validation on tool names and inputs
2366
+ */
2367
+ strict?: boolean;
2368
+ }
2369
+
2370
+ /**
2371
+ * How the model should use the provided tools. The model can use a specific tool,
2372
+ * any available tool, decide by itself, or not use tools at all.
2373
+ */
2374
+ export type BetaToolChoice = BetaToolChoiceAuto | BetaToolChoiceAny | BetaToolChoiceTool | BetaToolChoiceNone;
2375
+
2376
+ /**
2377
+ * The model will use any available tools.
2378
+ */
2379
+ export interface BetaToolChoiceAny {
2380
+ type: 'any';
2381
+
2382
+ /**
2383
+ * Whether to disable parallel tool use.
2384
+ *
2385
+ * Defaults to `false`. If set to `true`, the model will output exactly one tool
2386
+ * use.
2387
+ */
2388
+ disable_parallel_tool_use?: boolean;
2389
+ }
2390
+
2391
+ /**
2392
+ * The model will automatically decide whether to use tools.
2393
+ */
2394
+ export interface BetaToolChoiceAuto {
2395
+ type: 'auto';
2396
+
2397
+ /**
2398
+ * Whether to disable parallel tool use.
2399
+ *
2400
+ * Defaults to `false`. If set to `true`, the model will output at most one tool
2401
+ * use.
2402
+ */
2403
+ disable_parallel_tool_use?: boolean;
2404
+ }
2405
+
2406
+ /**
2407
+ * The model will not be allowed to use tools.
2408
+ */
2409
+ export interface BetaToolChoiceNone {
2410
+ type: 'none';
2411
+ }
2412
+
2413
+ /**
2414
+ * The model will use the specified tool with `tool_choice.name`.
2415
+ */
2416
+ export interface BetaToolChoiceTool {
2417
+ /**
2418
+ * The name of the tool to use.
2419
+ */
2420
+ name: string;
2421
+
2422
+ type: 'tool';
2423
+
2424
+ /**
2425
+ * Whether to disable parallel tool use.
2426
+ *
2427
+ * Defaults to `false`. If set to `true`, the model will output exactly one tool
2428
+ * use.
2429
+ */
2430
+ disable_parallel_tool_use?: boolean;
2431
+ }
2432
+
2433
+ export interface BetaToolComputerUse20241022 {
2434
+ /**
2435
+ * The height of the display in pixels.
2436
+ */
2437
+ display_height_px: number;
2438
+
2439
+ /**
2440
+ * The width of the display in pixels.
2441
+ */
2442
+ display_width_px: number;
2443
+
2444
+ /**
2445
+ * Name of the tool.
2446
+ *
2447
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2448
+ */
2449
+ name: 'computer';
2450
+
2451
+ type: 'computer_20241022';
2452
+
2453
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2454
+
2455
+ /**
2456
+ * Create a cache control breakpoint at this content block.
2457
+ */
2458
+ cache_control?: BetaCacheControlEphemeral | null;
2459
+
2460
+ /**
2461
+ * If true, tool will not be included in initial system prompt. Only loaded when
2462
+ * returned via tool_reference from tool search.
2463
+ */
2464
+ defer_loading?: boolean;
2465
+
2466
+ /**
2467
+ * The X11 display number (e.g. 0, 1) for the display.
2468
+ */
2469
+ display_number?: number | null;
2470
+
2471
+ input_examples?: Array<{ [key: string]: unknown }>;
2472
+
2473
+ /**
2474
+ * When true, guarantees schema validation on tool names and inputs
2475
+ */
2476
+ strict?: boolean;
2477
+ }
2478
+
2479
+ export interface BetaToolComputerUse20250124 {
2480
+ /**
2481
+ * The height of the display in pixels.
2482
+ */
2483
+ display_height_px: number;
2484
+
2485
+ /**
2486
+ * The width of the display in pixels.
2487
+ */
2488
+ display_width_px: number;
2489
+
2490
+ /**
2491
+ * Name of the tool.
2492
+ *
2493
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2494
+ */
2495
+ name: 'computer';
2496
+
2497
+ type: 'computer_20250124';
2498
+
2499
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2500
+
2501
+ /**
2502
+ * Create a cache control breakpoint at this content block.
2503
+ */
2504
+ cache_control?: BetaCacheControlEphemeral | null;
2505
+
2506
+ /**
2507
+ * If true, tool will not be included in initial system prompt. Only loaded when
2508
+ * returned via tool_reference from tool search.
2509
+ */
2510
+ defer_loading?: boolean;
2511
+
2512
+ /**
2513
+ * The X11 display number (e.g. 0, 1) for the display.
2514
+ */
2515
+ display_number?: number | null;
2516
+
2517
+ input_examples?: Array<{ [key: string]: unknown }>;
2518
+
2519
+ /**
2520
+ * When true, guarantees schema validation on tool names and inputs
2521
+ */
2522
+ strict?: boolean;
2523
+ }
2524
+
2525
+ export interface BetaToolComputerUse20251124 {
2526
+ /**
2527
+ * The height of the display in pixels.
2528
+ */
2529
+ display_height_px: number;
2530
+
2531
+ /**
2532
+ * The width of the display in pixels.
2533
+ */
2534
+ display_width_px: number;
2535
+
2536
+ /**
2537
+ * Name of the tool.
2538
+ *
2539
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2540
+ */
2541
+ name: 'computer';
2542
+
2543
+ type: 'computer_20251124';
2544
+
2545
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2546
+
2547
+ /**
2548
+ * Create a cache control breakpoint at this content block.
2549
+ */
2550
+ cache_control?: BetaCacheControlEphemeral | null;
2551
+
2552
+ /**
2553
+ * If true, tool will not be included in initial system prompt. Only loaded when
2554
+ * returned via tool_reference from tool search.
2555
+ */
2556
+ defer_loading?: boolean;
2557
+
2558
+ /**
2559
+ * The X11 display number (e.g. 0, 1) for the display.
2560
+ */
2561
+ display_number?: number | null;
2562
+
2563
+ /**
2564
+ * Whether to enable an action to take a zoomed-in screenshot of the screen.
2565
+ */
2566
+ enable_zoom?: boolean;
2567
+
2568
+ input_examples?: Array<{ [key: string]: unknown }>;
2569
+
2570
+ /**
2571
+ * When true, guarantees schema validation on tool names and inputs
2572
+ */
2573
+ strict?: boolean;
2574
+ }
2575
+
2576
+ export interface BetaToolReferenceBlock {
2577
+ tool_name: string;
2578
+
2579
+ type: 'tool_reference';
2580
+ }
2581
+
2582
+ /**
2583
+ * Tool reference block that can be included in tool_result content.
2584
+ */
2585
+ export interface BetaToolReferenceBlockParam {
2586
+ tool_name: string;
2587
+
2588
+ type: 'tool_reference';
2589
+
2590
+ /**
2591
+ * Create a cache control breakpoint at this content block.
2592
+ */
2593
+ cache_control?: BetaCacheControlEphemeral | null;
2594
+ }
2595
+
2596
+ export interface BetaToolResultBlockParam {
2597
+ tool_use_id: string;
2598
+
2599
+ type: 'tool_result';
2600
+
2601
+ /**
2602
+ * Create a cache control breakpoint at this content block.
2603
+ */
2604
+ cache_control?: BetaCacheControlEphemeral | null;
2605
+
2606
+ content?:
2607
+ | string
2608
+ | Array<
2609
+ | BetaTextBlockParam
2610
+ | BetaImageBlockParam
2611
+ | BetaSearchResultBlockParam
2612
+ | BetaRequestDocumentBlock
2613
+ | BetaToolReferenceBlockParam
2614
+ >;
2615
+
2616
+ is_error?: boolean;
2617
+ }
2618
+
2619
+ export interface BetaToolSearchToolBm25_20251119 {
2620
+ /**
2621
+ * Name of the tool.
2622
+ *
2623
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2624
+ */
2625
+ name: 'tool_search_tool_bm25';
2626
+
2627
+ type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
2628
+
2629
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2630
+
2631
+ /**
2632
+ * Create a cache control breakpoint at this content block.
2633
+ */
2634
+ cache_control?: BetaCacheControlEphemeral | null;
2635
+
2636
+ /**
2637
+ * If true, tool will not be included in initial system prompt. Only loaded when
2638
+ * returned via tool_reference from tool search.
2639
+ */
2640
+ defer_loading?: boolean;
2641
+
2642
+ /**
2643
+ * When true, guarantees schema validation on tool names and inputs
2644
+ */
2645
+ strict?: boolean;
2646
+ }
2647
+
2648
+ export interface BetaToolSearchToolRegex20251119 {
2649
+ /**
2650
+ * Name of the tool.
2651
+ *
2652
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2653
+ */
2654
+ name: 'tool_search_tool_regex';
2655
+
2656
+ type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
2657
+
2658
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2659
+
2660
+ /**
2661
+ * Create a cache control breakpoint at this content block.
2662
+ */
2663
+ cache_control?: BetaCacheControlEphemeral | null;
2664
+
2665
+ /**
2666
+ * If true, tool will not be included in initial system prompt. Only loaded when
2667
+ * returned via tool_reference from tool search.
2668
+ */
2669
+ defer_loading?: boolean;
2670
+
2671
+ /**
2672
+ * When true, guarantees schema validation on tool names and inputs
2673
+ */
2674
+ strict?: boolean;
2675
+ }
2676
+
2677
+ export interface BetaToolSearchToolResultBlock {
2678
+ content: BetaToolSearchToolResultError | BetaToolSearchToolSearchResultBlock;
2679
+
2680
+ tool_use_id: string;
2681
+
2682
+ type: 'tool_search_tool_result';
2683
+ }
2684
+
2685
+ export interface BetaToolSearchToolResultBlockParam {
2686
+ content: BetaToolSearchToolResultErrorParam | BetaToolSearchToolSearchResultBlockParam;
2687
+
2688
+ tool_use_id: string;
2689
+
2690
+ type: 'tool_search_tool_result';
2691
+
2692
+ /**
2693
+ * Create a cache control breakpoint at this content block.
2694
+ */
2695
+ cache_control?: BetaCacheControlEphemeral | null;
2696
+ }
2697
+
2698
+ export interface BetaToolSearchToolResultError {
2699
+ error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
2700
+
2701
+ error_message: string | null;
2702
+
2703
+ type: 'tool_search_tool_result_error';
2704
+ }
2705
+
2706
+ export interface BetaToolSearchToolResultErrorParam {
2707
+ error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
2708
+
2709
+ type: 'tool_search_tool_result_error';
2710
+ }
2711
+
2712
+ export interface BetaToolSearchToolSearchResultBlock {
2713
+ tool_references: Array<BetaToolReferenceBlock>;
2714
+
2715
+ type: 'tool_search_tool_search_result';
2716
+ }
2717
+
2718
+ export interface BetaToolSearchToolSearchResultBlockParam {
2719
+ tool_references: Array<BetaToolReferenceBlockParam>;
2720
+
2721
+ type: 'tool_search_tool_search_result';
2722
+ }
2723
+
2724
+ export type BetaToolResultContentBlockParam = Extract<BetaToolResultBlockParam['content'], any[]>[number];
2725
+
2726
+ export interface BetaToolTextEditor20241022 {
2727
+ /**
2728
+ * Name of the tool.
2729
+ *
2730
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2731
+ */
2732
+ name: 'str_replace_editor';
2733
+
2734
+ type: 'text_editor_20241022';
2735
+
2736
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2737
+
2738
+ /**
2739
+ * Create a cache control breakpoint at this content block.
2740
+ */
2741
+ cache_control?: BetaCacheControlEphemeral | null;
2742
+
2743
+ /**
2744
+ * If true, tool will not be included in initial system prompt. Only loaded when
2745
+ * returned via tool_reference from tool search.
2746
+ */
2747
+ defer_loading?: boolean;
2748
+
2749
+ input_examples?: Array<{ [key: string]: unknown }>;
2750
+
2751
+ /**
2752
+ * When true, guarantees schema validation on tool names and inputs
2753
+ */
2754
+ strict?: boolean;
2755
+ }
2756
+
2757
+ export interface BetaToolTextEditor20250124 {
2758
+ /**
2759
+ * Name of the tool.
2760
+ *
2761
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2762
+ */
2763
+ name: 'str_replace_editor';
2764
+
2765
+ type: 'text_editor_20250124';
2766
+
2767
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2768
+
2769
+ /**
2770
+ * Create a cache control breakpoint at this content block.
2771
+ */
2772
+ cache_control?: BetaCacheControlEphemeral | null;
2773
+
2774
+ /**
2775
+ * If true, tool will not be included in initial system prompt. Only loaded when
2776
+ * returned via tool_reference from tool search.
2777
+ */
2778
+ defer_loading?: boolean;
2779
+
2780
+ input_examples?: Array<{ [key: string]: unknown }>;
2781
+
2782
+ /**
2783
+ * When true, guarantees schema validation on tool names and inputs
2784
+ */
2785
+ strict?: boolean;
2786
+ }
2787
+
2788
+ export interface BetaToolTextEditor20250429 {
2789
+ /**
2790
+ * Name of the tool.
2791
+ *
2792
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2793
+ */
2794
+ name: 'str_replace_based_edit_tool';
2795
+
2796
+ type: 'text_editor_20250429';
2797
+
2798
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2799
+
2800
+ /**
2801
+ * Create a cache control breakpoint at this content block.
2802
+ */
2803
+ cache_control?: BetaCacheControlEphemeral | null;
2804
+
2805
+ /**
2806
+ * If true, tool will not be included in initial system prompt. Only loaded when
2807
+ * returned via tool_reference from tool search.
2808
+ */
2809
+ defer_loading?: boolean;
2810
+
2811
+ input_examples?: Array<{ [key: string]: unknown }>;
2812
+
2813
+ /**
2814
+ * When true, guarantees schema validation on tool names and inputs
2815
+ */
2816
+ strict?: boolean;
2817
+ }
2818
+
2819
+ export interface BetaToolTextEditor20250728 {
2820
+ /**
2821
+ * Name of the tool.
2822
+ *
2823
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2824
+ */
2825
+ name: 'str_replace_based_edit_tool';
2826
+
2827
+ type: 'text_editor_20250728';
2828
+
2829
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2830
+
2831
+ /**
2832
+ * Create a cache control breakpoint at this content block.
2833
+ */
2834
+ cache_control?: BetaCacheControlEphemeral | null;
2835
+
2836
+ /**
2837
+ * If true, tool will not be included in initial system prompt. Only loaded when
2838
+ * returned via tool_reference from tool search.
2839
+ */
2840
+ defer_loading?: boolean;
2841
+
2842
+ input_examples?: Array<{ [key: string]: unknown }>;
2843
+
2844
+ /**
2845
+ * Maximum number of characters to display when viewing a file. If not specified,
2846
+ * defaults to displaying the full file.
2847
+ */
2848
+ max_characters?: number | null;
2849
+
2850
+ /**
2851
+ * When true, guarantees schema validation on tool names and inputs
2852
+ */
2853
+ strict?: boolean;
2854
+ }
2855
+
2856
+ /**
2857
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
2858
+ * checkpoint).
2859
+ */
2860
+ export type BetaToolUnion =
2861
+ | BetaTool
2862
+ | BetaToolBash20241022
2863
+ | BetaToolBash20250124
2864
+ | BetaCodeExecutionTool20250522
2865
+ | BetaCodeExecutionTool20250825
2866
+ | BetaCodeExecutionTool20260120
2867
+ | BetaToolComputerUse20241022
2868
+ | BetaMemoryTool20250818
2869
+ | BetaToolComputerUse20250124
2870
+ | BetaToolTextEditor20241022
2871
+ | BetaToolComputerUse20251124
2872
+ | BetaToolTextEditor20250124
2873
+ | BetaToolTextEditor20250429
2874
+ | BetaToolTextEditor20250728
2875
+ | BetaWebSearchTool20250305
2876
+ | BetaWebFetchTool20250910
2877
+ | BetaWebSearchTool20260209
2878
+ | BetaWebFetchTool20260209
2879
+ | BetaToolSearchToolBm25_20251119
2880
+ | BetaToolSearchToolRegex20251119
2881
+ | BetaMCPToolset;
2882
+
2883
+ export interface BetaToolUseBlock {
2884
+ id: string;
2885
+
2886
+ input: unknown;
2887
+
2888
+ name: string;
2889
+
2890
+ type: 'tool_use';
2891
+
2892
+ /**
2893
+ * Tool invocation directly from the model.
2894
+ */
2895
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
2896
+ }
2897
+
2898
+ export interface BetaToolUseBlockParam {
2899
+ id: string;
2900
+
2901
+ input: unknown;
2902
+
2903
+ name: string;
2904
+
2905
+ type: 'tool_use';
2906
+
2907
+ /**
2908
+ * Create a cache control breakpoint at this content block.
2909
+ */
2910
+ cache_control?: BetaCacheControlEphemeral | null;
2911
+
2912
+ /**
2913
+ * Tool invocation directly from the model.
2914
+ */
2915
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
2916
+ }
2917
+
2918
+ export interface BetaToolUsesKeep {
2919
+ type: 'tool_uses';
2920
+
2921
+ value: number;
2922
+ }
2923
+
2924
+ export interface BetaToolUsesTrigger {
2925
+ type: 'tool_uses';
2926
+
2927
+ value: number;
2928
+ }
2929
+
2930
+ export interface BetaURLImageSource {
2931
+ type: 'url';
2932
+
2933
+ url: string;
2934
+ }
2935
+
2936
+ export interface BetaURLPDFSource {
2937
+ type: 'url';
2938
+
2939
+ url: string;
2940
+ }
2941
+
2942
+ export interface BetaUsage {
2943
+ /**
2944
+ * Breakdown of cached tokens by TTL
2945
+ */
2946
+ cache_creation: BetaCacheCreation | null;
2947
+
2948
+ /**
2949
+ * The number of input tokens used to create the cache entry.
2950
+ */
2951
+ cache_creation_input_tokens: number | null;
2952
+
2953
+ /**
2954
+ * The number of input tokens read from the cache.
2955
+ */
2956
+ cache_read_input_tokens: number | null;
2957
+
2958
+ /**
2959
+ * The geographic region where inference was performed for this request.
2960
+ */
2961
+ inference_geo: string | null;
2962
+
2963
+ /**
2964
+ * The number of input tokens which were used.
2965
+ */
2966
+ input_tokens: number;
2967
+
2968
+ /**
2969
+ * Per-iteration token usage breakdown.
2970
+ *
2971
+ * Each entry represents one sampling iteration, with its own input/output token
2972
+ * counts and cache statistics. This allows you to:
2973
+ *
2974
+ * - Determine which iterations exceeded long context thresholds (>=200k tokens)
2975
+ * - Calculate the true context window size from the last iteration
2976
+ * - Understand token accumulation across server-side tool use loops
2977
+ */
2978
+ iterations: BetaIterationsUsage | null;
2979
+
2980
+ /**
2981
+ * The number of output tokens which were used.
2982
+ */
2983
+ output_tokens: number;
2984
+
2985
+ /**
2986
+ * The number of server tool requests.
2987
+ */
2988
+ server_tool_use: BetaServerToolUsage | null;
2989
+
2990
+ /**
2991
+ * If the request used the priority, standard, or batch tier.
2992
+ */
2993
+ service_tier: 'standard' | 'priority' | 'batch' | null;
2994
+
2995
+ /**
2996
+ * The inference speed mode used for this request.
2997
+ */
2998
+ speed: 'standard' | 'fast' | null;
2999
+ }
3000
+
3001
+ export interface BetaUserLocation {
3002
+ type: 'approximate';
3003
+
3004
+ /**
3005
+ * The city of the user.
3006
+ */
3007
+ city?: string | null;
3008
+
3009
+ /**
3010
+ * The two letter
3011
+ * [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
3012
+ * user.
3013
+ */
3014
+ country?: string | null;
3015
+
3016
+ /**
3017
+ * The region of the user.
3018
+ */
3019
+ region?: string | null;
3020
+
3021
+ /**
3022
+ * The [IANA timezone](https://nodatime.org/TimeZones) of the user.
3023
+ */
3024
+ timezone?: string | null;
3025
+ }
3026
+
3027
+ export interface BetaWebFetchBlock {
3028
+ content: BetaDocumentBlock;
3029
+
3030
+ /**
3031
+ * ISO 8601 timestamp when the content was retrieved
3032
+ */
3033
+ retrieved_at: string | null;
3034
+
3035
+ type: 'web_fetch_result';
3036
+
3037
+ /**
3038
+ * Fetched content URL
3039
+ */
3040
+ url: string;
3041
+ }
3042
+
3043
+ export interface BetaWebFetchBlockParam {
3044
+ content: BetaRequestDocumentBlock;
3045
+
3046
+ type: 'web_fetch_result';
3047
+
3048
+ /**
3049
+ * Fetched content URL
3050
+ */
3051
+ url: string;
3052
+
3053
+ /**
3054
+ * ISO 8601 timestamp when the content was retrieved
3055
+ */
3056
+ retrieved_at?: string | null;
3057
+ }
3058
+
3059
+ export interface BetaWebFetchTool20250910 {
3060
+ /**
3061
+ * Name of the tool.
3062
+ *
3063
+ * This is how the tool will be called by the model and in `tool_use` blocks.
3064
+ */
3065
+ name: 'web_fetch';
3066
+
3067
+ type: 'web_fetch_20250910';
3068
+
3069
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3070
+
3071
+ /**
3072
+ * List of domains to allow fetching from
3073
+ */
3074
+ allowed_domains?: Array<string> | null;
3075
+
3076
+ /**
3077
+ * List of domains to block fetching from
3078
+ */
3079
+ blocked_domains?: Array<string> | null;
3080
+
3081
+ /**
3082
+ * Create a cache control breakpoint at this content block.
3083
+ */
3084
+ cache_control?: BetaCacheControlEphemeral | null;
3085
+
3086
+ /**
3087
+ * Citations configuration for fetched documents. Citations are disabled by
3088
+ * default.
3089
+ */
3090
+ citations?: BetaCitationsConfigParam | null;
3091
+
3092
+ /**
3093
+ * If true, tool will not be included in initial system prompt. Only loaded when
3094
+ * returned via tool_reference from tool search.
3095
+ */
3096
+ defer_loading?: boolean;
3097
+
3098
+ /**
3099
+ * Maximum number of tokens used by including web page text content in the context.
3100
+ * The limit is approximate and does not apply to binary content such as PDFs.
3101
+ */
3102
+ max_content_tokens?: number | null;
3103
+
3104
+ /**
3105
+ * Maximum number of times the tool can be used in the API request.
3106
+ */
3107
+ max_uses?: number | null;
3108
+
3109
+ /**
3110
+ * When true, guarantees schema validation on tool names and inputs
3111
+ */
3112
+ strict?: boolean;
3113
+ }
3114
+
3115
+ export interface BetaWebFetchTool20260209 {
3116
+ /**
3117
+ * Name of the tool.
3118
+ *
3119
+ * This is how the tool will be called by the model and in `tool_use` blocks.
3120
+ */
3121
+ name: 'web_fetch';
3122
+
3123
+ type: 'web_fetch_20260209';
3124
+
3125
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3126
+
3127
+ /**
3128
+ * List of domains to allow fetching from
3129
+ */
3130
+ allowed_domains?: Array<string> | null;
3131
+
3132
+ /**
3133
+ * List of domains to block fetching from
3134
+ */
3135
+ blocked_domains?: Array<string> | null;
3136
+
3137
+ /**
3138
+ * Create a cache control breakpoint at this content block.
3139
+ */
3140
+ cache_control?: BetaCacheControlEphemeral | null;
3141
+
3142
+ /**
3143
+ * Citations configuration for fetched documents. Citations are disabled by
3144
+ * default.
3145
+ */
3146
+ citations?: BetaCitationsConfigParam | null;
3147
+
3148
+ /**
3149
+ * If true, tool will not be included in initial system prompt. Only loaded when
3150
+ * returned via tool_reference from tool search.
3151
+ */
3152
+ defer_loading?: boolean;
3153
+
3154
+ /**
3155
+ * Maximum number of tokens used by including web page text content in the context.
3156
+ * The limit is approximate and does not apply to binary content such as PDFs.
3157
+ */
3158
+ max_content_tokens?: number | null;
3159
+
3160
+ /**
3161
+ * Maximum number of times the tool can be used in the API request.
3162
+ */
3163
+ max_uses?: number | null;
3164
+
3165
+ /**
3166
+ * When true, guarantees schema validation on tool names and inputs
3167
+ */
3168
+ strict?: boolean;
3169
+ }
3170
+
3171
+ export interface BetaWebFetchToolResultBlock {
3172
+ content: BetaWebFetchToolResultErrorBlock | BetaWebFetchBlock;
3173
+
3174
+ tool_use_id: string;
3175
+
3176
+ type: 'web_fetch_tool_result';
3177
+
3178
+ /**
3179
+ * Tool invocation directly from the model.
3180
+ */
3181
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
3182
+ }
3183
+
3184
+ export interface BetaWebFetchToolResultBlockParam {
3185
+ content: BetaWebFetchToolResultErrorBlockParam | BetaWebFetchBlockParam;
3186
+
3187
+ tool_use_id: string;
3188
+
3189
+ type: 'web_fetch_tool_result';
3190
+
3191
+ /**
3192
+ * Create a cache control breakpoint at this content block.
3193
+ */
3194
+ cache_control?: BetaCacheControlEphemeral | null;
3195
+
3196
+ /**
3197
+ * Tool invocation directly from the model.
3198
+ */
3199
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
3200
+ }
3201
+
3202
+ export interface BetaWebFetchToolResultErrorBlock {
3203
+ error_code: BetaWebFetchToolResultErrorCode;
3204
+
3205
+ type: 'web_fetch_tool_result_error';
3206
+ }
3207
+
3208
+ export interface BetaWebFetchToolResultErrorBlockParam {
3209
+ error_code: BetaWebFetchToolResultErrorCode;
3210
+
3211
+ type: 'web_fetch_tool_result_error';
3212
+ }
3213
+
3214
+ export type BetaWebFetchToolResultErrorCode =
3215
+ | 'invalid_tool_input'
3216
+ | 'url_too_long'
3217
+ | 'url_not_allowed'
3218
+ | 'url_not_accessible'
3219
+ | 'unsupported_content_type'
3220
+ | 'too_many_requests'
3221
+ | 'max_uses_exceeded'
3222
+ | 'unavailable';
3223
+
3224
+ export interface BetaWebSearchResultBlock {
3225
+ encrypted_content: string;
3226
+
3227
+ page_age: string | null;
3228
+
3229
+ title: string;
3230
+
3231
+ type: 'web_search_result';
3232
+
3233
+ url: string;
3234
+ }
3235
+
3236
+ export interface BetaWebSearchResultBlockParam {
3237
+ encrypted_content: string;
3238
+
3239
+ title: string;
3240
+
3241
+ type: 'web_search_result';
3242
+
3243
+ url: string;
3244
+
3245
+ page_age?: string | null;
3246
+ }
3247
+
3248
+ export interface BetaWebSearchTool20250305 {
3249
+ /**
3250
+ * Name of the tool.
3251
+ *
3252
+ * This is how the tool will be called by the model and in `tool_use` blocks.
3253
+ */
3254
+ name: 'web_search';
3255
+
3256
+ type: 'web_search_20250305';
3257
+
3258
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3259
+
3260
+ /**
3261
+ * If provided, only these domains will be included in results. Cannot be used
3262
+ * alongside `blocked_domains`.
3263
+ */
3264
+ allowed_domains?: Array<string> | null;
3265
+
3266
+ /**
3267
+ * If provided, these domains will never appear in results. Cannot be used
3268
+ * alongside `allowed_domains`.
3269
+ */
3270
+ blocked_domains?: Array<string> | null;
3271
+
3272
+ /**
3273
+ * Create a cache control breakpoint at this content block.
3274
+ */
3275
+ cache_control?: BetaCacheControlEphemeral | null;
3276
+
3277
+ /**
3278
+ * If true, tool will not be included in initial system prompt. Only loaded when
3279
+ * returned via tool_reference from tool search.
3280
+ */
3281
+ defer_loading?: boolean;
3282
+
3283
+ /**
3284
+ * Maximum number of times the tool can be used in the API request.
3285
+ */
3286
+ max_uses?: number | null;
3287
+
3288
+ /**
3289
+ * When true, guarantees schema validation on tool names and inputs
3290
+ */
3291
+ strict?: boolean;
3292
+
3293
+ /**
3294
+ * Parameters for the user's location. Used to provide more relevant search
3295
+ * results.
3296
+ */
3297
+ user_location?: BetaUserLocation | null;
3298
+ }
3299
+
3300
+ export interface BetaWebSearchTool20260209 {
3301
+ /**
3302
+ * Name of the tool.
3303
+ *
3304
+ * This is how the tool will be called by the model and in `tool_use` blocks.
3305
+ */
3306
+ name: 'web_search';
3307
+
3308
+ type: 'web_search_20260209';
3309
+
3310
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3311
+
3312
+ /**
3313
+ * If provided, only these domains will be included in results. Cannot be used
3314
+ * alongside `blocked_domains`.
3315
+ */
3316
+ allowed_domains?: Array<string> | null;
3317
+
3318
+ /**
3319
+ * If provided, these domains will never appear in results. Cannot be used
3320
+ * alongside `allowed_domains`.
3321
+ */
3322
+ blocked_domains?: Array<string> | null;
3323
+
3324
+ /**
3325
+ * Create a cache control breakpoint at this content block.
3326
+ */
3327
+ cache_control?: BetaCacheControlEphemeral | null;
3328
+
3329
+ /**
3330
+ * If true, tool will not be included in initial system prompt. Only loaded when
3331
+ * returned via tool_reference from tool search.
3332
+ */
3333
+ defer_loading?: boolean;
3334
+
3335
+ /**
3336
+ * Maximum number of times the tool can be used in the API request.
3337
+ */
3338
+ max_uses?: number | null;
3339
+
3340
+ /**
3341
+ * When true, guarantees schema validation on tool names and inputs
3342
+ */
3343
+ strict?: boolean;
3344
+
3345
+ /**
3346
+ * Parameters for the user's location. Used to provide more relevant search
3347
+ * results.
3348
+ */
3349
+ user_location?: BetaUserLocation | null;
3350
+ }
3351
+
3352
+ export interface BetaWebSearchToolRequestError {
3353
+ error_code: BetaWebSearchToolResultErrorCode;
3354
+
3355
+ type: 'web_search_tool_result_error';
3356
+ }
3357
+
3358
+ export interface BetaWebSearchToolResultBlock {
3359
+ content: BetaWebSearchToolResultBlockContent;
3360
+
3361
+ tool_use_id: string;
3362
+
3363
+ type: 'web_search_tool_result';
3364
+
3365
+ /**
3366
+ * Tool invocation directly from the model.
3367
+ */
3368
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
3369
+ }
3370
+
3371
+ export type BetaWebSearchToolResultBlockContent =
3372
+ | BetaWebSearchToolResultError
3373
+ | Array<BetaWebSearchResultBlock>;
3374
+
3375
+ export interface BetaWebSearchToolResultBlockParam {
3376
+ content: BetaWebSearchToolResultBlockParamContent;
3377
+
3378
+ tool_use_id: string;
3379
+
3380
+ type: 'web_search_tool_result';
3381
+
3382
+ /**
3383
+ * Create a cache control breakpoint at this content block.
3384
+ */
3385
+ cache_control?: BetaCacheControlEphemeral | null;
3386
+
3387
+ /**
3388
+ * Tool invocation directly from the model.
3389
+ */
3390
+ caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
3391
+ }
3392
+
3393
+ export type BetaWebSearchToolResultBlockParamContent =
3394
+ | Array<BetaWebSearchResultBlockParam>
3395
+ | BetaWebSearchToolRequestError;
3396
+
3397
+ export interface BetaWebSearchToolResultError {
3398
+ error_code: BetaWebSearchToolResultErrorCode;
3399
+
3400
+ type: 'web_search_tool_result_error';
3401
+ }
3402
+
3403
+ export type BetaWebSearchToolResultErrorCode =
3404
+ | 'invalid_tool_input'
3405
+ | 'unavailable'
3406
+ | 'max_uses_exceeded'
3407
+ | 'too_many_requests'
3408
+ | 'query_too_long'
3409
+ | 'request_too_large';
3410
+
3411
+ /**
3412
+ * @deprecated BetaRequestDocumentBlock should be used insated
3413
+ */
3414
+ export type BetaBase64PDFBlock = BetaRequestDocumentBlock;
3415
+
3416
+ export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
3417
+
3418
+ export interface MessageCreateParamsBase {
3419
+ /**
3420
+ * Body param: The maximum number of tokens to generate before stopping.
3421
+ *
3422
+ * Note that our models may stop _before_ reaching this maximum. This parameter
3423
+ * only specifies the absolute maximum number of tokens to generate.
3424
+ *
3425
+ * Different models have different maximum values for this parameter. See
3426
+ * [models](https://docs.claude.com/en/docs/models-overview) for details.
3427
+ */
3428
+ max_tokens: number;
3429
+
3430
+ /**
3431
+ * Body param: Input messages.
3432
+ *
3433
+ * Our models are trained to operate on alternating `user` and `assistant`
3434
+ * conversational turns. When creating a new `Message`, you specify the prior
3435
+ * conversational turns with the `messages` parameter, and the model then generates
3436
+ * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
3437
+ * in your request will be combined into a single turn.
3438
+ *
3439
+ * Each input message must be an object with a `role` and `content`. You can
3440
+ * specify a single `user`-role message, or you can include multiple `user` and
3441
+ * `assistant` messages.
3442
+ *
3443
+ * If the final message uses the `assistant` role, the response content will
3444
+ * continue immediately from the content in that message. This can be used to
3445
+ * constrain part of the model's response.
3446
+ *
3447
+ * Example with a single `user` message:
3448
+ *
3449
+ * ```json
3450
+ * [{ "role": "user", "content": "Hello, Claude" }]
3451
+ * ```
3452
+ *
3453
+ * Example with multiple conversational turns:
3454
+ *
3455
+ * ```json
3456
+ * [
3457
+ * { "role": "user", "content": "Hello there." },
3458
+ * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
3459
+ * { "role": "user", "content": "Can you explain LLMs in plain English?" }
3460
+ * ]
3461
+ * ```
3462
+ *
3463
+ * Example with a partially-filled response from Claude:
3464
+ *
3465
+ * ```json
3466
+ * [
3467
+ * {
3468
+ * "role": "user",
3469
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
3470
+ * },
3471
+ * { "role": "assistant", "content": "The best answer is (" }
3472
+ * ]
3473
+ * ```
3474
+ *
3475
+ * Each input message `content` may be either a single `string` or an array of
3476
+ * content blocks, where each block has a specific `type`. Using a `string` for
3477
+ * `content` is shorthand for an array of one content block of type `"text"`. The
3478
+ * following input messages are equivalent:
3479
+ *
3480
+ * ```json
3481
+ * { "role": "user", "content": "Hello, Claude" }
3482
+ * ```
3483
+ *
3484
+ * ```json
3485
+ * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
3486
+ * ```
3487
+ *
3488
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
3489
+ *
3490
+ * Note that if you want to include a
3491
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
3492
+ * top-level `system` parameter — there is no `"system"` role for input messages in
3493
+ * the Messages API.
3494
+ *
3495
+ * There is a limit of 100,000 messages in a single request.
3496
+ */
3497
+ messages: Array<BetaMessageParam>;
3498
+
3499
+ /**
3500
+ * Body param: The model that will complete your prompt.\n\nSee
3501
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
3502
+ * details and options.
3503
+ */
3504
+ model: MessagesAPI.Model;
3505
+
3506
+ /**
3507
+ * Body param: Container identifier for reuse across requests.
3508
+ */
3509
+ container?: BetaContainerParams | string | null;
3510
+
3511
+ /**
3512
+ * Body param: Context management configuration.
3513
+ *
3514
+ * This allows you to control how Claude manages context across multiple requests,
3515
+ * such as whether to clear function results or not.
3516
+ */
3517
+ context_management?: BetaContextManagementConfig | null;
3518
+
3519
+ /**
3520
+ * Body param: Specifies the geographic region for inference processing. If not
3521
+ * specified, the workspace's `default_inference_geo` is used.
3522
+ */
3523
+ inference_geo?: string | null;
3524
+
3525
+ /**
3526
+ * Body param: MCP servers to be utilized in this request
3527
+ */
3528
+ mcp_servers?: Array<BetaRequestMCPServerURLDefinition>;
3529
+
3530
+ /**
3531
+ * Body param: An object describing metadata about the request.
3532
+ */
3533
+ metadata?: BetaMetadata;
3534
+
3535
+ /**
3536
+ * Body param: Configuration options for the model's output, such as the output
3537
+ * format.
3538
+ */
3539
+ output_config?: BetaOutputConfig;
3540
+
3541
+ /**
3542
+ * Body param: Deprecated: Use `output_config.format` instead. See
3543
+ * [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
3544
+ *
3545
+ * A schema to specify Claude's output format in responses. This parameter will be
3546
+ * removed in a future release.
3547
+ */
3548
+ output_format?: BetaJSONOutputFormat | null;
3549
+
3550
+ /**
3551
+ * Body param: Determines whether to use priority capacity (if available) or
3552
+ * standard capacity for this request.
3553
+ *
3554
+ * Anthropic offers different levels of service for your API requests. See
3555
+ * [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
3556
+ */
3557
+ service_tier?: 'auto' | 'standard_only';
3558
+
3559
+ /**
3560
+ * Body param: The inference speed mode for this request. `"fast"` enables high
3561
+ * output-tokens-per-second inference.
3562
+ */
3563
+ speed?: 'standard' | 'fast' | null;
3564
+
3565
+ /**
3566
+ * Body param: Custom text sequences that will cause the model to stop generating.
3567
+ *
3568
+ * Our models will normally stop when they have naturally completed their turn,
3569
+ * which will result in a response `stop_reason` of `"end_turn"`.
3570
+ *
3571
+ * If you want the model to stop generating when it encounters custom strings of
3572
+ * text, you can use the `stop_sequences` parameter. If the model encounters one of
3573
+ * the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
3574
+ * and the response `stop_sequence` value will contain the matched stop sequence.
3575
+ */
3576
+ stop_sequences?: Array<string>;
3577
+
3578
+ /**
3579
+ * Body param: Whether to incrementally stream the response using server-sent
3580
+ * events.
3581
+ *
3582
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
3583
+ */
3584
+ stream?: boolean;
3585
+
3586
+ /**
3587
+ * Body param: System prompt.
3588
+ *
3589
+ * A system prompt is a way of providing context and instructions to Claude, such
3590
+ * as specifying a particular goal or role. See our
3591
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
3592
+ */
3593
+ system?: string | Array<BetaTextBlockParam>;
3594
+
3595
+ /**
3596
+ * Body param: Amount of randomness injected into the response.
3597
+ *
3598
+ * Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
3599
+ * for analytical / multiple choice, and closer to `1.0` for creative and
3600
+ * generative tasks.
3601
+ *
3602
+ * Note that even with `temperature` of `0.0`, the results will not be fully
3603
+ * deterministic.
3604
+ */
3605
+ temperature?: number;
3606
+
3607
+ /**
3608
+ * Body param: Configuration for enabling Claude's extended thinking.
3609
+ *
3610
+ * When enabled, responses include `thinking` content blocks showing Claude's
3611
+ * thinking process before the final answer. Requires a minimum budget of 1,024
3612
+ * tokens and counts towards your `max_tokens` limit.
3613
+ *
3614
+ * See
3615
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
3616
+ * for details.
3617
+ */
3618
+ thinking?: BetaThinkingConfigParam;
3619
+
3620
+ /**
3621
+ * Body param: How the model should use the provided tools. The model can use a
3622
+ * specific tool, any available tool, decide by itself, or not use tools at all.
3623
+ */
3624
+ tool_choice?: BetaToolChoice;
3625
+
3626
+ /**
3627
+ * Body param: Definitions of tools that the model may use.
3628
+ *
3629
+ * If you include `tools` in your API request, the model may return `tool_use`
3630
+ * content blocks that represent the model's use of those tools. You can then run
3631
+ * those tools using the tool input generated by the model and then optionally
3632
+ * return results back to the model using `tool_result` content blocks.
3633
+ *
3634
+ * There are two types of tools: **client tools** and **server tools**. The
3635
+ * behavior described below applies to client tools. For
3636
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
3637
+ * see their individual documentation as each has its own behavior (e.g., the
3638
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
3639
+ *
3640
+ * Each tool definition includes:
3641
+ *
3642
+ * - `name`: Name of the tool.
3643
+ * - `description`: Optional, but strongly-recommended description of the tool.
3644
+ * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
3645
+ * tool `input` shape that the model will produce in `tool_use` output content
3646
+ * blocks.
3647
+ *
3648
+ * For example, if you defined `tools` as:
3649
+ *
3650
+ * ```json
3651
+ * [
3652
+ * {
3653
+ * "name": "get_stock_price",
3654
+ * "description": "Get the current stock price for a given ticker symbol.",
3655
+ * "input_schema": {
3656
+ * "type": "object",
3657
+ * "properties": {
3658
+ * "ticker": {
3659
+ * "type": "string",
3660
+ * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
3661
+ * }
3662
+ * },
3663
+ * "required": ["ticker"]
3664
+ * }
3665
+ * }
3666
+ * ]
3667
+ * ```
3668
+ *
3669
+ * And then asked the model "What's the S&P 500 at today?", the model might produce
3670
+ * `tool_use` content blocks in the response like this:
3671
+ *
3672
+ * ```json
3673
+ * [
3674
+ * {
3675
+ * "type": "tool_use",
3676
+ * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3677
+ * "name": "get_stock_price",
3678
+ * "input": { "ticker": "^GSPC" }
3679
+ * }
3680
+ * ]
3681
+ * ```
3682
+ *
3683
+ * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
3684
+ * input, and return the following back to the model in a subsequent `user`
3685
+ * message:
3686
+ *
3687
+ * ```json
3688
+ * [
3689
+ * {
3690
+ * "type": "tool_result",
3691
+ * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3692
+ * "content": "259.75 USD"
3693
+ * }
3694
+ * ]
3695
+ * ```
3696
+ *
3697
+ * Tools can be used for workflows that include running client-side tools and
3698
+ * functions, or more generally whenever you want the model to produce a particular
3699
+ * JSON structure of output.
3700
+ *
3701
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
3702
+ */
3703
+ tools?: Array<BetaToolUnion>;
3704
+
3705
+ /**
3706
+ * Body param: Only sample from the top K options for each subsequent token.
3707
+ *
3708
+ * Used to remove "long tail" low probability responses.
3709
+ * [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
3710
+ *
3711
+ * Recommended for advanced use cases only. You usually only need to use
3712
+ * `temperature`.
3713
+ */
3714
+ top_k?: number;
3715
+
3716
+ /**
3717
+ * Body param: Use nucleus sampling.
3718
+ *
3719
+ * In nucleus sampling, we compute the cumulative distribution over all the options
3720
+ * for each subsequent token in decreasing probability order and cut it off once it
3721
+ * reaches a particular probability specified by `top_p`. You should either alter
3722
+ * `temperature` or `top_p`, but not both.
3723
+ *
3724
+ * Recommended for advanced use cases only. You usually only need to use
3725
+ * `temperature`.
3726
+ */
3727
+ top_p?: number;
3728
+
3729
+ /**
3730
+ * Header param: Optional header to specify the beta version(s) you want to use.
3731
+ */
3732
+ betas?: Array<BetaAPI.AnthropicBeta>;
3733
+ }
3734
+
3735
+ export namespace MessageCreateParams {
3736
+ export type MessageCreateParamsNonStreaming = MessagesMessagesAPI.MessageCreateParamsNonStreaming;
3737
+ export type MessageCreateParamsStreaming = MessagesMessagesAPI.MessageCreateParamsStreaming;
3738
+ }
3739
+
3740
+ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
3741
+ /**
3742
+ * Body param: Whether to incrementally stream the response using server-sent
3743
+ * events.
3744
+ *
3745
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
3746
+ */
3747
+ stream?: false;
3748
+ }
3749
+
3750
+ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
3751
+ /**
3752
+ * Body param: Whether to incrementally stream the response using server-sent
3753
+ * events.
3754
+ *
3755
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
3756
+ */
3757
+ stream: true;
3758
+ }
3759
+
3760
+ export interface MessageCountTokensParams {
3761
+ /**
3762
+ * Body param: Input messages.
3763
+ *
3764
+ * Our models are trained to operate on alternating `user` and `assistant`
3765
+ * conversational turns. When creating a new `Message`, you specify the prior
3766
+ * conversational turns with the `messages` parameter, and the model then generates
3767
+ * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
3768
+ * in your request will be combined into a single turn.
3769
+ *
3770
+ * Each input message must be an object with a `role` and `content`. You can
3771
+ * specify a single `user`-role message, or you can include multiple `user` and
3772
+ * `assistant` messages.
3773
+ *
3774
+ * If the final message uses the `assistant` role, the response content will
3775
+ * continue immediately from the content in that message. This can be used to
3776
+ * constrain part of the model's response.
3777
+ *
3778
+ * Example with a single `user` message:
3779
+ *
3780
+ * ```json
3781
+ * [{ "role": "user", "content": "Hello, Claude" }]
3782
+ * ```
3783
+ *
3784
+ * Example with multiple conversational turns:
3785
+ *
3786
+ * ```json
3787
+ * [
3788
+ * { "role": "user", "content": "Hello there." },
3789
+ * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
3790
+ * { "role": "user", "content": "Can you explain LLMs in plain English?" }
3791
+ * ]
3792
+ * ```
3793
+ *
3794
+ * Example with a partially-filled response from Claude:
3795
+ *
3796
+ * ```json
3797
+ * [
3798
+ * {
3799
+ * "role": "user",
3800
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
3801
+ * },
3802
+ * { "role": "assistant", "content": "The best answer is (" }
3803
+ * ]
3804
+ * ```
3805
+ *
3806
+ * Each input message `content` may be either a single `string` or an array of
3807
+ * content blocks, where each block has a specific `type`. Using a `string` for
3808
+ * `content` is shorthand for an array of one content block of type `"text"`. The
3809
+ * following input messages are equivalent:
3810
+ *
3811
+ * ```json
3812
+ * { "role": "user", "content": "Hello, Claude" }
3813
+ * ```
3814
+ *
3815
+ * ```json
3816
+ * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
3817
+ * ```
3818
+ *
3819
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
3820
+ *
3821
+ * Note that if you want to include a
3822
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
3823
+ * top-level `system` parameter — there is no `"system"` role for input messages in
3824
+ * the Messages API.
3825
+ *
3826
+ * There is a limit of 100,000 messages in a single request.
3827
+ */
3828
+ messages: Array<BetaMessageParam>;
3829
+
3830
+ /**
3831
+ * Body param: The model that will complete your prompt.\n\nSee
3832
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
3833
+ * details and options.
3834
+ */
3835
+ model: MessagesAPI.Model;
3836
+
3837
+ /**
3838
+ * Body param: Context management configuration.
3839
+ *
3840
+ * This allows you to control how Claude manages context across multiple requests,
3841
+ * such as whether to clear function results or not.
3842
+ */
3843
+ context_management?: BetaContextManagementConfig | null;
3844
+
3845
+ /**
3846
+ * Body param: MCP servers to be utilized in this request
3847
+ */
3848
+ mcp_servers?: Array<BetaRequestMCPServerURLDefinition>;
3849
+
3850
+ /**
3851
+ * Body param: Configuration options for the model's output, such as the output
3852
+ * format.
3853
+ */
3854
+ output_config?: BetaOutputConfig;
3855
+
3856
+ /**
3857
+ * Body param: Deprecated: Use `output_config.format` instead. See
3858
+ * [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
3859
+ *
3860
+ * A schema to specify Claude's output format in responses. This parameter will be
3861
+ * removed in a future release.
3862
+ */
3863
+ output_format?: BetaJSONOutputFormat | null;
3864
+
3865
+ /**
3866
+ * Body param: The inference speed mode for this request. `"fast"` enables high
3867
+ * output-tokens-per-second inference.
3868
+ */
3869
+ speed?: 'standard' | 'fast' | null;
3870
+
3871
+ /**
3872
+ * Body param: System prompt.
3873
+ *
3874
+ * A system prompt is a way of providing context and instructions to Claude, such
3875
+ * as specifying a particular goal or role. See our
3876
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
3877
+ */
3878
+ system?: string | Array<BetaTextBlockParam>;
3879
+
3880
+ /**
3881
+ * Body param: Configuration for enabling Claude's extended thinking.
3882
+ *
3883
+ * When enabled, responses include `thinking` content blocks showing Claude's
3884
+ * thinking process before the final answer. Requires a minimum budget of 1,024
3885
+ * tokens and counts towards your `max_tokens` limit.
3886
+ *
3887
+ * See
3888
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
3889
+ * for details.
3890
+ */
3891
+ thinking?: BetaThinkingConfigParam;
3892
+
3893
+ /**
3894
+ * Body param: How the model should use the provided tools. The model can use a
3895
+ * specific tool, any available tool, decide by itself, or not use tools at all.
3896
+ */
3897
+ tool_choice?: BetaToolChoice;
3898
+
3899
+ /**
3900
+ * Body param: Definitions of tools that the model may use.
3901
+ *
3902
+ * If you include `tools` in your API request, the model may return `tool_use`
3903
+ * content blocks that represent the model's use of those tools. You can then run
3904
+ * those tools using the tool input generated by the model and then optionally
3905
+ * return results back to the model using `tool_result` content blocks.
3906
+ *
3907
+ * There are two types of tools: **client tools** and **server tools**. The
3908
+ * behavior described below applies to client tools. For
3909
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
3910
+ * see their individual documentation as each has its own behavior (e.g., the
3911
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
3912
+ *
3913
+ * Each tool definition includes:
3914
+ *
3915
+ * - `name`: Name of the tool.
3916
+ * - `description`: Optional, but strongly-recommended description of the tool.
3917
+ * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
3918
+ * tool `input` shape that the model will produce in `tool_use` output content
3919
+ * blocks.
3920
+ *
3921
+ * For example, if you defined `tools` as:
3922
+ *
3923
+ * ```json
3924
+ * [
3925
+ * {
3926
+ * "name": "get_stock_price",
3927
+ * "description": "Get the current stock price for a given ticker symbol.",
3928
+ * "input_schema": {
3929
+ * "type": "object",
3930
+ * "properties": {
3931
+ * "ticker": {
3932
+ * "type": "string",
3933
+ * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
3934
+ * }
3935
+ * },
3936
+ * "required": ["ticker"]
3937
+ * }
3938
+ * }
3939
+ * ]
3940
+ * ```
3941
+ *
3942
+ * And then asked the model "What's the S&P 500 at today?", the model might produce
3943
+ * `tool_use` content blocks in the response like this:
3944
+ *
3945
+ * ```json
3946
+ * [
3947
+ * {
3948
+ * "type": "tool_use",
3949
+ * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3950
+ * "name": "get_stock_price",
3951
+ * "input": { "ticker": "^GSPC" }
3952
+ * }
3953
+ * ]
3954
+ * ```
3955
+ *
3956
+ * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
3957
+ * input, and return the following back to the model in a subsequent `user`
3958
+ * message:
3959
+ *
3960
+ * ```json
3961
+ * [
3962
+ * {
3963
+ * "type": "tool_result",
3964
+ * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3965
+ * "content": "259.75 USD"
3966
+ * }
3967
+ * ]
3968
+ * ```
3969
+ *
3970
+ * Tools can be used for workflows that include running client-side tools and
3971
+ * functions, or more generally whenever you want the model to produce a particular
3972
+ * JSON structure of output.
3973
+ *
3974
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
3975
+ */
3976
+ tools?: Array<
3977
+ | BetaTool
3978
+ | BetaToolBash20241022
3979
+ | BetaToolBash20250124
3980
+ | BetaCodeExecutionTool20250522
3981
+ | BetaCodeExecutionTool20250825
3982
+ | BetaCodeExecutionTool20260120
3983
+ | BetaToolComputerUse20241022
3984
+ | BetaMemoryTool20250818
3985
+ | BetaToolComputerUse20250124
3986
+ | BetaToolTextEditor20241022
3987
+ | BetaToolComputerUse20251124
3988
+ | BetaToolTextEditor20250124
3989
+ | BetaToolTextEditor20250429
3990
+ | BetaToolTextEditor20250728
3991
+ | BetaWebSearchTool20250305
3992
+ | BetaWebFetchTool20250910
3993
+ | BetaWebSearchTool20260209
3994
+ | BetaWebFetchTool20260209
3995
+ | BetaToolSearchToolBm25_20251119
3996
+ | BetaToolSearchToolRegex20251119
3997
+ | BetaMCPToolset
3998
+ >;
3999
+
4000
+ /**
4001
+ * Header param: Optional header to specify the beta version(s) you want to use.
4002
+ */
4003
+ betas?: Array<BetaAPI.AnthropicBeta>;
4004
+ }
4005
+
4006
+ export { BetaToolRunner, type BetaToolRunnerParams } from '../../../lib/tools/BetaToolRunner';
4007
+ export { ToolError } from '../../../lib/tools/ToolError';
4008
+
4009
+ Messages.Batches = Batches;
4010
+
4011
+ Messages.BetaToolRunner = BetaToolRunner;
4012
+ Messages.ToolError = ToolError;
4013
+
4014
+ export declare namespace Messages {
4015
+ export {
4016
+ type BetaAllThinkingTurns as BetaAllThinkingTurns,
4017
+ type BetaBase64ImageSource as BetaBase64ImageSource,
4018
+ type BetaBase64PDFSource as BetaBase64PDFSource,
4019
+ type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock,
4020
+ type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam,
4021
+ type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock,
4022
+ type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam,
4023
+ type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock,
4024
+ type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam,
4025
+ type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError,
4026
+ type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam,
4027
+ type BetaCacheControlEphemeral as BetaCacheControlEphemeral,
4028
+ type BetaCacheCreation as BetaCacheCreation,
4029
+ type BetaCitationCharLocation as BetaCitationCharLocation,
4030
+ type BetaCitationCharLocationParam as BetaCitationCharLocationParam,
4031
+ type BetaCitationConfig as BetaCitationConfig,
4032
+ type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation,
4033
+ type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam,
4034
+ type BetaCitationPageLocation as BetaCitationPageLocation,
4035
+ type BetaCitationPageLocationParam as BetaCitationPageLocationParam,
4036
+ type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation,
4037
+ type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam,
4038
+ type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam,
4039
+ type BetaCitationsConfigParam as BetaCitationsConfigParam,
4040
+ type BetaCitationsDelta as BetaCitationsDelta,
4041
+ type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation,
4042
+ type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit,
4043
+ type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse,
4044
+ type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit,
4045
+ type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse,
4046
+ type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock,
4047
+ type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam,
4048
+ type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock,
4049
+ type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam,
4050
+ type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522,
4051
+ type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825,
4052
+ type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120,
4053
+ type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock,
4054
+ type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent,
4055
+ type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam,
4056
+ type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent,
4057
+ type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError,
4058
+ type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode,
4059
+ type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam,
4060
+ type BetaCompact20260112Edit as BetaCompact20260112Edit,
4061
+ type BetaCompactionBlock as BetaCompactionBlock,
4062
+ type BetaCompactionBlockParam as BetaCompactionBlockParam,
4063
+ type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta,
4064
+ type BetaCompactionIterationUsage as BetaCompactionIterationUsage,
4065
+ type BetaContainer as BetaContainer,
4066
+ type BetaContainerParams as BetaContainerParams,
4067
+ type BetaContainerUploadBlock as BetaContainerUploadBlock,
4068
+ type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam,
4069
+ type BetaContentBlock as BetaContentBlock,
4070
+ type BetaContentBlockParam as BetaContentBlockParam,
4071
+ type BetaContentBlockSource as BetaContentBlockSource,
4072
+ type BetaContentBlockSourceContent as BetaContentBlockSourceContent,
4073
+ type BetaContextManagementConfig as BetaContextManagementConfig,
4074
+ type BetaContextManagementResponse as BetaContextManagementResponse,
4075
+ type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse,
4076
+ type BetaDirectCaller as BetaDirectCaller,
4077
+ type BetaDocumentBlock as BetaDocumentBlock,
4078
+ type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock,
4079
+ type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam,
4080
+ type BetaFileDocumentSource as BetaFileDocumentSource,
4081
+ type BetaFileImageSource as BetaFileImageSource,
4082
+ type BetaImageBlockParam as BetaImageBlockParam,
4083
+ type BetaInputJSONDelta as BetaInputJSONDelta,
4084
+ type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast,
4085
+ type BetaInputTokensTrigger as BetaInputTokensTrigger,
4086
+ type BetaIterationsUsage as BetaIterationsUsage,
4087
+ type BetaJSONOutputFormat as BetaJSONOutputFormat,
4088
+ type BetaMCPToolConfig as BetaMCPToolConfig,
4089
+ type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig,
4090
+ type BetaMCPToolResultBlock as BetaMCPToolResultBlock,
4091
+ type BetaMCPToolUseBlock as BetaMCPToolUseBlock,
4092
+ type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam,
4093
+ type BetaMCPToolset as BetaMCPToolset,
4094
+ type BetaMemoryTool20250818 as BetaMemoryTool20250818,
4095
+ type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command,
4096
+ type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand,
4097
+ type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand,
4098
+ type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand,
4099
+ type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand,
4100
+ type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand,
4101
+ type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand,
4102
+ type BetaMessage as BetaMessage,
4103
+ type BetaMessageDeltaUsage as BetaMessageDeltaUsage,
4104
+ type BetaMessageIterationUsage as BetaMessageIterationUsage,
4105
+ type BetaMessageParam as BetaMessageParam,
4106
+ type BetaMessageTokensCount as BetaMessageTokensCount,
4107
+ type BetaMetadata as BetaMetadata,
4108
+ type BetaOutputConfig as BetaOutputConfig,
4109
+ type BetaPlainTextSource as BetaPlainTextSource,
4110
+ type BetaRawContentBlockDelta as BetaRawContentBlockDelta,
4111
+ type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent,
4112
+ type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent,
4113
+ type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent,
4114
+ type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent,
4115
+ type BetaRawMessageStartEvent as BetaRawMessageStartEvent,
4116
+ type BetaRawMessageStopEvent as BetaRawMessageStopEvent,
4117
+ type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent,
4118
+ type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock,
4119
+ type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam,
4120
+ type BetaRequestDocumentBlock as BetaRequestDocumentBlock,
4121
+ type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration,
4122
+ type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition,
4123
+ type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam,
4124
+ type BetaSearchResultBlockParam as BetaSearchResultBlockParam,
4125
+ type BetaServerToolCaller as BetaServerToolCaller,
4126
+ type BetaServerToolCaller20260120 as BetaServerToolCaller20260120,
4127
+ type BetaServerToolUsage as BetaServerToolUsage,
4128
+ type BetaServerToolUseBlock as BetaServerToolUseBlock,
4129
+ type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam,
4130
+ type BetaSignatureDelta as BetaSignatureDelta,
4131
+ type BetaSkill as BetaSkill,
4132
+ type BetaSkillParams as BetaSkillParams,
4133
+ type BetaStopReason as BetaStopReason,
4134
+ type BetaTextBlock as BetaTextBlock,
4135
+ type BetaTextBlockParam as BetaTextBlockParam,
4136
+ type BetaTextCitation as BetaTextCitation,
4137
+ type BetaTextCitationParam as BetaTextCitationParam,
4138
+ type BetaTextDelta as BetaTextDelta,
4139
+ type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock,
4140
+ type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam,
4141
+ type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock,
4142
+ type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam,
4143
+ type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock,
4144
+ type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam,
4145
+ type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError,
4146
+ type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam,
4147
+ type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock,
4148
+ type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam,
4149
+ type BetaThinkingBlock as BetaThinkingBlock,
4150
+ type BetaThinkingBlockParam as BetaThinkingBlockParam,
4151
+ type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive,
4152
+ type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled,
4153
+ type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled,
4154
+ type BetaThinkingConfigParam as BetaThinkingConfigParam,
4155
+ type BetaThinkingDelta as BetaThinkingDelta,
4156
+ type BetaThinkingTurns as BetaThinkingTurns,
4157
+ type BetaTool as BetaTool,
4158
+ type BetaToolBash20241022 as BetaToolBash20241022,
4159
+ type BetaToolBash20250124 as BetaToolBash20250124,
4160
+ type BetaToolChoice as BetaToolChoice,
4161
+ type BetaToolChoiceAny as BetaToolChoiceAny,
4162
+ type BetaToolChoiceAuto as BetaToolChoiceAuto,
4163
+ type BetaToolChoiceNone as BetaToolChoiceNone,
4164
+ type BetaToolChoiceTool as BetaToolChoiceTool,
4165
+ type BetaToolComputerUse20241022 as BetaToolComputerUse20241022,
4166
+ type BetaToolComputerUse20250124 as BetaToolComputerUse20250124,
4167
+ type BetaToolComputerUse20251124 as BetaToolComputerUse20251124,
4168
+ type BetaToolReferenceBlock as BetaToolReferenceBlock,
4169
+ type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam,
4170
+ type BetaToolResultBlockParam as BetaToolResultBlockParam,
4171
+ type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam,
4172
+ type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119,
4173
+ type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119,
4174
+ type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock,
4175
+ type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam,
4176
+ type BetaToolSearchToolResultError as BetaToolSearchToolResultError,
4177
+ type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam,
4178
+ type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock,
4179
+ type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam,
4180
+ type BetaToolTextEditor20241022 as BetaToolTextEditor20241022,
4181
+ type BetaToolTextEditor20250124 as BetaToolTextEditor20250124,
4182
+ type BetaToolTextEditor20250429 as BetaToolTextEditor20250429,
4183
+ type BetaToolTextEditor20250728 as BetaToolTextEditor20250728,
4184
+ type BetaToolUnion as BetaToolUnion,
4185
+ type BetaToolUseBlock as BetaToolUseBlock,
4186
+ type BetaToolUseBlockParam as BetaToolUseBlockParam,
4187
+ type BetaToolUsesKeep as BetaToolUsesKeep,
4188
+ type BetaToolUsesTrigger as BetaToolUsesTrigger,
4189
+ type BetaURLImageSource as BetaURLImageSource,
4190
+ type BetaURLPDFSource as BetaURLPDFSource,
4191
+ type BetaUsage as BetaUsage,
4192
+ type BetaUserLocation as BetaUserLocation,
4193
+ type BetaWebFetchBlock as BetaWebFetchBlock,
4194
+ type BetaWebFetchBlockParam as BetaWebFetchBlockParam,
4195
+ type BetaWebFetchTool20250910 as BetaWebFetchTool20250910,
4196
+ type BetaWebFetchTool20260209 as BetaWebFetchTool20260209,
4197
+ type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock,
4198
+ type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam,
4199
+ type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock,
4200
+ type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam,
4201
+ type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode,
4202
+ type BetaWebSearchResultBlock as BetaWebSearchResultBlock,
4203
+ type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam,
4204
+ type BetaWebSearchTool20250305 as BetaWebSearchTool20250305,
4205
+ type BetaWebSearchTool20260209 as BetaWebSearchTool20260209,
4206
+ type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError,
4207
+ type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock,
4208
+ type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent,
4209
+ type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam,
4210
+ type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent,
4211
+ type BetaWebSearchToolResultError as BetaWebSearchToolResultError,
4212
+ type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode,
4213
+ type BetaBase64PDFBlock as BetaBase64PDFBlock,
4214
+ type MessageCreateParams as MessageCreateParams,
4215
+ type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
4216
+ type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
4217
+ type MessageCountTokensParams as MessageCountTokensParams,
4218
+ };
4219
+
4220
+ export { type BetaToolRunnerParams, BetaToolRunner };
4221
+ export { ToolError };
4222
+
4223
+ export {
4224
+ Batches as Batches,
4225
+ type BetaDeletedMessageBatch as BetaDeletedMessageBatch,
4226
+ type BetaMessageBatch as BetaMessageBatch,
4227
+ type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult,
4228
+ type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult,
4229
+ type BetaMessageBatchExpiredResult as BetaMessageBatchExpiredResult,
4230
+ type BetaMessageBatchIndividualResponse as BetaMessageBatchIndividualResponse,
4231
+ type BetaMessageBatchRequestCounts as BetaMessageBatchRequestCounts,
4232
+ type BetaMessageBatchResult as BetaMessageBatchResult,
4233
+ type BetaMessageBatchSucceededResult as BetaMessageBatchSucceededResult,
4234
+ type BetaMessageBatchesPage as BetaMessageBatchesPage,
4235
+ type BatchCreateParams as BatchCreateParams,
4236
+ type BatchRetrieveParams as BatchRetrieveParams,
4237
+ type BatchListParams as BatchListParams,
4238
+ type BatchDeleteParams as BatchDeleteParams,
4239
+ type BatchCancelParams as BatchCancelParams,
4240
+ type BatchResultsParams as BatchResultsParams,
4241
+ };
4242
+ }