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
@@ -47,7 +47,8 @@ module Anthropic
47
47
  optional :output_behavior, union: -> { Anthropic::Beta::BetaOutputBehavior }
48
48
 
49
49
  # @!attribute betas
50
- # Optional header to specify the beta version(s) you want to use.
50
+ # This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
51
+ # header.
51
52
  #
52
53
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
53
54
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -75,7 +76,7 @@ module Anthropic
75
76
  #
76
77
  # @param output_behavior [Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, Anthropic::Models::Beta::BetaOutputBehaviorUpdateExisting] Which memory store a dream writes its result to. Defaults to `create_new` when l
77
78
  #
78
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
79
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
79
80
  #
80
81
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
81
82
  #
@@ -51,7 +51,8 @@ module Anthropic
51
51
  optional :statuses, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::BetaDreamStatus] }
52
52
 
53
53
  # @!attribute betas
54
- # Optional header to specify the beta version(s) you want to use.
54
+ # This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
55
+ # header.
55
56
  #
56
57
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
57
58
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -83,7 +84,7 @@ module Anthropic
83
84
  #
84
85
  # @param statuses [Array<Symbol, Anthropic::Models::Beta::BetaDreamStatus>] Return only dreams that have one of these statuses.
85
86
  #
86
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
87
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
87
88
  #
88
89
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
89
90
  #
@@ -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 get (`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
  #
@@ -17,7 +17,8 @@ module Anthropic
17
17
  required :memory_store_id, String
18
18
 
19
19
  # @!attribute betas
20
- # Optional header to specify the beta version(s) you want to use.
20
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
21
+ # `managed-agents-2026-04-01` in this header.
21
22
  #
22
23
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
23
24
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -39,7 +40,7 @@ module Anthropic
39
40
  #
40
41
  # @param memory_store_id [String] ID of the memory store to archive (a `memstore_...` identifier). Required. Archi
41
42
  #
42
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
43
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
43
44
  #
44
45
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
45
46
  #
@@ -34,7 +34,8 @@ module Anthropic
34
34
  optional :metadata, Anthropic::Internal::Type::HashOf[String]
35
35
 
36
36
  # @!attribute betas
37
- # Optional header to specify the beta version(s) you want to use.
37
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
38
+ # `managed-agents-2026-04-01` in this header.
38
39
  #
39
40
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
40
41
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -60,7 +61,7 @@ module Anthropic
60
61
  #
61
62
  # @param metadata [Hash{Symbol=>String}] Arbitrary key-value tags for your own bookkeeping (such as the end user a store
62
63
  #
63
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
64
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
64
65
  #
65
66
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
66
67
  #
@@ -17,7 +17,8 @@ module Anthropic
17
17
  required :memory_store_id, String
18
18
 
19
19
  # @!attribute betas
20
- # Optional header to specify the beta version(s) you want to use.
20
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
21
+ # `managed-agents-2026-04-01` in this header.
21
22
  #
22
23
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
23
24
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -39,7 +40,7 @@ module Anthropic
39
40
  #
40
41
  # @param memory_store_id [String] ID of the memory store to permanently delete (a `memstore_...` identifier). Requ
41
42
  #
42
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
43
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
43
44
  #
44
45
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
45
46
  #
@@ -44,7 +44,8 @@ module Anthropic
44
44
  optional :page, String
45
45
 
46
46
  # @!attribute betas
47
- # Optional header to specify the beta version(s) you want to use.
47
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
48
+ # `managed-agents-2026-04-01` in this header.
48
49
  #
49
50
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
50
51
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -74,7 +75,7 @@ module Anthropic
74
75
  #
75
76
  # @param page [String] Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a
76
77
  #
77
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
78
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
78
79
  #
79
80
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
80
81
  #
@@ -16,7 +16,8 @@ module Anthropic
16
16
  required :memory_store_id, String
17
17
 
18
18
  # @!attribute betas
19
- # Optional header to specify the beta version(s) you want to use.
19
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
20
+ # `managed-agents-2026-04-01` in this header.
20
21
  #
21
22
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
22
23
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -38,7 +39,7 @@ module Anthropic
38
39
  #
39
40
  # @param memory_store_id [String] ID of the memory store to retrieve (a `memstore_...` identifier). Required. Enum
40
41
  #
41
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
42
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
42
43
  #
43
44
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
44
45
  #
@@ -40,7 +40,8 @@ module Anthropic
40
40
  optional :name, String, nil?: true
41
41
 
42
42
  # @!attribute betas
43
- # Optional header to specify the beta version(s) you want to use.
43
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
44
+ # `managed-agents-2026-04-01` in this header.
44
45
  #
45
46
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
46
47
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -68,7 +69,7 @@ module Anthropic
68
69
  #
69
70
  # @param name [String, nil] New human-readable name for the store. 1–255 characters; no control characters.
70
71
  #
71
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
72
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
72
73
  #
73
74
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
74
75
  #
@@ -43,7 +43,8 @@ module Anthropic
43
43
  optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }
44
44
 
45
45
  # @!attribute betas
46
- # Optional header to specify the beta version(s) you want to use.
46
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
47
+ # `managed-agents-2026-04-01` in this header.
47
48
  #
48
49
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
49
50
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -71,7 +72,7 @@ module Anthropic
71
72
  #
72
73
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Selects which projection of a `memory` or `memory_version` the server returns. `
73
74
  #
74
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
75
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
75
76
  #
76
77
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
77
78
  #
@@ -32,7 +32,8 @@ module Anthropic
32
32
  optional :expected_content_sha256, String
33
33
 
34
34
  # @!attribute betas
35
- # Optional header to specify the beta version(s) you want to use.
35
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
36
+ # `managed-agents-2026-04-01` in this header.
36
37
  #
37
38
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
38
39
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -58,7 +59,7 @@ module Anthropic
58
59
  #
59
60
  # @param expected_content_sha256 [String] Delete the memory only if its current `content_sha256` equals this value, given
60
61
  #
61
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
62
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
62
63
  #
63
64
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
64
65
  #
@@ -55,7 +55,8 @@ module Anthropic
55
55
  optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }
