anthropic 1.79.0 → 1.80.0

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 (268) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -1
  3. data/README.md +1 -1
  4. data/lib/anthropic/helpers/refusal_fallback.rb +52 -21
  5. data/lib/anthropic/models/beta/agent_archive_params.rb +3 -2
  6. data/lib/anthropic/models/beta/agent_create_params.rb +3 -2
  7. data/lib/anthropic/models/beta/agent_list_params.rb +3 -2
  8. data/lib/anthropic/models/beta/agent_retrieve_params.rb +3 -2
  9. data/lib/anthropic/models/beta/agent_update_params.rb +3 -2
  10. data/lib/anthropic/models/beta/agents/version_list_params.rb +3 -2
  11. data/lib/anthropic/models/beta/beta_thinking_types.rb +17 -2
  12. data/lib/anthropic/models/beta/deployment_archive_params.rb +3 -2
  13. data/lib/anthropic/models/beta/deployment_create_params.rb +3 -2
  14. data/lib/anthropic/models/beta/deployment_list_params.rb +3 -2
  15. data/lib/anthropic/models/beta/deployment_pause_params.rb +3 -2
  16. data/lib/anthropic/models/beta/deployment_retrieve_params.rb +3 -2
  17. data/lib/anthropic/models/beta/deployment_run_list_params.rb +3 -2
  18. data/lib/anthropic/models/beta/deployment_run_params.rb +3 -2
  19. data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +3 -2
  20. data/lib/anthropic/models/beta/deployment_unpause_params.rb +3 -2
  21. data/lib/anthropic/models/beta/deployment_update_params.rb +3 -2
  22. data/lib/anthropic/models/beta/dream_archive_params.rb +3 -2
  23. data/lib/anthropic/models/beta/dream_cancel_params.rb +3 -2
  24. data/lib/anthropic/models/beta/dream_create_params.rb +3 -2
  25. data/lib/anthropic/models/beta/dream_list_params.rb +3 -2
  26. data/lib/anthropic/models/beta/dream_retrieve_params.rb +3 -2
  27. data/lib/anthropic/models/beta/memory_store_archive_params.rb +3 -2
  28. data/lib/anthropic/models/beta/memory_store_create_params.rb +3 -2
  29. data/lib/anthropic/models/beta/memory_store_delete_params.rb +3 -2
  30. data/lib/anthropic/models/beta/memory_store_list_params.rb +3 -2
  31. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +3 -2
  32. data/lib/anthropic/models/beta/memory_store_update_params.rb +3 -2
  33. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +3 -2
  34. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +3 -2
  35. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +3 -2
  36. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +3 -2
  37. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +3 -2
  38. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +3 -2
  39. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +3 -2
  40. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +3 -2
  41. data/lib/anthropic/models/beta/message_count_tokens_params.rb +10 -0
  42. data/lib/anthropic/models/beta/message_create_params.rb +10 -0
  43. data/lib/anthropic/models/beta/messages/batch_create_params.rb +10 -0
  44. data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +14 -4
  45. data/lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb +25 -0
  46. data/lib/anthropic/models/beta/organization/beta_spend_summary.rb +28 -8
  47. data/lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb +3 -2
  48. data/lib/anthropic/models/beta/organization/telemetry_destination_delete_params.rb +7 -2
  49. data/lib/anthropic/models/beta/organization/telemetry_destination_list_params.rb +3 -2
  50. data/lib/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rb +7 -2
  51. data/lib/anthropic/models/beta/organization/telemetry_destination_test_params.rb +7 -2
  52. data/lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb +3 -2
  53. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rb +7 -2
  54. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rb +3 -2
  55. data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rb +7 -2
  56. data/lib/anthropic/models/beta/session_archive_params.rb +3 -2
  57. data/lib/anthropic/models/beta/session_create_params.rb +3 -2
  58. data/lib/anthropic/models/beta/session_delete_params.rb +3 -2
  59. data/lib/anthropic/models/beta/session_list_params.rb +3 -2
  60. data/lib/anthropic/models/beta/session_retrieve_params.rb +3 -2
  61. data/lib/anthropic/models/beta/session_update_params.rb +3 -2
  62. data/lib/anthropic/models/beta/sessions/event_list_params.rb +3 -2
  63. data/lib/anthropic/models/beta/sessions/event_send_params.rb +3 -2
  64. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +3 -2
  65. data/lib/anthropic/models/beta/sessions/resource_add_params.rb +3 -2
  66. data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +3 -2
  67. data/lib/anthropic/models/beta/sessions/resource_list_params.rb +3 -2
  68. data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +3 -2
  69. data/lib/anthropic/models/beta/sessions/resource_update_params.rb +3 -2
  70. data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +3 -2
  71. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +3 -2
  72. data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +3 -2
  73. data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +3 -2
  74. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +3 -2
  75. data/lib/anthropic/models/beta/tunnel_archive_params.rb +3 -2
  76. data/lib/anthropic/models/beta/tunnel_create_params.rb +3 -2
  77. data/lib/anthropic/models/beta/tunnel_list_params.rb +3 -2
  78. data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +3 -2
  79. data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +3 -2
  80. data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +3 -2
  81. data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +3 -2
  82. data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +3 -2
  83. data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +3 -2
  84. data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +3 -2
  85. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +3 -2
  86. data/lib/anthropic/models/beta/user_profile_create_params.rb +3 -2
  87. data/lib/anthropic/models/beta/user_profile_list_params.rb +3 -2
  88. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +3 -2
  89. data/lib/anthropic/models/beta/user_profile_update_params.rb +3 -2
  90. data/lib/anthropic/models/beta/vault_archive_params.rb +3 -2
  91. data/lib/anthropic/models/beta/vault_create_params.rb +3 -2
  92. data/lib/anthropic/models/beta/vault_delete_params.rb +3 -2
  93. data/lib/anthropic/models/beta/vault_list_params.rb +3 -2
  94. data/lib/anthropic/models/beta/vault_retrieve_params.rb +3 -2
  95. data/lib/anthropic/models/beta/vault_update_params.rb +3 -2
  96. data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +3 -2
  97. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -2
  98. data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +3 -2
  99. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +3 -2
  100. data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +3 -2
  101. data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +3 -2
  102. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -2
  103. data/lib/anthropic/models/message_count_tokens_params.rb +32 -1
  104. data/lib/anthropic/models/message_create_params.rb +32 -1
  105. data/lib/anthropic/models/messages/batch_create_params.rb +38 -1
  106. data/lib/anthropic/models/thinking_types.rb +17 -2
  107. data/lib/anthropic/models/usage.rb +22 -1
  108. data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
  109. data/lib/anthropic/resources/beta/agents.rb +5 -5
  110. data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
  111. data/lib/anthropic/resources/beta/deployments.rb +8 -8
  112. data/lib/anthropic/resources/beta/dreams.rb +5 -5
  113. data/lib/anthropic/resources/beta/memory_stores/memories.rb +5 -5
  114. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +3 -3
  115. data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
  116. data/lib/anthropic/resources/beta/organization/spend_limits.rb +3 -2
  117. data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +11 -3
  118. data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +18 -6
  119. data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
  120. data/lib/anthropic/resources/beta/sessions/resources.rb +5 -5
  121. data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
  122. data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
  123. data/lib/anthropic/resources/beta/sessions.rb +6 -6
  124. data/lib/anthropic/resources/beta/tunnels/certificates.rb +4 -4
  125. data/lib/anthropic/resources/beta/tunnels.rb +6 -6
  126. data/lib/anthropic/resources/beta/user_profiles.rb +5 -5
  127. data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
  128. data/lib/anthropic/resources/beta/vaults.rb +6 -6
  129. data/lib/anthropic/resources/messages.rb +12 -4
  130. data/lib/anthropic/version.rb +1 -1
  131. data/lib/anthropic.rb +1 -0
  132. data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -2
  133. data/rbi/anthropic/models/beta/agent_create_params.rbi +4 -2
  134. data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -2
  135. data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -2
  136. data/rbi/anthropic/models/beta/agent_update_params.rbi +4 -2
  137. data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -2
  138. data/rbi/anthropic/models/beta/beta_thinking_types.rbi +31 -2
  139. data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -2
  140. data/rbi/anthropic/models/beta/deployment_create_params.rbi +4 -2
  141. data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -2
  142. data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -2
  143. data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -2
  144. data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -2
  145. data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -2
  146. data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -2
  147. data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -2
  148. data/rbi/anthropic/models/beta/deployment_update_params.rbi +4 -2
  149. data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -2
  150. data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -2
  151. data/rbi/anthropic/models/beta/dream_create_params.rbi +4 -2
  152. data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -2
  153. data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -2
  154. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -2
  155. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -2
  156. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -2
  157. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -2
  158. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -2
  159. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -2
  160. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -2
  161. data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -2
  162. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -2
  163. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -2
  164. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -2
  165. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -2
  166. data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -2
  167. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -2
  168. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +15 -0
  169. data/rbi/anthropic/models/beta/message_create_params.rbi +15 -0
  170. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +15 -0
  171. data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +9 -2
  172. data/rbi/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbi +38 -0
  173. data/rbi/anthropic/models/beta/organization/beta_spend_summary.rbi +18 -4
  174. data/rbi/anthropic/models/beta/organization/telemetry_destination_create_params.rbi +4 -2
  175. data/rbi/anthropic/models/beta/organization/telemetry_destination_delete_params.rbi +4 -2
  176. data/rbi/anthropic/models/beta/organization/telemetry_destination_list_params.rbi +4 -2
  177. data/rbi/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rbi +4 -2
  178. data/rbi/anthropic/models/beta/organization/telemetry_destination_test_params.rbi +4 -2
  179. data/rbi/anthropic/models/beta/organization/telemetry_destination_update_params.rbi +4 -2
  180. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rbi +4 -2
  181. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rbi +4 -2
  182. data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rbi +4 -2
  183. data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -2
  184. data/rbi/anthropic/models/beta/session_create_params.rbi +4 -2
  185. data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -2
  186. data/rbi/anthropic/models/beta/session_list_params.rbi +4 -2
  187. data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -2
  188. data/rbi/anthropic/models/beta/session_update_params.rbi +4 -2
  189. data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -2
  190. data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -2
  191. data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -2
  192. data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -2
  193. data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -2
  194. data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -2
  195. data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -2
  196. data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -2
  197. data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -2
  198. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -2
  199. data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -2
  200. data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -2
  201. data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -2
  202. data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -2
  203. data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -2
  204. data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -2
  205. data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -2
  206. data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -2
  207. data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -2
  208. data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -2
  209. data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -2
  210. data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -2
  211. data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -2
  212. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +4 -2
  213. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +4 -2
  214. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +4 -2
  215. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +4 -2
  216. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +4 -2
  217. data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -2
  218. data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -2
  219. data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -2
  220. data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -2
  221. data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -2
  222. data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -2
  223. data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -2
  224. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -2
  225. data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -2
  226. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -2
  227. data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -2
  228. data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -2
  229. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +4 -2
  230. data/rbi/anthropic/models/message_count_tokens_params.rbi +57 -0
  231. data/rbi/anthropic/models/message_create_params.rbi +49 -0
  232. data/rbi/anthropic/models/messages/batch_create_params.rbi +73 -0
  233. data/rbi/anthropic/models/thinking_types.rbi +27 -2
  234. data/rbi/anthropic/models/usage.rbi +29 -3
  235. data/rbi/anthropic/resources/beta/agents/versions.rbi +2 -1
  236. data/rbi/anthropic/resources/beta/agents.rbi +10 -5
  237. data/rbi/anthropic/resources/beta/deployment_runs.rbi +4 -2
  238. data/rbi/anthropic/resources/beta/deployments.rbi +16 -8
  239. data/rbi/anthropic/resources/beta/dreams.rbi +10 -5
  240. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +10 -5
  241. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +6 -3
  242. data/rbi/anthropic/resources/beta/memory_stores.rbi +12 -6
  243. data/rbi/anthropic/resources/beta/messages.rbi +15 -0
  244. data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +3 -2
  245. data/rbi/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rbi +6 -3
  246. data/rbi/anthropic/resources/beta/organization/telemetry_destinations.rbi +12 -6
  247. data/rbi/anthropic/resources/beta/sessions/events.rbi +6 -3
  248. data/rbi/anthropic/resources/beta/sessions/resources.rbi +10 -5
  249. data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +4 -2
  250. data/rbi/anthropic/resources/beta/sessions/threads.rbi +6 -3
  251. data/rbi/anthropic/resources/beta/sessions.rbi +12 -6
  252. data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +8 -4
  253. data/rbi/anthropic/resources/beta/tunnels.rbi +12 -6
  254. data/rbi/anthropic/resources/beta/user_profiles.rbi +13 -5
  255. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +14 -7
  256. data/rbi/anthropic/resources/beta/vaults.rbi +12 -6
  257. data/rbi/anthropic/resources/messages.rbi +32 -0
  258. data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
  259. data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +6 -0
  260. data/sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs +17 -0
  261. data/sig/anthropic/models/beta/organization/beta_spend_summary.rbs +12 -0
  262. data/sig/anthropic/models/message_count_tokens_params.rbs +16 -0
  263. data/sig/anthropic/models/message_create_params.rbs +16 -0
  264. data/sig/anthropic/models/messages/batch_create_params.rbs +16 -0
  265. data/sig/anthropic/models/thinking_types.rbs +5 -0
  266. data/sig/anthropic/models/usage.rbs +19 -3
  267. data/sig/anthropic/resources/messages.rbs +4 -0
  268. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74e6cbcdcbbf6d31ad5a08947e0b061fb8be75a367c6be4aac63cf7a715279fc
