anthropic 1.69.0 → 1.71.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 (803) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/client.rb +6 -0
  5. data/lib/anthropic/internal/transport/base_client.rb +12 -12
  6. data/lib/anthropic/internal/transport/pooled_net_requester.rb +63 -4
  7. data/lib/anthropic/internal/type/union.rb +6 -2
  8. data/lib/anthropic/internal/util.rb +3 -1
  9. data/lib/anthropic/models/anthropic_beta.rb +10 -4
  10. data/lib/anthropic/models/beta/agent_archive_params.rb +2 -2
  11. data/lib/anthropic/models/beta/agent_create_params.rb +8 -8
  12. data/lib/anthropic/models/beta/agent_list_params.rb +2 -2
  13. data/lib/anthropic/models/beta/agent_retrieve_params.rb +2 -2
  14. data/lib/anthropic/models/beta/agent_update_params.rb +8 -8
  15. data/lib/anthropic/models/beta/agents/version_list_params.rb +2 -2
  16. data/lib/anthropic/models/beta/beta_browser_state_change.rb +0 -6
  17. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +1 -4
  18. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +0 -1
  19. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param.rb +1 -2
  20. data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb +0 -1
  21. data/lib/anthropic/models/beta/beta_compaction_block.rb +9 -1
  22. data/lib/anthropic/models/beta/beta_compaction_block_param.rb +9 -1
  23. data/lib/anthropic/models/beta/beta_compaction_capability.rb +32 -0
  24. data/lib/anthropic/models/beta/beta_compaction_config.rb +40 -0
  25. data/lib/anthropic/models/beta/beta_content_block.rb +3 -4
  26. data/lib/anthropic/models/beta/beta_content_block_param.rb +4 -5
  27. data/lib/anthropic/models/beta/beta_context_management_config.rb +0 -2
  28. data/lib/anthropic/models/beta/beta_dream.rb +1 -4
  29. data/lib/anthropic/models/beta/beta_dream_input.rb +0 -3
  30. data/lib/anthropic/models/beta/beta_dreaming_error.rb +0 -7
  31. data/lib/anthropic/models/beta/beta_fallback_message_iteration_usage.rb +5 -4
  32. data/lib/anthropic/models/beta/beta_fallbacks_param.rb +3 -3
  33. data/lib/anthropic/models/beta/beta_input_transformation.rb +62 -0
  34. data/lib/anthropic/models/beta/beta_iterations_usage.rb +7 -6
  35. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +1 -1
  36. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +1 -1
  37. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +10 -4
  38. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +10 -4
  39. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +6 -6
  40. data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +24 -0
  41. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +10 -4
  42. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +10 -4
  43. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +10 -4
  44. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +10 -4
  45. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +13 -8
  46. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +10 -4
  47. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +10 -4
  48. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +10 -4
  49. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +10 -4
  50. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +10 -4
  51. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +10 -4
  52. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +10 -4
  53. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +10 -4
  54. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +2 -2
  55. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +2 -2
  56. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rb +3 -3
  57. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +10 -4
  58. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +10 -4
  59. data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +3 -3
  60. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +10 -4
  61. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +10 -4
  62. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +10 -4
  63. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +10 -4
  64. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +10 -4
  65. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +10 -4
  66. data/lib/anthropic/models/beta/beta_message.rb +21 -18
  67. data/lib/anthropic/models/beta/beta_message_iteration_usage.rb +3 -3
  68. data/lib/anthropic/models/beta/beta_model_capabilities.rb +14 -1
  69. data/lib/anthropic/models/beta/beta_output_behavior.rb +0 -3
  70. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +4 -9
  71. data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +20 -17
  72. data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +2 -2
  73. data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +1 -11
  74. data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +1 -11
  75. data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +1 -8
  76. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +1 -4
  77. data/lib/anthropic/models/beta/beta_summarize_compaction.rb +40 -0
  78. data/lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb +73 -0
  79. data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +0 -1
  80. data/lib/anthropic/models/beta/beta_tool_union.rb +0 -2
  81. data/lib/anthropic/models/beta/beta_tool_use_block.rb +1 -4
  82. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +1 -4
  83. data/lib/anthropic/models/beta/beta_user_profile.rb +15 -3
  84. data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +122 -0
  85. data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +122 -0
  86. data/lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb +14 -1
  87. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260209.rb +14 -1
  88. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +14 -1
  89. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260318.rb +14 -1
  90. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb +1 -7
  91. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +1 -4
  92. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rb +1 -0
  93. data/lib/anthropic/models/beta/beta_web_fetch_url_source_all.rb +22 -0
  94. data/lib/anthropic/models/beta/beta_web_fetch_url_source_except.rb +29 -0
  95. data/lib/anthropic/models/beta/beta_web_fetch_url_source_none.rb +22 -0
  96. data/lib/anthropic/models/beta/beta_web_fetch_url_source_only.rb +28 -0
  97. data/lib/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rb +28 -0
  98. data/lib/anthropic/models/beta/beta_web_fetch_url_sources.rb +234 -0
  99. data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +1 -7
  100. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +3 -6
  101. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +3 -3
  102. data/lib/anthropic/models/beta/deployment_archive_params.rb +2 -2
  103. data/lib/anthropic/models/beta/deployment_create_params.rb +9 -9
  104. data/lib/anthropic/models/beta/deployment_list_params.rb +2 -2
  105. data/lib/anthropic/models/beta/deployment_pause_params.rb +2 -2
  106. data/lib/anthropic/models/beta/deployment_retrieve_params.rb +2 -2
  107. data/lib/anthropic/models/beta/deployment_run_list_params.rb +2 -2
  108. data/lib/anthropic/models/beta/deployment_run_params.rb +2 -2
  109. data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +2 -2
  110. data/lib/anthropic/models/beta/deployment_unpause_params.rb +2 -2
  111. data/lib/anthropic/models/beta/deployment_update_params.rb +9 -9
  112. data/lib/anthropic/models/beta/dream_archive_params.rb +2 -2
  113. data/lib/anthropic/models/beta/dream_cancel_params.rb +2 -2
  114. data/lib/anthropic/models/beta/dream_create_params.rb +8 -16
  115. data/lib/anthropic/models/beta/dream_list_params.rb +2 -2
  116. data/lib/anthropic/models/beta/dream_retrieve_params.rb +2 -2
  117. data/lib/anthropic/models/beta/environment_archive_params.rb +2 -2
  118. data/lib/anthropic/models/beta/environment_create_params.rb +6 -6
  119. data/lib/anthropic/models/beta/environment_delete_params.rb +2 -2
  120. data/lib/anthropic/models/beta/environment_list_params.rb +2 -2
  121. data/lib/anthropic/models/beta/environment_retrieve_params.rb +2 -2
  122. data/lib/anthropic/models/beta/environment_update_params.rb +2 -2
  123. data/lib/anthropic/models/beta/environments/work_ack_params.rb +2 -2
  124. data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -2
  125. data/lib/anthropic/models/beta/environments/work_list_params.rb +2 -2
  126. data/lib/anthropic/models/beta/environments/work_poll_params.rb +2 -2
  127. data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +2 -2
  128. data/lib/anthropic/models/beta/environments/work_stats_params.rb +2 -2
  129. data/lib/anthropic/models/beta/environments/work_stop_params.rb +2 -2
  130. data/lib/anthropic/models/beta/environments/work_update_params.rb +2 -2
  131. data/lib/anthropic/models/beta/file_delete_params.rb +2 -2
  132. data/lib/anthropic/models/beta/file_download_params.rb +2 -2
  133. data/lib/anthropic/models/beta/file_list_params.rb +2 -2
  134. data/lib/anthropic/models/beta/file_retrieve_metadata_params.rb +2 -2
  135. data/lib/anthropic/models/beta/file_upload_params.rb +2 -2
  136. data/lib/anthropic/models/beta/memory_store_archive_params.rb +2 -2
  137. data/lib/anthropic/models/beta/memory_store_create_params.rb +2 -2
  138. data/lib/anthropic/models/beta/memory_store_delete_params.rb +2 -2
  139. data/lib/anthropic/models/beta/memory_store_list_params.rb +2 -2
  140. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -2
  141. data/lib/anthropic/models/beta/memory_store_update_params.rb +2 -2
  142. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +2 -2
  143. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +2 -2
  144. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +2 -2
  145. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +2 -2
  146. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +2 -2
  147. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +2 -2
  148. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +2 -2
  149. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +2 -2
  150. data/lib/anthropic/models/beta/message_count_tokens_params.rb +18 -5
  151. data/lib/anthropic/models/beta/message_create_params.rb +26 -11
  152. data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +2 -2
  153. data/lib/anthropic/models/beta/messages/batch_create_params.rb +26 -11
  154. data/lib/anthropic/models/beta/messages/batch_delete_params.rb +2 -2
  155. data/lib/anthropic/models/beta/messages/batch_list_params.rb +2 -2
  156. data/lib/anthropic/models/beta/messages/batch_results_params.rb +2 -2
  157. data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +2 -2
  158. data/lib/anthropic/models/beta/model_list_params.rb +2 -2
  159. data/lib/anthropic/models/beta/model_retrieve_params.rb +2 -2
  160. data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +1 -47
  161. data/lib/anthropic/models/beta/organization/beta_compliance_settings_state.rb +52 -0
  162. data/lib/anthropic/models/beta/organization/beta_compliance_settings_state_param.rb +52 -0
  163. data/lib/anthropic/models/beta/organization/beta_data_residency.rb +41 -12
  164. data/lib/anthropic/models/beta/organization/beta_data_residency_create_config.rb +5 -5
  165. data/lib/anthropic/models/beta/organization/beta_data_residency_update_config.rb +5 -5
  166. data/lib/anthropic/models/beta/organization/compliance_setting_update_params.rb +1 -46
  167. data/lib/anthropic/models/beta/organization/federation/issuer_archive_params.rb +2 -2
  168. data/lib/anthropic/models/beta/organization/federation/issuer_create_params.rb +2 -2
  169. data/lib/anthropic/models/beta/organization/federation/issuer_list_params.rb +2 -2
  170. data/lib/anthropic/models/beta/organization/federation/issuer_retrieve_params.rb +2 -2
  171. data/lib/anthropic/models/beta/organization/federation/issuer_update_params.rb +2 -2
  172. data/lib/anthropic/models/beta/organization/federation/rule_archive_params.rb +2 -2
  173. data/lib/anthropic/models/beta/organization/federation/rule_create_params.rb +2 -2
  174. data/lib/anthropic/models/beta/organization/federation/rule_list_params.rb +2 -2
  175. data/lib/anthropic/models/beta/organization/federation/rule_retrieve_params.rb +2 -2
  176. data/lib/anthropic/models/beta/organization/federation/rule_update_params.rb +2 -2
  177. data/lib/anthropic/models/beta/organization/federation/rules/workspace_add_params.rb +2 -2
  178. data/lib/anthropic/models/beta/organization/federation/rules/workspace_list_params.rb +2 -2
  179. data/lib/anthropic/models/beta/organization/federation/rules/workspace_remove_params.rb +2 -2
  180. data/lib/anthropic/models/beta/organization/service_account_archive_params.rb +2 -2
  181. data/lib/anthropic/models/beta/organization/service_account_create_params.rb +2 -2
  182. data/lib/anthropic/models/beta/organization/service_account_list_params.rb +2 -2
  183. data/lib/anthropic/models/beta/organization/service_account_retrieve_params.rb +2 -2
  184. data/lib/anthropic/models/beta/organization/service_account_update_params.rb +2 -2
  185. data/lib/anthropic/models/beta/organization/service_accounts/workspace_add_params.rb +2 -2
  186. data/lib/anthropic/models/beta/organization/service_accounts/workspace_list_params.rb +2 -2
  187. data/lib/anthropic/models/beta/organization/service_accounts/workspace_remove_params.rb +2 -2
  188. data/lib/anthropic/models/beta/organization/workspace_create_params.rb +2 -2
  189. data/lib/anthropic/models/beta/organization/workspaces/service_account_add_params.rb +2 -2
  190. data/lib/anthropic/models/beta/organization/workspaces/service_account_list_params.rb +2 -2
  191. data/lib/anthropic/models/beta/organization/workspaces/service_account_remove_params.rb +2 -2
  192. data/lib/anthropic/models/beta/organization/workspaces/service_account_retrieve_params.rb +2 -2
  193. data/lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb +2 -2
  194. data/lib/anthropic/models/beta/session_archive_params.rb +2 -2
  195. data/lib/anthropic/models/beta/session_create_params.rb +9 -9
  196. data/lib/anthropic/models/beta/session_delete_params.rb +2 -2
  197. data/lib/anthropic/models/beta/session_list_params.rb +2 -2
  198. data/lib/anthropic/models/beta/session_retrieve_params.rb +2 -2
  199. data/lib/anthropic/models/beta/session_update_params.rb +2 -2
  200. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +69 -0
  201. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rb +21 -0
  202. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rb +35 -0
  203. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +37 -0
  204. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +3 -1
  205. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +13 -3
  206. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +69 -0
  207. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rb +22 -0
  208. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rb +22 -0
  209. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rb +37 -0
  210. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +14 -3
  211. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +1 -12
  212. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +4 -2
  213. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +0 -2
  214. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +1 -4
  215. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +1 -4
  216. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +4 -2
  217. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +4 -2
  218. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +3 -3
  219. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +3 -4
  220. data/lib/anthropic/models/beta/sessions/event_list_params.rb +2 -2
  221. data/lib/anthropic/models/beta/sessions/event_send_params.rb +2 -2
  222. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +2 -2
  223. data/lib/anthropic/models/beta/sessions/resource_add_params.rb +2 -2
  224. data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +2 -2
  225. data/lib/anthropic/models/beta/sessions/resource_list_params.rb +2 -2
  226. data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +2 -2
  227. data/lib/anthropic/models/beta/sessions/resource_update_params.rb +2 -2
  228. data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +2 -2
  229. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +2 -2
  230. data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +2 -2
  231. data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +2 -2
  232. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +2 -2
  233. data/lib/anthropic/models/beta/skill_create_params.rb +2 -2
  234. data/lib/anthropic/models/beta/skill_delete_params.rb +2 -2
  235. data/lib/anthropic/models/beta/skill_list_params.rb +2 -2
  236. data/lib/anthropic/models/beta/skill_retrieve_params.rb +2 -2
  237. data/lib/anthropic/models/beta/skills/version_create_params.rb +2 -2
  238. data/lib/anthropic/models/beta/skills/version_delete_params.rb +2 -2
  239. data/lib/anthropic/models/beta/skills/version_download_params.rb +2 -2
  240. data/lib/anthropic/models/beta/skills/version_list_params.rb +2 -2
  241. data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +2 -2
  242. data/lib/anthropic/models/beta/tunnel_archive_params.rb +2 -2
  243. data/lib/anthropic/models/beta/tunnel_create_params.rb +2 -2
  244. data/lib/anthropic/models/beta/tunnel_list_params.rb +2 -2
  245. data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +2 -2
  246. data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +2 -2
  247. data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +2 -2
  248. data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +2 -2
  249. data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +2 -2
  250. data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +2 -2
  251. data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +2 -2
  252. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +10 -3
  253. data/lib/anthropic/models/beta/user_profile_create_params.rb +23 -4
  254. data/lib/anthropic/models/beta/user_profile_list_params.rb +10 -3
  255. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +10 -3
  256. data/lib/anthropic/models/beta/user_profile_update_params.rb +24 -4
  257. data/lib/anthropic/models/beta/vault_archive_params.rb +2 -2
  258. data/lib/anthropic/models/beta/vault_create_params.rb +2 -2
  259. data/lib/anthropic/models/beta/vault_delete_params.rb +2 -2
  260. data/lib/anthropic/models/beta/vault_list_params.rb +2 -2
  261. data/lib/anthropic/models/beta/vault_retrieve_params.rb +2 -2
  262. data/lib/anthropic/models/beta/vault_update_params.rb +2 -2
  263. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +0 -3
  264. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +1 -4
  265. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +1 -4
  266. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +1 -4
  267. data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +2 -2
  268. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +2 -2
  269. data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +2 -2
  270. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +2 -2
  271. data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +2 -2
  272. data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +2 -2
  273. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +2 -2
  274. data/lib/anthropic/models/browser_state_change.rb +0 -6
  275. data/lib/anthropic/models/code_execution_tool_result_block.rb +1 -4
  276. data/lib/anthropic/models/code_execution_tool_result_block_content.rb +0 -1
  277. data/lib/anthropic/models/code_execution_tool_result_block_param.rb +1 -2
  278. data/lib/anthropic/models/code_execution_tool_result_block_param_content.rb +0 -1
  279. data/lib/anthropic/models/completion_create_params.rb +3 -3
  280. data/lib/anthropic/models/content_block.rb +2 -3
  281. data/lib/anthropic/models/content_block_param.rb +2 -3
  282. data/lib/anthropic/models/message_count_tokens_tool.rb +0 -2
  283. data/lib/anthropic/models/message_create_params.rb +1 -1
  284. data/lib/anthropic/models/messages/batch_create_params.rb +1 -1
  285. data/lib/anthropic/models/model_list_params.rb +2 -2
  286. data/lib/anthropic/models/model_retrieve_params.rb +2 -2
  287. data/lib/anthropic/models/raw_content_block_start_event.rb +3 -8
  288. data/lib/anthropic/models/raw_message_stream_event.rb +1 -1
  289. data/lib/anthropic/models/server_tool_use_block.rb +1 -8
  290. data/lib/anthropic/models/server_tool_use_block_param.rb +1 -4
  291. data/lib/anthropic/models/tool_result_block_param.rb +0 -1
  292. data/lib/anthropic/models/tool_union.rb +0 -2
  293. data/lib/anthropic/models/tool_use_block.rb +2 -4
  294. data/lib/anthropic/models/tool_use_block_param.rb +1 -4
  295. data/lib/anthropic/models/web_fetch_tool_20250910.rb +14 -1
  296. data/lib/anthropic/models/web_fetch_tool_20260209.rb +14 -1
  297. data/lib/anthropic/models/web_fetch_tool_20260309.rb +14 -1
  298. data/lib/anthropic/models/web_fetch_tool_20260318.rb +14 -1
  299. data/lib/anthropic/models/web_fetch_tool_result_block.rb +1 -7
  300. data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +1 -4
  301. data/lib/anthropic/models/web_fetch_tool_result_error_code.rb +1 -0
  302. data/lib/anthropic/models/web_fetch_url_source_all.rb +18 -0
  303. data/lib/anthropic/models/web_fetch_url_source_except.rb +24 -0
  304. data/lib/anthropic/models/web_fetch_url_source_none.rb +18 -0
  305. data/lib/anthropic/models/web_fetch_url_source_only.rb +23 -0
  306. data/lib/anthropic/models/web_fetch_url_source_tool_reference.rb +24 -0
  307. data/lib/anthropic/models/web_fetch_url_sources.rb +230 -0
  308. data/lib/anthropic/models/web_search_tool_result_block.rb +1 -7
  309. data/lib/anthropic/models/web_search_tool_result_block_param.rb +3 -6
  310. data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +3 -3
  311. data/lib/anthropic/models.rb +12 -0
  312. data/lib/anthropic/request_options.rb +1 -2
  313. data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
  314. data/lib/anthropic/resources/beta/agents.rb +7 -7
  315. data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
  316. data/lib/anthropic/resources/beta/deployments.rb +10 -10
  317. data/lib/anthropic/resources/beta/dreams.rb +7 -7
  318. data/lib/anthropic/resources/beta/environments/work.rb +8 -8
  319. data/lib/anthropic/resources/beta/environments.rb +6 -6
  320. data/lib/anthropic/resources/beta/files.rb +5 -5
  321. data/lib/anthropic/resources/beta/memory_stores/memories.rb +5 -5
  322. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +3 -3
  323. data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
  324. data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
  325. data/lib/anthropic/resources/beta/messages.rb +22 -14
  326. data/lib/anthropic/resources/beta/models.rb +2 -2
  327. data/lib/anthropic/resources/beta/organization/federation/issuers.rb +5 -5
  328. data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +3 -3
  329. data/lib/anthropic/resources/beta/organization/federation/rules.rb +5 -5
  330. data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +3 -3
  331. data/lib/anthropic/resources/beta/organization/service_accounts.rb +5 -5
  332. data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +5 -5
  333. data/lib/anthropic/resources/beta/organization/workspaces.rb +1 -1
  334. data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
  335. data/lib/anthropic/resources/beta/sessions/resources.rb +5 -5
  336. data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
  337. data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
  338. data/lib/anthropic/resources/beta/sessions.rb +7 -7
  339. data/lib/anthropic/resources/beta/skills/versions.rb +5 -5
  340. data/lib/anthropic/resources/beta/skills.rb +4 -4
  341. data/lib/anthropic/resources/beta/tunnels/certificates.rb +4 -4
  342. data/lib/anthropic/resources/beta/tunnels.rb +6 -6
  343. data/lib/anthropic/resources/beta/user_profiles.rb +42 -15
  344. data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
  345. data/lib/anthropic/resources/beta/vaults.rb +6 -6
  346. data/lib/anthropic/resources/completions.rb +2 -2
  347. data/lib/anthropic/resources/models.rb +2 -2
  348. data/lib/anthropic/version.rb +1 -1
  349. data/lib/anthropic.rb +30 -1
  350. data/manifest.yaml +0 -1
  351. data/rbi/anthropic/client.rbi +5 -0
  352. data/rbi/anthropic/internal/transport/base_client.rbi +2 -0
  353. data/rbi/anthropic/internal/transport/pooled_net_requester.rbi +27 -5
  354. data/rbi/anthropic/models/anthropic_beta.rbi +8 -1
  355. data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -4
  356. data/rbi/anthropic/models/beta/agent_create_params.rbi +12 -12
  357. data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -4
  358. data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -4
  359. data/rbi/anthropic/models/beta/agent_update_params.rbi +14 -14
  360. data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -4
  361. data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +0 -6
  362. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -7
  363. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +0 -1
  364. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_param.rbi +0 -2
  365. data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rbi +0 -1
  366. data/rbi/anthropic/models/beta/beta_compaction_block.rbi +9 -1
  367. data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +9 -1
  368. data/rbi/anthropic/models/beta/beta_compaction_capability.rbi +60 -0
  369. data/rbi/anthropic/models/beta/beta_compaction_config.rbi +54 -0
  370. data/rbi/anthropic/models/beta/beta_content_block.rbi +2 -4
  371. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +4 -9
  372. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +0 -2
  373. data/rbi/anthropic/models/beta/beta_dream.rbi +0 -6
  374. data/rbi/anthropic/models/beta/beta_dream_input.rbi +0 -3
  375. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +0 -7
  376. data/rbi/anthropic/models/beta/beta_fallback_message_iteration_usage.rbi +5 -4
  377. data/rbi/anthropic/models/beta/beta_fallbacks_param.rbi +1 -1
  378. data/rbi/anthropic/models/beta/beta_input_transformation.rbi +99 -0
  379. data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +5 -2
  380. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +2 -1
  381. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +2 -1
  382. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbi +9 -2
  383. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +13 -4
  384. data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +10 -10
  385. data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +34 -0
  386. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +9 -2
  387. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +13 -4
  388. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +9 -2
  389. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +13 -4
  390. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +13 -8
  391. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +9 -2
  392. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +13 -4
  393. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +9 -2
  394. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +13 -4
  395. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbi +9 -2
  396. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +13 -4
  397. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +9 -2
  398. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +13 -4
  399. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +6 -6
  400. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +6 -6
  401. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbi +2 -2
  402. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config.rbi +9 -2
  403. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +13 -4
  404. data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +4 -4
  405. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +9 -2
  406. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +13 -4
  407. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +9 -2
  408. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +13 -4
  409. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +9 -2
  410. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +13 -4
  411. data/rbi/anthropic/models/beta/beta_message.rbi +40 -29
  412. data/rbi/anthropic/models/beta/beta_message_iteration_usage.rbi +3 -3
  413. data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +21 -0
  414. data/rbi/anthropic/models/beta/beta_output_behavior.rbi +0 -3
  415. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +3 -11
  416. data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +40 -29
  417. data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +21 -14
  418. data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +0 -9
  419. data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +0 -9
  420. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +1 -10
  421. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +0 -3
  422. data/rbi/anthropic/models/beta/beta_summarize_compaction.rbi +54 -0
  423. data/rbi/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbi +140 -0
  424. data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +0 -1
  425. data/rbi/anthropic/models/beta/beta_tool_union.rbi +0 -2
  426. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +0 -3
  427. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +0 -3
  428. data/rbi/anthropic/models/beta/beta_user_profile.rbi +32 -2
  429. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details.rbi +228 -0
  430. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details_params.rbi +234 -0
  431. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20250910.rbi +28 -1
  432. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260209.rbi +28 -1
  433. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260309.rbi +27 -0
  434. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260318.rbi +27 -0
  435. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block.rbi +0 -3
  436. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +0 -3
  437. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rbi +5 -0
  438. data/rbi/anthropic/models/beta/beta_web_fetch_url_source_all.rbi +32 -0
  439. data/rbi/anthropic/models/beta/beta_web_fetch_url_source_except.rbi +53 -0
  440. data/rbi/anthropic/models/beta/beta_web_fetch_url_source_none.rbi +32 -0
  441. data/rbi/anthropic/models/beta/beta_web_fetch_url_source_only.rbi +52 -0
  442. data/rbi/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rbi +36 -0
  443. data/rbi/anthropic/models/beta/beta_web_fetch_url_sources.rbi +412 -0
  444. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +0 -3
  445. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +6 -11
  446. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +2 -2
  447. data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -4
  448. data/rbi/anthropic/models/beta/deployment_create_params.rbi +13 -12
  449. data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -4
  450. data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -4
  451. data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -4
  452. data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -4
  453. data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -4
  454. data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -4
  455. data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -4
  456. data/rbi/anthropic/models/beta/deployment_update_params.rbi +15 -14
  457. data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -4
  458. data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -4
  459. data/rbi/anthropic/models/beta/dream_create_params.rbi +8 -17
  460. data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -4
  461. data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -4
  462. data/rbi/anthropic/models/beta/environment_archive_params.rbi +4 -4
  463. data/rbi/anthropic/models/beta/environment_create_params.rbi +10 -10
  464. data/rbi/anthropic/models/beta/environment_delete_params.rbi +4 -4
  465. data/rbi/anthropic/models/beta/environment_list_params.rbi +4 -4
  466. data/rbi/anthropic/models/beta/environment_retrieve_params.rbi +4 -4
  467. data/rbi/anthropic/models/beta/environment_update_params.rbi +4 -4
  468. data/rbi/anthropic/models/beta/environments/work_ack_params.rbi +4 -4
  469. data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -4
  470. data/rbi/anthropic/models/beta/environments/work_list_params.rbi +4 -4
  471. data/rbi/anthropic/models/beta/environments/work_poll_params.rbi +4 -4
  472. data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +4 -4
  473. data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +4 -4
  474. data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +4 -4
  475. data/rbi/anthropic/models/beta/environments/work_update_params.rbi +4 -4
  476. data/rbi/anthropic/models/beta/file_delete_params.rbi +4 -4
  477. data/rbi/anthropic/models/beta/file_download_params.rbi +4 -4
  478. data/rbi/anthropic/models/beta/file_list_params.rbi +4 -4
  479. data/rbi/anthropic/models/beta/file_retrieve_metadata_params.rbi +4 -4
  480. data/rbi/anthropic/models/beta/file_upload_params.rbi +4 -4
  481. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -4
  482. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -4
  483. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -4
  484. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -4
  485. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -4
  486. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -4
  487. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -4
  488. data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -4
  489. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -4
  490. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -4
  491. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -4
  492. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -4
  493. data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -4
  494. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -4
  495. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +34 -6
  496. data/rbi/anthropic/models/beta/message_create_params.rbi +43 -13
  497. data/rbi/anthropic/models/beta/messages/batch_cancel_params.rbi +4 -4
  498. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +47 -15
  499. data/rbi/anthropic/models/beta/messages/batch_delete_params.rbi +4 -4
  500. data/rbi/anthropic/models/beta/messages/batch_list_params.rbi +4 -4
  501. data/rbi/anthropic/models/beta/messages/batch_results_params.rbi +4 -4
  502. data/rbi/anthropic/models/beta/messages/batch_retrieve_params.rbi +4 -4
  503. data/rbi/anthropic/models/beta/model_list_params.rbi +4 -4
  504. data/rbi/anthropic/models/beta/model_retrieve_params.rbi +4 -4
  505. data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +2 -69
  506. data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state.rbi +75 -0
  507. data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbi +75 -0
  508. data/rbi/anthropic/models/beta/organization/beta_data_residency.rbi +103 -10
  509. data/rbi/anthropic/models/beta/organization/beta_data_residency_create_config.rbi +8 -8
  510. data/rbi/anthropic/models/beta/organization/beta_data_residency_update_config.rbi +8 -8
  511. data/rbi/anthropic/models/beta/organization/compliance_setting_update_params.rbi +0 -68
  512. data/rbi/anthropic/models/beta/organization/federation/issuer_archive_params.rbi +4 -4
  513. data/rbi/anthropic/models/beta/organization/federation/issuer_create_params.rbi +4 -4
  514. data/rbi/anthropic/models/beta/organization/federation/issuer_list_params.rbi +4 -4
  515. data/rbi/anthropic/models/beta/organization/federation/issuer_retrieve_params.rbi +4 -4
  516. data/rbi/anthropic/models/beta/organization/federation/issuer_update_params.rbi +4 -4
  517. data/rbi/anthropic/models/beta/organization/federation/rule_archive_params.rbi +4 -4
  518. data/rbi/anthropic/models/beta/organization/federation/rule_create_params.rbi +4 -4
  519. data/rbi/anthropic/models/beta/organization/federation/rule_list_params.rbi +4 -4
  520. data/rbi/anthropic/models/beta/organization/federation/rule_retrieve_params.rbi +4 -4
  521. data/rbi/anthropic/models/beta/organization/federation/rule_update_params.rbi +4 -4
  522. data/rbi/anthropic/models/beta/organization/federation/rules/workspace_add_params.rbi +4 -4
  523. data/rbi/anthropic/models/beta/organization/federation/rules/workspace_list_params.rbi +4 -4
  524. data/rbi/anthropic/models/beta/organization/federation/rules/workspace_remove_params.rbi +4 -4
  525. data/rbi/anthropic/models/beta/organization/service_account_archive_params.rbi +4 -4
  526. data/rbi/anthropic/models/beta/organization/service_account_create_params.rbi +4 -4
  527. data/rbi/anthropic/models/beta/organization/service_account_list_params.rbi +4 -4
  528. data/rbi/anthropic/models/beta/organization/service_account_retrieve_params.rbi +4 -4
  529. data/rbi/anthropic/models/beta/organization/service_account_update_params.rbi +4 -4
  530. data/rbi/anthropic/models/beta/organization/service_accounts/workspace_add_params.rbi +4 -4
  531. data/rbi/anthropic/models/beta/organization/service_accounts/workspace_list_params.rbi +4 -4
  532. data/rbi/anthropic/models/beta/organization/service_accounts/workspace_remove_params.rbi +4 -4
  533. data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +4 -4
  534. data/rbi/anthropic/models/beta/organization/workspaces/service_account_add_params.rbi +4 -4
  535. data/rbi/anthropic/models/beta/organization/workspaces/service_account_list_params.rbi +4 -4
  536. data/rbi/anthropic/models/beta/organization/workspaces/service_account_remove_params.rbi +4 -4
  537. data/rbi/anthropic/models/beta/organization/workspaces/service_account_retrieve_params.rbi +4 -4
  538. data/rbi/anthropic/models/beta/organization/workspaces/service_account_update_params.rbi +4 -4
  539. data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -4
  540. data/rbi/anthropic/models/beta/session_create_params.rbi +16 -15
  541. data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -4
  542. data/rbi/anthropic/models/beta/session_list_params.rbi +4 -4
  543. data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -4
  544. data/rbi/anthropic/models/beta/session_update_params.rbi +4 -4
  545. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbi +90 -0
  546. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rbi +31 -0
  547. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rbi +45 -0
  548. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +46 -0
  549. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +6 -2
  550. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +40 -4
  551. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +98 -0
  552. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rbi +32 -0
  553. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rbi +32 -0
  554. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbi +66 -0
  555. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +42 -4
  556. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +0 -9
  557. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +10 -4
  558. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +0 -1
  559. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +0 -3
  560. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +0 -3
  561. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +10 -4
  562. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +10 -4
  563. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +4 -4
  564. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +4 -6
  565. data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -4
  566. data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -4
  567. data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -4
  568. data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -4
  569. data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -4
  570. data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -4
  571. data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -4
  572. data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -4
  573. data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -4
  574. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -4
  575. data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -4
  576. data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -4
  577. data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -4
  578. data/rbi/anthropic/models/beta/skill_create_params.rbi +4 -4
  579. data/rbi/anthropic/models/beta/skill_delete_params.rbi +4 -4
  580. data/rbi/anthropic/models/beta/skill_list_params.rbi +4 -4
  581. data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +4 -4
  582. data/rbi/anthropic/models/beta/skills/version_create_params.rbi +4 -4
  583. data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +4 -4
  584. data/rbi/anthropic/models/beta/skills/version_download_params.rbi +4 -4
  585. data/rbi/anthropic/models/beta/skills/version_list_params.rbi +4 -4
  586. data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +4 -4
  587. data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -4
  588. data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -4
  589. data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -4
  590. data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -4
  591. data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -4
  592. data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -4
  593. data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -4
  594. data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -4
  595. data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -4
  596. data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -4
  597. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +13 -4
  598. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +45 -6
  599. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +13 -4
  600. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +13 -4
  601. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +47 -6
  602. data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -4
  603. data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -4
  604. data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -4
  605. data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -4
  606. data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -4
  607. data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -4
  608. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +0 -3
  609. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +0 -3
  610. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +0 -3
  611. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +0 -3
  612. data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -4
  613. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -4
  614. data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -4
  615. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -4
  616. data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -4
  617. data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -4
  618. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +4 -4
  619. data/rbi/anthropic/models/browser_state_change.rbi +0 -6
  620. data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -7
  621. data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +0 -1
  622. data/rbi/anthropic/models/code_execution_tool_result_block_param.rbi +0 -2
  623. data/rbi/anthropic/models/code_execution_tool_result_block_param_content.rbi +0 -1
  624. data/rbi/anthropic/models/completion_create_params.rbi +4 -4
  625. data/rbi/anthropic/models/content_block.rbi +0 -3
  626. data/rbi/anthropic/models/content_block_param.rbi +2 -5
  627. data/rbi/anthropic/models/message_count_tokens_tool.rbi +0 -2
  628. data/rbi/anthropic/models/model_list_params.rbi +4 -4
  629. data/rbi/anthropic/models/model_retrieve_params.rbi +4 -4
  630. data/rbi/anthropic/models/raw_content_block_start_event.rbi +1 -10
  631. data/rbi/anthropic/models/raw_message_stream_event.rbi +0 -1
  632. data/rbi/anthropic/models/server_tool_use_block.rbi +1 -10
  633. data/rbi/anthropic/models/server_tool_use_block_param.rbi +0 -3
  634. data/rbi/anthropic/models/tool_result_block_param.rbi +0 -1
  635. data/rbi/anthropic/models/tool_union.rbi +0 -2
  636. data/rbi/anthropic/models/tool_use_block.rbi +0 -3
  637. data/rbi/anthropic/models/tool_use_block_param.rbi +0 -3
  638. data/rbi/anthropic/models/web_fetch_tool_20250910.rbi +26 -1
  639. data/rbi/anthropic/models/web_fetch_tool_20260209.rbi +26 -1
  640. data/rbi/anthropic/models/web_fetch_tool_20260309.rbi +25 -0
  641. data/rbi/anthropic/models/web_fetch_tool_20260318.rbi +25 -0
  642. data/rbi/anthropic/models/web_fetch_tool_result_block.rbi +0 -3
  643. data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +0 -3
  644. data/rbi/anthropic/models/web_fetch_tool_result_error_code.rbi +5 -0
  645. data/rbi/anthropic/models/web_fetch_url_source_all.rbi +25 -0
  646. data/rbi/anthropic/models/web_fetch_url_source_except.rbi +43 -0
  647. data/rbi/anthropic/models/web_fetch_url_source_none.rbi +25 -0
  648. data/rbi/anthropic/models/web_fetch_url_source_only.rbi +39 -0
  649. data/rbi/anthropic/models/web_fetch_url_source_tool_reference.rbi +31 -0
  650. data/rbi/anthropic/models/web_fetch_url_sources.rbi +386 -0
  651. data/rbi/anthropic/models/web_search_tool_result_block.rbi +0 -3
  652. data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +6 -9
  653. data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +2 -2
  654. data/rbi/anthropic/models.rbi +13 -0
  655. data/rbi/anthropic/request_options.rbi +1 -2
  656. data/rbi/anthropic/resources/beta/agents/versions.rbi +1 -1
  657. data/rbi/anthropic/resources/beta/agents.rbi +9 -9
  658. data/rbi/anthropic/resources/beta/deployment_runs.rbi +2 -2
  659. data/rbi/anthropic/resources/beta/deployments.rbi +12 -12
  660. data/rbi/anthropic/resources/beta/dreams.rbi +8 -10
  661. data/rbi/anthropic/resources/beta/environments/work.rbi +8 -8
  662. data/rbi/anthropic/resources/beta/environments.rbi +8 -8
  663. data/rbi/anthropic/resources/beta/files.rbi +5 -5
  664. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +5 -5
  665. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +3 -3
  666. data/rbi/anthropic/resources/beta/memory_stores.rbi +6 -6
  667. data/rbi/anthropic/resources/beta/messages/batches.rbi +6 -6
  668. data/rbi/anthropic/resources/beta/messages.rbi +60 -16
  669. data/rbi/anthropic/resources/beta/models.rbi +2 -2
  670. data/rbi/anthropic/resources/beta/organization/federation/issuers.rbi +5 -5
  671. data/rbi/anthropic/resources/beta/organization/federation/rules/workspaces.rbi +3 -3
  672. data/rbi/anthropic/resources/beta/organization/federation/rules.rbi +5 -5
  673. data/rbi/anthropic/resources/beta/organization/service_accounts/workspaces.rbi +3 -3
  674. data/rbi/anthropic/resources/beta/organization/service_accounts.rbi +5 -5
  675. data/rbi/anthropic/resources/beta/organization/workspaces/service_accounts.rbi +5 -5
  676. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +1 -1
  677. data/rbi/anthropic/resources/beta/sessions/events.rbi +3 -3
  678. data/rbi/anthropic/resources/beta/sessions/resources.rbi +5 -5
  679. data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +2 -2
  680. data/rbi/anthropic/resources/beta/sessions/threads.rbi +3 -3
  681. data/rbi/anthropic/resources/beta/sessions.rbi +8 -8
  682. data/rbi/anthropic/resources/beta/skills/versions.rbi +5 -5
  683. data/rbi/anthropic/resources/beta/skills.rbi +4 -4
  684. data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +4 -4
  685. data/rbi/anthropic/resources/beta/tunnels.rbi +6 -6
  686. data/rbi/anthropic/resources/beta/user_profiles.rbi +64 -7
  687. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +7 -7
  688. data/rbi/anthropic/resources/beta/vaults.rbi +6 -6
  689. data/rbi/anthropic/resources/completions.rbi +2 -2
  690. data/rbi/anthropic/resources/models.rbi +2 -2
  691. data/sig/anthropic/client.rbs +1 -0
  692. data/sig/anthropic/internal/transport/base_client.rbs +1 -0
  693. data/sig/anthropic/internal/transport/pooled_net_requester.rbs +10 -2
  694. data/sig/anthropic/models/anthropic_beta.rbs +6 -2
  695. data/sig/anthropic/models/beta/agent_create_params.rbs +2 -2
  696. data/sig/anthropic/models/beta/agent_update_params.rbs +2 -2
  697. data/sig/anthropic/models/beta/beta_compaction_block.rbs +11 -2
  698. data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +7 -2
  699. data/sig/anthropic/models/beta/beta_compaction_capability.rbs +26 -0
  700. data/sig/anthropic/models/beta/beta_compaction_config.rbs +19 -0
  701. data/sig/anthropic/models/beta/beta_content_block.rbs +3 -2
  702. data/sig/anthropic/models/beta/beta_content_block_param.rbs +3 -2
  703. data/sig/anthropic/models/beta/beta_fallbacks_param.rbs +1 -1
  704. data/sig/anthropic/models/beta/beta_input_transformation.rbs +46 -0
  705. data/sig/anthropic/models/beta/beta_iterations_usage.rbs +2 -2
  706. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbs +6 -1
  707. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +6 -1
  708. data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +2 -2
  709. data/sig/anthropic/models/beta/beta_managed_agents_auto_policy.rbs +17 -0
  710. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +6 -1
  711. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +6 -1
  712. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +6 -1
  713. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +6 -1
  714. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +7 -5
  715. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +6 -1
  716. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +6 -1
  717. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +6 -1
  718. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +6 -1
  719. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbs +6 -1
  720. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +6 -1
  721. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +6 -1
  722. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +6 -1
  723. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbs +2 -2
  724. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config.rbs +6 -1
  725. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +6 -1
  726. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +6 -1
  727. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +6 -1
  728. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +6 -1
  729. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +6 -1
  730. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +6 -1
  731. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +6 -1
  732. data/sig/anthropic/models/beta/beta_message.rbs +4 -4
  733. data/sig/anthropic/models/beta/beta_message_iteration_usage.rbs +4 -4
  734. data/sig/anthropic/models/beta/beta_model_capabilities.rbs +5 -0
  735. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +3 -2
  736. data/sig/anthropic/models/beta/beta_raw_message_delta_event.rbs +4 -4
  737. data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +2 -2
  738. data/sig/anthropic/models/beta/beta_summarize_compaction.rbs +20 -0
  739. data/sig/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbs +51 -0
  740. data/sig/anthropic/models/beta/beta_user_profile.rbs +9 -0
  741. data/sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs +79 -0
  742. data/sig/anthropic/models/beta/beta_user_profile_external_user_details_params.rbs +81 -0
  743. data/sig/anthropic/models/beta/beta_web_fetch_tool_20250910.rbs +7 -2
  744. data/sig/anthropic/models/beta/beta_web_fetch_tool_20260209.rbs +7 -2
  745. data/sig/anthropic/models/beta/beta_web_fetch_tool_20260309.rbs +5 -0
  746. data/sig/anthropic/models/beta/beta_web_fetch_tool_20260318.rbs +5 -0
  747. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rbs +2 -0
  748. data/sig/anthropic/models/beta/beta_web_fetch_url_source_all.rbs +17 -0
  749. data/sig/anthropic/models/beta/beta_web_fetch_url_source_except.rbs +29 -0
  750. data/sig/anthropic/models/beta/beta_web_fetch_url_source_none.rbs +17 -0
  751. data/sig/anthropic/models/beta/beta_web_fetch_url_source_only.rbs +29 -0
  752. data/sig/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rbs +20 -0
  753. data/sig/anthropic/models/beta/beta_web_fetch_url_sources.rbs +162 -0
  754. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +2 -2
  755. data/sig/anthropic/models/beta/deployment_create_params.rbs +3 -3
  756. data/sig/anthropic/models/beta/deployment_update_params.rbs +3 -3
  757. data/sig/anthropic/models/beta/dream_create_params.rbs +1 -1
  758. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
  759. data/sig/anthropic/models/beta/message_create_params.rbs +6 -1
  760. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +6 -1
  761. data/sig/anthropic/models/beta/organization/beta_compliance_settings.rbs +4 -36
  762. data/sig/anthropic/models/beta/organization/beta_compliance_settings_state.rbs +39 -0
  763. data/sig/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbs +39 -0
  764. data/sig/anthropic/models/beta/organization/beta_data_residency.rbs +33 -10
  765. data/sig/anthropic/models/beta/organization/beta_data_residency_create_config.rbs +2 -2
  766. data/sig/anthropic/models/beta/organization/beta_data_residency_update_config.rbs +2 -2
  767. data/sig/anthropic/models/beta/organization/compliance_setting_update_params.rbs +4 -36
  768. data/sig/anthropic/models/beta/session_create_params.rbs +4 -4
  769. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbs +47 -0
  770. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rbs +18 -0
  771. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rbs +20 -0
  772. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbs +20 -0
  773. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +9 -0
  774. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbs +46 -0
  775. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rbs +18 -0
  776. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rbs +18 -0
  777. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbs +29 -0
  778. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +9 -0
  779. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +3 -0
  780. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +3 -0
  781. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +3 -0
  782. data/sig/anthropic/models/beta/user_profile_create_enrollment_url_params.rbs +8 -1
  783. data/sig/anthropic/models/beta/user_profile_create_params.rbs +17 -1
  784. data/sig/anthropic/models/beta/user_profile_list_params.rbs +8 -1
  785. data/sig/anthropic/models/beta/user_profile_retrieve_params.rbs +8 -1
  786. data/sig/anthropic/models/beta/user_profile_update_params.rbs +17 -1
  787. data/sig/anthropic/models/web_fetch_tool_20250910.rbs +7 -2
  788. data/sig/anthropic/models/web_fetch_tool_20260209.rbs +7 -2
  789. data/sig/anthropic/models/web_fetch_tool_20260309.rbs +5 -0
  790. data/sig/anthropic/models/web_fetch_tool_20260318.rbs +5 -0
  791. data/sig/anthropic/models/web_fetch_tool_result_error_code.rbs +2 -0
  792. data/sig/anthropic/models/web_fetch_url_source_all.rbs +13 -0
  793. data/sig/anthropic/models/web_fetch_url_source_except.rbs +25 -0
  794. data/sig/anthropic/models/web_fetch_url_source_none.rbs +13 -0
  795. data/sig/anthropic/models/web_fetch_url_source_only.rbs +22 -0
  796. data/sig/anthropic/models/web_fetch_url_source_tool_reference.rbs +16 -0
  797. data/sig/anthropic/models/web_fetch_url_sources.rbs +151 -0
  798. data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +2 -2
  799. data/sig/anthropic/models.rbs +12 -0
  800. data/sig/anthropic/resources/beta/messages.rbs +4 -0
  801. data/sig/anthropic/resources/beta/organization/compliance_settings.rbs +1 -1
  802. data/sig/anthropic/resources/beta/user_profiles.rbs +7 -0
  803. metadata +92 -16