56
56
 
57
57
  # @!attribute betas
58
- # Optional header to specify the beta version(s) you want to use.
58
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
59
+ # `managed-agents-2026-04-01` in this header.
59
60
  #
60
61
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
61
62
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -87,7 +88,7 @@ module Anthropic
87
88
  #
88
89
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Which projection of each `memory` to return. Defaults to `basic` (content omitte
89
90
  #
90
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
91
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
91
92
  #
92
93
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
93
94
  #
@@ -32,7 +32,8 @@ module Anthropic
32
32
  optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }
33
33
 
34
34
  # @!attribute betas
35
- # Optional header to specify the beta version(s) you want to use.
35
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
36
+ # `managed-agents-2026-04-01` in this header.
36
37
  #
37
38
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
38
39
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -58,7 +59,7 @@ module Anthropic
58
59
  #
59
60
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Selects which projection of a `memory` or `memory_version` the server returns. `
60
61
  #
61
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
62
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
62
63
  #
63
64
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
64
65
  #
@@ -59,7 +59,8 @@ module Anthropic
59
59
  optional :precondition, -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsPrecondition }
60
60
 
61
61
  # @!attribute betas
62
- # Optional header to specify the beta version(s) you want to use.
62
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
63
+ # `managed-agents-2026-04-01` in this header.
63
64
  #
64
65
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
65
66
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -91,7 +92,7 @@ module Anthropic
91
92
  #
92
93
  # @param precondition [Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsPrecondition] Optional optimistic-concurrency precondition. When supplied, the update applies
93
94
  #
94
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
95
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
95
96
  #
96
97
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
97
98
  #
@@ -84,7 +84,8 @@ module Anthropic
84
84
  optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }
85
85
 
86
86
  # @!attribute betas
87
- # Optional header to specify the beta version(s) you want to use.
87
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
88
+ # `managed-agents-2026-04-01` in this header.
88
89
  #
89
90
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
90
91
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -127,7 +128,7 @@ module Anthropic
127
128
  #
128
129
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Selects which projection of a `memory` or `memory_version` the server returns. `
129
130
  #
130
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
131
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
131
132
  #