4
- data.tar.gz: 9dcb1523d20c8af4dce1dadd9d6387f6dca92c0c2c8647eed98caa4a1e915197
3
+ metadata.gz: 9e0c2457772d14d2f544f1e29c0257bb58470949ad75041d38a87337ef6588eb
4
+ data.tar.gz: f3a5fe15373f2aa6391d7ed66ed73687b46523d92fb359e4a9621df437183063
5
5
  SHA512:
6
- metadata.gz: 4d5532e5feec100f1edd36c35e00bc9b61192624fcd785710373fcb439fdc300cc0b499142df492bdc92098ebfe4a29ec36216fb0e8636f0c0e272c42865cdd0
7
- data.tar.gz: 734afbe0a5d61ca96d6872c8ac7ee0ec771ac76b07349843b826e14cad1afa8a46619ed6ee416b3ba48405c4f3453800a174f15fe75f7e78a8f774b3384f979b
6
+ metadata.gz: 519eadd659c81d42cff516a695728b4bf93f69f6ad8fe7b931e765673421e427f6f8f00c35154c41ed4e5b211119150ce9949bc97cbe19d63893738ca15c2dbd
7
+ data.tar.gz: '088cd32906704806d4be30d6ddf5291d4a3565b1780bf9f6ba87b1a2bf26fa501a2d158e7743d5afe2a4adda9c8762d94acbe6df91a077db75319d64ce065fc5'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.80.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.79.0...v1.80.0) (2026-10-15)
4
+
5
+ ### Features
6
+
7
+ * **api:** add between_tools to thinking types in model capabilities
8
+ * **api:** add the speed parameter and usage.speed to Messages
9
+ * **api:** return a Console organization's usage-tier spend cap as a read-only spend limit
10
+
11
+
12
+ ### Chores
13
+
14
+ * **ci:** speed up breaking change detection
15
+ * **docs:** describe headers on Managed Agents and telemetry endpoints
16
+ * **tests:** cover trace context propagation and failing telemetry
17
+
18
+
19
+ ### Documentation
20
+
21
+ * **api:** note that some models need a beta header to use speed
22
+
3
23
  ## [1.79.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.78.0...v1.79.0) (2026-10-14)