@@ -20,7 +20,7 @@ module Anthropic
20
20
  # @!attribute permission_policy
21
21
  # Permission policy for tool execution.
22
22
  #
23
- # @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, nil]
23
+ # @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy, nil]
24
24
  optional :permission_policy,
25
25
  union: -> { Anthropic::Beta::BetaManagedAgentsWriteToolConfigParams::PermissionPolicy },
26
26
  nil?: true
@@ -39,7 +39,7 @@ module Anthropic
39
39
  #
40
40
  # @param enabled [Boolean, nil] Whether this tool is enabled and available to Claude. Overrides the default_conf
41
41
  #
42
- # @param permission_policy [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, nil] Permission policy for tool execution.
42
+ # @param permission_policy [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy, nil] Permission policy for tool execution.
43
43
  #
44
44
  # @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsWriteToolConfigParams::Type]
45
45
  #
@@ -59,18 +59,22 @@ module Anthropic
59
59
  # Tool calls require user confirmation before execution.
60
60
  variant :always_ask, -> { Anthropic::Beta::BetaManagedAgentsAlwaysAskPolicy }
61
61
 
62
+ # The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.
63
+ variant :auto, -> { Anthropic::Beta::BetaManagedAgentsAutoPolicy }
64
+
62
65
  module Type
