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
@@ -55,11 +55,21 @@ module Anthropic
55
55
  optional :access_type, enum: -> { Anthropic::Beta::BetaUserProfile::AccessType }
56
56
 
57
57
  # @!attribute external_id
58
- # Platform's own identifier for this user. Not enforced unique.
58
+ # Platform's own identifier for this user. Not enforced unique. Present under the
59
+ # `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers; under
60
+ # `user-profiles-2026-09-04` the value is `external_user_details.reference_id`.
59
61
  #
60
62
  # @return [String, nil]
61
63
  optional :external_id, String, nil?: true
62
64
 
65
+ # @!attribute external_user_details
66
+ # Details about the entity this profile represents, as the platform states them.
67
+ # Anthropic does not verify them. Every field is present, `null` until the
68
+ # platform supplies a value.
69
+ #
70
+ # @return [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails, nil]
71
+ optional :external_user_details, -> { Anthropic::Beta::BetaUserProfileExternalUserDetails }
72
+
63
73
  # @!attribute external_user_onboarded_at
64
74
  # A timestamp in RFC 3339 format
65
75
  #
@@ -74,7 +84,7 @@ module Anthropic
74
84
  # @return [String, nil]
75
85
  optional :name, String, nil?: true
76
86
 
77
- # @!method initialize(id:, created_at:, metadata:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_onboarded_at: nil, name: nil)
87
+ # @!method initialize(id:, created_at:, metadata:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, name: nil)
78
88
  # Some parameter documentations has been truncated, see
79
89
  # {Anthropic::Models::Beta::BetaUserProfile} for more details.
80
90
  #
@@ -92,7 +102,9 @@ module Anthropic
92
102
  #
93
103
  # @param access_type [Symbol, Anthropic::Models::Beta::BetaUserProfile::AccessType] How the platform uses the API on behalf of the entity this profile represents. `
94
104
  #
95
- # @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique.
105
+ # @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique. Present under the
106
+ #
107
+ # @param external_user_details [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails] Details about the entity this profile represents, as the platform states them. A
96
108
  #
97
109
  # @param external_user_onboarded_at [Time, nil] A timestamp in RFC 3339 format
98
110
  #