4
24
 
5
25
  ### Features
@@ -8,7 +28,9 @@
8
28
  * **api:** add organization_type_not_supported error to spend limit lists
9
29
  * **api:** add telemetry destination test endpoint
10
30
  * **api:** add telemetry destinations to the Admin API
11
- * **client:** add OpenTelemetry tracing for API calls, streaming and tool runs, on by default: once the application registers a tracer provider each call emits a span, and each request carries the trace context in the headers of the registered propagator, such as `traceparent`. `open_telemetry: false` or `ANTHROPIC_OPEN_TELEMETRY=false` turns both off, and `open_telemetry: {propagation: false}` or `ANTHROPIC_OPEN_TELEMETRY_PROPAGATION=false` only the headers, where a variable applies only to a client that is given no `open_telemetry` option. Adds the dependency `opentelemetry-api` (`>= 1.2.4`, `< 2`)
31
+ * **client:** add native support for OpenTelemetry tracing
32
+
33
+ If your app registers a global tracer provider, the SDK will create spans with it after upgrading, and they'll be exported with the rest of your traces. Requests will also get trace context headers from the global propagator. To disable, pass `open_telemetry: false` to the client or set `ANTHROPIC_OPEN_TELEMETRY=false`. Learn more in the [documentation](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk).
12
34
 