63
66
  extend Anthropic::Internal::Type::Enum
64
67
 
65
68
  ALWAYS_ALLOW = :always_allow
66
69
  ALWAYS_ASK = :always_ask
70
+ AUTO = :auto
67
71
 
68
72
  # @!method self.values
69
73
  # @return [Array<Symbol>]
70
74
  end
71
75
 
72
76
  # @!method self.variants
73
- # @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy)]
77
+ # @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy)]
74
78
 
75
79
  # Creates a new instance of the variant class whose `type` matches the given
76
80
  # value, passing the remaining arguments to its constructor.
@@ -80,13 +84,15 @@ module Anthropic
80
84
  # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
81
85
  #
82
86
  # @raise [ArgumentError]
83
- # @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy]
87
+ # @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy]
84
88
  def self.new(type:, **args)
85
89
  case type.to_sym
86
90
  when :always_allow
87
91
  Anthropic::Beta::BetaManagedAgentsAlwaysAllowPolicy.new(**args)
88
92
  when :always_ask
89
93
  Anthropic::Beta::BetaManagedAgentsAlwaysAskPolicy.new(**args)
94
+ when :auto
95
+ Anthropic::Beta::BetaManagedAgentsAutoPolicy.new(**args)
90
96
  else
91
97
  raise ArgumentError, "unknown type: #{type}"