@@ -0,0 +1,122 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaUserProfileExternalUserDetails < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute account_status
8
+ # The status of the entity's account on the platform, as the platform states it:
9
+ # `active`; `suspended`, when the platform has restricted the account and may
10
+ # restore it; or `blocked`, when the platform has barred it. It records the
11
+ # platform's decision only; the statuses in `trust_grants` are Anthropic's and do
12
+ # not follow it.
13
+ #
14
+ # @return [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::AccountStatus, nil]
15
+ required :account_status,
16
+ enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetails::AccountStatus },
17
+ nil?: true
18
+
19
+ # @!attribute country
20
+ # The country the platform associates with the entity, as an ISO 3166-1 alpha-2
21
+ # code. `null` until the platform supplies one.
22
+ #
23
+ # @return [String, nil]
24
+ required :country, String, nil?: true
25
+
26
+ # @!attribute email_hash
27
+ # The platform-computed hash of the entity's email address. `null` until the
28
+ # platform supplies one.
29
+ #
30
+ # @return [String, nil]
31
+ required :email_hash, String, nil?: true
32
+
33
+ # @!attribute entity_type
34
+ # What kind of entity the profile represents, as the platform states it:
35
+ # `individual`, `business`, `non_profit` or `government`.
36
+ #
37
+ # @return [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::EntityType, nil]
38
+ required :entity_type,
39
+ enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetails::EntityType },
40
+ nil?: true
41
+
42
+ # @!attribute name_hash
43
+ # The platform-computed hash of the entity's name. `null` until the platform
44
+ # supplies one.
45
+ #
46
+ # @return [String, nil]
47
+ required :name_hash, String, nil?: true
48
+
49
+ # @!attribute onboarded_at
50
+ # A timestamp in RFC 3339 format
51
+ #
52
+ # @return [Time, nil]
53
+ required :onboarded_at, Time, nil?: true
54
+
55
+ # @!attribute reference_id
56
+ # The platform's own reference for the entity. `null` until the platform supplies
57
+ # one.
58
+ #
59
+ # @return [String, nil]
60
+ required :reference_id, String, nil?: true
61
+
62
+ # @!method initialize(account_status:, country:, email_hash:, entity_type:, name_hash:, onboarded_at:, reference_id:)
63
+ # Details about the entity this profile represents, as the platform states them.
64
+ # Anthropic does not verify them. Every field is present, `null` until the
65
+ # platform supplies a value.
66
+ #
67
+ # Some parameter documentations has been truncated, see
68
+ # {Anthropic::Models::Beta::BetaUserProfileExternalUserDetails} for more details.
69
+ #
70
+ # @param account_status [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::AccountStatus, nil] The status of the entity's account on the platform, as the platform states it: `
71
+ #
72
+ # @param country [String, nil] The country the platform associates with the entity, as an ISO 3166-1 alpha-2 co
73
+ #
74
+ # @param email_hash [String, nil] The platform-computed hash of the entity's email address. `null` until the platf
75
+ #
76
+ # @param entity_type [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetails::EntityType, nil] What kind of entity the profile represents, as the platform states it: `individu
77
+ #
78
+ # @param name_hash [String, nil] The platform-computed hash of the entity's name. `null` until the platform suppl
79
+ #
80
+ # @param onboarded_at [Time, nil] A timestamp in RFC 3339 format
81
+ #
82
+ # @param reference_id [String, nil] The platform's own reference for the entity. `null` until the platform supplies
83
+
84
+ # The status of the entity's account on the platform, as the platform states it:
85
+ # `active`; `suspended`, when the platform has restricted the account and may
86
+ # restore it; or `blocked`, when the platform has barred it. It records the
87
+ # platform's decision only; the statuses in `trust_grants` are Anthropic's and do
88
+ # not follow it.
89
+ #
90
+ # @see Anthropic::Models::Beta::BetaUserProfileExternalUserDetails#account_status
91
+ module AccountStatus
92
+ extend Anthropic::Internal::Type::Enum
93
+
94
+ ACTIVE = :active
95
+ SUSPENDED = :suspended
96
+ BLOCKED = :blocked
97
+
98
+ # @!method self.values
99
+ # @return [Array<Symbol>]
100
+ end
101
+
102
+ # What kind of entity the profile represents, as the platform states it:
103
+ # `individual`, `business`, `non_profit` or `government`.
104
+ #
105
+ # @see Anthropic::Models::Beta::BetaUserProfileExternalUserDetails#entity_type
106
+ module EntityType
107
+ extend Anthropic::Internal::Type::Enum
108
+
109
+ INDIVIDUAL = :individual
110
+ BUSINESS = :business
111
+ NON_PROFIT = :non_profit
112
+ GOVERNMENT = :government
113
+
114
+ # @!method self.values
115
+ # @return [Array<Symbol>]
116
+ end
117
+ end
118
+ end
119
+
120
+ BetaUserProfileExternalUserDetails = Beta::BetaUserProfileExternalUserDetails
121
+ end
122
+ end
@@ -0,0 +1,122 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaUserProfileExternalUserDetailsParams < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute account_status
8
+ # The status of the entity's account on the platform, as the platform states it:
9
+ # `active`; `suspended`, when the platform has restricted the account and may
10
+ # restore it; or `blocked`, when the platform has barred it. It records the
11
+ # platform's decision only; the statuses in `trust_grants` are Anthropic's and do
12
+ # not follow it.
13
+ #
14
+ # @return [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams::AccountStatus, nil]
15
+ optional :account_status,
16
+ enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams::AccountStatus },
17
+ nil?: true
18
+
19
+ # @!attribute country
20
+ # The country of the entity (not of the platform), as the platform determines it:
21
+ # an ISO 3166-1 alpha-2 code in upper case, for example `US`. Only the form, two
22
+ # uppercase ASCII letters, is checked.
23
+ #
24
+ # @return [String, nil]
25
+ optional :country, String, nil?: true
26
+
27
+ # @!attribute email_hash
28
+ # A hash of the entity's email address, computed by the platform. Anthropic treats
29
+ # it as an opaque string and does not prescribe the hash function. 1 to 255
30
+ # characters.
31
+ #
32
+ # @return [String, nil]
33
+ optional :email_hash, String, nil?: true
34
+
35
+ # @!attribute entity_type
36
+ # What kind of entity the profile represents, as the platform states it:
37
+ # `individual`, `business`, `non_profit` or `government`.
38
+ #
39
+ # @return [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams::EntityType, nil]
40
+ optional :entity_type,
41
+ enum: -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams::EntityType },
42
+ nil?: true
43
+
44
+ # @!attribute name_hash
45
+ # A hash of the entity's name, computed by the platform. Anthropic treats it as an
46
+ # opaque string and does not prescribe the hash function. 1 to 255 characters.
47
+ #
48
+ # @return [String, nil]
49
+ optional :name_hash, String, nil?: true
50
+
51
+ # @!attribute onboarded_at
52
+ # A timestamp in RFC 3339 format
53
+ #
54
+ # @return [Time, nil]
55
+ optional :onboarded_at, Time
56
+
57
+ # @!attribute reference_id
58
+ # The platform's own reference for the entity, for example the key of the
59
+ # end-user's row in the platform's database. Not interpreted by Anthropic and not
60
+ # enforced unique. 1 to 255 characters.
61
+ #
62
+ # @return [String, nil]
63
+ optional :reference_id, String, nil?: true
64
+
65
+ # @!method initialize(account_status: nil, country: nil, email_hash: nil, entity_type: nil, name_hash: nil, onboarded_at: nil, reference_id: nil)
66
+ # Some parameter documentations has been truncated, see
67
+ # {Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams} for more
68
+ # details.
69
+ #
70
+ # @param account_status [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams::AccountStatus, nil] The status of the entity's account on the platform, as the platform states it: `
71
+ #
72
+ # @param country [String, nil] The country of the entity (not of the platform), as the platform determines it:
73
+ #
74
+ # @param email_hash [String, nil] A hash of the entity's email address, computed by the platform. Anthropic treats
75
+ #
76
+ # @param entity_type [Symbol, Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams::EntityType, nil] What kind of entity the profile represents, as the platform states it: `individu
77
+ #
78
+ # @param name_hash [String, nil] A hash of the entity's name, computed by the platform. Anthropic treats it as an
79
+ #
80
+ # @param onboarded_at [Time] A timestamp in RFC 3339 format
81
+ #
82
+ # @param reference_id [String, nil] The platform's own reference for the entity, for example the key of the end-user
83
+
84
+ # The status of the entity's account on the platform, as the platform states it:
85
+ # `active`; `suspended`, when the platform has restricted the account and may
86
+ # restore it; or `blocked`, when the platform has barred it. It records the
87
+ # platform's decision only; the statuses in `trust_grants` are Anthropic's and do
88
+ # not follow it.
89
+ #
90
+ # @see Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams#account_status
91
+ module AccountStatus
92
+ extend Anthropic::Internal::Type::Enum
93
+
94
+ ACTIVE = :active
95
+ SUSPENDED = :suspended
96
+ BLOCKED = :blocked
97
+
98
+ # @!method self.values
99
+ # @return [Array<Symbol>]
100
+ end
101
+
102
+ # What kind of entity the profile represents, as the platform states it:
103
+ # `individual`, `business`, `non_profit` or `government`.
104
+ #
105
+ # @see Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams#entity_type
106
+ module EntityType
107
+ extend Anthropic::Internal::Type::Enum
108
+
109
+ INDIVIDUAL = :individual
110
+ BUSINESS = :business
111
+ NON_PROFIT = :non_profit
112
+ GOVERNMENT = :government
113
+
114
+ # @!method self.values
115
+ # @return [Array<Symbol>]
116
+ end
117
+ end
118
+ end
119
+
120
+ BetaUserProfileExternalUserDetailsParams = Beta::BetaUserProfileExternalUserDetailsParams
121
+ end
122
+ end
@@ -74,7 +74,18 @@ module Anthropic
74
74
  # @return [Boolean, nil]