13
35
 
14
36
  ### Bug Fixes
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.79.0"
18
+ gem "anthropic", "~> 1.80.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -38,10 +38,11 @@ module Anthropic
38
38
  # — and the fallback's events are spliced onto the still-open stream, so the
39
39
  # client sees one continuous message: a `fallback` content block at each
40
40
  # model boundary, monotonic block indices, and per-hop `usage.iterations` on
41
- # the final `message_delta`. Only `model` is honored from each entry on this
42
- # path: the credit token is redeemable only against the refused request's
43
- # body, so the other per-entry overrides would be rejected. A
44
- # `between_tools` thinking config is always sent as `disabled` on this path.
41
+ # the final `message_delta`. Only `model` and `speed` are honored from each
42
+ # entry on this path. The other per-entry overrides are ignored, because the
43
+ # credit token is tied to the refused request's body. A `speed` value replaces
44
+ # the request's, and `speed: nil` omits it. A `between_tools` thinking config
45
+ # is always sent as `disabled` on this path.
45
46
  #
46
47
  # Credit tokens are sent in the object form with `mode: :best_effort`, so a
47
48
  # failing redemption never rejects the retry — it proceeds at normal price
@@ -49,6 +50,10 @@ module Anthropic
49
50
  # beta this requires is sent by default on every request the middleware