92
98
  end
@@ -168,27 +168,30 @@ module Anthropic
168
168
  required :usage, -> { Anthropic::Beta::BetaUsage }
169
169
 
170
170
  # @!attribute input_transformations
171
- # Changes the API made to the request's input before showing it to the model: one
172
- # entry per change, in request order. Today the only entry type is
173
- # `thinking_dropped` — a `thinking`, `redacted_thinking` or `connector_text` block
174
- # from the request's `messages` that was removed from the prompt instead of being
175
- # shown to the model because it failed a binding check. More entry types may be
176
- # added over time; ignore types you do not recognize.
171
+ # Changes the API made to the request's input before showing it to the model, and
172
+ # blocks that failed a binding check but were left unchanged: one entry per block,
173
+ # in request order. Two entry types today. `thinking_dropped` — a `thinking`,
174
+ # `redacted_thinking` or `connector_text` block from the request's `messages` that
175
+ # was removed from the prompt instead of being shown to the model because it
176
+ # failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
177
+ # `redacted_thinking` block that failed the conversation check (the conversation
178
+ # before it differs from the one it was created in, or it carries no record of one
179
+ # on a model that requires it) and was shown to the model all the same, because
180
+ # that check is not enforced for this request. More entry types may be added over
181
+ # time; ignore types you do not recognize.
177
182
  #