75
75
  optional :strict, Anthropic::Internal::Type::Boolean
76
76
 
77
- # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, name: :web_fetch, type: :web_fetch_20250910)
77
+ # @!attribute url_sources
78
+ # Which sources contribute to the set of URLs web fetch may fetch.
79
+ #
80
+ # Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
81
+ # filters are `all`, `none`, `only` (only the named tools' results) or `except`
82
+ # (every result but the named tools'). A named tool must be declared in this
83
+ # request's `tools[]`.
84
+ #
85
+ # @return [Anthropic::Models::Beta::BetaWebFetchURLSources, nil]
86
+ optional :url_sources, -> { Anthropic::Beta::BetaWebFetchURLSources }, nil?: true
87
+
88
+ # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, url_sources: nil, name: :web_fetch, type: :web_fetch_20250910)
78
89
  # Some parameter documentations has been truncated, see
79
90
  # {Anthropic::Models::Beta::BetaWebFetchTool20250910} for more details.
80
91
  #
@@ -96,6 +107,8 @@ module Anthropic
96
107
  #
97
108
  # @param strict [Boolean] When true, guarantees schema validation on tool names and inputs
98
109
  #
110
+ # @param url_sources [Anthropic::Models::Beta::BetaWebFetchURLSources, nil] Which sources contribute to the set of URLs web fetch may fetch.
111
+ #
99
112
  # @param name [Symbol, :web_fetch] Name of the tool.