50
51
  # handles; the `betas:` option controls this.
51
52
  #
53
+ # A `speed: "fast"` request that falls back to an entry with no `speed`, and
54
+ # is rejected with a 429 or 529, is retried once on that entry without
55
+ # `speed`. Set `speed: "fast"` on the entry to keep it fast-only.
56
+ #
52
57
  # To keep later requests on the model that accepted, pass a
53
58
  # {BetaFallbackState} via the `fallback_state` request option; requests
54
59
  # sharing that state start directly at the pinned fallback.
@@ -72,7 +77,7 @@ module Anthropic
72
77
  # …) patch the original request body for that hop — a value overrides
73
78
  # the param, an explicit `nil` unsets it, an absent key keeps the
74
79
  # original value (an absent `thinking:` sends `between_tools` as
75
- # `disabled`).
80
+ # `disabled`). On the streaming path only `speed:` patches it.
76
81
  # @param betas [Array<String>] betas added to the `anthropic-beta` header
77
82
  # of every `/v1/messages` request this middleware handles. Defaults to
78
83
  # `["fallback-credit-2026-07-01"]`; pass `[]` to send none.
@@ -129,24 +134,24 @@ module Anthropic
129
134
  end
130
135
 
131
136
  streaming = req.streaming?
137
+ entry = @fallbacks.fetch(start_index) unless start_index == -1
132
138
  initial_body =
133
- if start_index == -1
139
+ if entry.nil?
134
140
  body
135
141
  elsif streaming
136
- # Only `model` is honored on the streaming path so the credit token
137
- # — redeemable only against the refused request's body — stays valid
138
- # for the spliced hops.
139
- degrade_between_tools(body.merge(model: @fallbacks.fetch(start_index).fetch(:model)))
142
+ # Only `model` and `speed` are honored on the streaming path: the credit
143
+ # token is tied to the refused request's body.
144
+ degrade_between_tools(patch(body, entry.slice(:speed)).merge(model: entry.fetch(:model)))
140
145
  else
141
- apply_fallback(body, @fallbacks.fetch(start_index))
146
+ apply_fallback(body, entry)
142
147
  end
143
- res = nxt.call(req.with(body: initial_body))
148
+ res = entry ? send_hop(req, nxt, entry, initial_body).first : nxt.call(req.with(body: initial_body))
144
149
  return res unless res.status < 300
145
150
 
146
151
  if streaming
147
152
  first_hop = start_index + 1
148
153
  return res unless first_hop < @fallbacks.length
149
- return splice_fallback_stream(req, res, nxt, body, first_hop, pin)
154
+ return splice_fallback_stream(req, res, nxt, initial_body, first_hop, pin)
150
155
  end
151
156
 
152
157
  handle_non_streaming(req, res, nxt, body, start_index, pin)
@@ -276,6 +281,25 @@ module Anthropic
276
281
  {token: token, mode: Anthropic::Models::Beta::BetaFallbackCreditTokenParam::Mode::BEST_EFFORT}
277
282
  end
278
283
 
