@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,3261 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIPromise } from '../../core/api-promise';
4
+ import { APIResource } from '../../core/resource';
5
+ import { Stream } from '../../core/streaming';
6
+ import { buildHeaders } from '../../internal/headers';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { stainlessHelperHeader } from '../../lib/stainless-helper-header';
9
+ import { MessageStream } from '../../lib/MessageStream';
10
+ import {
11
+ parseMessage,
12
+ type ExtractParsedContentFromParams,
13
+ type ParseableMessageCreateParams,
14
+ type ParsedMessage,
15
+ } from '../../lib/parser';
16
+ import * as BatchesAPI from './batches';
17
+ import {
18
+ BatchCreateParams,
19
+ BatchListParams,
20
+ Batches,
21
+ DeletedMessageBatch,
22
+ MessageBatch,
23
+ MessageBatchCanceledResult,
24
+ MessageBatchErroredResult,
25
+ MessageBatchExpiredResult,
26
+ MessageBatchIndividualResponse,
27
+ MessageBatchRequestCounts,
28
+ MessageBatchResult,
29
+ MessageBatchSucceededResult,
30
+ MessageBatchesPage,
31
+ } from './batches';
32
+ import * as MessagesAPI from './messages';
33
+
34
+ import { MODEL_NONSTREAMING_TOKENS } from '../../internal/constants';
35
+
36
+ export class Messages extends APIResource {
37
+ batches: BatchesAPI.Batches = new BatchesAPI.Batches(this._client);
38
+
39
+ /**
40
+ * Send a structured list of input messages with text and/or image content, and the
41
+ * model will generate the next message in the conversation.
42
+ *
43
+ * The Messages API can be used for either single queries or stateless multi-turn
44
+ * conversations.
45
+ *
46
+ * Learn more about the Messages API in our
47
+ * [user guide](https://docs.claude.com/en/docs/initial-setup)
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const message = await client.messages.create({
52
+ * max_tokens: 1024,
53
+ * messages: [{ content: 'Hello, world', role: 'user' }],
54
+ * model: 'claude-opus-4-6',
55
+ * });
56
+ * ```
57
+ */
58
+ create(body: MessageCreateParamsNonStreaming, options?: RequestOptions): APIPromise<Message>;
59
+ create(
60
+ body: MessageCreateParamsStreaming,
61
+ options?: RequestOptions,
62
+ ): APIPromise<Stream<RawMessageStreamEvent>>;
63
+ create(
64
+ body: MessageCreateParamsBase,
65
+ options?: RequestOptions,
66
+ ): APIPromise<Stream<RawMessageStreamEvent> | Message>;
67
+ create(
68
+ body: MessageCreateParams,
69
+ options?: RequestOptions,
70
+ ): APIPromise<Message> | APIPromise<Stream<RawMessageStreamEvent>> {
71
+ if (body.model in DEPRECATED_MODELS) {
72
+ console.warn(
73
+ `The model '${body.model}' is deprecated and will reach end-of-life on ${
74
+ DEPRECATED_MODELS[body.model]
75
+ }\nPlease migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`,
76
+ );
77
+ }
78
+ if (
79
+ body.model in MODELS_TO_WARN_WITH_THINKING_ENABLED &&
80
+ body.thinking &&
81
+ body.thinking.type === 'enabled'
82
+ ) {
83
+ console.warn(
84
+ `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`,
85
+ );
86
+ }
87
+
88
+ let timeout = (this._client as any)._options.timeout as number | null;
89
+ if (!body.stream && timeout == null) {
90
+ const maxNonstreamingTokens = MODEL_NONSTREAMING_TOKENS[body.model] ?? undefined;
91
+ timeout = this._client.calculateNonstreamingTimeout(body.max_tokens, maxNonstreamingTokens);
92
+ }
93
+
94
+ // Collect helper info from tools and messages
95
+ const helperHeader = stainlessHelperHeader(body.tools, body.messages);
96
+
97
+ return this._client.post('/v1/messages', {
98
+ body,
99
+ timeout: timeout ?? 600000,
100
+ ...options,
101
+ headers: buildHeaders([helperHeader, options?.headers]),
102
+ stream: body.stream ?? false,
103
+ }) as APIPromise<Message> | APIPromise<Stream<RawMessageStreamEvent>>;
104
+ }
105
+
106
+ /**
107
+ * Send a structured list of input messages with text and/or image content, along with an expected `output_config.format` and
108
+ * the response will be automatically parsed and available in the `parsed_output` property of the message.
109
+ *
110
+ * @example
111
+ * ```ts
112
+ * const message = await client.messages.parse({
113
+ * model: 'claude-sonnet-4-5-20250929',
114
+ * max_tokens: 1024,
115
+ * messages: [{ role: 'user', content: 'What is 2+2?' }],
116
+ * output_config: {
117
+ * format: zodOutputFormat(z.object({ answer: z.number() })),
118
+ * },
119
+ * });
120
+ *
121
+ * console.log(message.parsed_output?.answer); // 4
122
+ * ```
123
+ */
124
+ parse<Params extends MessageCreateParamsNonStreaming>(
125
+ params: Params,
126
+ options?: RequestOptions,
127
+ ): APIPromise<ParsedMessage<ExtractParsedContentFromParams<Params>>> {
128
+ return this.create(params, options).then((message) =>
129
+ parseMessage(message, params, { logger: this._client.logger ?? console }),
130
+ ) as APIPromise<ParsedMessage<ExtractParsedContentFromParams<Params>>>;
131
+ }
132
+
133
+ /**
134
+ * Create a Message stream.
135
+ *
136
+ * If `output_config.format` is provided with a parseable format (like `zodOutputFormat()`),
137
+ * the final message will include a `parsed_output` property with the parsed content.
138
+ *
139
+ * @example
140
+ * ```ts
141
+ * const stream = client.messages.stream({
142
+ * model: 'claude-sonnet-4-5-20250929',
143
+ * max_tokens: 1024,
144
+ * messages: [{ role: 'user', content: 'What is 2+2?' }],
145
+ * output_config: {
146
+ * format: zodOutputFormat(z.object({ answer: z.number() })),
147
+ * },
148
+ * });
149
+ *
150
+ * const message = await stream.finalMessage();
151
+ * console.log(message.parsed_output?.answer); // 4
152
+ * ```
153
+ */
154
+ stream<Params extends MessageStreamParams>(
155
+ body: Params,
156
+ options?: RequestOptions,
157
+ ): MessageStream<ExtractParsedContentFromParams<Params>> {
158
+ return MessageStream.createMessage<ExtractParsedContentFromParams<Params>>(
159
+ this,
160
+ body as MessageCreateParamsBase,
161
+ options,
162
+ { logger: this._client.logger ?? console },
163
+ );
164
+ }
165
+
166
+ /**
167
+ * Count the number of tokens in a Message.
168
+ *
169
+ * The Token Count API can be used to count the number of tokens in a Message,
170
+ * including tools, images, and documents, without creating it.
171
+ *
172
+ * Learn more about token counting in our
173
+ * [user guide](https://docs.claude.com/en/docs/build-with-claude/token-counting)
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * const messageTokensCount =
178
+ * await client.messages.countTokens({
179
+ * messages: [{ content: 'string', role: 'user' }],
180
+ * model: 'claude-opus-4-6',
181
+ * });
182
+ * ```
183
+ */
184
+ countTokens(body: MessageCountTokensParams, options?: RequestOptions): APIPromise<MessageTokensCount> {
185
+ return this._client.post('/v1/messages/count_tokens', { body, ...options });
186
+ }
187
+ }
188
+
189
+ export interface Base64ImageSource {
190
+ data: string;
191
+
192
+ media_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
193
+
194
+ type: 'base64';
195
+ }
196
+
197
+ export interface Base64PDFSource {
198
+ data: string;
199
+
200
+ media_type: 'application/pdf';
201
+
202
+ type: 'base64';
203
+ }
204
+
205
+ export interface BashCodeExecutionOutputBlock {
206
+ file_id: string;
207
+
208
+ type: 'bash_code_execution_output';
209
+ }
210
+
211
+ export interface BashCodeExecutionOutputBlockParam {
212
+ file_id: string;
213
+
214
+ type: 'bash_code_execution_output';
215
+ }
216
+
217
+ export interface BashCodeExecutionResultBlock {
218
+ content: Array<BashCodeExecutionOutputBlock>;
219
+
220
+ return_code: number;
221
+
222
+ stderr: string;
223
+
224
+ stdout: string;
225
+
226
+ type: 'bash_code_execution_result';
227
+ }
228
+
229
+ export interface BashCodeExecutionResultBlockParam {
230
+ content: Array<BashCodeExecutionOutputBlockParam>;
231
+
232
+ return_code: number;
233
+
234
+ stderr: string;
235
+
236
+ stdout: string;
237
+
238
+ type: 'bash_code_execution_result';
239
+ }
240
+
241
+ export interface BashCodeExecutionToolResultBlock {
242
+ content: BashCodeExecutionToolResultError | BashCodeExecutionResultBlock;
243
+
244
+ tool_use_id: string;
245
+
246
+ type: 'bash_code_execution_tool_result';
247
+ }
248
+
249
+ export interface BashCodeExecutionToolResultBlockParam {
250
+ content: BashCodeExecutionToolResultErrorParam | BashCodeExecutionResultBlockParam;
251
+
252
+ tool_use_id: string;
253
+
254
+ type: 'bash_code_execution_tool_result';
255
+
256
+ /**
257
+ * Create a cache control breakpoint at this content block.
258
+ */
259
+ cache_control?: CacheControlEphemeral | null;
260
+ }
261
+
262
+ export interface BashCodeExecutionToolResultError {
263
+ error_code: BashCodeExecutionToolResultErrorCode;
264
+
265
+ type: 'bash_code_execution_tool_result_error';
266
+ }
267
+
268
+ export type BashCodeExecutionToolResultErrorCode =
269
+ | 'invalid_tool_input'
270
+ | 'unavailable'
271
+ | 'too_many_requests'
272
+ | 'execution_time_exceeded'
273
+ | 'output_file_too_large';
274
+
275
+ export interface BashCodeExecutionToolResultErrorParam {
276
+ error_code: BashCodeExecutionToolResultErrorCode;
277
+
278
+ type: 'bash_code_execution_tool_result_error';
279
+ }
280
+
281
+ export interface CacheControlEphemeral {
282
+ type: 'ephemeral';
283
+
284
+ /**
285
+ * The time-to-live for the cache control breakpoint.
286
+ *
287
+ * This may be one the following values:
288
+ *
289
+ * - `5m`: 5 minutes
290
+ * - `1h`: 1 hour
291
+ *
292
+ * Defaults to `5m`.
293
+ */
294
+ ttl?: '5m' | '1h';
295
+ }
296
+
297
+ export interface CacheCreation {
298
+ /**
299
+ * The number of input tokens used to create the 1 hour cache entry.
300
+ */
301
+ ephemeral_1h_input_tokens: number;
302
+
303
+ /**
304
+ * The number of input tokens used to create the 5 minute cache entry.
305
+ */
306
+ ephemeral_5m_input_tokens: number;
307
+ }
308
+
309
+ export interface CitationCharLocation {
310
+ cited_text: string;
311
+
312
+ document_index: number;
313
+
314
+ document_title: string | null;
315
+
316
+ end_char_index: number;
317
+
318
+ file_id: string | null;
319
+
320
+ start_char_index: number;
321
+
322
+ type: 'char_location';
323
+ }
324
+
325
+ export interface CitationCharLocationParam {
326
+ cited_text: string;
327
+
328
+ document_index: number;
329
+
330
+ document_title: string | null;
331
+
332
+ end_char_index: number;
333
+
334
+ start_char_index: number;
335
+
336
+ type: 'char_location';
337
+ }
338
+
339
+ export interface CitationContentBlockLocation {
340
+ cited_text: string;
341
+
342
+ document_index: number;
343
+
344
+ document_title: string | null;
345
+
346
+ end_block_index: number;
347
+
348
+ file_id: string | null;
349
+
350
+ start_block_index: number;
351
+
352
+ type: 'content_block_location';
353
+ }
354
+
355
+ export interface CitationContentBlockLocationParam {
356
+ cited_text: string;
357
+
358
+ document_index: number;
359
+
360
+ document_title: string | null;
361
+
362
+ end_block_index: number;
363
+
364
+ start_block_index: number;
365
+
366
+ type: 'content_block_location';
367
+ }
368
+
369
+ export interface CitationPageLocation {
370
+ cited_text: string;
371
+
372
+ document_index: number;
373
+
374
+ document_title: string | null;
375
+
376
+ end_page_number: number;
377
+
378
+ file_id: string | null;
379
+
380
+ start_page_number: number;
381
+
382
+ type: 'page_location';
383
+ }
384
+
385
+ export interface CitationPageLocationParam {
386
+ cited_text: string;
387
+
388
+ document_index: number;
389
+
390
+ document_title: string | null;
391
+
392
+ end_page_number: number;
393
+
394
+ start_page_number: number;
395
+
396
+ type: 'page_location';
397
+ }
398
+
399
+ export interface CitationSearchResultLocationParam {
400
+ cited_text: string;
401
+
402
+ end_block_index: number;
403
+
404
+ search_result_index: number;
405
+
406
+ source: string;
407
+
408
+ start_block_index: number;
409
+
410
+ title: string | null;
411
+
412
+ type: 'search_result_location';
413
+ }
414
+
415
+ export interface CitationWebSearchResultLocationParam {
416
+ cited_text: string;
417
+
418
+ encrypted_index: string;
419
+
420
+ title: string | null;
421
+
422
+ type: 'web_search_result_location';
423
+
424
+ url: string;
425
+ }
426
+
427
+ export interface CitationsConfig {
428
+ enabled: boolean;
429
+ }
430
+
431
+ export interface CitationsConfigParam {
432
+ enabled?: boolean;
433
+ }
434
+
435
+ export interface CitationsDelta {
436
+ citation:
437
+ | CitationCharLocation
438
+ | CitationPageLocation
439
+ | CitationContentBlockLocation
440
+ | CitationsWebSearchResultLocation
441
+ | CitationsSearchResultLocation;
442
+
443
+ type: 'citations_delta';
444
+ }
445
+
446
+ export interface CitationsSearchResultLocation {
447
+ cited_text: string;
448
+
449
+ end_block_index: number;
450
+
451
+ search_result_index: number;
452
+
453
+ source: string;
454
+
455
+ start_block_index: number;
456
+
457
+ title: string | null;
458
+
459
+ type: 'search_result_location';
460
+ }
461
+
462
+ export interface CitationsWebSearchResultLocation {
463
+ cited_text: string;
464
+
465
+ encrypted_index: string;
466
+
467
+ title: string | null;
468
+
469
+ type: 'web_search_result_location';
470
+
471
+ url: string;
472
+ }
473
+
474
+ export interface CodeExecutionOutputBlock {
475
+ file_id: string;
476
+
477
+ type: 'code_execution_output';
478
+ }
479
+
480
+ export interface CodeExecutionOutputBlockParam {
481
+ file_id: string;
482
+
483
+ type: 'code_execution_output';
484
+ }
485
+
486
+ export interface CodeExecutionResultBlock {
487
+ content: Array<CodeExecutionOutputBlock>;
488
+
489
+ return_code: number;
490
+
491
+ stderr: string;
492
+
493
+ stdout: string;
494
+
495
+ type: 'code_execution_result';
496
+ }
497
+
498
+ export interface CodeExecutionResultBlockParam {
499
+ content: Array<CodeExecutionOutputBlockParam>;
500
+
501
+ return_code: number;
502
+
503
+ stderr: string;
504
+
505
+ stdout: string;
506
+
507
+ type: 'code_execution_result';
508
+ }
509
+
510
+ export interface CodeExecutionTool20250522 {
511
+ /**
512
+ * Name of the tool.
513
+ *
514
+ * This is how the tool will be called by the model and in `tool_use` blocks.
515
+ */
516
+ name: 'code_execution';
517
+
518
+ type: 'code_execution_20250522';
519
+
520
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
521
+
522
+ /**
523
+ * Create a cache control breakpoint at this content block.
524
+ */
525
+ cache_control?: CacheControlEphemeral | null;
526
+
527
+ /**
528
+ * If true, tool will not be included in initial system prompt. Only loaded when
529
+ * returned via tool_reference from tool search.
530
+ */
531
+ defer_loading?: boolean;
532
+
533
+ /**
534
+ * When true, guarantees schema validation on tool names and inputs
535
+ */
536
+ strict?: boolean;
537
+ }
538
+
539
+ export interface CodeExecutionTool20250825 {
540
+ /**
541
+ * Name of the tool.
542
+ *
543
+ * This is how the tool will be called by the model and in `tool_use` blocks.
544
+ */
545
+ name: 'code_execution';
546
+
547
+ type: 'code_execution_20250825';
548
+
549
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
550
+
551
+ /**
552
+ * Create a cache control breakpoint at this content block.
553
+ */
554
+ cache_control?: CacheControlEphemeral | null;
555
+
556
+ /**
557
+ * If true, tool will not be included in initial system prompt. Only loaded when
558
+ * returned via tool_reference from tool search.
559
+ */
560
+ defer_loading?: boolean;
561
+
562
+ /**
563
+ * When true, guarantees schema validation on tool names and inputs
564
+ */
565
+ strict?: boolean;
566
+ }
567
+
568
+ /**
569
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
570
+ * checkpoint).
571
+ */
572
+ export interface CodeExecutionTool20260120 {
573
+ /**
574
+ * Name of the tool.
575
+ *
576
+ * This is how the tool will be called by the model and in `tool_use` blocks.
577
+ */
578
+ name: 'code_execution';
579
+
580
+ type: 'code_execution_20260120';
581
+
582
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
583
+
584
+ /**
585
+ * Create a cache control breakpoint at this content block.
586
+ */
587
+ cache_control?: CacheControlEphemeral | null;
588
+
589
+ /**
590
+ * If true, tool will not be included in initial system prompt. Only loaded when
591
+ * returned via tool_reference from tool search.
592
+ */
593
+ defer_loading?: boolean;
594
+
595
+ /**
596
+ * When true, guarantees schema validation on tool names and inputs
597
+ */
598
+ strict?: boolean;
599
+ }
600
+
601
+ export interface CodeExecutionToolResultBlock {
602
+ /**
603
+ * Code execution result with encrypted stdout for PFC + web_search results.
604
+ */
605
+ content: CodeExecutionToolResultBlockContent;
606
+
607
+ tool_use_id: string;
608
+
609
+ type: 'code_execution_tool_result';
610
+ }
611
+
612
+ /**
613
+ * Code execution result with encrypted stdout for PFC + web_search results.
614
+ */
615
+ export type CodeExecutionToolResultBlockContent =
616
+ | CodeExecutionToolResultError
617
+ | CodeExecutionResultBlock
618
+ | EncryptedCodeExecutionResultBlock;
619
+
620
+ export interface CodeExecutionToolResultBlockParam {
621
+ /**
622
+ * Code execution result with encrypted stdout for PFC + web_search results.
623
+ */
624
+ content: CodeExecutionToolResultBlockParamContent;
625
+
626
+ tool_use_id: string;
627
+
628
+ type: 'code_execution_tool_result';
629
+
630
+ /**
631
+ * Create a cache control breakpoint at this content block.
632
+ */
633
+ cache_control?: CacheControlEphemeral | null;
634
+ }
635
+
636
+ /**
637
+ * Code execution result with encrypted stdout for PFC + web_search results.
638
+ */
639
+ export type CodeExecutionToolResultBlockParamContent =
640
+ | CodeExecutionToolResultErrorParam
641
+ | CodeExecutionResultBlockParam
642
+ | EncryptedCodeExecutionResultBlockParam;
643
+
644
+ export interface CodeExecutionToolResultError {
645
+ error_code: CodeExecutionToolResultErrorCode;
646
+
647
+ type: 'code_execution_tool_result_error';
648
+ }
649
+
650
+ export type CodeExecutionToolResultErrorCode =
651
+ | 'invalid_tool_input'
652
+ | 'unavailable'
653
+ | 'too_many_requests'
654
+ | 'execution_time_exceeded';
655
+
656
+ export interface CodeExecutionToolResultErrorParam {
657
+ error_code: CodeExecutionToolResultErrorCode;
658
+
659
+ type: 'code_execution_tool_result_error';
660
+ }
661
+
662
+ /**
663
+ * Information about the container used in the request (for the code execution
664
+ * tool)
665
+ */
666
+ export interface Container {
667
+ /**
668
+ * Identifier for the container used in this request
669
+ */
670
+ id: string;
671
+
672
+ /**
673
+ * The time at which the container will expire.
674
+ */
675
+ expires_at: string;
676
+ }
677
+
678
+ /**
679
+ * Response model for a file uploaded to the container.
680
+ */
681
+ export interface ContainerUploadBlock {
682
+ file_id: string;
683
+
684
+ type: 'container_upload';
685
+ }
686
+
687
+ /**
688
+ * A content block that represents a file to be uploaded to the container Files
689
+ * uploaded via this block will be available in the container's input directory.
690
+ */
691
+ export interface ContainerUploadBlockParam {
692
+ file_id: string;
693
+
694
+ type: 'container_upload';
695
+
696
+ /**
697
+ * Create a cache control breakpoint at this content block.
698
+ */
699
+ cache_control?: CacheControlEphemeral | null;
700
+ }
701
+
702
+ /**
703
+ * Response model for a file uploaded to the container.
704
+ */
705
+ export type ContentBlock =
706
+ | TextBlock
707
+ | ThinkingBlock
708
+ | RedactedThinkingBlock
709
+ | ToolUseBlock
710
+ | ServerToolUseBlock
711
+ | WebSearchToolResultBlock
712
+ | WebFetchToolResultBlock
713
+ | CodeExecutionToolResultBlock
714
+ | BashCodeExecutionToolResultBlock
715
+ | TextEditorCodeExecutionToolResultBlock
716
+ | ToolSearchToolResultBlock
717
+ | ContainerUploadBlock;
718
+
719
+ /**
720
+ * Regular text content.
721
+ */
722
+ export type ContentBlockParam =
723
+ | TextBlockParam
724
+ | ImageBlockParam
725
+ | DocumentBlockParam
726
+ | SearchResultBlockParam
727
+ | ThinkingBlockParam
728
+ | RedactedThinkingBlockParam
729
+ | ToolUseBlockParam
730
+ | ToolResultBlockParam
731
+ | ServerToolUseBlockParam
732
+ | WebSearchToolResultBlockParam
733
+ | WebFetchToolResultBlockParam
734
+ | CodeExecutionToolResultBlockParam
735
+ | BashCodeExecutionToolResultBlockParam
736
+ | TextEditorCodeExecutionToolResultBlockParam
737
+ | ToolSearchToolResultBlockParam
738
+ | ContainerUploadBlockParam;
739
+
740
+ export interface ContentBlockSource {
741
+ content: string | Array<ContentBlockSourceContent>;
742
+
743
+ type: 'content';
744
+ }
745
+
746
+ export type ContentBlockSourceContent = TextBlockParam | ImageBlockParam;
747
+
748
+ /**
749
+ * Tool invocation directly from the model.
750
+ */
751
+ export interface DirectCaller {
752
+ type: 'direct';
753
+ }
754
+
755
+ export interface DocumentBlock {
756
+ /**
757
+ * Citation configuration for the document
758
+ */
759
+ citations: CitationsConfig | null;
760
+
761
+ source: Base64PDFSource | PlainTextSource;
762
+
763
+ /**
764
+ * The title of the document
765
+ */
766
+ title: string | null;
767
+
768
+ type: 'document';
769
+ }
770
+
771
+ export interface DocumentBlockParam {
772
+ source: Base64PDFSource | PlainTextSource | ContentBlockSource | URLPDFSource;
773
+
774
+ type: 'document';
775
+
776
+ /**
777
+ * Create a cache control breakpoint at this content block.
778
+ */
779
+ cache_control?: CacheControlEphemeral | null;
780
+
781
+ citations?: CitationsConfigParam | null;
782
+
783
+ context?: string | null;
784
+
785
+ title?: string | null;
786
+ }
787
+
788
+ /**
789
+ * Code execution result with encrypted stdout for PFC + web_search results.
790
+ */
791
+ export interface EncryptedCodeExecutionResultBlock {
792
+ content: Array<CodeExecutionOutputBlock>;
793
+
794
+ encrypted_stdout: string;
795
+
796
+ return_code: number;
797
+
798
+ stderr: string;
799
+
800
+ type: 'encrypted_code_execution_result';
801
+ }
802
+
803
+ /**
804
+ * Code execution result with encrypted stdout for PFC + web_search results.
805
+ */
806
+ export interface EncryptedCodeExecutionResultBlockParam {
807
+ content: Array<CodeExecutionOutputBlockParam>;
808
+
809
+ encrypted_stdout: string;
810
+
811
+ return_code: number;
812
+
813
+ stderr: string;
814
+
815
+ type: 'encrypted_code_execution_result';
816
+ }
817
+
818
+ export interface ImageBlockParam {
819
+ source: Base64ImageSource | URLImageSource;
820
+
821
+ type: 'image';
822
+
823
+ /**
824
+ * Create a cache control breakpoint at this content block.
825
+ */
826
+ cache_control?: CacheControlEphemeral | null;
827
+ }
828
+
829
+ export interface InputJSONDelta {
830
+ partial_json: string;
831
+
832
+ type: 'input_json_delta';
833
+ }
834
+
835
+ export interface JSONOutputFormat {
836
+ /**
837
+ * The JSON schema of the format
838
+ */
839
+ schema: { [key: string]: unknown };
840
+
841
+ type: 'json_schema';
842
+ }
843
+
844
+ export interface MemoryTool20250818 {
845
+ /**
846
+ * Name of the tool.
847
+ *
848
+ * This is how the tool will be called by the model and in `tool_use` blocks.
849
+ */
850
+ name: 'memory';
851
+
852
+ type: 'memory_20250818';
853
+
854
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
855
+
856
+ /**
857
+ * Create a cache control breakpoint at this content block.
858
+ */
859
+ cache_control?: CacheControlEphemeral | null;
860
+
861
+ /**
862
+ * If true, tool will not be included in initial system prompt. Only loaded when
863
+ * returned via tool_reference from tool search.
864
+ */
865
+ defer_loading?: boolean;
866
+
867
+ input_examples?: Array<{ [key: string]: unknown }>;
868
+
869
+ /**
870
+ * When true, guarantees schema validation on tool names and inputs
871
+ */
872
+ strict?: boolean;
873
+ }
874
+
875
+ export interface Message {
876
+ /**
877
+ * Unique object identifier.
878
+ *
879
+ * The format and length of IDs may change over time.
880
+ */
881
+ id: string;
882
+
883
+ /**
884
+ * Information about the container used in the request (for the code execution
885
+ * tool)
886
+ */
887
+ container: Container | null;
888
+
889
+ /**
890
+ * Content generated by the model.
891
+ *
892
+ * This is an array of content blocks, each of which has a `type` that determines
893
+ * its shape.
894
+ *
895
+ * Example:
896
+ *
897
+ * ```json
898
+ * [{ "type": "text", "text": "Hi, I'm Claude." }]
899
+ * ```
900
+ *
901
+ * If the request input `messages` ended with an `assistant` turn, then the
902
+ * response `content` will continue directly from that last turn. You can use this
903
+ * to constrain the model's output.
904
+ *
905
+ * For example, if the input `messages` were:
906
+ *
907
+ * ```json
908
+ * [
909
+ * {
910
+ * "role": "user",
911
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
912
+ * },
913
+ * { "role": "assistant", "content": "The best answer is (" }
914
+ * ]
915
+ * ```
916
+ *
917
+ * Then the response `content` might be:
918
+ *
919
+ * ```json
920
+ * [{ "type": "text", "text": "B)" }]
921
+ * ```
922
+ */
923
+ content: Array<ContentBlock>;
924
+
925
+ /**
926
+ * The model that will complete your prompt.\n\nSee
927
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
928
+ * details and options.
929
+ */
930
+ model: Model;
931
+
932
+ /**
933
+ * Conversational role of the generated message.
934
+ *
935
+ * This will always be `"assistant"`.
936
+ */
937
+ role: 'assistant';
938
+
939
+ /**
940
+ * The reason that we stopped.
941
+ *
942
+ * This may be one the following values:
943
+ *
944
+ * - `"end_turn"`: the model reached a natural stopping point
945
+ * - `"max_tokens"`: we exceeded the requested `max_tokens` or the model's maximum
946
+ * - `"stop_sequence"`: one of your provided custom `stop_sequences` was generated
947
+ * - `"tool_use"`: the model invoked one or more tools
948
+ * - `"pause_turn"`: we paused a long-running turn. You may provide the response
949
+ * back as-is in a subsequent request to let the model continue.
950
+ * - `"refusal"`: when streaming classifiers intervene to handle potential policy
951
+ * violations
952
+ *
953
+ * In non-streaming mode this value is always non-null. In streaming mode, it is
954
+ * null in the `message_start` event and non-null otherwise.
955
+ */
956
+ stop_reason: StopReason | null;
957
+
958
+ /**
959
+ * Which custom stop sequence was generated, if any.
960
+ *
961
+ * This value will be a non-null string if one of your custom stop sequences was
962
+ * generated.
963
+ */
964
+ stop_sequence: string | null;
965
+
966
+ /**
967
+ * Object type.
968
+ *
969
+ * For Messages, this is always `"message"`.
970
+ */
971
+ type: 'message';
972
+
973
+ /**
974
+ * Billing and rate-limit usage.
975
+ *
976
+ * Anthropic's API bills and rate-limits by token counts, as tokens represent the
977
+ * underlying cost to our systems.
978
+ *
979
+ * Under the hood, the API transforms requests into a format suitable for the
980
+ * model. The model's output then goes through a parsing stage before becoming an
981
+ * API response. As a result, the token counts in `usage` will not match one-to-one
982
+ * with the exact visible content of an API request or response.
983
+ *
984
+ * For example, `output_tokens` will be non-zero, even for an empty string response
985
+ * from Claude.
986
+ *
987
+ * Total input tokens in a request is the summation of `input_tokens`,
988
+ * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
989
+ */
990
+ usage: Usage;
991
+ }
992
+
993
+ /**
994
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
995
+ * checkpoint).
996
+ */
997
+ export type MessageCountTokensTool =
998
+ | Tool
999
+ | ToolBash20250124
1000
+ | CodeExecutionTool20250522
1001
+ | CodeExecutionTool20250825
1002
+ | CodeExecutionTool20260120
1003
+ | MemoryTool20250818
1004
+ | ToolTextEditor20250124
1005
+ | ToolTextEditor20250429
1006
+ | ToolTextEditor20250728
1007
+ | WebSearchTool20250305
1008
+ | WebFetchTool20250910
1009
+ | WebSearchTool20260209
1010
+ | WebFetchTool20260209
1011
+ | ToolSearchToolBm25_20251119
1012
+ | ToolSearchToolRegex20251119;
1013
+
1014
+ export interface MessageDeltaUsage {
1015
+ /**
1016
+ * The cumulative number of input tokens used to create the cache entry.
1017
+ */
1018
+ cache_creation_input_tokens: number | null;
1019
+
1020
+ /**
1021
+ * The cumulative number of input tokens read from the cache.
1022
+ */
1023
+ cache_read_input_tokens: number | null;
1024
+
1025
+ /**
1026
+ * The cumulative number of input tokens which were used.
1027
+ */
1028
+ input_tokens: number | null;
1029
+
1030
+ /**
1031
+ * The cumulative number of output tokens which were used.
1032
+ */
1033
+ output_tokens: number;
1034
+
1035
+ /**
1036
+ * The number of server tool requests.
1037
+ */
1038
+ server_tool_use: ServerToolUsage | null;
1039
+ }
1040
+
1041
+ export interface MessageParam {
1042
+ content: string | Array<ContentBlockParam>;
1043
+
1044
+ role: 'user' | 'assistant';
1045
+ }
1046
+
1047
+ export interface MessageTokensCount {
1048
+ /**
1049
+ * The total number of tokens across the provided list of messages, system prompt,
1050
+ * and tools.
1051
+ */
1052
+ input_tokens: number;
1053
+ }
1054
+
1055
+ export interface Metadata {
1056
+ /**
1057
+ * An external identifier for the user who is associated with the request.
1058
+ *
1059
+ * This should be a uuid, hash value, or other opaque identifier. Anthropic may use
1060
+ * this id to help detect abuse. Do not include any identifying information such as
1061
+ * name, email address, or phone number.
1062
+ */
1063
+ user_id?: string | null;
1064
+ }
1065
+
1066
+ /**
1067
+ * The model that will complete your prompt.\n\nSee
1068
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1069
+ * details and options.
1070
+ */
1071
+ export type Model =
1072
+ | 'claude-opus-4-6'
1073
+ | 'claude-sonnet-4-6'
1074
+ | 'claude-opus-4-5-20251101'
1075
+ | 'claude-opus-4-5'
1076
+ | 'claude-3-7-sonnet-latest'
1077
+ | 'claude-3-7-sonnet-20250219'
1078
+ | 'claude-3-5-haiku-latest'
1079
+ | 'claude-3-5-haiku-20241022'
1080
+ | 'claude-haiku-4-5'
1081
+ | 'claude-haiku-4-5-20251001'
1082
+ | 'claude-sonnet-4-20250514'
1083
+ | 'claude-sonnet-4-0'
1084
+ | 'claude-4-sonnet-20250514'
1085
+ | 'claude-sonnet-4-5'
1086
+ | 'claude-sonnet-4-5-20250929'
1087
+ | 'claude-opus-4-0'
1088
+ | 'claude-opus-4-20250514'
1089
+ | 'claude-4-opus-20250514'
1090
+ | 'claude-opus-4-1-20250805'
1091
+ | 'claude-3-opus-latest'
1092
+ | 'claude-3-opus-20240229'
1093
+ | 'claude-3-haiku-20240307'
1094
+ | (string & {});
1095
+
1096
+ export interface OutputConfig {
1097
+ /**
1098
+ * All possible effort levels.
1099
+ */
1100
+ effort?: 'low' | 'medium' | 'high' | 'max' | null;
1101
+
1102
+ /**
1103
+ * A schema to specify Claude's output format in responses. See
1104
+ * [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
1105
+ */
1106
+ format?: JSONOutputFormat | null;
1107
+ }
1108
+
1109
+ const DEPRECATED_MODELS: {
1110
+ [K in Model]?: string;
1111
+ } = {
1112
+ 'claude-1.3': 'November 6th, 2024',
1113
+ 'claude-1.3-100k': 'November 6th, 2024',
1114
+ 'claude-instant-1.1': 'November 6th, 2024',
1115
+ 'claude-instant-1.1-100k': 'November 6th, 2024',
1116
+ 'claude-instant-1.2': 'November 6th, 2024',
1117
+ 'claude-3-sonnet-20240229': 'July 21st, 2025',
1118
+ 'claude-3-opus-20240229': 'January 5th, 2026',
1119
+ 'claude-2.1': 'July 21st, 2025',
1120
+ 'claude-2.0': 'July 21st, 2025',
1121
+ 'claude-3-7-sonnet-latest': 'February 19th, 2026',
1122
+ 'claude-3-7-sonnet-20250219': 'February 19th, 2026',
1123
+ 'claude-3-5-haiku-latest': 'February 19th, 2026',
1124
+ 'claude-3-5-haiku-20241022': 'February 19th, 2026',
1125
+ };
1126
+
1127
+ const MODELS_TO_WARN_WITH_THINKING_ENABLED: Model[] = ['claude-opus-4-6'];
1128
+
1129
+ export interface PlainTextSource {
1130
+ data: string;
1131
+
1132
+ media_type: 'text/plain';
1133
+
1134
+ type: 'text';
1135
+ }
1136
+
1137
+ export type RawContentBlockDelta =
1138
+ | TextDelta
1139
+ | InputJSONDelta
1140
+ | CitationsDelta
1141
+ | ThinkingDelta
1142
+ | SignatureDelta;
1143
+
1144
+ export interface RawContentBlockDeltaEvent {
1145
+ delta: RawContentBlockDelta;
1146
+
1147
+ index: number;
1148
+
1149
+ type: 'content_block_delta';
1150
+ }
1151
+
1152
+ export interface RawContentBlockStartEvent {
1153
+ /**
1154
+ * Response model for a file uploaded to the container.
1155
+ */
1156
+ content_block:
1157
+ | TextBlock
1158
+ | ThinkingBlock
1159
+ | RedactedThinkingBlock
1160
+ | ToolUseBlock
1161
+ | ServerToolUseBlock
1162
+ | WebSearchToolResultBlock
1163
+ | WebFetchToolResultBlock
1164
+ | CodeExecutionToolResultBlock
1165
+ | BashCodeExecutionToolResultBlock
1166
+ | TextEditorCodeExecutionToolResultBlock
1167
+ | ToolSearchToolResultBlock
1168
+ | ContainerUploadBlock;
1169
+
1170
+ index: number;
1171
+
1172
+ type: 'content_block_start';
1173
+ }
1174
+
1175
+ export interface RawContentBlockStopEvent {
1176
+ index: number;
1177
+
1178
+ type: 'content_block_stop';
1179
+ }
1180
+
1181
+ export interface RawMessageDeltaEvent {
1182
+ delta: RawMessageDeltaEvent.Delta;
1183
+
1184
+ type: 'message_delta';
1185
+
1186
+ /**
1187
+ * Billing and rate-limit usage.
1188
+ *
1189
+ * Anthropic's API bills and rate-limits by token counts, as tokens represent the
1190
+ * underlying cost to our systems.
1191
+ *
1192
+ * Under the hood, the API transforms requests into a format suitable for the
1193
+ * model. The model's output then goes through a parsing stage before becoming an
1194
+ * API response. As a result, the token counts in `usage` will not match one-to-one
1195
+ * with the exact visible content of an API request or response.
1196
+ *
1197
+ * For example, `output_tokens` will be non-zero, even for an empty string response
1198
+ * from Claude.
1199
+ *
1200
+ * Total input tokens in a request is the summation of `input_tokens`,
1201
+ * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
1202
+ */
1203
+ usage: MessageDeltaUsage;
1204
+ }
1205
+
1206
+ export namespace RawMessageDeltaEvent {
1207
+ export interface Delta {
1208
+ /**
1209
+ * Information about the container used in the request (for the code execution
1210
+ * tool)
1211
+ */
1212
+ container: MessagesAPI.Container | null;
1213
+
1214
+ stop_reason: MessagesAPI.StopReason | null;
1215
+
1216
+ stop_sequence: string | null;
1217
+ }
1218
+ }
1219
+
1220
+ export interface RawMessageStartEvent {
1221
+ message: Message;
1222
+
1223
+ type: 'message_start';
1224
+ }
1225
+
1226
+ export interface RawMessageStopEvent {
1227
+ type: 'message_stop';
1228
+ }
1229
+
1230
+ export type RawMessageStreamEvent =
1231
+ | RawMessageStartEvent
1232
+ | RawMessageDeltaEvent
1233
+ | RawMessageStopEvent
1234
+ | RawContentBlockStartEvent
1235
+ | RawContentBlockDeltaEvent
1236
+ | RawContentBlockStopEvent;
1237
+
1238
+ export interface RedactedThinkingBlock {
1239
+ data: string;
1240
+
1241
+ type: 'redacted_thinking';
1242
+ }
1243
+
1244
+ export interface RedactedThinkingBlockParam {
1245
+ data: string;
1246
+
1247
+ type: 'redacted_thinking';
1248
+ }
1249
+
1250
+ export interface SearchResultBlockParam {
1251
+ content: Array<TextBlockParam>;
1252
+
1253
+ source: string;
1254
+
1255
+ title: string;
1256
+
1257
+ type: 'search_result';
1258
+
1259
+ /**
1260
+ * Create a cache control breakpoint at this content block.
1261
+ */
1262
+ cache_control?: CacheControlEphemeral | null;
1263
+
1264
+ citations?: CitationsConfigParam;
1265
+ }
1266
+
1267
+ /**
1268
+ * Tool invocation generated by a server-side tool.
1269
+ */
1270
+ export interface ServerToolCaller {
1271
+ tool_id: string;
1272
+
1273
+ type: 'code_execution_20250825';
1274
+ }
1275
+
1276
+ export interface ServerToolCaller20260120 {
1277
+ tool_id: string;
1278
+
1279
+ type: 'code_execution_20260120';
1280
+ }
1281
+
1282
+ export interface ServerToolUsage {
1283
+ /**
1284
+ * The number of web fetch tool requests.
1285
+ */
1286
+ web_fetch_requests: number;
1287
+
1288
+ /**
1289
+ * The number of web search tool requests.
1290
+ */
1291
+ web_search_requests: number;
1292
+ }
1293
+
1294
+ export interface ServerToolUseBlock {
1295
+ id: string;
1296
+
1297
+ /**
1298
+ * Tool invocation directly from the model.
1299
+ */
1300
+ caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
1301
+
1302
+ input: unknown;
1303
+
1304
+ name:
1305
+ | 'web_search'
1306
+ | 'web_fetch'
1307
+ | 'code_execution'
1308
+ | 'bash_code_execution'
1309
+ | 'text_editor_code_execution'
1310
+ | 'tool_search_tool_regex'
1311
+ | 'tool_search_tool_bm25';
1312
+
1313
+ type: 'server_tool_use';
1314
+ }
1315
+
1316
+ export interface ServerToolUseBlockParam {
1317
+ id: string;
1318
+
1319
+ input: unknown;
1320
+
1321
+ name:
1322
+ | 'web_search'
1323
+ | 'web_fetch'
1324
+ | 'code_execution'
1325
+ | 'bash_code_execution'
1326
+ | 'text_editor_code_execution'
1327
+ | 'tool_search_tool_regex'
1328
+ | 'tool_search_tool_bm25';
1329
+
1330
+ type: 'server_tool_use';
1331
+
1332
+ /**
1333
+ * Create a cache control breakpoint at this content block.
1334
+ */
1335
+ cache_control?: CacheControlEphemeral | null;
1336
+
1337
+ /**
1338
+ * Tool invocation directly from the model.
1339
+ */
1340
+ caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
1341
+ }
1342
+
1343
+ export interface SignatureDelta {
1344
+ signature: string;
1345
+
1346
+ type: 'signature_delta';
1347
+ }
1348
+
1349
+ export type StopReason = 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | 'pause_turn' | 'refusal';
1350
+
1351
+ export interface TextBlock {
1352
+ /**
1353
+ * Citations supporting the text block.
1354
+ *
1355
+ * The type of citation returned will depend on the type of document being cited.
1356
+ * Citing a PDF results in `page_location`, plain text results in `char_location`,
1357
+ * and content document results in `content_block_location`.
1358
+ */
1359
+ citations: Array<TextCitation> | null;
1360
+
1361
+ text: string;
1362
+
1363
+ type: 'text';
1364
+ }
1365
+
1366
+ export interface TextBlockParam {
1367
+ text: string;
1368
+
1369
+ type: 'text';
1370
+
1371
+ /**
1372
+ * Create a cache control breakpoint at this content block.
1373
+ */
1374
+ cache_control?: CacheControlEphemeral | null;
1375
+
1376
+ citations?: Array<TextCitationParam> | null;
1377
+ }
1378
+
1379
+ export type TextCitation =
1380
+ | CitationCharLocation
1381
+ | CitationPageLocation
1382
+ | CitationContentBlockLocation
1383
+ | CitationsWebSearchResultLocation
1384
+ | CitationsSearchResultLocation;
1385
+
1386
+ export type TextCitationParam =
1387
+ | CitationCharLocationParam
1388
+ | CitationPageLocationParam
1389
+ | CitationContentBlockLocationParam
1390
+ | CitationWebSearchResultLocationParam
1391
+ | CitationSearchResultLocationParam;
1392
+
1393
+ export interface TextDelta {
1394
+ text: string;
1395
+
1396
+ type: 'text_delta';
1397
+ }
1398
+
1399
+ export interface TextEditorCodeExecutionCreateResultBlock {
1400
+ is_file_update: boolean;
1401
+
1402
+ type: 'text_editor_code_execution_create_result';
1403
+ }
1404
+
1405
+ export interface TextEditorCodeExecutionCreateResultBlockParam {
1406
+ is_file_update: boolean;
1407
+
1408
+ type: 'text_editor_code_execution_create_result';
1409
+ }
1410
+
1411
+ export interface TextEditorCodeExecutionStrReplaceResultBlock {
1412
+ lines: Array<string> | null;
1413
+
1414
+ new_lines: number | null;
1415
+
1416
+ new_start: number | null;
1417
+
1418
+ old_lines: number | null;
1419
+
1420
+ old_start: number | null;
1421
+
1422
+ type: 'text_editor_code_execution_str_replace_result';
1423
+ }
1424
+
1425
+ export interface TextEditorCodeExecutionStrReplaceResultBlockParam {
1426
+ type: 'text_editor_code_execution_str_replace_result';
1427
+
1428
+ lines?: Array<string> | null;
1429
+
1430
+ new_lines?: number | null;
1431
+
1432
+ new_start?: number | null;
1433
+
1434
+ old_lines?: number | null;
1435
+
1436
+ old_start?: number | null;
1437
+ }
1438
+
1439
+ export interface TextEditorCodeExecutionToolResultBlock {
1440
+ content:
1441
+ | TextEditorCodeExecutionToolResultError
1442
+ | TextEditorCodeExecutionViewResultBlock
1443
+ | TextEditorCodeExecutionCreateResultBlock
1444
+ | TextEditorCodeExecutionStrReplaceResultBlock;
1445
+
1446
+ tool_use_id: string;
1447
+
1448
+ type: 'text_editor_code_execution_tool_result';
1449
+ }
1450
+
1451
+ export interface TextEditorCodeExecutionToolResultBlockParam {
1452
+ content:
1453
+ | TextEditorCodeExecutionToolResultErrorParam
1454
+ | TextEditorCodeExecutionViewResultBlockParam
1455
+ | TextEditorCodeExecutionCreateResultBlockParam
1456
+ | TextEditorCodeExecutionStrReplaceResultBlockParam;
1457
+
1458
+ tool_use_id: string;
1459
+
1460
+ type: 'text_editor_code_execution_tool_result';
1461
+
1462
+ /**
1463
+ * Create a cache control breakpoint at this content block.
1464
+ */
1465
+ cache_control?: CacheControlEphemeral | null;
1466
+ }
1467
+
1468
+ export interface TextEditorCodeExecutionToolResultError {
1469
+ error_code: TextEditorCodeExecutionToolResultErrorCode;
1470
+
1471
+ error_message: string | null;
1472
+
1473
+ type: 'text_editor_code_execution_tool_result_error';
1474
+ }
1475
+
1476
+ export type TextEditorCodeExecutionToolResultErrorCode =
1477
+ | 'invalid_tool_input'
1478
+ | 'unavailable'
1479
+ | 'too_many_requests'
1480
+ | 'execution_time_exceeded'
1481
+ | 'file_not_found';
1482
+
1483
+ export interface TextEditorCodeExecutionToolResultErrorParam {
1484
+ error_code: TextEditorCodeExecutionToolResultErrorCode;
1485
+
1486
+ type: 'text_editor_code_execution_tool_result_error';
1487
+
1488
+ error_message?: string | null;
1489
+ }
1490
+
1491
+ export interface TextEditorCodeExecutionViewResultBlock {
1492
+ content: string;
1493
+
1494
+ file_type: 'text' | 'image' | 'pdf';
1495
+
1496
+ num_lines: number | null;
1497
+
1498
+ start_line: number | null;
1499
+
1500
+ total_lines: number | null;
1501
+
1502
+ type: 'text_editor_code_execution_view_result';
1503
+ }
1504
+
1505
+ export interface TextEditorCodeExecutionViewResultBlockParam {
1506
+ content: string;
1507
+
1508
+ file_type: 'text' | 'image' | 'pdf';
1509
+
1510
+ type: 'text_editor_code_execution_view_result';
1511
+
1512
+ num_lines?: number | null;
1513
+
1514
+ start_line?: number | null;
1515
+
1516
+ total_lines?: number | null;
1517
+ }
1518
+
1519
+ export interface ThinkingBlock {
1520
+ signature: string;
1521
+
1522
+ thinking: string;
1523
+
1524
+ type: 'thinking';
1525
+ }
1526
+
1527
+ export interface ThinkingBlockParam {
1528
+ signature: string;
1529
+
1530
+ thinking: string;
1531
+
1532
+ type: 'thinking';
1533
+ }
1534
+
1535
+ export interface ThinkingConfigAdaptive {
1536
+ type: 'adaptive';
1537
+ }
1538
+
1539
+ export interface ThinkingConfigDisabled {
1540
+ type: 'disabled';
1541
+ }
1542
+
1543
+ export interface ThinkingConfigEnabled {
1544
+ /**
1545
+ * Determines how many tokens Claude can use for its internal reasoning process.
1546
+ * Larger budgets can enable more thorough analysis for complex problems, improving
1547
+ * response quality.
1548
+ *
1549
+ * Must be ≥1024 and less than `max_tokens`.
1550
+ *
1551
+ * See
1552
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
1553
+ * for details.
1554
+ */
1555
+ budget_tokens: number;
1556
+
1557
+ type: 'enabled';
1558
+ }
1559
+
1560
+ /**
1561
+ * Configuration for enabling Claude's extended thinking.
1562
+ *
1563
+ * When enabled, responses include `thinking` content blocks showing Claude's
1564
+ * thinking process before the final answer. Requires a minimum budget of 1,024
1565
+ * tokens and counts towards your `max_tokens` limit.
1566
+ *
1567
+ * See
1568
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
1569
+ * for details.
1570
+ */
1571
+ export type ThinkingConfigParam = ThinkingConfigEnabled | ThinkingConfigDisabled | ThinkingConfigAdaptive;
1572
+
1573
+ export interface ThinkingDelta {
1574
+ thinking: string;
1575
+
1576
+ type: 'thinking_delta';
1577
+ }
1578
+
1579
+ export interface Tool {
1580
+ /**
1581
+ * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
1582
+ *
1583
+ * This defines the shape of the `input` that your tool accepts and that the model
1584
+ * will produce.
1585
+ */
1586
+ input_schema: Tool.InputSchema;
1587
+
1588
+ /**
1589
+ * Name of the tool.
1590
+ *
1591
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1592
+ */
1593
+ name: string;
1594
+
1595
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1596
+
1597
+ /**
1598
+ * Create a cache control breakpoint at this content block.
1599
+ */
1600
+ cache_control?: CacheControlEphemeral | null;
1601
+
1602
+ /**
1603
+ * If true, tool will not be included in initial system prompt. Only loaded when
1604
+ * returned via tool_reference from tool search.
1605
+ */
1606
+ defer_loading?: boolean;
1607
+
1608
+ /**
1609
+ * Description of what this tool does.
1610
+ *
1611
+ * Tool descriptions should be as detailed as possible. The more information that
1612
+ * the model has about what the tool is and how to use it, the better it will
1613
+ * perform. You can use natural language descriptions to reinforce important
1614
+ * aspects of the tool input JSON schema.
1615
+ */
1616
+ description?: string;
1617
+
1618
+ /**
1619
+ * Enable eager input streaming for this tool. When true, tool input parameters
1620
+ * will be streamed incrementally as they are generated, and types will be inferred
1621
+ * on-the-fly rather than buffering the full JSON output. When false, streaming is
1622
+ * disabled for this tool even if the fine-grained-tool-streaming beta is active.
1623
+ * When null (default), uses the default behavior based on beta headers.
1624
+ */
1625
+ eager_input_streaming?: boolean | null;
1626
+
1627
+ input_examples?: Array<{ [key: string]: unknown }>;
1628
+
1629
+ /**
1630
+ * When true, guarantees schema validation on tool names and inputs
1631
+ */
1632
+ strict?: boolean;
1633
+
1634
+ type?: 'custom' | null;
1635
+ }
1636
+
1637
+ export namespace Tool {
1638
+ /**
1639
+ * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
1640
+ *
1641
+ * This defines the shape of the `input` that your tool accepts and that the model
1642
+ * will produce.
1643
+ */
1644
+ export interface InputSchema {
1645
+ type: 'object';
1646
+
1647
+ properties?: unknown | null;
1648
+
1649
+ required?: Array<string> | null;
1650
+
1651
+ [k: string]: unknown;
1652
+ }
1653
+ }
1654
+
1655
+ export interface ToolBash20250124 {
1656
+ /**
1657
+ * Name of the tool.
1658
+ *
1659
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1660
+ */
1661
+ name: 'bash';
1662
+
1663
+ type: 'bash_20250124';
1664
+
1665
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1666
+
1667
+ /**
1668
+ * Create a cache control breakpoint at this content block.
1669
+ */
1670
+ cache_control?: CacheControlEphemeral | null;
1671
+
1672
+ /**
1673
+ * If true, tool will not be included in initial system prompt. Only loaded when
1674
+ * returned via tool_reference from tool search.
1675
+ */
1676
+ defer_loading?: boolean;
1677
+
1678
+ input_examples?: Array<{ [key: string]: unknown }>;
1679
+
1680
+ /**
1681
+ * When true, guarantees schema validation on tool names and inputs
1682
+ */
1683
+ strict?: boolean;
1684
+ }
1685
+
1686
+ /**
1687
+ * How the model should use the provided tools. The model can use a specific tool,
1688
+ * any available tool, decide by itself, or not use tools at all.
1689
+ */
1690
+ export type ToolChoice = ToolChoiceAuto | ToolChoiceAny | ToolChoiceTool | ToolChoiceNone;
1691
+
1692
+ /**
1693
+ * The model will use any available tools.
1694
+ */
1695
+ export interface ToolChoiceAny {
1696
+ type: 'any';
1697
+
1698
+ /**
1699
+ * Whether to disable parallel tool use.
1700
+ *
1701
+ * Defaults to `false`. If set to `true`, the model will output exactly one tool
1702
+ * use.
1703
+ */
1704
+ disable_parallel_tool_use?: boolean;
1705
+ }
1706
+
1707
+ /**
1708
+ * The model will automatically decide whether to use tools.
1709
+ */
1710
+ export interface ToolChoiceAuto {
1711
+ type: 'auto';
1712
+
1713
+ /**
1714
+ * Whether to disable parallel tool use.
1715
+ *
1716
+ * Defaults to `false`. If set to `true`, the model will output at most one tool
1717
+ * use.
1718
+ */
1719
+ disable_parallel_tool_use?: boolean;
1720
+ }
1721
+
1722
+ /**
1723
+ * The model will not be allowed to use tools.
1724
+ */
1725
+ export interface ToolChoiceNone {
1726
+ type: 'none';
1727
+ }
1728
+
1729
+ /**
1730
+ * The model will use the specified tool with `tool_choice.name`.
1731
+ */
1732
+ export interface ToolChoiceTool {
1733
+ /**
1734
+ * The name of the tool to use.
1735
+ */
1736
+ name: string;
1737
+
1738
+ type: 'tool';
1739
+
1740
+ /**
1741
+ * Whether to disable parallel tool use.
1742
+ *
1743
+ * Defaults to `false`. If set to `true`, the model will output exactly one tool
1744
+ * use.
1745
+ */
1746
+ disable_parallel_tool_use?: boolean;
1747
+ }
1748
+
1749
+ export interface ToolReferenceBlock {
1750
+ tool_name: string;
1751
+
1752
+ type: 'tool_reference';
1753
+ }
1754
+
1755
+ /**
1756
+ * Tool reference block that can be included in tool_result content.
1757
+ */
1758
+ export interface ToolReferenceBlockParam {
1759
+ tool_name: string;
1760
+
1761
+ type: 'tool_reference';
1762
+
1763
+ /**
1764
+ * Create a cache control breakpoint at this content block.
1765
+ */
1766
+ cache_control?: CacheControlEphemeral | null;
1767
+ }
1768
+
1769
+ export interface ToolResultBlockParam {
1770
+ tool_use_id: string;
1771
+
1772
+ type: 'tool_result';
1773
+
1774
+ /**
1775
+ * Create a cache control breakpoint at this content block.
1776
+ */
1777
+ cache_control?: CacheControlEphemeral | null;
1778
+
1779
+ content?:
1780
+ | string
1781
+ | Array<
1782
+ | TextBlockParam
1783
+ | ImageBlockParam
1784
+ | SearchResultBlockParam
1785
+ | DocumentBlockParam
1786
+ | ToolReferenceBlockParam
1787
+ >;
1788
+
1789
+ is_error?: boolean;
1790
+ }
1791
+
1792
+ export interface ToolSearchToolBm25_20251119 {
1793
+ /**
1794
+ * Name of the tool.
1795
+ *
1796
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1797
+ */
1798
+ name: 'tool_search_tool_bm25';
1799
+
1800
+ type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
1801
+
1802
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1803
+
1804
+ /**
1805
+ * Create a cache control breakpoint at this content block.
1806
+ */
1807
+ cache_control?: CacheControlEphemeral | null;
1808
+
1809
+ /**
1810
+ * If true, tool will not be included in initial system prompt. Only loaded when
1811
+ * returned via tool_reference from tool search.
1812
+ */
1813
+ defer_loading?: boolean;
1814
+
1815
+ /**
1816
+ * When true, guarantees schema validation on tool names and inputs
1817
+ */
1818
+ strict?: boolean;
1819
+ }
1820
+
1821
+ export interface ToolSearchToolRegex20251119 {
1822
+ /**
1823
+ * Name of the tool.
1824
+ *
1825
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1826
+ */
1827
+ name: 'tool_search_tool_regex';
1828
+
1829
+ type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
1830
+
1831
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1832
+
1833
+ /**
1834
+ * Create a cache control breakpoint at this content block.
1835
+ */
1836
+ cache_control?: CacheControlEphemeral | null;
1837
+
1838
+ /**
1839
+ * If true, tool will not be included in initial system prompt. Only loaded when
1840
+ * returned via tool_reference from tool search.
1841
+ */
1842
+ defer_loading?: boolean;
1843
+
1844
+ /**
1845
+ * When true, guarantees schema validation on tool names and inputs
1846
+ */
1847
+ strict?: boolean;
1848
+ }
1849
+
1850
+ export interface ToolSearchToolResultBlock {
1851
+ content: ToolSearchToolResultError | ToolSearchToolSearchResultBlock;
1852
+
1853
+ tool_use_id: string;
1854
+
1855
+ type: 'tool_search_tool_result';
1856
+ }
1857
+
1858
+ export interface ToolSearchToolResultBlockParam {
1859
+ content: ToolSearchToolResultErrorParam | ToolSearchToolSearchResultBlockParam;
1860
+
1861
+ tool_use_id: string;
1862
+
1863
+ type: 'tool_search_tool_result';
1864
+
1865
+ /**
1866
+ * Create a cache control breakpoint at this content block.
1867
+ */
1868
+ cache_control?: CacheControlEphemeral | null;
1869
+ }
1870
+
1871
+ export interface ToolSearchToolResultError {
1872
+ error_code: ToolSearchToolResultErrorCode;
1873
+
1874
+ error_message: string | null;
1875
+
1876
+ type: 'tool_search_tool_result_error';
1877
+ }
1878
+
1879
+ export type ToolSearchToolResultErrorCode =
1880
+ | 'invalid_tool_input'
1881
+ | 'unavailable'
1882
+ | 'too_many_requests'
1883
+ | 'execution_time_exceeded';
1884
+
1885
+ export interface ToolSearchToolResultErrorParam {
1886
+ error_code: ToolSearchToolResultErrorCode;
1887
+
1888
+ type: 'tool_search_tool_result_error';
1889
+ }
1890
+
1891
+ export interface ToolSearchToolSearchResultBlock {
1892
+ tool_references: Array<ToolReferenceBlock>;
1893
+
1894
+ type: 'tool_search_tool_search_result';
1895
+ }
1896
+
1897
+ export interface ToolSearchToolSearchResultBlockParam {
1898
+ tool_references: Array<ToolReferenceBlockParam>;
1899
+
1900
+ type: 'tool_search_tool_search_result';
1901
+ }
1902
+
1903
+ export interface ToolTextEditor20250124 {
1904
+ /**
1905
+ * Name of the tool.
1906
+ *
1907
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1908
+ */
1909
+ name: 'str_replace_editor';
1910
+
1911
+ type: 'text_editor_20250124';
1912
+
1913
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1914
+
1915
+ /**
1916
+ * Create a cache control breakpoint at this content block.
1917
+ */
1918
+ cache_control?: CacheControlEphemeral | null;
1919
+
1920
+ /**
1921
+ * If true, tool will not be included in initial system prompt. Only loaded when
1922
+ * returned via tool_reference from tool search.
1923
+ */
1924
+ defer_loading?: boolean;
1925
+
1926
+ input_examples?: Array<{ [key: string]: unknown }>;
1927
+
1928
+ /**
1929
+ * When true, guarantees schema validation on tool names and inputs
1930
+ */
1931
+ strict?: boolean;
1932
+ }
1933
+
1934
+ export interface ToolTextEditor20250429 {
1935
+ /**
1936
+ * Name of the tool.
1937
+ *
1938
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1939
+ */
1940
+ name: 'str_replace_based_edit_tool';
1941
+
1942
+ type: 'text_editor_20250429';
1943
+
1944
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1945
+
1946
+ /**
1947
+ * Create a cache control breakpoint at this content block.
1948
+ */
1949
+ cache_control?: CacheControlEphemeral | null;
1950
+
1951
+ /**
1952
+ * If true, tool will not be included in initial system prompt. Only loaded when
1953
+ * returned via tool_reference from tool search.
1954
+ */
1955
+ defer_loading?: boolean;
1956
+
1957
+ input_examples?: Array<{ [key: string]: unknown }>;
1958
+
1959
+ /**
1960
+ * When true, guarantees schema validation on tool names and inputs
1961
+ */
1962
+ strict?: boolean;
1963
+ }
1964
+
1965
+ export interface ToolTextEditor20250728 {
1966
+ /**
1967
+ * Name of the tool.
1968
+ *
1969
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1970
+ */
1971
+ name: 'str_replace_based_edit_tool';
1972
+
1973
+ type: 'text_editor_20250728';
1974
+
1975
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
1976
+
1977
+ /**
1978
+ * Create a cache control breakpoint at this content block.
1979
+ */
1980
+ cache_control?: CacheControlEphemeral | null;
1981
+
1982
+ /**
1983
+ * If true, tool will not be included in initial system prompt. Only loaded when
1984
+ * returned via tool_reference from tool search.
1985
+ */
1986
+ defer_loading?: boolean;
1987
+
1988
+ input_examples?: Array<{ [key: string]: unknown }>;
1989
+
1990
+ /**
1991
+ * Maximum number of characters to display when viewing a file. If not specified,
1992
+ * defaults to displaying the full file.
1993
+ */
1994
+ max_characters?: number | null;
1995
+
1996
+ /**
1997
+ * When true, guarantees schema validation on tool names and inputs
1998
+ */
1999
+ strict?: boolean;
2000
+ }
2001
+
2002
+ /**
2003
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
2004
+ * checkpoint).
2005
+ */
2006
+ export type ToolUnion =
2007
+ | Tool
2008
+ | ToolBash20250124
2009
+ | CodeExecutionTool20250522
2010
+ | CodeExecutionTool20250825
2011
+ | CodeExecutionTool20260120
2012
+ | MemoryTool20250818
2013
+ | ToolTextEditor20250124
2014
+ | ToolTextEditor20250429
2015
+ | ToolTextEditor20250728
2016
+ | WebSearchTool20250305
2017
+ | WebFetchTool20250910
2018
+ | WebSearchTool20260209
2019
+ | WebFetchTool20260209
2020
+ | ToolSearchToolBm25_20251119
2021
+ | ToolSearchToolRegex20251119;
2022
+
2023
+ export interface ToolUseBlock {
2024
+ id: string;
2025
+
2026
+ /**
2027
+ * Tool invocation directly from the model.
2028
+ */
2029
+ caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2030
+
2031
+ input: unknown;
2032
+
2033
+ name: string;
2034
+
2035
+ type: 'tool_use';
2036
+ }
2037
+
2038
+ export interface ToolUseBlockParam {
2039
+ id: string;
2040
+
2041
+ input: unknown;
2042
+
2043
+ name: string;
2044
+
2045
+ type: 'tool_use';
2046
+
2047
+ /**
2048
+ * Create a cache control breakpoint at this content block.
2049
+ */
2050
+ cache_control?: CacheControlEphemeral | null;
2051
+
2052
+ /**
2053
+ * Tool invocation directly from the model.
2054
+ */
2055
+ caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2056
+ }
2057
+
2058
+ export interface URLImageSource {
2059
+ type: 'url';
2060
+
2061
+ url: string;
2062
+ }
2063
+
2064
+ export interface URLPDFSource {
2065
+ type: 'url';
2066
+
2067
+ url: string;
2068
+ }
2069
+
2070
+ export interface Usage {
2071
+ /**
2072
+ * Breakdown of cached tokens by TTL
2073
+ */
2074
+ cache_creation: CacheCreation | null;
2075
+
2076
+ /**
2077
+ * The number of input tokens used to create the cache entry.
2078
+ */
2079
+ cache_creation_input_tokens: number | null;
2080
+
2081
+ /**
2082
+ * The number of input tokens read from the cache.
2083
+ */
2084
+ cache_read_input_tokens: number | null;
2085
+
2086
+ /**
2087
+ * The geographic region where inference was performed for this request.
2088
+ */
2089
+ inference_geo: string | null;
2090
+
2091
+ /**
2092
+ * The number of input tokens which were used.
2093
+ */
2094
+ input_tokens: number;
2095
+
2096
+ /**
2097
+ * The number of output tokens which were used.
2098
+ */
2099
+ output_tokens: number;
2100
+
2101
+ /**
2102
+ * The number of server tool requests.
2103
+ */
2104
+ server_tool_use: ServerToolUsage | null;
2105
+
2106
+ /**
2107
+ * If the request used the priority, standard, or batch tier.
2108
+ */
2109
+ service_tier: 'standard' | 'priority' | 'batch' | null;
2110
+ }
2111
+
2112
+ export interface WebFetchBlock {
2113
+ content: DocumentBlock;
2114
+
2115
+ /**
2116
+ * ISO 8601 timestamp when the content was retrieved
2117
+ */
2118
+ retrieved_at: string | null;
2119
+
2120
+ type: 'web_fetch_result';
2121
+
2122
+ /**
2123
+ * Fetched content URL
2124
+ */
2125
+ url: string;
2126
+ }
2127
+
2128
+ export interface WebFetchBlockParam {
2129
+ content: DocumentBlockParam;
2130
+
2131
+ type: 'web_fetch_result';
2132
+
2133
+ /**
2134
+ * Fetched content URL
2135
+ */
2136
+ url: string;
2137
+
2138
+ /**
2139
+ * ISO 8601 timestamp when the content was retrieved
2140
+ */
2141
+ retrieved_at?: string | null;
2142
+ }
2143
+
2144
+ export interface WebFetchTool20250910 {
2145
+ /**
2146
+ * Name of the tool.
2147
+ *
2148
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2149
+ */
2150
+ name: 'web_fetch';
2151
+
2152
+ type: 'web_fetch_20250910';
2153
+
2154
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2155
+
2156
+ /**
2157
+ * List of domains to allow fetching from
2158
+ */
2159
+ allowed_domains?: Array<string> | null;
2160
+
2161
+ /**
2162
+ * List of domains to block fetching from
2163
+ */
2164
+ blocked_domains?: Array<string> | null;
2165
+
2166
+ /**
2167
+ * Create a cache control breakpoint at this content block.
2168
+ */
2169
+ cache_control?: CacheControlEphemeral | null;
2170
+
2171
+ /**
2172
+ * Citations configuration for fetched documents. Citations are disabled by
2173
+ * default.
2174
+ */
2175
+ citations?: CitationsConfigParam | null;
2176
+
2177
+ /**
2178
+ * If true, tool will not be included in initial system prompt. Only loaded when
2179
+ * returned via tool_reference from tool search.
2180
+ */
2181
+ defer_loading?: boolean;
2182
+
2183
+ /**
2184
+ * Maximum number of tokens used by including web page text content in the context.
2185
+ * The limit is approximate and does not apply to binary content such as PDFs.
2186
+ */
2187
+ max_content_tokens?: number | null;
2188
+
2189
+ /**
2190
+ * Maximum number of times the tool can be used in the API request.
2191
+ */
2192
+ max_uses?: number | null;
2193
+
2194
+ /**
2195
+ * When true, guarantees schema validation on tool names and inputs
2196
+ */
2197
+ strict?: boolean;
2198
+ }
2199
+
2200
+ export interface WebFetchTool20260209 {
2201
+ /**
2202
+ * Name of the tool.
2203
+ *
2204
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2205
+ */
2206
+ name: 'web_fetch';
2207
+
2208
+ type: 'web_fetch_20260209';
2209
+
2210
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2211
+
2212
+ /**
2213
+ * List of domains to allow fetching from
2214
+ */
2215
+ allowed_domains?: Array<string> | null;
2216
+
2217
+ /**
2218
+ * List of domains to block fetching from
2219
+ */
2220
+ blocked_domains?: Array<string> | null;
2221
+
2222
+ /**
2223
+ * Create a cache control breakpoint at this content block.
2224
+ */
2225
+ cache_control?: CacheControlEphemeral | null;
2226
+
2227
+ /**
2228
+ * Citations configuration for fetched documents. Citations are disabled by
2229
+ * default.
2230
+ */
2231
+ citations?: CitationsConfigParam | null;
2232
+
2233
+ /**
2234
+ * If true, tool will not be included in initial system prompt. Only loaded when
2235
+ * returned via tool_reference from tool search.
2236
+ */
2237
+ defer_loading?: boolean;
2238
+
2239
+ /**
2240
+ * Maximum number of tokens used by including web page text content in the context.
2241
+ * The limit is approximate and does not apply to binary content such as PDFs.
2242
+ */
2243
+ max_content_tokens?: number | null;
2244
+
2245
+ /**
2246
+ * Maximum number of times the tool can be used in the API request.
2247
+ */
2248
+ max_uses?: number | null;
2249
+
2250
+ /**
2251
+ * When true, guarantees schema validation on tool names and inputs
2252
+ */
2253
+ strict?: boolean;
2254
+ }
2255
+
2256
+ export interface WebFetchToolResultBlock {
2257
+ /**
2258
+ * Tool invocation directly from the model.
2259
+ */
2260
+ caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2261
+
2262
+ content: WebFetchToolResultErrorBlock | WebFetchBlock;
2263
+
2264
+ tool_use_id: string;
2265
+
2266
+ type: 'web_fetch_tool_result';
2267
+ }
2268
+
2269
+ export interface WebFetchToolResultBlockParam {
2270
+ content: WebFetchToolResultErrorBlockParam | WebFetchBlockParam;
2271
+
2272
+ tool_use_id: string;
2273
+
2274
+ type: 'web_fetch_tool_result';
2275
+
2276
+ /**
2277
+ * Create a cache control breakpoint at this content block.
2278
+ */
2279
+ cache_control?: CacheControlEphemeral | null;
2280
+
2281
+ /**
2282
+ * Tool invocation directly from the model.
2283
+ */
2284
+ caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2285
+ }
2286
+
2287
+ export interface WebFetchToolResultErrorBlock {
2288
+ error_code: WebFetchToolResultErrorCode;
2289
+
2290
+ type: 'web_fetch_tool_result_error';
2291
+ }
2292
+
2293
+ export interface WebFetchToolResultErrorBlockParam {
2294
+ error_code: WebFetchToolResultErrorCode;
2295
+
2296
+ type: 'web_fetch_tool_result_error';
2297
+ }
2298
+
2299
+ export type WebFetchToolResultErrorCode =
2300
+ | 'invalid_tool_input'
2301
+ | 'url_too_long'
2302
+ | 'url_not_allowed'
2303
+ | 'url_not_accessible'
2304
+ | 'unsupported_content_type'
2305
+ | 'too_many_requests'
2306
+ | 'max_uses_exceeded'
2307
+ | 'unavailable';
2308
+
2309
+ export interface WebSearchResultBlock {
2310
+ encrypted_content: string;
2311
+
2312
+ page_age: string | null;
2313
+
2314
+ title: string;
2315
+
2316
+ type: 'web_search_result';
2317
+
2318
+ url: string;
2319
+ }
2320
+
2321
+ export interface WebSearchResultBlockParam {
2322
+ encrypted_content: string;
2323
+
2324
+ title: string;
2325
+
2326
+ type: 'web_search_result';
2327
+
2328
+ url: string;
2329
+
2330
+ page_age?: string | null;
2331
+ }
2332
+
2333
+ export interface WebSearchTool20250305 {
2334
+ /**
2335
+ * Name of the tool.
2336
+ *
2337
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2338
+ */
2339
+ name: 'web_search';
2340
+
2341
+ type: 'web_search_20250305';
2342
+
2343
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2344
+
2345
+ /**
2346
+ * If provided, only these domains will be included in results. Cannot be used
2347
+ * alongside `blocked_domains`.
2348
+ */
2349
+ allowed_domains?: Array<string> | null;
2350
+
2351
+ /**
2352
+ * If provided, these domains will never appear in results. Cannot be used
2353
+ * alongside `allowed_domains`.
2354
+ */
2355
+ blocked_domains?: Array<string> | null;
2356
+
2357
+ /**
2358
+ * Create a cache control breakpoint at this content block.
2359
+ */
2360
+ cache_control?: CacheControlEphemeral | null;
2361
+
2362
+ /**
2363
+ * If true, tool will not be included in initial system prompt. Only loaded when
2364
+ * returned via tool_reference from tool search.
2365
+ */
2366
+ defer_loading?: boolean;
2367
+
2368
+ /**
2369
+ * Maximum number of times the tool can be used in the API request.
2370
+ */
2371
+ max_uses?: number | null;
2372
+
2373
+ /**
2374
+ * When true, guarantees schema validation on tool names and inputs
2375
+ */
2376
+ strict?: boolean;
2377
+
2378
+ /**
2379
+ * Parameters for the user's location. Used to provide more relevant search
2380
+ * results.
2381
+ */
2382
+ user_location?: WebSearchTool20250305.UserLocation | null;
2383
+ }
2384
+
2385
+ export namespace WebSearchTool20250305 {
2386
+ /**
2387
+ * Parameters for the user's location. Used to provide more relevant search
2388
+ * results.
2389
+ */
2390
+ export interface UserLocation {
2391
+ type: 'approximate';
2392
+
2393
+ /**
2394
+ * The city of the user.
2395
+ */
2396
+ city?: string | null;
2397
+
2398
+ /**
2399
+ * The two letter
2400
+ * [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
2401
+ * user.
2402
+ */
2403
+ country?: string | null;
2404
+
2405
+ /**
2406
+ * The region of the user.
2407
+ */
2408
+ region?: string | null;
2409
+
2410
+ /**
2411
+ * The [IANA timezone](https://nodatime.org/TimeZones) of the user.
2412
+ */
2413
+ timezone?: string | null;
2414
+ }
2415
+ }
2416
+
2417
+ export interface WebSearchTool20260209 {
2418
+ /**
2419
+ * Name of the tool.
2420
+ *
2421
+ * This is how the tool will be called by the model and in `tool_use` blocks.
2422
+ */
2423
+ name: 'web_search';
2424
+
2425
+ type: 'web_search_20260209';
2426
+
2427
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2428
+
2429
+ /**
2430
+ * If provided, only these domains will be included in results. Cannot be used
2431
+ * alongside `blocked_domains`.
2432
+ */
2433
+ allowed_domains?: Array<string> | null;
2434
+
2435
+ /**
2436
+ * If provided, these domains will never appear in results. Cannot be used
2437
+ * alongside `allowed_domains`.
2438
+ */
2439
+ blocked_domains?: Array<string> | null;
2440
+
2441
+ /**
2442
+ * Create a cache control breakpoint at this content block.
2443
+ */
2444
+ cache_control?: CacheControlEphemeral | null;
2445
+
2446
+ /**
2447
+ * If true, tool will not be included in initial system prompt. Only loaded when
2448
+ * returned via tool_reference from tool search.
2449
+ */
2450
+ defer_loading?: boolean;
2451
+
2452
+ /**
2453
+ * Maximum number of times the tool can be used in the API request.
2454
+ */
2455
+ max_uses?: number | null;
2456
+
2457
+ /**
2458
+ * When true, guarantees schema validation on tool names and inputs
2459
+ */
2460
+ strict?: boolean;
2461
+
2462
+ /**
2463
+ * Parameters for the user's location. Used to provide more relevant search
2464
+ * results.
2465
+ */
2466
+ user_location?: WebSearchTool20260209.UserLocation | null;
2467
+ }
2468
+
2469
+ export namespace WebSearchTool20260209 {
2470
+ /**
2471
+ * Parameters for the user's location. Used to provide more relevant search
2472
+ * results.
2473
+ */
2474
+ export interface UserLocation {
2475
+ type: 'approximate';
2476
+
2477
+ /**
2478
+ * The city of the user.
2479
+ */
2480
+ city?: string | null;
2481
+
2482
+ /**
2483
+ * The two letter
2484
+ * [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the
2485
+ * user.
2486
+ */
2487
+ country?: string | null;
2488
+
2489
+ /**
2490
+ * The region of the user.
2491
+ */
2492
+ region?: string | null;
2493
+
2494
+ /**
2495
+ * The [IANA timezone](https://nodatime.org/TimeZones) of the user.
2496
+ */
2497
+ timezone?: string | null;
2498
+ }
2499
+ }
2500
+
2501
+ export interface WebSearchToolRequestError {
2502
+ error_code:
2503
+ | 'invalid_tool_input'
2504
+ | 'unavailable'
2505
+ | 'max_uses_exceeded'
2506
+ | 'too_many_requests'
2507
+ | 'query_too_long'
2508
+ | 'request_too_large';
2509
+
2510
+ type: 'web_search_tool_result_error';
2511
+ }
2512
+
2513
+ export interface WebSearchToolResultBlock {
2514
+ /**
2515
+ * Tool invocation directly from the model.
2516
+ */
2517
+ caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2518
+
2519
+ content: WebSearchToolResultBlockContent;
2520
+
2521
+ tool_use_id: string;
2522
+
2523
+ type: 'web_search_tool_result';
2524
+ }
2525
+
2526
+ export type WebSearchToolResultBlockContent = WebSearchToolResultError | Array<WebSearchResultBlock>;
2527
+
2528
+ export interface WebSearchToolResultBlockParam {
2529
+ content: WebSearchToolResultBlockParamContent;
2530
+
2531
+ tool_use_id: string;
2532
+
2533
+ type: 'web_search_tool_result';
2534
+
2535
+ /**
2536
+ * Create a cache control breakpoint at this content block.
2537
+ */
2538
+ cache_control?: CacheControlEphemeral | null;
2539
+
2540
+ /**
2541
+ * Tool invocation directly from the model.
2542
+ */
2543
+ caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
2544
+ }
2545
+
2546
+ export type WebSearchToolResultBlockParamContent =
2547
+ | Array<WebSearchResultBlockParam>
2548
+ | WebSearchToolRequestError;
2549
+
2550
+ export interface WebSearchToolResultError {
2551
+ error_code:
2552
+ | 'invalid_tool_input'
2553
+ | 'unavailable'
2554
+ | 'max_uses_exceeded'
2555
+ | 'too_many_requests'
2556
+ | 'query_too_long'
2557
+ | 'request_too_large';
2558
+
2559
+ type: 'web_search_tool_result_error';
2560
+ }
2561
+
2562
+ export type MessageStreamEvent = RawMessageStreamEvent;
2563
+
2564
+ export type MessageStartEvent = RawMessageStartEvent;
2565
+
2566
+ export type MessageDeltaEvent = RawMessageDeltaEvent;
2567
+
2568
+ export type MessageStopEvent = RawMessageStopEvent;
2569
+
2570
+ export type ContentBlockStartEvent = RawContentBlockStartEvent;
2571
+
2572
+ export type ContentBlockDeltaEvent = RawContentBlockDeltaEvent;
2573
+
2574
+ export type ContentBlockStopEvent = RawContentBlockStopEvent;
2575
+
2576
+ export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
2577
+
2578
+ export interface MessageCreateParamsBase {
2579
+ /**
2580
+ * The maximum number of tokens to generate before stopping.
2581
+ *
2582
+ * Note that our models may stop _before_ reaching this maximum. This parameter
2583
+ * only specifies the absolute maximum number of tokens to generate.
2584
+ *
2585
+ * Different models have different maximum values for this parameter. See
2586
+ * [models](https://docs.claude.com/en/docs/models-overview) for details.
2587
+ */
2588
+ max_tokens: number;
2589
+
2590
+ /**
2591
+ * Input messages.
2592
+ *
2593
+ * Our models are trained to operate on alternating `user` and `assistant`
2594
+ * conversational turns. When creating a new `Message`, you specify the prior
2595
+ * conversational turns with the `messages` parameter, and the model then generates
2596
+ * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
2597
+ * in your request will be combined into a single turn.
2598
+ *
2599
+ * Each input message must be an object with a `role` and `content`. You can
2600
+ * specify a single `user`-role message, or you can include multiple `user` and
2601
+ * `assistant` messages.
2602
+ *
2603
+ * If the final message uses the `assistant` role, the response content will
2604
+ * continue immediately from the content in that message. This can be used to
2605
+ * constrain part of the model's response.
2606
+ *
2607
+ * Example with a single `user` message:
2608
+ *
2609
+ * ```json
2610
+ * [{ "role": "user", "content": "Hello, Claude" }]
2611
+ * ```
2612
+ *
2613
+ * Example with multiple conversational turns:
2614
+ *
2615
+ * ```json
2616
+ * [
2617
+ * { "role": "user", "content": "Hello there." },
2618
+ * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
2619
+ * { "role": "user", "content": "Can you explain LLMs in plain English?" }
2620
+ * ]
2621
+ * ```
2622
+ *
2623
+ * Example with a partially-filled response from Claude:
2624
+ *
2625
+ * ```json
2626
+ * [
2627
+ * {
2628
+ * "role": "user",
2629
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
2630
+ * },
2631
+ * { "role": "assistant", "content": "The best answer is (" }
2632
+ * ]
2633
+ * ```
2634
+ *
2635
+ * Each input message `content` may be either a single `string` or an array of
2636
+ * content blocks, where each block has a specific `type`. Using a `string` for
2637
+ * `content` is shorthand for an array of one content block of type `"text"`. The
2638
+ * following input messages are equivalent:
2639
+ *
2640
+ * ```json
2641
+ * { "role": "user", "content": "Hello, Claude" }
2642
+ * ```
2643
+ *
2644
+ * ```json
2645
+ * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
2646
+ * ```
2647
+ *
2648
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
2649
+ *
2650
+ * Note that if you want to include a
2651
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
2652
+ * top-level `system` parameter — there is no `"system"` role for input messages in
2653
+ * the Messages API.
2654
+ *
2655
+ * There is a limit of 100,000 messages in a single request.
2656
+ */
2657
+ messages: Array<MessageParam>;
2658
+
2659
+ /**
2660
+ * The model that will complete your prompt.\n\nSee
2661
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2662
+ * details and options.
2663
+ */
2664
+ model: Model;
2665
+
2666
+ /**
2667
+ * Container identifier for reuse across requests.
2668
+ */
2669
+ container?: string | null;
2670
+
2671
+ /**
2672
+ * Specifies the geographic region for inference processing. If not specified, the
2673
+ * workspace's `default_inference_geo` is used.
2674
+ */
2675
+ inference_geo?: string | null;
2676
+
2677
+ /**
2678
+ * An object describing metadata about the request.
2679
+ */
2680
+ metadata?: Metadata;
2681
+
2682
+ /**
2683
+ * Configuration options for the model's output, such as the output format.
2684
+ */
2685
+ output_config?: OutputConfig;
2686
+
2687
+ /**
2688
+ * Determines whether to use priority capacity (if available) or standard capacity
2689
+ * for this request.
2690
+ *
2691
+ * Anthropic offers different levels of service for your API requests. See
2692
+ * [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
2693
+ */
2694
+ service_tier?: 'auto' | 'standard_only';
2695
+
2696
+ /**
2697
+ * Custom text sequences that will cause the model to stop generating.
2698
+ *
2699
+ * Our models will normally stop when they have naturally completed their turn,
2700
+ * which will result in a response `stop_reason` of `"end_turn"`.
2701
+ *
2702
+ * If you want the model to stop generating when it encounters custom strings of
2703
+ * text, you can use the `stop_sequences` parameter. If the model encounters one of
2704
+ * the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
2705
+ * and the response `stop_sequence` value will contain the matched stop sequence.
2706
+ */
2707
+ stop_sequences?: Array<string>;
2708
+
2709
+ /**
2710
+ * Whether to incrementally stream the response using server-sent events.
2711
+ *
2712
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
2713
+ */
2714
+ stream?: boolean;
2715
+
2716
+ /**
2717
+ * System prompt.
2718
+ *
2719
+ * A system prompt is a way of providing context and instructions to Claude, such
2720
+ * as specifying a particular goal or role. See our
2721
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
2722
+ */
2723
+ system?: string | Array<TextBlockParam>;
2724
+
2725
+ /**
2726
+ * Amount of randomness injected into the response.
2727
+ *
2728
+ * Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
2729
+ * for analytical / multiple choice, and closer to `1.0` for creative and
2730
+ * generative tasks.
2731
+ *
2732
+ * Note that even with `temperature` of `0.0`, the results will not be fully
2733
+ * deterministic.
2734
+ */
2735
+ temperature?: number;
2736
+
2737
+ /**
2738
+ * Configuration for enabling Claude's extended thinking.
2739
+ *
2740
+ * When enabled, responses include `thinking` content blocks showing Claude's
2741
+ * thinking process before the final answer. Requires a minimum budget of 1,024
2742
+ * tokens and counts towards your `max_tokens` limit.
2743
+ *
2744
+ * See
2745
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
2746
+ * for details.
2747
+ */
2748
+ thinking?: ThinkingConfigParam;
2749
+
2750
+ /**
2751
+ * How the model should use the provided tools. The model can use a specific tool,
2752
+ * any available tool, decide by itself, or not use tools at all.
2753
+ */
2754
+ tool_choice?: ToolChoice;
2755
+
2756
+ /**
2757
+ * Definitions of tools that the model may use.
2758
+ *
2759
+ * If you include `tools` in your API request, the model may return `tool_use`
2760
+ * content blocks that represent the model's use of those tools. You can then run
2761
+ * those tools using the tool input generated by the model and then optionally
2762
+ * return results back to the model using `tool_result` content blocks.
2763
+ *
2764
+ * There are two types of tools: **client tools** and **server tools**. The
2765
+ * behavior described below applies to client tools. For
2766
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
2767
+ * see their individual documentation as each has its own behavior (e.g., the
2768
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
2769
+ *
2770
+ * Each tool definition includes:
2771
+ *
2772
+ * - `name`: Name of the tool.
2773
+ * - `description`: Optional, but strongly-recommended description of the tool.
2774
+ * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
2775
+ * tool `input` shape that the model will produce in `tool_use` output content
2776
+ * blocks.
2777
+ *
2778
+ * For example, if you defined `tools` as:
2779
+ *
2780
+ * ```json
2781
+ * [
2782
+ * {
2783
+ * "name": "get_stock_price",
2784
+ * "description": "Get the current stock price for a given ticker symbol.",
2785
+ * "input_schema": {
2786
+ * "type": "object",
2787
+ * "properties": {
2788
+ * "ticker": {
2789
+ * "type": "string",
2790
+ * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
2791
+ * }
2792
+ * },
2793
+ * "required": ["ticker"]
2794
+ * }
2795
+ * }
2796
+ * ]
2797
+ * ```
2798
+ *
2799
+ * And then asked the model "What's the S&P 500 at today?", the model might produce
2800
+ * `tool_use` content blocks in the response like this:
2801
+ *
2802
+ * ```json
2803
+ * [
2804
+ * {
2805
+ * "type": "tool_use",
2806
+ * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
2807
+ * "name": "get_stock_price",
2808
+ * "input": { "ticker": "^GSPC" }
2809
+ * }
2810
+ * ]
2811
+ * ```
2812
+ *
2813
+ * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
2814
+ * input, and return the following back to the model in a subsequent `user`
2815
+ * message:
2816
+ *
2817
+ * ```json
2818
+ * [
2819
+ * {
2820
+ * "type": "tool_result",
2821
+ * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
2822
+ * "content": "259.75 USD"
2823
+ * }
2824
+ * ]
2825
+ * ```
2826
+ *
2827
+ * Tools can be used for workflows that include running client-side tools and
2828
+ * functions, or more generally whenever you want the model to produce a particular
2829
+ * JSON structure of output.
2830
+ *
2831
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
2832
+ */
2833
+ tools?: Array<ToolUnion>;
2834
+
2835
+ /**
2836
+ * Only sample from the top K options for each subsequent token.
2837
+ *
2838
+ * Used to remove "long tail" low probability responses.
2839
+ * [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
2840
+ *
2841
+ * Recommended for advanced use cases only. You usually only need to use
2842
+ * `temperature`.
2843
+ */
2844
+ top_k?: number;
2845
+
2846
+ /**
2847
+ * Use nucleus sampling.
2848
+ *
2849
+ * In nucleus sampling, we compute the cumulative distribution over all the options
2850
+ * for each subsequent token in decreasing probability order and cut it off once it
2851
+ * reaches a particular probability specified by `top_p`. You should either alter
2852
+ * `temperature` or `top_p`, but not both.
2853
+ *
2854
+ * Recommended for advanced use cases only. You usually only need to use
2855
+ * `temperature`.
2856
+ */
2857
+ top_p?: number;
2858
+ }
2859
+
2860
+ export namespace MessageCreateParams {
2861
+ export type MessageCreateParamsNonStreaming = MessagesAPI.MessageCreateParamsNonStreaming;
2862
+ export type MessageCreateParamsStreaming = MessagesAPI.MessageCreateParamsStreaming;
2863
+ }
2864
+
2865
+ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
2866
+ /**
2867
+ * Whether to incrementally stream the response using server-sent events.
2868
+ *
2869
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
2870
+ */
2871
+ stream?: false;
2872
+ }
2873
+
2874
+ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
2875
+ /**
2876
+ * Whether to incrementally stream the response using server-sent events.
2877
+ *
2878
+ * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
2879
+ */
2880
+ stream: true;
2881
+ }
2882
+
2883
+ export type MessageStreamParams = ParseableMessageCreateParams;
2884
+
2885
+ export interface MessageCountTokensParams {
2886
+ /**
2887
+ * Input messages.
2888
+ *
2889
+ * Our models are trained to operate on alternating `user` and `assistant`
2890
+ * conversational turns. When creating a new `Message`, you specify the prior
2891
+ * conversational turns with the `messages` parameter, and the model then generates
2892
+ * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
2893
+ * in your request will be combined into a single turn.
2894
+ *
2895
+ * Each input message must be an object with a `role` and `content`. You can
2896
+ * specify a single `user`-role message, or you can include multiple `user` and
2897
+ * `assistant` messages.
2898
+ *
2899
+ * If the final message uses the `assistant` role, the response content will
2900
+ * continue immediately from the content in that message. This can be used to
2901
+ * constrain part of the model's response.
2902
+ *
2903
+ * Example with a single `user` message:
2904
+ *
2905
+ * ```json
2906
+ * [{ "role": "user", "content": "Hello, Claude" }]
2907
+ * ```
2908
+ *
2909
+ * Example with multiple conversational turns:
2910
+ *
2911
+ * ```json
2912
+ * [
2913
+ * { "role": "user", "content": "Hello there." },
2914
+ * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
2915
+ * { "role": "user", "content": "Can you explain LLMs in plain English?" }
2916
+ * ]
2917
+ * ```
2918
+ *
2919
+ * Example with a partially-filled response from Claude:
2920
+ *
2921
+ * ```json
2922
+ * [
2923
+ * {
2924
+ * "role": "user",
2925
+ * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
2926
+ * },
2927
+ * { "role": "assistant", "content": "The best answer is (" }
2928
+ * ]
2929
+ * ```
2930
+ *
2931
+ * Each input message `content` may be either a single `string` or an array of
2932
+ * content blocks, where each block has a specific `type`. Using a `string` for
2933
+ * `content` is shorthand for an array of one content block of type `"text"`. The
2934
+ * following input messages are equivalent:
2935
+ *
2936
+ * ```json
2937
+ * { "role": "user", "content": "Hello, Claude" }
2938
+ * ```
2939
+ *
2940
+ * ```json
2941
+ * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
2942
+ * ```
2943
+ *
2944
+ * See [input examples](https://docs.claude.com/en/api/messages-examples).
2945
+ *
2946
+ * Note that if you want to include a
2947
+ * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
2948
+ * top-level `system` parameter — there is no `"system"` role for input messages in
2949
+ * the Messages API.
2950
+ *
2951
+ * There is a limit of 100,000 messages in a single request.
2952
+ */
2953
+ messages: Array<MessageParam>;
2954
+
2955
+ /**
2956
+ * The model that will complete your prompt.\n\nSee
2957
+ * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2958
+ * details and options.
2959
+ */
2960
+ model: Model;
2961
+
2962
+ /**
2963
+ * Configuration options for the model's output, such as the output format.
2964
+ */
2965
+ output_config?: OutputConfig;
2966
+
2967
+ /**
2968
+ * System prompt.
2969
+ *
2970
+ * A system prompt is a way of providing context and instructions to Claude, such
2971
+ * as specifying a particular goal or role. See our
2972
+ * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
2973
+ */
2974
+ system?: string | Array<TextBlockParam>;
2975
+
2976
+ /**
2977
+ * Configuration for enabling Claude's extended thinking.
2978
+ *
2979
+ * When enabled, responses include `thinking` content blocks showing Claude's
2980
+ * thinking process before the final answer. Requires a minimum budget of 1,024
2981
+ * tokens and counts towards your `max_tokens` limit.
2982
+ *
2983
+ * See
2984
+ * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
2985
+ * for details.
2986
+ */
2987
+ thinking?: ThinkingConfigParam;
2988
+
2989
+ /**
2990
+ * How the model should use the provided tools. The model can use a specific tool,
2991
+ * any available tool, decide by itself, or not use tools at all.
2992
+ */
2993
+ tool_choice?: ToolChoice;
2994
+
2995
+ /**
2996
+ * Definitions of tools that the model may use.
2997
+ *
2998
+ * If you include `tools` in your API request, the model may return `tool_use`
2999
+ * content blocks that represent the model's use of those tools. You can then run
3000
+ * those tools using the tool input generated by the model and then optionally
3001
+ * return results back to the model using `tool_result` content blocks.
3002
+ *
3003
+ * There are two types of tools: **client tools** and **server tools**. The
3004
+ * behavior described below applies to client tools. For
3005
+ * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
3006
+ * see their individual documentation as each has its own behavior (e.g., the
3007
+ * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
3008
+ *
3009
+ * Each tool definition includes:
3010
+ *
3011
+ * - `name`: Name of the tool.
3012
+ * - `description`: Optional, but strongly-recommended description of the tool.
3013
+ * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
3014
+ * tool `input` shape that the model will produce in `tool_use` output content
3015
+ * blocks.
3016
+ *
3017
+ * For example, if you defined `tools` as:
3018
+ *
3019
+ * ```json
3020
+ * [
3021
+ * {
3022
+ * "name": "get_stock_price",
3023
+ * "description": "Get the current stock price for a given ticker symbol.",
3024
+ * "input_schema": {
3025
+ * "type": "object",
3026
+ * "properties": {
3027
+ * "ticker": {
3028
+ * "type": "string",
3029
+ * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
3030
+ * }
3031
+ * },
3032
+ * "required": ["ticker"]
3033
+ * }
3034
+ * }
3035
+ * ]
3036
+ * ```
3037
+ *
3038
+ * And then asked the model "What's the S&P 500 at today?", the model might produce
3039
+ * `tool_use` content blocks in the response like this:
3040
+ *
3041
+ * ```json
3042
+ * [
3043
+ * {
3044
+ * "type": "tool_use",
3045
+ * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3046
+ * "name": "get_stock_price",
3047
+ * "input": { "ticker": "^GSPC" }
3048
+ * }
3049
+ * ]
3050
+ * ```
3051
+ *
3052
+ * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
3053
+ * input, and return the following back to the model in a subsequent `user`
3054
+ * message:
3055
+ *
3056
+ * ```json
3057
+ * [
3058
+ * {
3059
+ * "type": "tool_result",
3060
+ * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
3061
+ * "content": "259.75 USD"
3062
+ * }
3063
+ * ]
3064
+ * ```
3065
+ *
3066
+ * Tools can be used for workflows that include running client-side tools and
3067
+ * functions, or more generally whenever you want the model to produce a particular
3068
+ * JSON structure of output.
3069
+ *
3070
+ * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
3071
+ */
3072
+ tools?: Array<MessageCountTokensTool>;
3073
+ }
3074
+
3075
+ Messages.Batches = Batches;
3076
+
3077
+ export declare namespace Messages {
3078
+ export {
3079
+ type Base64ImageSource as Base64ImageSource,
3080
+ type Base64PDFSource as Base64PDFSource,
3081
+ type BashCodeExecutionOutputBlock as BashCodeExecutionOutputBlock,
3082
+ type BashCodeExecutionOutputBlockParam as BashCodeExecutionOutputBlockParam,
3083
+ type BashCodeExecutionResultBlock as BashCodeExecutionResultBlock,
3084
+ type BashCodeExecutionResultBlockParam as BashCodeExecutionResultBlockParam,
3085
+ type BashCodeExecutionToolResultBlock as BashCodeExecutionToolResultBlock,
3086
+ type BashCodeExecutionToolResultBlockParam as BashCodeExecutionToolResultBlockParam,
3087
+ type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError,
3088
+ type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode,
3089
+ type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam,
3090
+ type CacheControlEphemeral as CacheControlEphemeral,
3091
+ type CacheCreation as CacheCreation,
3092
+ type CitationCharLocation as CitationCharLocation,
3093
+ type CitationCharLocationParam as CitationCharLocationParam,
3094
+ type CitationContentBlockLocation as CitationContentBlockLocation,
3095
+ type CitationContentBlockLocationParam as CitationContentBlockLocationParam,
3096
+ type CitationPageLocation as CitationPageLocation,
3097
+ type CitationPageLocationParam as CitationPageLocationParam,
3098
+ type CitationSearchResultLocationParam as CitationSearchResultLocationParam,
3099
+ type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam,
3100
+ type CitationsConfig as CitationsConfig,
3101
+ type CitationsConfigParam as CitationsConfigParam,
3102
+ type CitationsDelta as CitationsDelta,
3103
+ type CitationsSearchResultLocation as CitationsSearchResultLocation,
3104
+ type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation,
3105
+ type CodeExecutionOutputBlock as CodeExecutionOutputBlock,
3106
+ type CodeExecutionOutputBlockParam as CodeExecutionOutputBlockParam,
3107
+ type CodeExecutionResultBlock as CodeExecutionResultBlock,
3108
+ type CodeExecutionResultBlockParam as CodeExecutionResultBlockParam,
3109
+ type CodeExecutionTool20250522 as CodeExecutionTool20250522,
3110
+ type CodeExecutionTool20250825 as CodeExecutionTool20250825,
3111
+ type CodeExecutionTool20260120 as CodeExecutionTool20260120,
3112
+ type CodeExecutionToolResultBlock as CodeExecutionToolResultBlock,
3113
+ type CodeExecutionToolResultBlockContent as CodeExecutionToolResultBlockContent,
3114
+ type CodeExecutionToolResultBlockParam as CodeExecutionToolResultBlockParam,
3115
+ type CodeExecutionToolResultBlockParamContent as CodeExecutionToolResultBlockParamContent,
3116
+ type CodeExecutionToolResultError as CodeExecutionToolResultError,
3117
+ type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode,
3118
+ type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam,
3119
+ type Container as Container,
3120
+ type ContainerUploadBlock as ContainerUploadBlock,
3121
+ type ContainerUploadBlockParam as ContainerUploadBlockParam,
3122
+ type ContentBlock as ContentBlock,
3123
+ type ContentBlockParam as ContentBlockParam,
3124
+ type ContentBlockStartEvent as ContentBlockStartEvent,
3125
+ type ContentBlockStopEvent as ContentBlockStopEvent,
3126
+ type ContentBlockSource as ContentBlockSource,
3127
+ type ContentBlockSourceContent as ContentBlockSourceContent,
3128
+ type DirectCaller as DirectCaller,
3129
+ type DocumentBlock as DocumentBlock,
3130
+ type DocumentBlockParam as DocumentBlockParam,
3131
+ type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock,
3132
+ type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam,
3133
+ type ImageBlockParam as ImageBlockParam,
3134
+ type InputJSONDelta as InputJSONDelta,
3135
+ type JSONOutputFormat as JSONOutputFormat,
3136
+ type MemoryTool20250818 as MemoryTool20250818,
3137
+ type Message as Message,
3138
+ type MessageCountTokensTool as MessageCountTokensTool,
3139
+ type MessageDeltaEvent as MessageDeltaEvent,
3140
+ type MessageDeltaUsage as MessageDeltaUsage,
3141
+ type MessageParam as MessageParam,
3142
+ type MessageTokensCount as MessageTokensCount,
3143
+ type Metadata as Metadata,
3144
+ type Model as Model,
3145
+ type OutputConfig as OutputConfig,
3146
+ type PlainTextSource as PlainTextSource,
3147
+ type RawContentBlockDelta as RawContentBlockDelta,
3148
+ type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent,
3149
+ type RawContentBlockStartEvent as RawContentBlockStartEvent,
3150
+ type RawContentBlockStopEvent as RawContentBlockStopEvent,
3151
+ type RawMessageDeltaEvent as RawMessageDeltaEvent,
3152
+ type RawMessageStartEvent as RawMessageStartEvent,
3153
+ type RawMessageStopEvent as RawMessageStopEvent,
3154
+ type RawMessageStreamEvent as RawMessageStreamEvent,
3155
+ type RedactedThinkingBlock as RedactedThinkingBlock,
3156
+ type RedactedThinkingBlockParam as RedactedThinkingBlockParam,
3157
+ type SearchResultBlockParam as SearchResultBlockParam,
3158
+ type ServerToolCaller as ServerToolCaller,
3159
+ type ServerToolCaller20260120 as ServerToolCaller20260120,
3160
+ type ServerToolUsage as ServerToolUsage,
3161
+ type ServerToolUseBlock as ServerToolUseBlock,
3162
+ type ServerToolUseBlockParam as ServerToolUseBlockParam,
3163
+ type SignatureDelta as SignatureDelta,
3164
+ type StopReason as StopReason,
3165
+ type TextBlock as TextBlock,
3166
+ type TextBlockParam as TextBlockParam,
3167
+ type TextCitation as TextCitation,
3168
+ type TextCitationParam as TextCitationParam,
3169
+ type TextDelta as TextDelta,
3170
+ type TextEditorCodeExecutionCreateResultBlock as TextEditorCodeExecutionCreateResultBlock,
3171
+ type TextEditorCodeExecutionCreateResultBlockParam as TextEditorCodeExecutionCreateResultBlockParam,
3172
+ type TextEditorCodeExecutionStrReplaceResultBlock as TextEditorCodeExecutionStrReplaceResultBlock,
3173
+ type TextEditorCodeExecutionStrReplaceResultBlockParam as TextEditorCodeExecutionStrReplaceResultBlockParam,
3174
+ type TextEditorCodeExecutionToolResultBlock as TextEditorCodeExecutionToolResultBlock,
3175
+ type TextEditorCodeExecutionToolResultBlockParam as TextEditorCodeExecutionToolResultBlockParam,
3176
+ type TextEditorCodeExecutionToolResultError as TextEditorCodeExecutionToolResultError,
3177
+ type TextEditorCodeExecutionToolResultErrorCode as TextEditorCodeExecutionToolResultErrorCode,
3178
+ type TextEditorCodeExecutionToolResultErrorParam as TextEditorCodeExecutionToolResultErrorParam,
3179
+ type TextEditorCodeExecutionViewResultBlock as TextEditorCodeExecutionViewResultBlock,
3180
+ type TextEditorCodeExecutionViewResultBlockParam as TextEditorCodeExecutionViewResultBlockParam,
3181
+ type ThinkingBlock as ThinkingBlock,
3182
+ type ThinkingBlockParam as ThinkingBlockParam,
3183
+ type ThinkingConfigAdaptive as ThinkingConfigAdaptive,
3184
+ type ThinkingConfigDisabled as ThinkingConfigDisabled,
3185
+ type ThinkingConfigEnabled as ThinkingConfigEnabled,
3186
+ type ThinkingConfigParam as ThinkingConfigParam,
3187
+ type ThinkingDelta as ThinkingDelta,
3188
+ type Tool as Tool,
3189
+ type ToolBash20250124 as ToolBash20250124,
3190
+ type ToolChoice as ToolChoice,
3191
+ type ToolChoiceAny as ToolChoiceAny,
3192
+ type ToolChoiceAuto as ToolChoiceAuto,
3193
+ type ToolChoiceNone as ToolChoiceNone,
3194
+ type ToolChoiceTool as ToolChoiceTool,
3195
+ type ToolReferenceBlock as ToolReferenceBlock,
3196
+ type ToolReferenceBlockParam as ToolReferenceBlockParam,
3197
+ type ToolResultBlockParam as ToolResultBlockParam,
3198
+ type ToolSearchToolBm25_20251119 as ToolSearchToolBm25_20251119,
3199
+ type ToolSearchToolRegex20251119 as ToolSearchToolRegex20251119,
3200
+ type ToolSearchToolResultBlock as ToolSearchToolResultBlock,
3201
+ type ToolSearchToolResultBlockParam as ToolSearchToolResultBlockParam,
3202
+ type ToolSearchToolResultError as ToolSearchToolResultError,
3203
+ type ToolSearchToolResultErrorCode as ToolSearchToolResultErrorCode,
3204
+ type ToolSearchToolResultErrorParam as ToolSearchToolResultErrorParam,
3205
+ type ToolSearchToolSearchResultBlock as ToolSearchToolSearchResultBlock,
3206
+ type ToolSearchToolSearchResultBlockParam as ToolSearchToolSearchResultBlockParam,
3207
+ type ToolTextEditor20250124 as ToolTextEditor20250124,
3208
+ type ToolTextEditor20250429 as ToolTextEditor20250429,
3209
+ type ToolTextEditor20250728 as ToolTextEditor20250728,
3210
+ type ToolUnion as ToolUnion,
3211
+ type ToolUseBlock as ToolUseBlock,
3212
+ type ToolUseBlockParam as ToolUseBlockParam,
3213
+ type URLImageSource as URLImageSource,
3214
+ type URLPDFSource as URLPDFSource,
3215
+ type Usage as Usage,
3216
+ type WebFetchBlock as WebFetchBlock,
3217
+ type WebFetchBlockParam as WebFetchBlockParam,
3218
+ type WebFetchTool20250910 as WebFetchTool20250910,
3219
+ type WebFetchTool20260209 as WebFetchTool20260209,
3220
+ type WebFetchToolResultBlock as WebFetchToolResultBlock,
3221
+ type WebFetchToolResultBlockParam as WebFetchToolResultBlockParam,
3222
+ type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock,
3223
+ type WebFetchToolResultErrorBlockParam as WebFetchToolResultErrorBlockParam,
3224
+ type WebFetchToolResultErrorCode as WebFetchToolResultErrorCode,
3225
+ type WebSearchResultBlock as WebSearchResultBlock,
3226
+ type WebSearchResultBlockParam as WebSearchResultBlockParam,
3227
+ type WebSearchTool20250305 as WebSearchTool20250305,
3228
+ type WebSearchTool20260209 as WebSearchTool20260209,
3229
+ type WebSearchToolRequestError as WebSearchToolRequestError,
3230
+ type WebSearchToolResultBlock as WebSearchToolResultBlock,
3231
+ type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent,
3232
+ type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam,
3233
+ type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent,
3234
+ type WebSearchToolResultError as WebSearchToolResultError,
3235
+ type MessageStreamEvent as MessageStreamEvent,
3236
+ type MessageStartEvent as MessageStartEvent,
3237
+ type MessageStopEvent as MessageStopEvent,
3238
+ type ContentBlockDeltaEvent as ContentBlockDeltaEvent,
3239
+ type MessageCreateParams as MessageCreateParams,
3240
+ type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
3241
+ type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
3242
+ type MessageStreamParams as MessageStreamParams,
3243
+ type MessageCountTokensParams as MessageCountTokensParams,
3244
+ };
3245
+
3246
+ export {
3247
+ Batches as Batches,
3248
+ type DeletedMessageBatch as DeletedMessageBatch,
3249
+ type MessageBatch as MessageBatch,
3250
+ type MessageBatchCanceledResult as MessageBatchCanceledResult,
3251
+ type MessageBatchErroredResult as MessageBatchErroredResult,
3252
+ type MessageBatchExpiredResult as MessageBatchExpiredResult,
3253
+ type MessageBatchIndividualResponse as MessageBatchIndividualResponse,
3254
+ type MessageBatchRequestCounts as MessageBatchRequestCounts,
3255
+ type MessageBatchResult as MessageBatchResult,
3256
+ type MessageBatchSucceededResult as MessageBatchSucceededResult,
3257
+ type MessageBatchesPage as MessageBatchesPage,
3258
+ type BatchCreateParams as BatchCreateParams,
3259
+ type BatchListParams as BatchListParams,
3260
+ };
3261
+ }