100
113
  #
101
114
  # @param type [Symbol, :web_fetch_20250910]
@@ -74,7 +74,18 @@ module Anthropic
74
74
  # @return [Boolean, nil]
75
75
  optional :strict, Anthropic::Internal::Type::Boolean
76
76
 
77
- # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, name: :web_fetch, type: :web_fetch_20260209)
77
+ # @!attribute url_sources
78
+ # Which sources contribute to the set of URLs web fetch may fetch.
79
+ #
80
+ # Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
81
+ # filters are `all`, `none`, `only` (only the named tools' results) or `except`
82
+ # (every result but the named tools'). A named tool must be declared in this
83
+ # request's `tools[]`.
84
+ #
85
+ # @return [Anthropic::Models::Beta::BetaWebFetchURLSources, nil]
86
+ optional :url_sources, -> { Anthropic::Beta::BetaWebFetchURLSources }, nil?: true
87
+
88
+ # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, url_sources: nil, name: :web_fetch, type: :web_fetch_20260209)
78
89
  # Some parameter documentations has been truncated, see
79
90
  # {Anthropic::Models::Beta::BetaWebFetchTool20260209} for more details.
80
91
  #
@@ -96,6 +107,8 @@ module Anthropic
96
107
  #
97
108
  # @param strict [Boolean] When true, guarantees schema validation on tool names and inputs
98
109
  #
110
+ # @param url_sources [Anthropic::Models::Beta::BetaWebFetchURLSources, nil] Which sources contribute to the set of URLs web fetch may fetch.
111
+ #
99
112
  # @param name [Symbol, :web_fetch] Name of the tool.
100
113
  #
101
114
  # @param type [Symbol, :web_fetch_20260209]
@@ -74,6 +74,17 @@ module Anthropic
74
74
  # @return [Boolean, nil]
75
75
  optional :strict, Anthropic::Internal::Type::Boolean
76
76
 
77
+ # @!attribute url_sources
78
+ # Which sources contribute to the set of URLs web fetch may fetch.
79
+ #
80
+ # Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
81
+ # filters are `all`, `none`, `only` (only the named tools' results) or `except`
82
+ # (every result but the named tools'). A named tool must be declared in this
83
+ # request's `tools[]`.
84
+ #
85
+ # @return [Anthropic::Models::Beta::BetaWebFetchURLSources, nil]
86
+ optional :url_sources, -> { Anthropic::Beta::BetaWebFetchURLSources }, nil?: true
87
+
77
88
  # @!attribute use_cache
78
89
  # Whether to use cached content. Set to false to bypass the cache and fetch fresh
79
90
  # content. Only set to false when the user explicitly requests fresh content or
@@ -82,7 +93,7 @@ module Anthropic
82
93
  # @return [Boolean, nil]
83
94
  optional :use_cache, Anthropic::Internal::Type::Boolean
84
95
 
85
- # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, use_cache: nil, name: :web_fetch, type: :web_fetch_20260309)
96
+ # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, strict: nil, url_sources: nil, use_cache: nil, name: :web_fetch, type: :web_fetch_20260309)
86
97
  # Web fetch tool with use_cache parameter for bypassing cached content.
87
98
  #
88
99
  # Some parameter documentations has been truncated, see
@@ -106,6 +117,8 @@ module Anthropic
106
117
  #
107
118
  # @param strict [Boolean] When true, guarantees schema validation on tool names and inputs
108
119
  #
120
+ # @param url_sources [Anthropic::Models::Beta::BetaWebFetchURLSources, nil] Which sources contribute to the set of URLs web fetch may fetch.
121
+ #
109
122
  # @param use_cache [Boolean] Whether to use cached content. Set to false to bypass the cache and fetch fresh