132
133
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
133
134
  #
@@ -22,7 +22,8 @@ module Anthropic
22
22
  required :memory_version_id, String
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 `agent-memory-2026-07-22` or
26
+ # `managed-agents-2026-04-01` in this header.
26
27
  #
27
28
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
28
29
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -47,7 +48,7 @@ module Anthropic
47
48
  #
48
49
  # @param memory_version_id [String] The ID of the memory version to redact (`memver_...`).
49
50
  #
50
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
51
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
51
52
  #
52
53
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
53
54
  #
@@ -32,7 +32,8 @@ module Anthropic
32
32
  optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }
33
33
 
34
34
  # @!attribute betas
35
- # Optional header to specify the beta version(s) you want to use.
35
+ # This endpoint is in beta: requests must send `agent-memory-2026-07-22` or
36
+ # `managed-agents-2026-04-01` in this header.
36
37
  #
37
38
  # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
38
39
  optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
@@ -59,7 +60,7 @@ module Anthropic
59
60
  #
60
61
  # @param view [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView] Selects which projection of a `memory` or `memory_version` the server returns. `
61
62
  #
62
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
63
+ # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
63
64
  #
64
65
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
65
66
  #
@@ -151,6 +151,11 @@ module Anthropic
151
151
  # The inference speed mode for this request. `"fast"` enables high
152
152
  # output-tokens-per-second inference.
153
153
  #
154
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
155
+ # value. See
156
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
157
+ # which models.
158
+ #
154
159
  # @return [Symbol, Anthropic::Models::Beta::MessageCountTokensParams::Speed, nil]
155
160
  optional :speed, enum: -> { Anthropic::Beta::MessageCountTokensParams::Speed }, nil?: true
156
161
 
@@ -333,6 +338,11 @@ module Anthropic
333
338
 
334
339
  # The inference speed mode for this request. `"fast"` enables high
335
340
  # output-tokens-per-second inference.
341
+ #
342
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
343
+ # value. See
344
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
345
+ # which models.
336
346
  module Speed
337
347
  extend Anthropic::Internal::Type::Enum
338
348
 
@@ -247,6 +247,11 @@ module Anthropic
247
247
  # The inference speed mode for this request. `"fast"` enables high
248
248
  # output-tokens-per-second inference.
249
249
  #
250
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
251
+ # value. See
252
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
253
+ # which models.
254
+ #
250
255
  # @return [Symbol, Anthropic::Models::Beta::MessageCreateParams::Speed, nil]
251
256
  optional :speed, enum: -> { Anthropic::Beta::MessageCreateParams::Speed }, nil?: true
252
257
 
@@ -579,6 +584,11 @@ module Anthropic
579
584
 
580
585
  # The inference speed mode for this request. `"fast"` enables high
581
586
  # output-tokens-per-second inference.
587
+ #
588
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
589
+ # value. See
590
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
591
+ # which models.
582
592
  module Speed
583
593
  extend Anthropic::Internal::Type::Enum
584
594
 
@@ -330,6 +330,11 @@ module Anthropic
330
330
  # The inference speed mode for this request. `"fast"` enables high
331
331
  # output-tokens-per-second inference.
332
332
  #
333
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
334
+ # value. See
335
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
336
+ # which models.
337
+ #
333
338
  # @return [Symbol, Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::Speed, nil]
334
339
  optional :speed,
335
340
  enum: -> { Anthropic::Beta::Messages::BatchCreateParams::Request::Params::Speed },
@@ -663,6 +668,11 @@ module Anthropic
663
668
  # The inference speed mode for this request. `"fast"` enables high
664
669
  # output-tokens-per-second inference.
665
670
  #
671
+ # Some models require the `fast-mode-2026-02-01` beta header for any `speed`
672
+ # value. See
673
+ # [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
674
+ # which models.
675
+ #
666
676
  # @see Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params#speed
667
677
  module Speed
668
678
  extend Anthropic::Internal::Type::Enum
@@ -51,7 +51,7 @@ module Anthropic
51
51
  # What the limit applies to. A tagged union on `type`; each variant carries the
52
52
  # identifier for its scope.
53
53
  #