178
183
  # Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
179
184
  # every such response from a model that supports extended thinking, as `[]` when
180
- # nothing was changed; without the beta, blocks are removed all the same but
181
- # nothing is reported. Removed blocks contribute nothing to `usage.input_tokens`.
182
- # When streaming, the array is final in `message_start`; the final `message_delta`
183
- # event carries it only when a server-side model fallback happened mid-stream, in
184
- # which case it holds the serving model's entries and replaces the one in
185
- # `message_start`.
186
- #
187
- # @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil]
185
+ # there is no entry to report; without the beta, blocks are removed or left in
186
+ # place all the same but nothing is reported. Removed blocks contribute nothing to
187
+ # `usage.input_tokens`; blocks left in place count as sent. When streaming, the
188
+ # array is final in `message_start`; the final `message_delta` event carries it
189
+ # only when a server-side model fallback happened mid-stream, in which case it
190
+ # holds the serving model's entries and replaces the one in `message_start`.
191
+ #
192
+ # @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil]
188
193
  optional :input_transformations,
189
- -> {
190
- Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaThinkingDroppedInputTransformation]
191
- },
194
+ -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaInputTransformation] },
192
195
  nil?: true
193
196
 
194
197
  # @!method initialize(id:, container:, content:, context_management:, diagnostics:, model:, stop_details:, stop_reason:, stop_sequence:, usage:, input_transformations: nil, role: :assistant, type: :message)