284
+ # Send a request built from `entry`. One that is fast only because the
285
+ # original request was, and is rejected with a 429 or 529, is resent once
286
+ # without `speed`, and that response stands in for the first.
287
+ #
288
+ # @param req [Anthropic::APIRequest]
289
+ # @param nxt [#call]
290
+ # @param entry [Hash{Symbol=>Object}]
291
+ # @param hop_body [Hash{Symbol=>Object}]
292
+ # @return [Array(Anthropic::APIResponse, Boolean)] the response, and whether
293
+ # it answers the resend.
294
+ def send_hop(req, nxt, entry, hop_body)
295
+ res = nxt.call(req.with(body: hop_body))
296
+ return [res, false] unless [429, 529].include?(res.status)
297
+ return [res, false] if entry.key?(:speed) || hop_body[:speed].to_s != "fast"
298
+
299
+ Anthropic::Internal::Util.close_fused!(res.body)
300
+ [nxt.call(req.with(body: hop_body.except(:speed))), true]
301
+ end
302
+
279
303
  # --- non-streaming ------------------------------------------------------
280
304
 
281
305
  # @param req [Anthropic::APIRequest]
@@ -303,7 +327,7 @@ module Anthropic
303
327
  hop_body = hop_body.merge(fallback_credit_token: credit_token_param(token)) if token
304
328
 
305
329
  begin
306
- hop_res = nxt.call(req.with(body: hop_body))
330
+ hop_res = send_hop(req, nxt, entry, hop_body).first
307
331
  rescue StandardError
308
332
  hop_res = nil
309
333
  end
@@ -359,7 +383,7 @@ module Anthropic
359
383
  # @param req [Anthropic::APIRequest]
360
384
  # @param res [Anthropic::APIResponse]
361
385
  # @param nxt [#call]
362
- # @param body [Hash{Symbol=>Object}] the stripped request body
386
+ # @param body [Hash{Symbol=>Object}] the body built for stream A
363
387
  # @param first_hop [Integer]
364
388
  # @param pin [Proc]
365
389
  # @return [Anthropic::APIResponse]
@@ -399,10 +423,12 @@ module Anthropic
399
423
  iterations = [iteration_usage("message", a[:model] || "", a.dig(:refused, :usage))]
400
424
 
401
425
  (first_hop...@fallbacks.length).each do |hop|
402
- model = @fallbacks.fetch(hop).fetch(:model).to_s
426
+ entry = @fallbacks.fetch(hop)
427
+ model = entry.fetch(:model).to_s
403
428
  has_next = hop + 1 < @fallbacks.length
404
429
 
405
- res_b, sent, failed = issue_hop(req, nxt, degrade_between_tools(body), model, token, base, partial)
430
+ hop_body = degrade_between_tools(patch(body, entry.slice(:speed)))
431
+ res_b, sent, failed = issue_hop(req, nxt, hop_body, entry, token, base, partial)
406
432
 
407
433
  if failed
408
434
  next if has_next
@@ -465,15 +491,19 @@ module Anthropic
465
491
  end
466
492
  end
467
493
 
468
- # Issue one fallback hop with a single 400-on-prefill retry.
494
+ # Issue one fallback hop with a single 400-on-prefill retry, which stays
495
+ # without `speed` once the hop has been resent without it.
469
496
  #
470
497
  # @return [Array(Anthropic::APIResponse, Array<Hash>, false), Array(nil, Array<Hash>, true)]
471
498
  # the response, the continuation actually sent (`base + partial`, or
472
499
  # `base` if the prefill was dropped on retry), and whether the hop failed.
473
- def issue_hop(req, nxt, body, model, token, base, partial)
500
+ def issue_hop(req, nxt, body, entry, token, base, partial)
474
501
  continuation = base + partial
475
502
  2.times do |attempt|
476
- hop_body = body.merge(model: model, fallback_credit_token: credit_token_param(token))
503
+ hop_body = body.merge(
504
+ model: entry.fetch(:model).to_s,
505
+ fallback_credit_token: credit_token_param(token)
506
+ )
477
507
  unless continuation.empty?