110
123
  #
111
124
  # @param name [Symbol, :web_fetch] Name of the tool.
@@ -85,6 +85,17 @@ module Anthropic
85
85
  # @return [Boolean, nil]
86
86
  optional :strict, Anthropic::Internal::Type::Boolean
87
87
 
88
+ # @!attribute url_sources
89
+ # Which sources contribute to the set of URLs web fetch may fetch.
90
+ #
91
+ # Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
92
+ # filters are `all`, `none`, `only` (only the named tools' results) or `except`
93
+ # (every result but the named tools'). A named tool must be declared in this
94
+ # request's `tools[]`.
95
+ #
96
+ # @return [Anthropic::Models::Beta::BetaWebFetchURLSources, nil]
97
+ optional :url_sources, -> { Anthropic::Beta::BetaWebFetchURLSources }, nil?: true
98
+
88
99
  # @!attribute use_cache
89
100
  # Whether to use cached content. Set to false to bypass the cache and fetch fresh
90
101
  # content. Only set to false when the user explicitly requests fresh content or
@@ -93,7 +104,7 @@ module Anthropic
93
104
  # @return [Boolean, nil]
94
105
  optional :use_cache, Anthropic::Internal::Type::Boolean
95
106
 
96
- # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, response_inclusion: nil, strict: nil, use_cache: nil, name: :web_fetch, type: :web_fetch_20260318)
107
+ # @!method initialize(allowed_callers: nil, allowed_domains: nil, blocked_domains: nil, cache_control: nil, citations: nil, defer_loading: nil, max_content_tokens: nil, max_uses: nil, response_inclusion: nil, strict: nil, url_sources: nil, use_cache: nil, name: :web_fetch, type: :web_fetch_20260318)
97
108
  # Some parameter documentations has been truncated, see
98
109
  # {Anthropic::Models::Beta::BetaWebFetchTool20260318} for more details.
99
110
  #
@@ -117,6 +128,8 @@ module Anthropic
117
128
  #
118
129
  # @param strict [Boolean] When true, guarantees schema validation on tool names and inputs
119
130
  #
131
+ # @param url_sources [Anthropic::Models::Beta::BetaWebFetchURLSources, nil] Which sources contribute to the set of URLs web fetch may fetch.
132
+ #
120
133
  # @param use_cache [Boolean] Whether to use cached content. Set to false to bypass the cache and fetch fresh
121
134
  #
122
135
  # @param name [Symbol, :web_fetch] Name of the tool.
@@ -20,7 +20,6 @@ module Anthropic
20
20
  required :type, const: :web_fetch_tool_result
21
21
 
22
22
  # @!attribute caller_
23
- # Tool invocation directly from the model.
24
23
  #
25
24
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
26
25
  optional :caller_,
@@ -31,11 +30,8 @@ module Anthropic
31
30
 
32
31
  # @!method initialize(content:, tool_use_id:, caller_: nil, type: :web_fetch_tool_result)
33
32
  # @param content [Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock]
34
- #
35
33
  # @param tool_use_id [String]
36
- #
37
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
38
- #
34
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
39
35
  # @param type [Symbol, :web_fetch_tool_result]
40
36
 
41
37
  # @see Anthropic::Models::Beta::BetaWebFetchToolResultBlock#content
@@ -50,8 +46,6 @@ module Anthropic
50
46
  # @return [Array(Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock)]
51
47
  end
52
48
 
53
- # Tool invocation directly from the model.
54
- #
55
49
  # @see Anthropic::Models::Beta::BetaWebFetchToolResultBlock#caller_
56
50
  module Caller
57
51
  extend Anthropic::Internal::Type::Union
@@ -26,7 +26,6 @@ module Anthropic
26
26
  optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
27
27
 
28
28
  # @!attribute caller_
29
- # Tool invocation directly from the model.
30
29
  #
31
30
  # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
32
31
  optional :caller_,
@@ -40,7 +39,7 @@ module Anthropic
40
39
  #
41
40
  # @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
42
41
  #
43
- # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
42
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
44
43
  #
45
44
  # @param type [Symbol, :web_fetch_tool_result]
46
45
 
@@ -56,8 +55,6 @@ module Anthropic
56
55
  # @return [Array(Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlockParam, Anthropic::Models::Beta::BetaWebFetchBlockParam)]