@@ -215,7 +218,7 @@ module Anthropic
215
218
  #
216
219
  # @param usage [Anthropic::Models::Beta::BetaUsage] Billing and rate-limit usage.
217
220
  #
218
- # @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model:
221
+ # @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model,
219
222
  #
220
223
  # @param role [Symbol, :assistant] Conversational role of the generated message.
221
224
  #
@@ -34,8 +34,8 @@ module Anthropic
34
34
  # See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
35
35
  # details and options.
36
36
  #
37
- # @return [Symbol, String, Anthropic::Models::Model]
38
- required :model, union: -> { Anthropic::Model }
37
+ # @return [Symbol, String, Anthropic::Models::Model, nil]
38
+ required :model, union: -> { Anthropic::Model }, nil?: true
39
39
 
40
40
  # @!attribute output_tokens
41
41
  # The number of output tokens which were used.
@@ -63,7 +63,7 @@ module Anthropic
63
63
  #
64
64
  # @param input_tokens [Integer] The number of input tokens which were used.
65
65
  #
66
- # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
66
+ # @param model [Symbol, String, Anthropic::Models::Model, nil] The model that will complete your prompt.
67
67
  #
68
68
  # @param output_tokens [Integer] The number of output tokens which were used.
69
69
  #
@@ -22,6 +22,14 @@ module Anthropic
22
22
  # @return [Anthropic::Models::Beta::BetaCapabilitySupport]
23
23
  required :code_execution, -> { Anthropic::Beta::BetaCapabilitySupport }
24
24
 
25
+ # @!attribute compaction
26
+ # Compaction capability details: whether the model accepts the top-level
27
+ # `compaction` request parameter, with one entry per supported `compaction.type`
28
+ # value.
29
+ #
30
+ # @return [Anthropic::Models::Beta::BetaCompactionCapability, nil]
31
+ required :compaction, -> { Anthropic::Beta::BetaCompactionCapability }, nil?: true
32
+
25
33
  # @!attribute context_management
26
34
  # Context management support and available strategies.
27
35
  #
@@ -58,15 +66,20 @@ module Anthropic
58
66
  # @return [Anthropic::Models::Beta::BetaThinkingCapability]
59
67
  required :thinking, -> { Anthropic::Beta::BetaThinkingCapability }
60
68
 
61
- # @!method initialize(batch:, citations:, code_execution:, context_management:, effort:, image_input:, pdf_input:, structured_outputs:, thinking:)
69
+ # @!method initialize(batch:, citations:, code_execution:, compaction:, context_management:, effort:, image_input:, pdf_input:, structured_outputs:, thinking:)
62
70
  # Model capability information.
63
71
  #
72
+ # Some parameter documentations has been truncated, see
73
+ # {Anthropic::Models::Beta::BetaModelCapabilities} for more details.
74
+ #
64
75
  # @param batch [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports the Batch API.
65
76
  #
66
77
  # @param citations [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports citation generation.
67
78
  #
68
79
  # @param code_execution [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports code execution tools.
69
80
  #
81
+ # @param compaction [Anthropic::Models::Beta::BetaCompactionCapability, nil] Compaction capability details: whether the model accepts the top-level
82
+ #
70
83
  # @param context_management [Anthropic::Models::Beta::BetaContextManagementCapability] Context management support and available strategies.
71
84
  #
72
85
  # @param effort [Anthropic::Models::Beta::BetaEffortCapability] Effort (reasoning_effort) support and available levels.
@@ -3,9 +3,6 @@
3
3
  module Anthropic
4
4
  module Models
5
5
  module Beta
6
- # The default destination: the job creates a new output memory store as a clone of
7
- # the memory_store input and writes the consolidated memories into it. The input
8
- # store is never mutated.
9
6
  module BetaOutputBehavior
10
7
  extend Anthropic::Internal::Type::Union
11
8
 
@@ -5,7 +5,6 @@ module Anthropic
5
5
  module Beta
6
6
  class BetaRawContentBlockStartEvent < Anthropic::Internal::Type::BaseModel
7
7
  # @!attribute content_block
8
- # Response model for a file uploaded to the container.
9
8
  #