478
508
  hop_body = hop_body.merge(
479
509
  messages: body.fetch(:messages) + [{role: :assistant, content: continuation}]
@@ -481,10 +511,11 @@ module Anthropic
481
511
  end
482
512
 
483
513
  begin
484
- res = nxt.call(req.with(body: hop_body))
514
+ res, resent = send_hop(req, nxt, entry, hop_body)
485
515
  rescue StandardError
486
516
  return [nil, continuation, true]
487
517
  end
518
+ body = body.except(:speed) if resent
488
519
  return [res, continuation, false] if res.status < 300
489
520
 
490
521
  if attempt.zero? && res.status == 400 && !partial.empty?
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :agent_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param agent_id [String] Unique identifier of the agent to archive.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -83,7 +83,8 @@ module Anthropic
83
83
  -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::AgentCreateParams::Tool] }
84
84
 
85
85
  # @!attribute betas
86
- # Optional header to specify the beta version(s) you want to use.
86
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
87
+ # header.
87
88
  #
88
89
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
89
90
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -123,7 +124,7 @@ module Anthropic
123
124
  #
124
125
  # @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>] Tool configurations available to the agent. Maximum of 256 tools across all tool
125
126
  #
126
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
127
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
127
128
  #
128
129
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
129
130
  #
@@ -39,7 +39,8 @@ module Anthropic
39
39
  optional :page, String
40
40
 
41
41
  # @!attribute betas
42
- # Optional header to specify the beta version(s) you want to use.
42
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
43
+ # header.
43
44
  #
44
45
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
45
46
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -69,7 +70,7 @@ module Anthropic
69
70
  #
70
71
  # @param page [String] Opaque pagination cursor from a previous response.
71
72
  #
72
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
73
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
73
74
  #
74
75
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
75
76
  #
@@ -22,7 +22,8 @@ module Anthropic
22
22
  optional :version, Integer
23
23
 
24
24
  # @!attribute betas
25
- # Optional header to specify the beta version(s) you want to use.
25
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
26
+ # header.
26
27
  #
27
28
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
28
29
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -46,7 +47,7 @@ module Anthropic
46
47
  #
47
48
  # @param version [Integer] Agent version. Omit for the most recent version. Must be at least 1 if specified
48
49
  #
49
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
50
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
50
51
  #
51
52
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
52
53
  #
@@ -109,7 +109,8 @@ module Anthropic
109
109
  optional :version, Integer
110
110
 
111
111
  # @!attribute betas
112
- # Optional header to specify the beta version(s) you want to use.
112
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
113
+ # header.
113
114
  #
114
115
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
115
116
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -153,7 +154,7 @@ module Anthropic
153
154
  #
154
155
  # @param version [Integer] The agent's current version, used to prevent concurrent overwrites. Obtain this
155
156
  #
156
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
157
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
157
158
  #
158
159
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
159
160
  #
@@ -28,7 +28,8 @@ module Anthropic
28
28
  optional :page, String
29
29
 
30
30
  # @!attribute betas
31
- # Optional header to specify the beta version(s) you want to use.
31
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
32
+ # header.
32
33
  #
33
34
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
34
35
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -54,7 +55,7 @@ module Anthropic
54
55
  #
55
56
  # @param page [String] Opaque pagination cursor.
56
57
  #
57
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
58
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
58
59
  #
59
60
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
60
61
  #
@@ -11,10 +11,23 @@ module Anthropic
11
11
  # @return [Anthropic::Models::Beta::BetaCapabilitySupport]
12
12
  required :adaptive, -> { Anthropic::Beta::BetaCapabilitySupport }
13
13
 
14
+ # @!attribute between_tools
15
+ # Whether the model accepts thinking with type 'between_tools' (thinking turned
16
+ # off, and any short progress updates the model writes between tool calls come
17
+ # back as thinking blocks). False exactly when a request that sends it gets a 400
18
+ # from this model. A request that sends 'between_tools' can still be rejected for
19
+ # another reason, such as an effort level the model does not allow with thinking
20
+ # off.
21
+ #
22
+ # @return [Anthropic::Models::Beta::BetaCapabilitySupport]
23
+ required :between_tools, -> { Anthropic::Beta::BetaCapabilitySupport }
24
+
14
25
  # @!attribute disabled
15
26
  # Whether the model accepts thinking with type 'disabled' (thinking turned off).
16
27
  # False exactly when a request that sends it gets a 400 from this model. True on a
17
- # model that does not support thinking.
28
+ # model that does not support thinking. A request that sends 'disabled' can still
29
+ # be rejected for another reason, such as an effort level the model does not allow
30
+ # with thinking off.
18
31
  #