57
56
  end
58
57
 
59
- # Tool invocation directly from the model.
60
- #
61
58
  # @see Anthropic::Models::Beta::BetaWebFetchToolResultBlockParam#caller_
62
59
  module Caller
63
60
  extend Anthropic::Internal::Type::Union
@@ -15,6 +15,7 @@ module Anthropic
15
15
  TOO_MANY_REQUESTS = :too_many_requests
16
16
  MAX_USES_EXCEEDED = :max_uses_exceeded
17
17
  UNAVAILABLE = :unavailable
18
+ CONTENT_TOO_LARGE = :content_too_large
18
19
 
19
20
  # @!method self.values
20
21
  # @return [Array<Symbol>]
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaWebFetchURLSourceAll < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute type
8
+ #
9
+ # @return [Symbol, :all]
10
+ required :type, const: :all
11
+
12
+ # @!method initialize(type: :all)
13
+ # The `url_sources` variant under which a source contributes in full: every result
14
+ # of the tool filter's source, or all user input.
15
+ #
16
+ # @param type [Symbol, :all]
17
+ end
18
+ end
19
+
20
+ BetaWebFetchURLSourceAll = Beta::BetaWebFetchURLSourceAll
21
+ end
22
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaWebFetchURLSourceExcept < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute tools
8
+ #
9
+ # @return [Array<Anthropic::Models::Beta::BetaWebFetchURLSourceToolReference>]
10
+ required :tools,
11
+ -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaWebFetchURLSourceToolReference] }
12
+
13
+ # @!attribute type
14
+ #
15
+ # @return [Symbol, :except]
16
+ required :type, const: :except
17
+
18
+ # @!method initialize(tools:, type: :except)
19
+ # The tool filter variant under which every result but the named tools'
20
+ # contributes.
21
+ #
22
+ # @param tools [Array<Anthropic::Models::Beta::BetaWebFetchURLSourceToolReference>]
23
+ # @param type [Symbol, :except]
24
+ end
25
+ end
26
+
27
+ BetaWebFetchURLSourceExcept = Beta::BetaWebFetchURLSourceExcept
28
+ end
29
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaWebFetchURLSourceNone < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute type
8
+ #
9
+ # @return [Symbol, :none]
10
+ required :type, const: :none
11
+
12
+ # @!method initialize(type: :none)
13
+ # The `url_sources` variant under which a source contributes nothing: no result of
14
+ # the tool filter's source, or no user input.
15
+ #
16
+ # @param type [Symbol, :none]
17
+ end
18
+ end
19
+
20
+ BetaWebFetchURLSourceNone = Beta::BetaWebFetchURLSourceNone
21
+ end
22
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaWebFetchURLSourceOnly < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute tools
8
+ #
9
+ # @return [Array<Anthropic::Models::Beta::BetaWebFetchURLSourceToolReference>]
10
+ required :tools,
11
+ -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaWebFetchURLSourceToolReference] }
12
+
13
+ # @!attribute type
14
+ #
15
+ # @return [Symbol, :only]
16
+ required :type, const: :only
17
+
18
+ # @!method initialize(tools:, type: :only)
19
+ # The tool filter variant under which only the named tools' results contribute.
20
+ #
21
+ # @param tools [Array<Anthropic::Models::Beta::BetaWebFetchURLSourceToolReference>]
22
+ # @param type [Symbol, :only]
23
+ end
24
+ end
25
+
26
+ BetaWebFetchURLSourceOnly = Beta::BetaWebFetchURLSourceOnly
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaWebFetchURLSourceToolReference < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute name
8
+ #
9
+ # @return [String]
10
+ required :name, String
11
+
12
+ # @!attribute type
13
+ #
14
+ # @return [Symbol, :tool_reference]
15
+ required :type, const: :tool_reference
16
+
17
+ # @!method initialize(name:, type: :tool_reference)
18
+ # One entry of a tool filter's `tools`: it must name a tool declared in this
19
+ # request's `tools[]`.
20
+ #
21
+ # @param name [String]
22
+ # @param type [Symbol, :tool_reference]
23
+ end
24
+ end
25
+
26
+ BetaWebFetchURLSourceToolReference = Beta::BetaWebFetchURLSourceToolReference
27
+ end
28
+ end