54
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
54
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
55
55
  required :scope, union: -> { Anthropic::Beta::Organization::BetaSpendLimit::Scope }
56
56
 
57
57
  # @!attribute type
@@ -84,7 +84,7 @@ module Anthropic
84
84
  #
85
85
  # @param period [Symbol, Anthropic::Models::Beta::Organization::BetaSpendLimitPeriod] Length of the window the limit resets over. `amount` caps spend within each peri
86
86
  #
87
- # @param scope [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope] What the limit applies to. A tagged union on `type`; each variant carries the id
87
+ # @param scope [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope] What the limit applies to. A tagged union on `type`; each variant carries the id
88
88
  #
89
89
  # @param updated_at [Time] RFC 3339 datetime at which the spend limit was last modified.
90
90
  #
@@ -114,6 +114,13 @@ module Anthropic
114
114
  # Scope selecting one workspace of a Claude Console organization.
115
115
  variant :workspace, -> { Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope }
116
116
 
117
+ # Scope of the monthly spend cap Anthropic sets for a Claude Console
118
+ # organization from its usage tier, or a higher cap Anthropic granted the
119
+ # organization. Read-only; its `created_at` and `updated_at` are the
120
+ # organization's creation time, so `amount` can change while `updated_at` stays
121
+ # the same.
122
+ variant :usage_tier, -> { Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope }
123
+
117
124
  module Type
118
125
  extend Anthropic::Internal::Type::Enum
119
126
 
@@ -123,13 +130,14 @@ module Anthropic
123
130
  ORGANIZATION_SERVICE = :organization_service
124
131
  ORGANIZATION = :organization
125
132
  WORKSPACE = :workspace
133
+ USAGE_TIER = :usage_tier
126
134
 
127
135
  # @!method self.values
128
136
  # @return [Array<Symbol>]
129
137
  end
130
138
 
131
139
  # @!method self.variants
132
- # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope)]
140
+ # @return [Array(Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope)]
133
141
 
134
142
  # Creates a new instance of the variant class whose `type` matches the given
135
143
  # value, passing the remaining arguments to its constructor.
@@ -149,7 +157,7 @@ module Anthropic
149
157
  # @option args [String] :workspace_id Tagged ID of the workspace the spend limit applies to.
150
158
  #
151
159
  # @raise [ArgumentError]
152
- # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope]
160
+ # @return [Anthropic::Models::Beta::Organization::BetaSpendLimitUserScope, Anthropic::Models::Beta::Organization::BetaSpendLimitSeatTierScope, Anthropic::Models::Beta::Organization::BetaSpendLimitRBACGroupScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationServiceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitOrganizationScope, Anthropic::Models::Beta::Organization::BetaSpendLimitWorkspaceScope, Anthropic::Models::Beta::Organization::BetaSpendLimitUsageTierScope]
153
161
  def self.new(type:, **args)
154
162
  case type.to_sym
155
163
  when :user
@@ -164,6 +172,8 @@ module Anthropic
164
172
  Anthropic::Beta::Organization::BetaSpendLimitOrganizationScope.new(**args)
165
173
  when :workspace
166
174
  Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope.new(**args)
175
+ when :usage_tier
176
+ Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope.new(**args)
167
177
  else
168
178
  raise ArgumentError, "unknown type: #{type}"
169
179
  end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module Organization
7
+ class BetaSpendLimitUsageTierScope < Anthropic::Internal::Type::BaseModel
8
+ # @!attribute type
9
+ # Scope type. Always `usage_tier` for this scope.
10
+ #
11
+ # @return [Symbol, :usage_tier]
12
+ required :type, const: :usage_tier
13
+
14
+ # @!method initialize(type: :usage_tier)
15
+ # Scope of the monthly spend cap Anthropic sets for a Claude Console organization
16
+ # from its usage tier, or a higher cap Anthropic granted the organization.
17
+ # Read-only; its `created_at` and `updated_at` are the organization's creation
18
+ # time, so `amount` can change while `updated_at` stays the same.
19
+ #
20
+ # @param type [Symbol, :usage_tier] Scope type. Always `usage_tier` for this scope.
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end