19
32
  # @return [Anthropic::Models::Beta::BetaCapabilitySupport]
20
33
  required :disabled, -> { Anthropic::Beta::BetaCapabilitySupport }
@@ -26,7 +39,7 @@ module Anthropic
26
39
  # @return [Anthropic::Models::Beta::BetaCapabilitySupport]
27
40
  required :enabled, -> { Anthropic::Beta::BetaCapabilitySupport }
28
41
 
29
- # @!method initialize(adaptive:, disabled:, enabled:)
42
+ # @!method initialize(adaptive:, between_tools:, disabled:, enabled:)
30
43
  # Which `thinking.type` values the model accepts on requests. Read each key on its
31
44
  # own: for example, `enabled` can be false while `disabled` is true.
32
45
  #
@@ -35,6 +48,8 @@ module Anthropic
35
48
  #
36
49
  # @param adaptive [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'adaptive' (the model decides wheth
37
50
  #
51
+ # @param between_tools [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'between_tools' (thinking turned of
52
+ #
38
53
  # @param disabled [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'disabled' (thinking turned off). F
39
54
  #
40
55
  # @param enabled [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'enabled' (extended thinking with a
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_id [String] Unique identifier of the deployment to archive.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -83,7 +83,8 @@ module Anthropic
83
83
  optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]
84
84
 
85
85
  # @!attribute betas
86
- # Optional header to specify the beta version(s) you want to use.
86
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
87
+ # header.
87
88
  #
88
89
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
89
90
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -123,7 +124,7 @@ module Anthropic
123
124
  #
124
125
  # @param vault_ids [Array<String>] Vault IDs for stored credentials the agent can use during sessions created from
125
126
  #
126
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
127
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
127
128
  #
128
129
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
129
130
  #
@@ -52,7 +52,8 @@ module Anthropic
52
52
  optional :status, enum: -> { Anthropic::Beta::BetaManagedAgentsDeploymentStatus }
53
53
 
54
54
  # @!attribute betas
55
- # Optional header to specify the beta version(s) you want to use.
55
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
56
+ # header.
56
57
  #
57
58
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
58
59
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -86,7 +87,7 @@ module Anthropic
86
87
  #
87
88
  # @param status [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus] Filter by status: `active` or `paused`. Omit for both. To include archived deplo
88
89
  #
89
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
90
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
90
91
  #
91
92
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
92
93
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_id [String] Unique identifier of the deployment to pause.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_id [String] Unique identifier of the deployment.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -67,7 +67,8 @@ module Anthropic
67
67
  optional :trigger_type, enum: -> { Anthropic::Beta::BetaManagedAgentsTriggerType }
68
68
 
69
69
  # @!attribute betas
70
- # Optional header to specify the beta version(s) you want to use.
70
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
71
+ # header.
71
72
  #
72
73
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
73
74
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -105,7 +106,7 @@ module Anthropic
105
106
  #
106
107
  # @param trigger_type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsTriggerType] Filter runs by what triggered them. Omit to return all runs.
107
108
  #
108
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
109
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
109
110
  #
110
111
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
111
112
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_id [String] Unique identifier of the deployment to run.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_run_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_run_id [String] Unique identifier of the deployment run.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :deployment_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param deployment_id [String] Unique identifier of the deployment to unpause.
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -92,7 +92,8 @@ module Anthropic
92
92
  optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true
93
93
 
94
94
  # @!attribute betas
95
- # Optional header to specify the beta version(s) you want to use.
95
+ # This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
96
+ # header.
96
97
  #
97
98
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
98
99
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -134,7 +135,7 @@ module Anthropic
134
135
  #
135
136
  # @param vault_ids [Array<String>, nil] Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear
136
137
  #
137
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
138
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
138
139
  #
139
140
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
140
141
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :dream_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param dream_id [String] The ID of the dream to archive (`drm_...`).
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #
@@ -15,7 +15,8 @@ module Anthropic
15
15
  required :dream_id, String
16
16
 
17
17
  # @!attribute betas
18
- # Optional header to specify the beta version(s) you want to use.
18
+ # This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
19
+ # header.
19
20
  #
20
21
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
21
22
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -37,7 +38,7 @@ module Anthropic
37
38
  #
38
39
  # @param dream_id [String] The ID of the dream to cancel (`drm_...`).
39
40
  #
40
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
41
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
41
42
  #
42
43
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
43
44
  #