10
9
  # @return [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
11
10
  required :content_block, union: -> { Anthropic::Beta::BetaRawContentBlockStartEvent::ContentBlock }
@@ -21,14 +20,10 @@ module Anthropic
21
20
  required :type, const: :content_block_start
22
21
 
23
22
  # @!method initialize(content_block:, index:, type: :content_block_start)
24
- # @param content_block [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock] Response model for a file uploaded to the container.
25
- #
23
+ # @param content_block [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
26
24
  # @param index [Integer]
27
- #
28
25
  # @param type [Symbol, :content_block_start]
29
26
 
30
- # Response model for a file uploaded to the container.
31
- #
32
27
  # @see Anthropic::Models::Beta::BetaRawContentBlockStartEvent#content_block
33
28
  module ContentBlock
34
29
  extend Anthropic::Internal::Type::Union
@@ -130,7 +125,7 @@ module Anthropic
130
125
  #
131
126
  # @option args [String] :text
132
127
  #
133
- # @option args [String] :signature A value used to verify that this thinking block was generated by Claude when it
128
+ # @option args [String, String, nil] :signature A value used to verify that this thinking block was generated by Claude when it
134
129
  #
135
130
  # @option args [String] :thinking The text of Claude's thinking process for this block.
136
131
  #
@@ -142,11 +137,11 @@ module Anthropic
142
137
  #
143
138
  # @option args [String, Symbol, Anthropic::Models::Beta::BetaServerToolUseBlock::Name] :name The name of the MCP tool
144
139
  #
145
- # @option args [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] :caller_ Tool invocation directly from the model.
140
+ # @option args [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] :caller_
146
141
  #
147
142
  # @option args [String, nil] :toolset_name For a toolset member tool_use, the toolset family.
148
143
  #
149
- # @option args [Anthropic::Models::Beta::BetaWebSearchToolResultError, Array<Anthropic::Models::Beta::BetaWebSearchResultBlock>, Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock, Anthropic::Models::Beta::BetaAdvisorToolResultError, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultError, Anthropic::Models::Beta::BetaCodeExecutionResultBlock, Anthropic::Models::Beta::BetaEncryptedCodeExecutionResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError, Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionCreateResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionStrReplaceResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultError, Anthropic::Models::Beta::BetaToolSearchToolSearchResultBlock, String, Array<Anthropic::Models::Beta::BetaTextBlock>, String, nil] :content Code execution result with encrypted stdout for PFC + web_search results.
144
+ # @option args [Anthropic::Models::Beta::BetaWebSearchToolResultError, Array<Anthropic::Models::Beta::BetaWebSearchResultBlock>, Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock, Anthropic::Models::Beta::BetaAdvisorToolResultError, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultError, Anthropic::Models::Beta::BetaCodeExecutionResultBlock, Anthropic::Models::Beta::BetaEncryptedCodeExecutionResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError, Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionCreateResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionStrReplaceResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultError, Anthropic::Models::Beta::BetaToolSearchToolSearchResultBlock, String, Array<Anthropic::Models::Beta::BetaTextBlock>, String, nil] :content Summary of compacted content, or null if compaction failed
150
145
  #
151
146
  # @option args [String] :tool_use_id
152
147
  #
@@ -41,27 +41,30 @@ module Anthropic
41
41
  required :usage, -> { Anthropic::Beta::BetaMessageDeltaUsage }
42
42
 
43
43
  # @!attribute input_transformations
44
- # Changes the API made to the request's input before showing it to the model: one
45
- # entry per change, in request order. Today the only entry type is
46
- # `thinking_dropped` — a `thinking`, `redacted_thinking` or `connector_text` block
47
- # from the request's `messages` that was removed from the prompt instead of being
48
- # shown to the model because it failed a binding check. More entry types may be
49
- # added over time; ignore types you do not recognize.
44
+ # Changes the API made to the request's input before showing it to the model, and
45
+ # blocks that failed a binding check but were left unchanged: one entry per block,
46
+ # in request order. Two entry types today. `thinking_dropped` — a `thinking`,
47
+ # `redacted_thinking` or `connector_text` block from the request's `messages` that
48
+ # was removed from the prompt instead of being shown to the model because it
49
+ # failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
50
+ # `redacted_thinking` block that failed the conversation check (the conversation
51
+ # before it differs from the one it was created in, or it carries no record of one
52
+ # on a model that requires it) and was shown to the model all the same, because
53
+ # that check is not enforced for this request. More entry types may be added over
54
+ # time; ignore types you do not recognize.
50
55
  #
51
56
  # Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
52
57
  # every such response from a model that supports extended thinking, as `[]` when
53
- # nothing was changed; without the beta, blocks are removed all the same but
54
- # nothing is reported. Removed blocks contribute nothing to `usage.input_tokens`.
55
- # When streaming, the array is final in `message_start`; the final `message_delta`
56
- # event carries it only when a server-side model fallback happened mid-stream, in
57
- # which case it holds the serving model's entries and replaces the one in
58
- # `message_start`.
58
+ # there is no entry to report; without the beta, blocks are removed or left in
59
+ # place all the same but nothing is reported. Removed blocks contribute nothing to
60
+ # `usage.input_tokens`; blocks left in place count as sent. When streaming, the
61
+ # array is final in `message_start`; the final `message_delta` event carries it
62
+ # only when a server-side model fallback happened mid-stream, in which case it
63
+ # holds the serving model's entries and replaces the one in `message_start`.
59
64
  #
60
- # @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil]
65
+ # @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil]
61
66
  optional :input_transformations,
62
- -> {
63
- Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaThinkingDroppedInputTransformation]
64
- },
67
+ -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaInputTransformation] },
65
68
  nil?: true
66
69
 
67
70
  # @!method initialize(context_management:, delta:, usage:, input_transformations: nil, type: :message_delta)
@@ -74,7 +77,7 @@ module Anthropic
74
77
  #
75
78
  # @param usage [Anthropic::Models::Beta::BetaMessageDeltaUsage] Billing and rate-limit usage.
76
79
  #
77
- # @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model:
80
+ # @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model,
78
81
  #
79
82
  # @param type [Symbol, :message_delta]
80
83
 
@@ -55,9 +55,9 @@ module Anthropic
55
55
  #
56
56
  # @option args [Anthropic::Models::Beta::BetaMessageDeltaUsage] :usage Billing and rate-limit usage.
57
57
  #
58
- # @option args [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] :input_transformations Changes the API made to the request's input before showing it to the model:
58
+ # @option args [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] :input_transformations Changes the API made to the request's input before showing it to the model,
59
59
  #
60
- # @option args [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock] :content_block Response model for a file uploaded to the container.
60
+ # @option args [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock] :content_block
61
61
  #
62
62
  # @option args [Integer] :index
63
63
  #
@@ -5,9 +5,6 @@ module Anthropic
5
5
  module Beta
6
6
  class BetaRequestToolAdditionBlock < Anthropic::Internal::Type::BaseModel
7
7
  # @!attribute tool
8
- # Reference to a single tool the caller declared directly in `tools[]`. Does not
9
- # accept the composed `{server}_{name}` form the server assigns to MCP-resolved
10
- # tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
11
8
  #
12
9
  # @return [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
13
10
  required :tool, union: -> { Anthropic::Beta::BetaRequestToolAdditionBlock::Tool }
@@ -29,19 +26,12 @@ module Anthropic
29
26
  # `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
30
27
  # is offered to the model from this point in the conversation onward.
31
28
  #
32
- # Some parameter documentations has been truncated, see
33
- # {Anthropic::Models::Beta::BetaRequestToolAdditionBlock} for more details.
34
- #
35
- # @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference] Reference to a single tool the caller declared directly in
29
+ # @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
36
30
  #
37
31
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
38
32
  #
39
33
  # @param type [Symbol, :tool_addition]
40
34
 
41
- # Reference to a single tool the caller declared directly in `tools[]`. Does not
42
- # accept the composed `{server}_{name}` form the server assigns to MCP-resolved
43
- # tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
44
- #
45
35
  # @see Anthropic::Models::Beta::BetaRequestToolAdditionBlock#tool
46
36
  module Tool
47
37
  extend Anthropic::Internal::Type::Union
@@ -5,9 +5,6 @@ module Anthropic
5
5
  module Beta
6
6
  class BetaRequestToolRemovalBlock < Anthropic::Internal::Type::BaseModel
7
7
  # @!attribute tool
8
- # Reference to a single tool the caller declared directly in `tools[]`. Does not
9
- # accept the composed `{server}_{name}` form the server assigns to MCP-resolved
10
- # tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
11
8
  #
12
9
  # @return [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
13
10
  required :tool, union: -> { Anthropic::Beta::BetaRequestToolRemovalBlock::Tool }
@@ -29,19 +26,12 @@ module Anthropic
29
26
  # `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
30
27
  # is no longer offered to the model from this point in the conversation onward.
31
28
  #
32
- # Some parameter documentations has been truncated, see
33
- # {Anthropic::Models::Beta::BetaRequestToolRemovalBlock} for more details.
34
- #
35
- # @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference] Reference to a single tool the caller declared directly in
29
+ # @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
36
30
  #
37
31
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
38
32
  #
39
33
  # @param type [Symbol, :tool_removal]
40
34
 
41
- # Reference to a single tool the caller declared directly in `tools[]`. Does not
42
- # accept the composed `{server}_{name}` form the server assigns to MCP-resolved
43
- # tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
44
- #
45
35
  # @see Anthropic::Models::Beta::BetaRequestToolRemovalBlock#tool
46
36
  module Tool
47
37
  extend Anthropic::Internal::Type::Union
@@ -25,20 +25,15 @@ module Anthropic
25
25
  required :type, const: :server_tool_use
26
26
 
27
27
  # @!attribute caller_
28
- # Tool invocation directly from the model.
29
28
  #
30
29
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
31
30
  optional :caller_, union: -> { Anthropic::Beta::BetaServerToolUseBlock::Caller }, api_name: :caller
32
31
 
33
32
  # @!method initialize(id:, input:, name:, caller_: nil, type: :server_tool_use)
34
33
  # @param id [String]
35
- #
36
34
  # @param input [Object]
37
- #
38
35
  # @param name [Symbol, Anthropic::Models::Beta::BetaServerToolUseBlock::Name]
39
- #
40
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
41
- #
36
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
42
37
  # @param type [Symbol, :server_tool_use]
43
38
 
44
39
  # @see Anthropic::Models::Beta::BetaServerToolUseBlock#name
@@ -58,8 +53,6 @@ module Anthropic
58
53
  # @return [Array<Symbol>]
59
54
  end
60
55
 
61
- # Tool invocation directly from the model.
62
- #
63
56
  # @see Anthropic::Models::Beta::BetaServerToolUseBlock#caller_
64
57
  module Caller
65
58
  extend Anthropic::Internal::Type::Union
@@ -31,7 +31,6 @@ module Anthropic
31
31
  optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
32
32
 
33
33
  # @!attribute caller_
34
- # Tool invocation directly from the model.
35
34
  #
36
35
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
37
36
  optional :caller_,
@@ -49,7 +48,7 @@ module Anthropic
49
48
  #
50
49
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
51
50
  #
52
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
51
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
53
52
  #
54
53
  # @param type [Symbol, :server_tool_use]
55
54
 
@@ -70,8 +69,6 @@ module Anthropic
70
69
  # @return [Array<Symbol>]
71
70
  end
72
71
 
73
- # Tool invocation directly from the model.
74
- #
75
72
  # @see Anthropic::Models::Beta::BetaServerToolUseBlockParam#caller_
76
73
  module Caller
77
74
  extend Anthropic::Internal::Type::Union
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaSummarizeCompaction < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute type
8
+ #
9
+ # @return [Symbol, :summarize]
10
+ required :type, const: :summarize
11
+
12
+ # @!attribute instructions
13
+ # Replaces the server's default summarization prompt for this request. An empty or
14
+ # whitespace-only value counts as absent.
15
+ #
16
+ # @return [String, nil]
17
+ optional :instructions, String, nil?: true
18
+
19
+ # @!method initialize(instructions: nil, type: :summarize)
20
+ # Compact the whole conversation and return a signed `compaction` block, alone,
21
+ # that a later request sends back first in `messages`, in place of the messages it
22
+ # summarizes. There is no trigger and no pause flag: sending the parameter
23
+ # compacts, and nothing is sampled after the block.
24
+ #
25
+ # The summarization prompt is the server's own unless `instructions` are given,
26
+ # which then replace it for this request; a value that is empty or only whitespace
27
+ # counts as absent.
28
+ #
29
+ # Some parameter documentations has been truncated, see
30
+ # {Anthropic::Models::Beta::BetaSummarizeCompaction} for more details.
31
+ #
32
+ # @param instructions [String, nil] Replaces the server's default summarization prompt for this request. An empty or
33
+ #
34
+ # @param type [Symbol, :summarize]
35
+ end
36
+ end
37
+
38
+ BetaSummarizeCompaction = Beta::BetaSummarizeCompaction
39
+ end
40
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaThinkingMismatchAllowedInputTransformation < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute path
8
+ # Where the block is in your request, as `messages.{i}.content.{j}`: `i` indexes
9
+ # the `messages` array you sent and `j` that message's `content` array — the same
10
+ # form error messages use.
11
+ #
12
+ # @return [String]
13
+ required :path, String
14
+
15
+ # @!attribute reason
16
+ # Which binding check the block failed; the block was shown to the model all the
17
+ # same. Always `prefix_binding_mismatch` today — the conversation before the block
18
+ # differs from the conversation it was created in, or the block carries no record
19
+ # of one on a model that requires it. Were the check enforced for this request,
20
+ # the block would have been removed or the request rejected
21
+ # (`thinking.block_binding.prefix_mismatch_behavior`). A removal also takes the
22
+ # rest of that turn's consecutive thinking blocks, whereas here each block is
23
+ # checked on its own, so `thinking_mismatch_allowed` entries are a lower bound on
24
+ # what enforcement would remove.
25
+ #
26
+ # @return [Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason]
27
+ required :reason, enum: -> { Anthropic::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason }
28
+
29
+ # @!attribute type
30
+ # Always `thinking_mismatch_allowed` for this entry type.
31
+ #
32
+ # @return [Symbol, :thinking_mismatch_allowed]
33
+ required :type, const: :thinking_mismatch_allowed
34
+
35
+ # @!method initialize(path:, reason:, type: :thinking_mismatch_allowed)
36
+ # Some parameter documentations has been truncated, see
37
+ # {Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation} for
38
+ # more details.
39
+ #
40
+ # @param path [String] Where the block is in your request, as `messages.{i}.content.{j}`:
41
+ #
42
+ # @param reason [Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason] Which binding check the block failed; the block was shown to the model all
43
+ #
44
+ # @param type [Symbol, :thinking_mismatch_allowed] Always `thinking_mismatch_allowed` for this entry type.
45
+
46
+ # Which binding check the block failed; the block was shown to the model all the
47
+ # same. Always `prefix_binding_mismatch` today — the conversation before the block
48
+ # differs from the conversation it was created in, or the block carries no record
49
+ # of one on a model that requires it. Were the check enforced for this request,
50
+ # the block would have been removed or the request rejected
51
+ # (`thinking.block_binding.prefix_mismatch_behavior`). A removal also takes the
52
+ # rest of that turn's consecutive thinking blocks, whereas here each block is
53
+ # checked on its own, so `thinking_mismatch_allowed` entries are a lower bound on
54
+ # what enforcement would remove.
55
+ #
56
+ # @see Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation#reason
57
+ module Reason
58
+ extend Anthropic::Internal::Type::Enum
59
+
60
+ MODEL_BINDING_MISMATCH = :model_binding_mismatch
61
+ PREFIX_BINDING_MISMATCH = :prefix_binding_mismatch
62
+ ORGANIZATION_BINDING_MISMATCH = :organization_binding_mismatch
63
+ END_USER_BINDING_MISMATCH = :end_user_binding_mismatch
64
+
65
+ # @!method self.values
66
+ # @return [Array<Symbol>]
67
+ end
68
+ end
69
+ end
70
+
71
+ BetaThinkingMismatchAllowedInputTransformation = Beta::BetaThinkingMismatchAllowedInputTransformation
72
+ end
73
+ end
@@ -57,7 +57,6 @@ module Anthropic
57
57
 
58
58
  variant -> { Anthropic::Models::Beta::BetaToolResultBlockParam::Content::ContentArray }
59
59
 
60
- # Tool reference block that can be included in tool_result content.
61
60
  module Content
62
61
  extend Anthropic::Internal::Type::Union
63
62
 
@@ -3,8 +3,6 @@
3
3
  module Anthropic
4
4
  module Models
5
5
  module Beta
6
- # Code execution tool with REPL state persistence (daemon mode + gVisor
7
- # checkpoint).
8
6
  module BetaToolUnion
9
7
  extend Anthropic::Internal::Type::Union
10
8
 
@@ -25,7 +25,6 @@ module Anthropic
25
25
  required :type, const: :tool_use
26
26
 
27
27
  # @!attribute caller_
28
- # Tool invocation directly from the model.
29
28
  #
30
29
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
31
30
  optional :caller_, union: -> { Anthropic::Beta::BetaToolUseBlock::Caller }, api_name: :caller
@@ -57,14 +56,12 @@ module Anthropic
57
56
  #
58
57
  # @param name [String]
59
58
  #
60
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
59
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
61
60
  #
62
61
  # @param toolset_name [String, nil] For a toolset member tool_use, the toolset family.
63
62
  #
64
63
  # @param type [Symbol, :tool_use]
65
64
 
66
- # Tool invocation directly from the model.
67
- #
68
65
  # @see Anthropic::Models::Beta::BetaToolUseBlock#caller_
69
66
  module Caller
70
67
  extend Anthropic::Internal::Type::Union
@@ -31,7 +31,6 @@ module Anthropic
31
31
  optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
32
32
 
33
33
  # @!attribute caller_
34
- # Tool invocation directly from the model.
35
34
  #
36
35
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
37
36
  optional :caller_, union: -> { Anthropic::Beta::BetaToolUseBlockParam::Caller }, api_name: :caller
@@ -51,14 +50,12 @@ module Anthropic
51
50
  #
52
51
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
53
52
  #
54
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
53
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
55
54
  #
56
55
  # @param toolset_name [String, nil] For a toolset member tool_use, the toolset family this member belongs to.
57
56
  #
58
57
  # @param type [Symbol, :tool_use]
59
58
 
60
- # Tool invocation directly from the model.
61
- #
62
59
  # @see Anthropic::Models::Beta::BetaToolUseBlockParam#caller_
63
60
  module Caller
64
61
  extend Anthropic::Internal::Type::Union