anthropic 1.71.0 → 1.73.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 (1029) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/README.md +2 -2
  4. data/lib/anthropic/helpers/bedrock/event_stream.rb +14 -4
  5. data/lib/anthropic/helpers/messages.rb +76 -43
  6. data/lib/anthropic/helpers/tools/runner.rb +317 -37
  7. data/lib/anthropic/models/anthropic_beta.rb +6 -0
  8. data/lib/anthropic/models/beta/agent_archive_params.rb +12 -2
  9. data/lib/anthropic/models/beta/agent_create_params.rb +8 -2
  10. data/lib/anthropic/models/beta/agent_list_params.rb +10 -1
  11. data/lib/anthropic/models/beta/agent_retrieve_params.rb +9 -2
  12. data/lib/anthropic/models/beta/agent_update_params.rb +10 -3
  13. data/lib/anthropic/models/beta/agents/version_list_params.rb +12 -2
  14. data/lib/anthropic/models/beta/beta_browser_state_change.rb +1 -1
  15. data/lib/anthropic/models/beta/beta_citations_delta.rb +1 -1
  16. data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb +1 -1
  17. data/lib/anthropic/models/beta/beta_cloud_config.rb +1 -1
  18. data/lib/anthropic/models/beta/beta_cloud_config_params.rb +1 -1
  19. data/lib/anthropic/models/beta/beta_compaction_block.rb +74 -1
  20. data/lib/anthropic/models/beta/beta_compaction_block_param.rb +80 -1
  21. data/lib/anthropic/models/beta/beta_content_block.rb +18 -3
  22. data/lib/anthropic/models/beta/beta_content_block_param.rb +31 -12
  23. data/lib/anthropic/models/beta/beta_content_block_source_content.rb +1 -1
  24. data/lib/anthropic/models/beta/beta_context_management_config.rb +1 -1
  25. data/lib/anthropic/models/beta/beta_context_management_response.rb +1 -1
  26. data/lib/anthropic/models/beta/beta_diagnostics.rb +3 -3
  27. data/lib/anthropic/models/beta/beta_document_block.rb +1 -1
  28. data/lib/anthropic/models/beta/beta_dream.rb +66 -19
  29. data/lib/anthropic/models/beta/beta_dream_error.rb +12 -2
  30. data/lib/anthropic/models/beta/beta_dream_input.rb +11 -5
  31. data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +13 -4
  32. data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +10 -2
  33. data/lib/anthropic/models/beta/beta_dream_model_config.rb +7 -4
  34. data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +9 -3
  35. data/lib/anthropic/models/beta/beta_dream_output.rb +10 -2
  36. data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +14 -2
  37. data/lib/anthropic/models/beta/beta_dream_status.rb +25 -1
  38. data/lib/anthropic/models/beta/beta_dream_usage.rb +22 -9
  39. data/lib/anthropic/models/beta/beta_dreaming_error.rb +5 -3
  40. data/lib/anthropic/models/beta/beta_environment.rb +1 -1
  41. data/lib/anthropic/models/beta/beta_fallback_credit_usage.rb +1 -1
  42. data/lib/anthropic/models/beta/beta_fallback_param.rb +1 -1
  43. data/lib/anthropic/models/beta/beta_image_block_param.rb +1 -1
  44. data/lib/anthropic/models/beta/beta_input_transformation.rb +1 -1
  45. data/lib/anthropic/models/beta/beta_iterations_usage.rb +1 -1
  46. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +2 -2
  47. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +1 -1
  48. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +1 -1
  49. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
  50. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
  51. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +1 -1
  52. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
  53. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
  54. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +1 -1
  55. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +1 -1
  56. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
  57. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +1 -1
  58. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +1 -1
  59. data/lib/anthropic/models/beta/beta_managed_agents_deployment_status.rb +3 -0
  60. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +1 -1
  61. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +1 -1
  62. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
  63. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
  64. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +1 -1
  65. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +1 -1
  66. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
  67. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
  68. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
  69. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
  70. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
  71. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
  72. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
  73. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
  74. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  75. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +1 -1
  76. data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +9 -0
  77. data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
  78. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +1 -1
  79. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
  80. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
  81. data/lib/anthropic/models/beta/beta_managed_agents_session.rb +7 -0
  82. data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +2 -2
  83. data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +1 -1
  84. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +1 -1
  85. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +1 -1
  86. data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +2 -2
  87. data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +1 -1
  88. data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +1 -1
  89. data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +1 -1
  90. data/lib/anthropic/models/beta/beta_managed_agents_trigger_type.rb +3 -0
  91. data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +1 -1
  92. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
  93. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
  94. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
  95. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
  96. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
  97. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
  98. data/lib/anthropic/models/beta/beta_mcp_tool.rb +34 -0
  99. data/lib/anthropic/models/beta/beta_mcp_tool_listing_block.rb +35 -0
  100. data/lib/anthropic/models/beta/beta_mcp_tool_listing_block_param.rb +43 -0
  101. data/lib/anthropic/models/beta/beta_mcp_tool_param.rb +39 -0
  102. data/lib/anthropic/models/beta/beta_mcp_toolset.rb +19 -1
  103. data/lib/anthropic/models/beta/beta_memory_tool_20250818_command.rb +1 -1
  104. data/lib/anthropic/models/beta/beta_message.rb +5 -5
  105. data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
  106. data/lib/anthropic/models/beta/beta_output_behavior.rb +13 -4
  107. data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +5 -3
  108. data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +13 -4
  109. data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +1 -1
  110. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +20 -5
  111. data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +2 -2
  112. data/lib/anthropic/models/beta/beta_request_document_block.rb +1 -1
  113. data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +28 -12
  114. data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +9 -7
  115. data/lib/anthropic/models/beta/beta_response_tool.rb +132 -0
  116. data/lib/anthropic/models/beta/beta_response_tool_addition_block.rb +112 -0
  117. data/lib/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rb +35 -0
  118. data/lib/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rb +28 -0
  119. data/lib/anthropic/models/beta/beta_response_tool_change_tool_reference.rb +30 -0
  120. data/lib/anthropic/models/beta/beta_response_tool_input_schema.rb +38 -0
  121. data/lib/anthropic/models/beta/beta_response_tool_removal_block.rb +96 -0
  122. data/lib/anthropic/models/beta/beta_response_tool_union.rb +92 -0
  123. data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +1 -1
  124. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +1 -1
  125. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +13 -10
  126. data/lib/anthropic/models/beta/beta_text_citation.rb +1 -1
  127. data/lib/anthropic/models/beta/beta_text_citation_param.rb +1 -1
  128. data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
  129. data/lib/anthropic/models/beta/beta_tool_change_mcp_tool_reference.rb +1 -1
  130. data/lib/anthropic/models/beta/beta_tool_change_tool_definition.rb +29 -0
  131. data/lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb +29 -0
  132. data/lib/anthropic/models/beta/beta_tool_change_tool_reference.rb +3 -2
  133. data/lib/anthropic/models/beta/beta_tool_choice.rb +1 -1
  134. data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +1 -1
  135. data/lib/anthropic/models/beta/beta_tool_use_block.rb +1 -1
  136. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +1 -1
  137. data/lib/anthropic/models/beta/beta_user_profile.rb +11 -0
  138. data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +3 -0
  139. data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +5 -0
  140. data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +5 -0
  141. data/lib/anthropic/models/beta/beta_user_profile_trust_grant.rb +3 -0
  142. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb +1 -1
  143. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +1 -1
  144. data/lib/anthropic/models/beta/beta_web_fetch_url_sources.rb +3 -3
  145. data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +1 -1
  146. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +1 -1
  147. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +1 -1
  148. data/lib/anthropic/models/beta/deployment_archive_params.rb +12 -2
  149. data/lib/anthropic/models/beta/deployment_create_params.rb +8 -2
  150. data/lib/anthropic/models/beta/deployment_list_params.rb +7 -1
  151. data/lib/anthropic/models/beta/deployment_pause_params.rb +12 -2
  152. data/lib/anthropic/models/beta/deployment_retrieve_params.rb +12 -2
  153. data/lib/anthropic/models/beta/deployment_run_list_params.rb +7 -1
  154. data/lib/anthropic/models/beta/deployment_run_params.rb +12 -2
  155. data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +12 -2
  156. data/lib/anthropic/models/beta/deployment_unpause_params.rb +12 -2
  157. data/lib/anthropic/models/beta/deployment_update_params.rb +10 -3
  158. data/lib/anthropic/models/beta/dream_archive_params.rb +12 -2
  159. data/lib/anthropic/models/beta/dream_cancel_params.rb +12 -2
  160. data/lib/anthropic/models/beta/dream_create_params.rb +41 -6
  161. data/lib/anthropic/models/beta/dream_list_params.rb +25 -16
  162. data/lib/anthropic/models/beta/dream_retrieve_params.rb +12 -2
  163. data/lib/anthropic/models/beta/environment_archive_params.rb +10 -1
  164. data/lib/anthropic/models/beta/environment_create_params.rb +8 -2
  165. data/lib/anthropic/models/beta/environment_delete_params.rb +10 -1
  166. data/lib/anthropic/models/beta/environment_list_params.rb +7 -1
  167. data/lib/anthropic/models/beta/environment_retrieve_params.rb +10 -1
  168. data/lib/anthropic/models/beta/environment_update_params.rb +8 -2
  169. data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +10 -1
  170. data/lib/anthropic/models/beta/environments/work_stats_params.rb +10 -1
  171. data/lib/anthropic/models/beta/environments/work_stop_params.rb +10 -1
  172. data/lib/anthropic/models/beta/environments/work_update_params.rb +10 -1
  173. data/lib/anthropic/models/beta/file_delete_params.rb +10 -1
  174. data/lib/anthropic/models/beta/file_download_params.rb +10 -1
  175. data/lib/anthropic/models/beta/file_list_params.rb +7 -1
  176. data/lib/anthropic/models/beta/file_retrieve_metadata_params.rb +10 -1
  177. data/lib/anthropic/models/beta/file_upload_params.rb +7 -1
  178. data/lib/anthropic/models/beta/memory_store_archive_params.rb +14 -2
  179. data/lib/anthropic/models/beta/memory_store_create_params.rb +7 -1
  180. data/lib/anthropic/models/beta/memory_store_delete_params.rb +14 -2
  181. data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -1
  182. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +13 -2
  183. data/lib/anthropic/models/beta/memory_store_update_params.rb +11 -2
  184. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +1 -1
  185. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +16 -4
  186. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +1 -1
  187. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +26 -3
  188. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +14 -1
  189. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +5 -0
  190. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +3 -0
  191. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +15 -4
  192. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +20 -5
  193. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +9 -2
  194. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +20 -5
  195. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +17 -5
  196. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +37 -18
  197. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +15 -3
  198. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +21 -5
  199. data/lib/anthropic/models/beta/message_count_tokens_params.rb +7 -1
  200. data/lib/anthropic/models/beta/message_create_params.rb +7 -1
  201. data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +10 -1
  202. data/lib/anthropic/models/beta/messages/batch_create_params.rb +7 -1
  203. data/lib/anthropic/models/beta/messages/batch_delete_params.rb +10 -1
  204. data/lib/anthropic/models/beta/messages/batch_list_params.rb +7 -1
  205. data/lib/anthropic/models/beta/messages/batch_results_params.rb +10 -1
  206. data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +10 -1
  207. data/lib/anthropic/models/beta/messages/beta_message_batch_result.rb +1 -1
  208. data/lib/anthropic/models/beta/model_list_params.rb +7 -1
  209. data/lib/anthropic/models/beta/model_retrieve_params.rb +10 -1
  210. data/lib/anthropic/models/beta/organization/beta_api_key.rb +2 -2
  211. data/lib/anthropic/models/beta/organization/beta_compliance_settings_state.rb +1 -1
  212. data/lib/anthropic/models/beta/organization/beta_compliance_settings_state_param.rb +1 -1
  213. data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
  214. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +103 -10
  215. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rb +34 -0
  216. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rb +34 -0
  217. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rb +43 -0
  218. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rb +34 -0
  219. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rb +34 -0
  220. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rb +34 -0
  221. data/lib/anthropic/models/beta/organization/external_key_create_params.rb +1 -1
  222. data/lib/anthropic/models/beta/organization/external_key_update_params.rb +1 -1
  223. data/lib/anthropic/models/beta/organization/federation/beta_federation_issuer.rb +1 -1
  224. data/lib/anthropic/models/beta/organization/federation/issuer_create_params.rb +1 -1
  225. data/lib/anthropic/models/beta/organization/federation/issuer_update_params.rb +1 -1
  226. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +102 -10
  227. data/lib/anthropic/models/beta/session_archive_params.rb +10 -1
  228. data/lib/anthropic/models/beta/session_create_params.rb +9 -3
  229. data/lib/anthropic/models/beta/session_delete_params.rb +10 -1
  230. data/lib/anthropic/models/beta/session_list_params.rb +14 -1
  231. data/lib/anthropic/models/beta/session_retrieve_params.rb +10 -1
  232. data/lib/anthropic/models/beta/session_update_params.rb +7 -1
  233. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
  234. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rb +21 -0
  235. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +1 -1
  236. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +3 -17
  237. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +1 -1
  238. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +1 -1
  239. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +1 -1
  240. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +1 -1
  241. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +1 -1
  242. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +3 -17
  243. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +1 -1
  244. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +1 -1
  245. data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +1 -1
  246. data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +1 -1
  247. data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +1 -1
  248. data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +1 -1
  249. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +1 -1
  250. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +1 -1
  251. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +1 -1
  252. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +1 -1
  253. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +1 -1
  254. data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +1 -1
  255. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +1 -1
  256. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +2 -2
  257. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +1 -1
  258. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +1 -1
  259. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +4 -10
  260. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +1 -1
  261. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +2 -2
  262. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +2 -2
  263. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +1 -1
  264. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +1 -1
  265. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +1 -1
  266. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +1 -1
  267. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +1 -1
  268. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +1 -1
  269. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +1 -1
  270. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +1 -1
  271. data/lib/anthropic/models/beta/sessions/event_list_params.rb +8 -3
  272. data/lib/anthropic/models/beta/sessions/event_send_params.rb +10 -1
  273. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +7 -1
  274. data/lib/anthropic/models/beta/sessions/resource_add_params.rb +10 -1
  275. data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +10 -1
  276. data/lib/anthropic/models/beta/sessions/resource_list_params.rb +7 -1
  277. data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +10 -1
  278. data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +1 -1
  279. data/lib/anthropic/models/beta/sessions/resource_update_params.rb +7 -1
  280. data/lib/anthropic/models/beta/sessions/resource_update_response.rb +1 -1
  281. data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +10 -1
  282. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +10 -1
  283. data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +10 -1
  284. data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +12 -5
  285. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +7 -1
  286. data/lib/anthropic/models/beta/skill_create_params.rb +7 -1
  287. data/lib/anthropic/models/beta/skill_delete_params.rb +7 -1
  288. data/lib/anthropic/models/beta/skill_list_params.rb +7 -1
  289. data/lib/anthropic/models/beta/skill_retrieve_params.rb +7 -1
  290. data/lib/anthropic/models/beta/skills/version_create_params.rb +7 -1
  291. data/lib/anthropic/models/beta/skills/version_delete_params.rb +7 -1
  292. data/lib/anthropic/models/beta/skills/version_download_params.rb +7 -1
  293. data/lib/anthropic/models/beta/skills/version_list_params.rb +7 -1
  294. data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +7 -1
  295. data/lib/anthropic/models/beta/tunnel_archive_params.rb +12 -2
  296. data/lib/anthropic/models/beta/tunnel_create_params.rb +10 -1
  297. data/lib/anthropic/models/beta/tunnel_list_params.rb +10 -1
  298. data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +12 -2
  299. data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +12 -2
  300. data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +12 -2
  301. data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +14 -3
  302. data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +9 -2
  303. data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +9 -2
  304. data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +14 -3
  305. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +13 -2
  306. data/lib/anthropic/models/beta/user_profile_create_params.rb +10 -1
  307. data/lib/anthropic/models/beta/user_profile_list_params.rb +33 -11
  308. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +12 -2
  309. data/lib/anthropic/models/beta/user_profile_update_params.rb +12 -2
  310. data/lib/anthropic/models/beta/vault_archive_params.rb +12 -2
  311. data/lib/anthropic/models/beta/vault_create_params.rb +7 -1
  312. data/lib/anthropic/models/beta/vault_delete_params.rb +12 -2
  313. data/lib/anthropic/models/beta/vault_list_params.rb +10 -1
  314. data/lib/anthropic/models/beta/vault_retrieve_params.rb +12 -2
  315. data/lib/anthropic/models/beta/vault_update_params.rb +9 -2
  316. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +1 -1
  317. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -1
  318. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +5 -0
  319. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
  320. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +1 -1
  321. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +1 -1
  322. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +1 -1
  323. data/lib/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rb +7 -0
  324. data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +14 -3
  325. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +10 -3
  326. data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +14 -3
  327. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +12 -2
  328. data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +15 -3
  329. data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +14 -3
  330. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +12 -4
  331. data/lib/anthropic/models/beta_error.rb +1 -1
  332. data/lib/anthropic/models/browser_state_change.rb +1 -1
  333. data/lib/anthropic/models/citations_delta.rb +1 -1
  334. data/lib/anthropic/models/completion_create_params.rb +7 -1
  335. data/lib/anthropic/models/content_block.rb +1 -1
  336. data/lib/anthropic/models/content_block_param.rb +1 -1
  337. data/lib/anthropic/models/content_block_source_content.rb +1 -1
  338. data/lib/anthropic/models/document_block.rb +1 -1
  339. data/lib/anthropic/models/document_block_param.rb +1 -1
  340. data/lib/anthropic/models/error_object.rb +1 -1
  341. data/lib/anthropic/models/file_delete_params.rb +10 -1
  342. data/lib/anthropic/models/file_download_params.rb +10 -1
  343. data/lib/anthropic/models/file_list_params.rb +7 -1
  344. data/lib/anthropic/models/file_retrieve_metadata_params.rb +10 -1
  345. data/lib/anthropic/models/file_upload_params.rb +7 -1
  346. data/lib/anthropic/models/image_block_param.rb +1 -1
  347. data/lib/anthropic/models/message_count_tokens_params.rb +7 -1
  348. data/lib/anthropic/models/message_create_params.rb +7 -1
  349. data/lib/anthropic/models/messages/batch_cancel_params.rb +10 -1
  350. data/lib/anthropic/models/messages/batch_create_params.rb +7 -1
  351. data/lib/anthropic/models/messages/batch_delete_params.rb +10 -1
  352. data/lib/anthropic/models/messages/batch_list_params.rb +7 -1
  353. data/lib/anthropic/models/messages/batch_results_params.rb +10 -1
  354. data/lib/anthropic/models/messages/batch_retrieve_params.rb +10 -1
  355. data/lib/anthropic/models/messages/message_batch_result.rb +1 -1
  356. data/lib/anthropic/models/model.rb +5 -0
  357. data/lib/anthropic/models/model_list_params.rb +7 -1
  358. data/lib/anthropic/models/model_retrieve_params.rb +10 -1
  359. data/lib/anthropic/models/raw_content_block_delta.rb +1 -1
  360. data/lib/anthropic/models/raw_content_block_start_event.rb +1 -1
  361. data/lib/anthropic/models/raw_message_stream_event.rb +1 -1
  362. data/lib/anthropic/models/server_tool_use_block.rb +1 -1
  363. data/lib/anthropic/models/server_tool_use_block_param.rb +1 -1
  364. data/lib/anthropic/models/skill_create_params.rb +7 -1
  365. data/lib/anthropic/models/skill_delete_params.rb +7 -1
  366. data/lib/anthropic/models/skill_list_params.rb +7 -1
  367. data/lib/anthropic/models/skill_retrieve_params.rb +7 -1
  368. data/lib/anthropic/models/skills/version_create_params.rb +7 -1
  369. data/lib/anthropic/models/skills/version_delete_params.rb +7 -1
  370. data/lib/anthropic/models/skills/version_list_params.rb +7 -1
  371. data/lib/anthropic/models/skills/version_retrieve_params.rb +7 -1
  372. data/lib/anthropic/models/text_citation.rb +1 -1
  373. data/lib/anthropic/models/text_citation_param.rb +1 -1
  374. data/lib/anthropic/models/thinking_config_param.rb +1 -1
  375. data/lib/anthropic/models/tool_choice.rb +1 -1
  376. data/lib/anthropic/models/tool_result_block_param.rb +1 -1
  377. data/lib/anthropic/models/tool_use_block.rb +1 -1
  378. data/lib/anthropic/models/tool_use_block_param.rb +1 -1
  379. data/lib/anthropic/models/web_fetch_tool_result_block.rb +1 -1
  380. data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +1 -1
  381. data/lib/anthropic/models/web_fetch_url_sources.rb +3 -3
  382. data/lib/anthropic/models/web_search_tool_result_block.rb +1 -1
  383. data/lib/anthropic/models/web_search_tool_result_block_param.rb +1 -1
  384. data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
  385. data/lib/anthropic/resources/beta/agents.rb +3 -3
  386. data/lib/anthropic/resources/beta/deployment_runs.rb +1 -1
  387. data/lib/anthropic/resources/beta/deployments.rb +6 -6
  388. data/lib/anthropic/resources/beta/dreams.rb +58 -18
  389. data/lib/anthropic/resources/beta/memory_stores/memories.rb +12 -12
  390. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +15 -14
  391. data/lib/anthropic/resources/beta/memory_stores.rb +4 -4
  392. data/lib/anthropic/resources/beta/sessions/events.rb +4 -4
  393. data/lib/anthropic/resources/beta/sessions/resources.rb +8 -8
  394. data/lib/anthropic/resources/beta/sessions/threads/events.rb +6 -6
  395. data/lib/anthropic/resources/beta/sessions/threads.rb +5 -5
  396. data/lib/anthropic/resources/beta/sessions.rb +4 -4
  397. data/lib/anthropic/resources/beta/tunnels/certificates.rb +6 -6
  398. data/lib/anthropic/resources/beta/tunnels.rb +4 -4
  399. data/lib/anthropic/resources/beta/user_profiles.rb +7 -7
  400. data/lib/anthropic/resources/beta/vaults/credentials.rb +12 -12
  401. data/lib/anthropic/resources/beta/vaults.rb +4 -4
  402. data/lib/anthropic/version.rb +1 -1
  403. data/lib/anthropic.rb +21 -0
  404. data/rbi/anthropic/helpers/tools/runner.rbi +29 -0
  405. data/rbi/anthropic/models/anthropic_beta.rbi +7 -0
  406. data/rbi/anthropic/models/beta/agent_archive_params.rbi +14 -0
  407. data/rbi/anthropic/models/beta/agent_create_params.rbi +13 -1
  408. data/rbi/anthropic/models/beta/agent_list_params.rbi +12 -0
  409. data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +14 -0
  410. data/rbi/anthropic/models/beta/agent_update_params.rbi +15 -1
  411. data/rbi/anthropic/models/beta/agents/version_list_params.rbi +14 -0
  412. data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +1 -1
  413. data/rbi/anthropic/models/beta/beta_citations_delta.rbi +2 -1
  414. data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi +5 -1
  415. data/rbi/anthropic/models/beta/beta_cloud_config.rbi +2 -1
  416. data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +2 -1
  417. data/rbi/anthropic/models/beta/beta_compaction_block.rbi +124 -1
  418. data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +132 -1
  419. data/rbi/anthropic/models/beta/beta_content_block.rbi +28 -4
  420. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +38 -4
  421. data/rbi/anthropic/models/beta/beta_content_block_source_content.rbi +2 -1
  422. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +2 -1
  423. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +2 -1
  424. data/rbi/anthropic/models/beta/beta_diagnostics.rbi +4 -3
  425. data/rbi/anthropic/models/beta/beta_document_block.rbi +1 -1
  426. data/rbi/anthropic/models/beta/beta_dream.rbi +103 -14
  427. data/rbi/anthropic/models/beta/beta_dream_error.rbi +16 -1
  428. data/rbi/anthropic/models/beta/beta_dream_input.rbi +19 -2
  429. data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +16 -4
  430. data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +13 -2
  431. data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +8 -4
  432. data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +15 -3
  433. data/rbi/anthropic/models/beta/beta_dream_output.rbi +13 -2
  434. data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +21 -2
  435. data/rbi/anthropic/models/beta/beta_dream_status.rbi +25 -1
  436. data/rbi/anthropic/models/beta/beta_dream_usage.rbi +20 -9
  437. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +6 -5
  438. data/rbi/anthropic/models/beta/beta_environment.rbi +1 -1
  439. data/rbi/anthropic/models/beta/beta_fallback_credit_usage.rbi +2 -1
  440. data/rbi/anthropic/models/beta/beta_fallback_param.rbi +2 -1
  441. data/rbi/anthropic/models/beta/beta_image_block_param.rbi +2 -1
  442. data/rbi/anthropic/models/beta/beta_input_transformation.rbi +1 -1
  443. data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +1 -1
  444. data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +4 -2
  445. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +2 -1
  446. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +2 -1
  447. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbi +4 -1
  448. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +4 -1
  449. data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +2 -1
  450. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +4 -1
  451. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +4 -1
  452. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +2 -1
  453. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +2 -1
  454. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +2 -1
  455. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +4 -1
  456. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +5 -1
  457. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_status.rbi +3 -0
  458. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +2 -1
  459. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +2 -1
  460. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +4 -1
  461. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +4 -1
  462. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbi +2 -1
  463. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +2 -1
  464. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +4 -1
  465. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +4 -1
  466. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +4 -1
  467. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +4 -1
  468. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbi +4 -1
  469. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +4 -1
  470. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +4 -1
  471. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +4 -1
  472. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  473. data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +4 -1
  474. data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +9 -0
  475. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +2 -1
  476. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +2 -1
  477. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config.rbi +4 -1
  478. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +4 -1
  479. data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +7 -0
  480. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +4 -2
  481. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +2 -1
  482. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +2 -1
  483. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +2 -1
  484. data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +4 -2
  485. data/rbi/anthropic/models/beta/beta_managed_agents_skill_params.rbi +1 -1
  486. data/rbi/anthropic/models/beta/beta_managed_agents_start_event_preview.rbi +5 -1
  487. data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +5 -3
  488. data/rbi/anthropic/models/beta/beta_managed_agents_trigger_type.rbi +3 -0
  489. data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +2 -1
  490. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +4 -1
  491. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +4 -1
  492. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +4 -1
  493. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +4 -1
  494. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +4 -1
  495. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +4 -1
  496. data/rbi/anthropic/models/beta/beta_mcp_tool.rbi +52 -0
  497. data/rbi/anthropic/models/beta/beta_mcp_tool_listing_block.rbi +53 -0
  498. data/rbi/anthropic/models/beta/beta_mcp_tool_listing_block_param.rbi +62 -0
  499. data/rbi/anthropic/models/beta/beta_mcp_tool_param.rbi +62 -0
  500. data/rbi/anthropic/models/beta/beta_mcp_toolset.rbi +16 -1
  501. data/rbi/anthropic/models/beta/beta_memory_tool_20250818_command.rbi +2 -1
  502. data/rbi/anthropic/models/beta/beta_message.rbi +6 -5
  503. data/rbi/anthropic/models/beta/beta_output_behavior.rbi +13 -4
  504. data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +5 -3
  505. data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +15 -4
  506. data/rbi/anthropic/models/beta/beta_raw_content_block_delta.rbi +1 -1
  507. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +31 -5
  508. data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +3 -2
  509. data/rbi/anthropic/models/beta/beta_request_document_block.rbi +2 -1
  510. data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +56 -10
  511. data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +5 -3
  512. data/rbi/anthropic/models/beta/beta_response_tool.rbi +255 -0
  513. data/rbi/anthropic/models/beta/beta_response_tool_addition_block.rbi +182 -0
  514. data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbi +46 -0
  515. data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbi +38 -0
  516. data/rbi/anthropic/models/beta/beta_response_tool_change_tool_reference.rbi +38 -0
  517. data/rbi/anthropic/models/beta/beta_response_tool_input_schema.rbi +54 -0
  518. data/rbi/anthropic/models/beta/beta_response_tool_removal_block.rbi +139 -0
  519. data/rbi/anthropic/models/beta/beta_response_tool_union.rbi +55 -0
  520. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +5 -3
  521. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +5 -1
  522. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +14 -11
  523. data/rbi/anthropic/models/beta/beta_text_citation.rbi +1 -1
  524. data/rbi/anthropic/models/beta/beta_text_citation_param.rbi +1 -1
  525. data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
  526. data/rbi/anthropic/models/beta/beta_tool_change_mcp_tool_reference.rbi +1 -1
  527. data/rbi/anthropic/models/beta/beta_tool_change_tool_definition.rbi +78 -0
  528. data/rbi/anthropic/models/beta/beta_tool_change_tool_definition_param.rbi +141 -0
  529. data/rbi/anthropic/models/beta/beta_tool_change_tool_reference.rbi +3 -2
  530. data/rbi/anthropic/models/beta/beta_tool_choice.rbi +1 -1
  531. data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +2 -1
  532. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +4 -3
  533. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +5 -3
  534. data/rbi/anthropic/models/beta/beta_user_profile.rbi +10 -0
  535. data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +2 -0
  536. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details.rbi +5 -0
  537. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details_params.rbi +5 -0
  538. data/rbi/anthropic/models/beta/beta_user_profile_trust_grant.rbi +2 -0
  539. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block.rbi +5 -1
  540. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +5 -1
  541. data/rbi/anthropic/models/beta/beta_web_fetch_url_sources.rbi +8 -3
  542. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +5 -1
  543. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +5 -1
  544. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +1 -1
  545. data/rbi/anthropic/models/beta/deployment_archive_params.rbi +14 -0
  546. data/rbi/anthropic/models/beta/deployment_create_params.rbi +14 -1
  547. data/rbi/anthropic/models/beta/deployment_list_params.rbi +12 -0
  548. data/rbi/anthropic/models/beta/deployment_pause_params.rbi +14 -0
  549. data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +14 -0
  550. data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +12 -0
  551. data/rbi/anthropic/models/beta/deployment_run_params.rbi +14 -0
  552. data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +14 -0
  553. data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +14 -0
  554. data/rbi/anthropic/models/beta/deployment_update_params.rbi +16 -1
  555. data/rbi/anthropic/models/beta/dream_archive_params.rbi +14 -0
  556. data/rbi/anthropic/models/beta/dream_cancel_params.rbi +14 -0
  557. data/rbi/anthropic/models/beta/dream_create_params.rbi +56 -0
  558. data/rbi/anthropic/models/beta/dream_list_params.rbi +36 -18
  559. data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +14 -0
  560. data/rbi/anthropic/models/beta/environment_archive_params.rbi +12 -0
  561. data/rbi/anthropic/models/beta/environment_create_params.rbi +14 -1
  562. data/rbi/anthropic/models/beta/environment_delete_params.rbi +12 -0
  563. data/rbi/anthropic/models/beta/environment_list_params.rbi +12 -0
  564. data/rbi/anthropic/models/beta/environment_retrieve_params.rbi +12 -0
  565. data/rbi/anthropic/models/beta/environment_update_params.rbi +14 -1
  566. data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +12 -0
  567. data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +12 -0
  568. data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +12 -0
  569. data/rbi/anthropic/models/beta/environments/work_update_params.rbi +12 -0
  570. data/rbi/anthropic/models/beta/file_delete_params.rbi +12 -0
  571. data/rbi/anthropic/models/beta/file_download_params.rbi +12 -0
  572. data/rbi/anthropic/models/beta/file_list_params.rbi +12 -0
  573. data/rbi/anthropic/models/beta/file_retrieve_metadata_params.rbi +12 -0
  574. data/rbi/anthropic/models/beta/file_upload_params.rbi +12 -0
  575. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +18 -0
  576. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +12 -0
  577. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +18 -0
  578. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +12 -0
  579. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +16 -0
  580. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +18 -0
  581. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +2 -1
  582. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +9 -1
  583. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +2 -1
  584. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +23 -0
  585. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +16 -1
  586. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +5 -0
  587. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +3 -0
  588. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +24 -2
  589. data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +26 -2
  590. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +14 -0
  591. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +26 -2
  592. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +26 -2
  593. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +46 -16
  594. data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +16 -0
  595. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +26 -2
  596. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +12 -0
  597. data/rbi/anthropic/models/beta/message_create_params.rbi +12 -0
  598. data/rbi/anthropic/models/beta/messages/batch_cancel_params.rbi +12 -0
  599. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +12 -0
  600. data/rbi/anthropic/models/beta/messages/batch_delete_params.rbi +12 -0
  601. data/rbi/anthropic/models/beta/messages/batch_list_params.rbi +12 -0
  602. data/rbi/anthropic/models/beta/messages/batch_results_params.rbi +12 -0
  603. data/rbi/anthropic/models/beta/messages/batch_retrieve_params.rbi +12 -0
  604. data/rbi/anthropic/models/beta/messages/beta_message_batch_result.rbi +2 -1
  605. data/rbi/anthropic/models/beta/model_list_params.rbi +12 -0
  606. data/rbi/anthropic/models/beta/model_retrieve_params.rbi +12 -0
  607. data/rbi/anthropic/models/beta/organization/beta_api_key.rbi +7 -2
  608. data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state.rbi +4 -1
  609. data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbi +4 -1
  610. data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +6 -2
  611. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +145 -11
  612. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rbi +44 -0
  613. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rbi +44 -0
  614. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rbi +58 -0
  615. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rbi +44 -0
  616. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rbi +44 -0
  617. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rbi +44 -0
  618. data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +2 -1
  619. data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +2 -1
  620. data/rbi/anthropic/models/beta/organization/federation/beta_federation_issuer.rbi +2 -1
  621. data/rbi/anthropic/models/beta/organization/federation/issuer_create_params.rbi +2 -1
  622. data/rbi/anthropic/models/beta/organization/federation/issuer_update_params.rbi +2 -1
  623. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +143 -11
  624. data/rbi/anthropic/models/beta/session_archive_params.rbi +12 -0
  625. data/rbi/anthropic/models/beta/session_create_params.rbi +16 -2
  626. data/rbi/anthropic/models/beta/session_delete_params.rbi +12 -0
  627. data/rbi/anthropic/models/beta/session_list_params.rbi +19 -0
  628. data/rbi/anthropic/models/beta/session_retrieve_params.rbi +12 -0
  629. data/rbi/anthropic/models/beta/session_update_params.rbi +12 -0
  630. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbi +5 -1
  631. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbi +49 -0
  632. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +2 -1
  633. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +4 -44
  634. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +5 -1
  635. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +2 -1
  636. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +2 -1
  637. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +2 -1
  638. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +2 -1
  639. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +4 -44
  640. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +4 -1
  641. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +4 -1
  642. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +2 -1
  643. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -1
  644. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +2 -1
  645. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +2 -1
  646. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +4 -1
  647. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +4 -1
  648. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +4 -1
  649. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +4 -1
  650. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +4 -1
  651. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +2 -1
  652. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +2 -1
  653. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +3 -5
  654. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +2 -1
  655. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +2 -1
  656. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +5 -7
  657. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +2 -1
  658. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +3 -5
  659. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +3 -5
  660. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +4 -1
  661. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +2 -1
  662. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +2 -1
  663. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +2 -1
  664. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +2 -1
  665. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +2 -1
  666. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +2 -1
  667. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +2 -1
  668. data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +12 -2
  669. data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +12 -0
  670. data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +12 -0
  671. data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +12 -0
  672. data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +12 -0
  673. data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +12 -0
  674. data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +12 -0
  675. data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -1
  676. data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +12 -0
  677. data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -1
  678. data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +12 -0
  679. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +12 -0
  680. data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +12 -0
  681. data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +12 -4
  682. data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +12 -0
  683. data/rbi/anthropic/models/beta/skill_create_params.rbi +12 -0
  684. data/rbi/anthropic/models/beta/skill_delete_params.rbi +12 -0
  685. data/rbi/anthropic/models/beta/skill_list_params.rbi +12 -0
  686. data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +12 -0
  687. data/rbi/anthropic/models/beta/skills/version_create_params.rbi +12 -0
  688. data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +12 -0
  689. data/rbi/anthropic/models/beta/skills/version_download_params.rbi +12 -0
  690. data/rbi/anthropic/models/beta/skills/version_list_params.rbi +12 -0
  691. data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +12 -0
  692. data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +14 -0
  693. data/rbi/anthropic/models/beta/tunnel_create_params.rbi +12 -0
  694. data/rbi/anthropic/models/beta/tunnel_list_params.rbi +12 -0
  695. data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +14 -0
  696. data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +14 -0
  697. data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +14 -0
  698. data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +16 -0
  699. data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +14 -0
  700. data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +14 -0
  701. data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +16 -0
  702. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +14 -0
  703. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +15 -0
  704. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +40 -10
  705. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +14 -0
  706. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +17 -0
  707. data/rbi/anthropic/models/beta/vault_archive_params.rbi +14 -0
  708. data/rbi/anthropic/models/beta/vault_create_params.rbi +12 -0
  709. data/rbi/anthropic/models/beta/vault_delete_params.rbi +14 -0
  710. data/rbi/anthropic/models/beta/vault_list_params.rbi +12 -0
  711. data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +14 -0
  712. data/rbi/anthropic/models/beta/vault_update_params.rbi +14 -0
  713. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +2 -1
  714. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +2 -1
  715. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +5 -0
  716. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +2 -1
  717. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +2 -1
  718. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +4 -1
  719. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +2 -1
  720. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbi +7 -0
  721. data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +16 -0
  722. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +16 -1
  723. data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +16 -0
  724. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +14 -0
  725. data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +16 -0
  726. data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +16 -0
  727. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +18 -1
  728. data/rbi/anthropic/models/beta_error.rbi +4 -3
  729. data/rbi/anthropic/models/browser_state_change.rbi +1 -1
  730. data/rbi/anthropic/models/citations_delta.rbi +1 -1
  731. data/rbi/anthropic/models/completion_create_params.rbi +12 -0
  732. data/rbi/anthropic/models/content_block.rbi +1 -1
  733. data/rbi/anthropic/models/content_block_param.rbi +1 -1
  734. data/rbi/anthropic/models/content_block_source_content.rbi +1 -1
  735. data/rbi/anthropic/models/document_block.rbi +1 -1
  736. data/rbi/anthropic/models/document_block_param.rbi +1 -1
  737. data/rbi/anthropic/models/error_object.rbi +4 -3
  738. data/rbi/anthropic/models/file_delete_params.rbi +12 -0
  739. data/rbi/anthropic/models/file_download_params.rbi +12 -0
  740. data/rbi/anthropic/models/file_list_params.rbi +12 -0
  741. data/rbi/anthropic/models/file_retrieve_metadata_params.rbi +12 -0
  742. data/rbi/anthropic/models/file_upload_params.rbi +12 -0
  743. data/rbi/anthropic/models/image_block_param.rbi +1 -1
  744. data/rbi/anthropic/models/message_count_tokens_params.rbi +12 -0
  745. data/rbi/anthropic/models/message_create_params.rbi +12 -0
  746. data/rbi/anthropic/models/messages/batch_cancel_params.rbi +12 -0
  747. data/rbi/anthropic/models/messages/batch_create_params.rbi +12 -0
  748. data/rbi/anthropic/models/messages/batch_delete_params.rbi +12 -0
  749. data/rbi/anthropic/models/messages/batch_list_params.rbi +12 -0
  750. data/rbi/anthropic/models/messages/batch_results_params.rbi +12 -0
  751. data/rbi/anthropic/models/messages/batch_retrieve_params.rbi +12 -0
  752. data/rbi/anthropic/models/messages/message_batch_result.rbi +1 -1
  753. data/rbi/anthropic/models/model.rbi +4 -0
  754. data/rbi/anthropic/models/model_list_params.rbi +12 -0
  755. data/rbi/anthropic/models/model_retrieve_params.rbi +12 -0
  756. data/rbi/anthropic/models/raw_content_block_delta.rbi +1 -1
  757. data/rbi/anthropic/models/raw_content_block_start_event.rbi +2 -1
  758. data/rbi/anthropic/models/raw_message_stream_event.rbi +1 -1
  759. data/rbi/anthropic/models/server_tool_use_block.rbi +4 -3
  760. data/rbi/anthropic/models/server_tool_use_block_param.rbi +4 -3
  761. data/rbi/anthropic/models/skill_create_params.rbi +12 -0
  762. data/rbi/anthropic/models/skill_delete_params.rbi +12 -0
  763. data/rbi/anthropic/models/skill_list_params.rbi +12 -0
  764. data/rbi/anthropic/models/skill_retrieve_params.rbi +12 -0
  765. data/rbi/anthropic/models/skills/version_create_params.rbi +12 -0
  766. data/rbi/anthropic/models/skills/version_delete_params.rbi +12 -0
  767. data/rbi/anthropic/models/skills/version_list_params.rbi +12 -0
  768. data/rbi/anthropic/models/skills/version_retrieve_params.rbi +12 -0
  769. data/rbi/anthropic/models/text_citation.rbi +1 -1
  770. data/rbi/anthropic/models/text_citation_param.rbi +1 -1
  771. data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
  772. data/rbi/anthropic/models/tool_choice.rbi +1 -1
  773. data/rbi/anthropic/models/tool_result_block_param.rbi +2 -1
  774. data/rbi/anthropic/models/tool_use_block.rbi +4 -3
  775. data/rbi/anthropic/models/tool_use_block_param.rbi +4 -3
  776. data/rbi/anthropic/models/web_fetch_tool_result_block.rbi +4 -3
  777. data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +5 -3
  778. data/rbi/anthropic/models/web_fetch_url_sources.rbi +7 -5
  779. data/rbi/anthropic/models/web_search_tool_result_block.rbi +4 -3
  780. data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +5 -3
  781. data/rbi/anthropic/resources/beta/agents/versions.rbi +1 -1
  782. data/rbi/anthropic/resources/beta/agents.rbi +3 -3
  783. data/rbi/anthropic/resources/beta/deployment_runs.rbi +1 -1
  784. data/rbi/anthropic/resources/beta/deployments.rbi +6 -6
  785. data/rbi/anthropic/resources/beta/dreams.rbi +81 -21
  786. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +29 -12
  787. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +28 -14
  788. data/rbi/anthropic/resources/beta/memory_stores.rbi +11 -4
  789. data/rbi/anthropic/resources/beta/sessions/events.rbi +4 -4
  790. data/rbi/anthropic/resources/beta/sessions/resources.rbi +8 -8
  791. data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +6 -6
  792. data/rbi/anthropic/resources/beta/sessions/threads.rbi +5 -5
  793. data/rbi/anthropic/resources/beta/sessions.rbi +1 -4
  794. data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +6 -6
  795. data/rbi/anthropic/resources/beta/tunnels.rbi +4 -4
  796. data/rbi/anthropic/resources/beta/user_profiles.rbi +13 -7
  797. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +12 -12
  798. data/rbi/anthropic/resources/beta/vaults.rbi +4 -4
  799. data/sig/anthropic/models/anthropic_beta.rbs +4 -0
  800. data/sig/anthropic/models/beta/agent_create_params.rbs +2 -1
  801. data/sig/anthropic/models/beta/agent_update_params.rbs +2 -1
  802. data/sig/anthropic/models/beta/beta_browser_state_change.rbs +2 -1
  803. data/sig/anthropic/models/beta/beta_citations_delta.rbs +2 -1
  804. data/sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs +2 -1
  805. data/sig/anthropic/models/beta/beta_cloud_config.rbs +2 -1
  806. data/sig/anthropic/models/beta/beta_cloud_config_params.rbs +2 -1
  807. data/sig/anthropic/models/beta/beta_compaction_block.rbs +44 -2
  808. data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +47 -2
  809. data/sig/anthropic/models/beta/beta_content_block.rbs +15 -3
  810. data/sig/anthropic/models/beta/beta_content_block_param.rbs +15 -2
  811. data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +2 -1
  812. data/sig/anthropic/models/beta/beta_context_management_config.rbs +2 -1
  813. data/sig/anthropic/models/beta/beta_context_management_response.rbs +2 -1
  814. data/sig/anthropic/models/beta/beta_diagnostics.rbs +2 -1
  815. data/sig/anthropic/models/beta/beta_document_block.rbs +2 -1
  816. data/sig/anthropic/models/beta/beta_dream_input.rbs +1 -1
  817. data/sig/anthropic/models/beta/beta_dream_status.rbs +17 -0
  818. data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -1
  819. data/sig/anthropic/models/beta/beta_environment.rbs +2 -1
  820. data/sig/anthropic/models/beta/beta_fallback_credit_usage.rbs +2 -1
  821. data/sig/anthropic/models/beta/beta_fallback_param.rbs +2 -1
  822. data/sig/anthropic/models/beta/beta_image_block_param.rbs +2 -1
  823. data/sig/anthropic/models/beta/beta_input_transformation.rbs +2 -1
  824. data/sig/anthropic/models/beta/beta_iterations_usage.rbs +2 -1
  825. data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +4 -2
  826. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +2 -1
  827. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +2 -1
  828. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbs +2 -1
  829. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +2 -1
  830. data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +2 -1
  831. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +2 -1
  832. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +2 -1
  833. data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbs +2 -1
  834. data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbs +2 -1
  835. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -1
  836. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +2 -1
  837. data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +2 -1
  838. data/sig/anthropic/models/beta/beta_managed_agents_deployment_status.rbs +3 -0
  839. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +2 -1
  840. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +2 -1
  841. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +2 -1
  842. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +2 -1
  843. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs +2 -1
  844. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +2 -1
  845. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +2 -1
  846. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +2 -1
  847. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +2 -1
  848. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +2 -1
  849. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbs +2 -1
  850. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +2 -1
  851. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +2 -1
  852. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +2 -1
  853. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  854. data/sig/anthropic/models/beta/beta_managed_agents_model_config.rbs +2 -1
  855. data/sig/anthropic/models/beta/beta_managed_agents_model_config_params.rbs +9 -0
  856. data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +2 -1
  857. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +2 -1
  858. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config.rbs +2 -1
  859. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +2 -1
  860. data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +7 -0
  861. data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +4 -2
  862. data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +2 -1
  863. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +2 -1
  864. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_config.rbs +2 -1
  865. data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +4 -2
  866. data/sig/anthropic/models/beta/beta_managed_agents_skill_params.rbs +2 -1
  867. data/sig/anthropic/models/beta/beta_managed_agents_start_event_preview.rbs +2 -1
  868. data/sig/anthropic/models/beta/beta_managed_agents_trigger_context.rbs +2 -1
  869. data/sig/anthropic/models/beta/beta_managed_agents_trigger_type.rbs +3 -0
  870. data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +2 -1
  871. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +2 -1
  872. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +2 -1
  873. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +2 -1
  874. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +2 -1
  875. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +2 -1
  876. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +2 -1
  877. data/sig/anthropic/models/beta/beta_mcp_tool.rbs +32 -0
  878. data/sig/anthropic/models/beta/beta_mcp_tool_listing_block.rbs +34 -0
  879. data/sig/anthropic/models/beta/beta_mcp_tool_listing_block_param.rbs +34 -0
  880. data/sig/anthropic/models/beta/beta_mcp_tool_param.rbs +34 -0
  881. data/sig/anthropic/models/beta/beta_mcp_toolset.rbs +7 -2
  882. data/sig/anthropic/models/beta/beta_memory_tool_20250818_command.rbs +2 -1
  883. data/sig/anthropic/models/beta/beta_output_behavior.rbs +1 -1
  884. data/sig/anthropic/models/beta/beta_raw_content_block_delta.rbs +2 -1
  885. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +16 -3
  886. data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +2 -1
  887. data/sig/anthropic/models/beta/beta_request_document_block.rbs +2 -1
  888. data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +14 -3
  889. data/sig/anthropic/models/beta/beta_request_tool_removal_block.rbs +2 -1
  890. data/sig/anthropic/models/beta/beta_response_tool.rbs +105 -0
  891. data/sig/anthropic/models/beta/beta_response_tool_addition_block.rbs +84 -0
  892. data/sig/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbs +30 -0
  893. data/sig/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbs +23 -0
  894. data/sig/anthropic/models/beta/beta_response_tool_change_tool_reference.rbs +20 -0
  895. data/sig/anthropic/models/beta/beta_response_tool_input_schema.rbs +34 -0
  896. data/sig/anthropic/models/beta/beta_response_tool_removal_block.rbs +74 -0
  897. data/sig/anthropic/models/beta/beta_response_tool_union.rbs +43 -0
  898. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +2 -1
  899. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +2 -1
  900. data/sig/anthropic/models/beta/beta_text_citation.rbs +1 -1
  901. data/sig/anthropic/models/beta/beta_text_citation_param.rbs +2 -1
  902. data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +2 -1
  903. data/sig/anthropic/models/beta/beta_tool_change_tool_definition.rbs +29 -0
  904. data/sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs +29 -0
  905. data/sig/anthropic/models/beta/beta_tool_choice.rbs +1 -1
  906. data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +2 -1
  907. data/sig/anthropic/models/beta/beta_tool_use_block.rbs +2 -1
  908. data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +2 -1
  909. data/sig/anthropic/models/beta/beta_user_profile.rbs +3 -0
  910. data/sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs +5 -0
  911. data/sig/anthropic/models/beta/beta_user_profile_external_user_details_params.rbs +5 -0
  912. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block.rbs +2 -1
  913. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbs +2 -1
  914. data/sig/anthropic/models/beta/beta_web_fetch_url_sources.rbs +6 -3
  915. data/sig/anthropic/models/beta/beta_web_search_tool_result_block.rbs +2 -1
  916. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param.rbs +2 -1
  917. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +1 -1
  918. data/sig/anthropic/models/beta/deployment_create_params.rbs +2 -1
  919. data/sig/anthropic/models/beta/deployment_update_params.rbs +2 -1
  920. data/sig/anthropic/models/beta/environment_create_params.rbs +2 -1
  921. data/sig/anthropic/models/beta/environment_update_params.rbs +2 -1
  922. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs +2 -1
  923. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +2 -1
  924. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbs +2 -1
  925. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbs +5 -0
  926. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbs +3 -0
  927. data/sig/anthropic/models/beta/messages/beta_message_batch_result.rbs +2 -1
  928. data/sig/anthropic/models/beta/organization/beta_api_key.rbs +4 -2
  929. data/sig/anthropic/models/beta/organization/beta_compliance_settings_state.rbs +2 -1
  930. data/sig/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbs +2 -1
  931. data/sig/anthropic/models/beta/organization/beta_external_key.rbs +4 -2
  932. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs +73 -0
  933. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rbs +20 -0
  934. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rbs +20 -0
  935. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rbs +30 -0
  936. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rbs +20 -0
  937. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rbs +20 -0
  938. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rbs +20 -0
  939. data/sig/anthropic/models/beta/organization/external_key_create_params.rbs +2 -1
  940. data/sig/anthropic/models/beta/organization/external_key_update_params.rbs +2 -1
  941. data/sig/anthropic/models/beta/organization/federation/beta_federation_issuer.rbs +2 -1
  942. data/sig/anthropic/models/beta/organization/federation/issuer_create_params.rbs +2 -1
  943. data/sig/anthropic/models/beta/organization/federation/issuer_update_params.rbs +2 -1
  944. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs +73 -0
  945. data/sig/anthropic/models/beta/session_create_params.rbs +4 -2
  946. data/sig/anthropic/models/beta/session_list_params.rbs +7 -0
  947. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbs +2 -1
  948. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbs +20 -0
  949. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +2 -1
  950. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +6 -18
  951. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +2 -1
  952. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +2 -1
  953. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +2 -1
  954. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbs +2 -1
  955. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +2 -1
  956. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +6 -18
  957. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +2 -1
  958. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +2 -1
  959. data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +2 -1
  960. data/sig/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbs +2 -1
  961. data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +2 -1
  962. data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +2 -1
  963. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +2 -1
  964. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +2 -1
  965. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +2 -1
  966. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +2 -1
  967. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +2 -1
  968. data/sig/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbs +2 -1
  969. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +2 -1
  970. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +5 -5
  971. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbs +2 -1
  972. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +2 -1
  973. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +2 -1
  974. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +2 -1
  975. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +5 -5
  976. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +5 -5
  977. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +2 -1
  978. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +2 -1
  979. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +2 -1
  980. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +2 -1
  981. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +2 -1
  982. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +2 -1
  983. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +2 -1
  984. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +2 -1
  985. data/sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs +2 -1
  986. data/sig/anthropic/models/beta/sessions/resource_update_response.rbs +2 -1
  987. data/sig/anthropic/models/beta/user_profile_create_params.rbs +3 -0
  988. data/sig/anthropic/models/beta/user_profile_list_params.rbs +6 -0
  989. data/sig/anthropic/models/beta/user_profile_update_params.rbs +3 -0
  990. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +2 -1
  991. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbs +2 -1
  992. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +5 -0
  993. data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +2 -1
  994. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbs +2 -1
  995. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbs +2 -1
  996. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbs +2 -1
  997. data/sig/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbs +7 -0
  998. data/sig/anthropic/models/beta/vaults/credential_create_params.rbs +2 -1
  999. data/sig/anthropic/models/beta/vaults/credential_update_params.rbs +2 -1
  1000. data/sig/anthropic/models/beta_error.rbs +1 -1
  1001. data/sig/anthropic/models/browser_state_change.rbs +1 -1
  1002. data/sig/anthropic/models/citations_delta.rbs +1 -1
  1003. data/sig/anthropic/models/content_block.rbs +1 -1
  1004. data/sig/anthropic/models/content_block_param.rbs +1 -1
  1005. data/sig/anthropic/models/content_block_source_content.rbs +1 -1
  1006. data/sig/anthropic/models/document_block.rbs +1 -1
  1007. data/sig/anthropic/models/document_block_param.rbs +1 -1
  1008. data/sig/anthropic/models/error_object.rbs +1 -1
  1009. data/sig/anthropic/models/image_block_param.rbs +1 -1
  1010. data/sig/anthropic/models/messages/message_batch_result.rbs +2 -1
  1011. data/sig/anthropic/models/model.rbs +4 -0
  1012. data/sig/anthropic/models/raw_content_block_delta.rbs +1 -1
  1013. data/sig/anthropic/models/raw_content_block_start_event.rbs +2 -1
  1014. data/sig/anthropic/models/raw_message_stream_event.rbs +1 -1
  1015. data/sig/anthropic/models/server_tool_use_block.rbs +1 -1
  1016. data/sig/anthropic/models/server_tool_use_block_param.rbs +2 -1
  1017. data/sig/anthropic/models/text_citation.rbs +1 -1
  1018. data/sig/anthropic/models/text_citation_param.rbs +1 -1
  1019. data/sig/anthropic/models/thinking_config_param.rbs +1 -1
  1020. data/sig/anthropic/models/tool_choice.rbs +1 -1
  1021. data/sig/anthropic/models/tool_result_block_param.rbs +2 -1
  1022. data/sig/anthropic/models/tool_use_block.rbs +1 -1
  1023. data/sig/anthropic/models/tool_use_block_param.rbs +1 -1
  1024. data/sig/anthropic/models/web_fetch_tool_result_block.rbs +2 -1
  1025. data/sig/anthropic/models/web_fetch_tool_result_block_param.rbs +2 -1
  1026. data/sig/anthropic/models/web_fetch_url_sources.rbs +6 -3
  1027. data/sig/anthropic/models/web_search_tool_result_block.rbs +2 -1
  1028. data/sig/anthropic/models/web_search_tool_result_block_param.rbs +2 -1
  1029. metadata +65 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ab8d0a99df492276cdb94f8f3c392a571e30e73231906566c6d959088bf3aa4
4
- data.tar.gz: 834e8acc9a1e059f0209904e7ba60ddfcc0ed67e1be8c60fcf7614656b3c24ce
3
+ metadata.gz: b0814f7989dfdce90cdc7535edcba2765bcbb40ed802424357334ff1087e860e
4
+ data.tar.gz: b3eef636f0f74f2d42c8d56c784461214c2575616afc4fbf5750f95affb325a0
5
5
  SHA512:
6
- metadata.gz: 27e026c0567165a897bf257fcc9d7081b99ad1e29ce0f37fb3916688ff11f311fbc0ff081ccdef87d0a03ca793fff379a1a445aa3d206d65369dedb49f0cfcad
7
- data.tar.gz: dece25375e30a2d43c8bab81bb3fcaf4cf6ed5cceda10b0aa77ac428b21a2476149e989ddcb8165e3a9695207de69d3a69bf2af23a173eef36157c5ae70a5016
6
+ metadata.gz: '0668735fb6de38f7ca8f71985eb642a7ec67b770317604c6a4bbfd5685a57aa6c4caf3c919b6571247c99ba51bdf6419ce59329b1e4ae6070ad271a8e7559fe4'
7
+ data.tar.gz: 237c52d786dbfe007938ad70ec8c54e888fad60bcab49c0f2eb48b4ad082252ddd2fbc76c65e7b777385efd0fe89775bf3c9f9e7dcc82ddc4847ceb1bf130930
data/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.73.0 (2026-09-22)
4
+
5
+ Full Changelog: [v1.72.0...v1.73.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.72.0...v1.73.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** add support for claude-opus-5-5, inline tool definitions and MCP tool-list pinning (beta) ([b68ad25](https://github.com/anthropics/anthropic-sdk-ruby/commit/b68ad25d7e21c929b0a2309ba5c8ecc48f09fcfa))
10
+ * **tools:** add compact_before_next_turn() to the tool runner ([#258](https://github.com/anthropics/anthropic-sdk-ruby/issues/258)) ([adccb26](https://github.com/anthropics/anthropic-sdk-ruby/commit/adccb26c933e2057794f903e41308d65108ecaff))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **api:** share one evaluated_permission enum across Managed Agents events ([5cea62a](https://github.com/anthropics/anthropic-sdk-ruby/commit/5cea62a855bec9f4cc991b2309b6934b9db987bf))
16
+ * **tools:** add_tools takes effect straight away ([#269](https://github.com/anthropics/anthropic-sdk-ruby/issues/269)) ([289bfad](https://github.com/anthropics/anthropic-sdk-ruby/commit/289bfad23d1d26d0b86006f9aca7a624f8a86ce6))
17
+ * **tools:** leave reply-only params off the tool runner's compaction request ([#267](https://github.com/anthropics/anthropic-sdk-ruby/issues/267)) ([5a1d7d2](https://github.com/anthropics/anthropic-sdk-ruby/commit/5a1d7d2352e7e4f65c312219c7a5695187ea2926))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **ci:** give the lint and breaking-change detection jobs more time ([59fc172](https://github.com/anthropics/anthropic-sdk-ruby/commit/59fc172c0f462de5743e947b6ec3c4708a5aac58))
23
+ * **docs:** add descriptions to the Dreams API reference ([cfc7239](https://github.com/anthropics/anthropic-sdk-ruby/commit/cfc7239c607941094a470586342ed77cee41d75c))
24
+ * **docs:** add descriptions to the User Profiles API reference ([cfc7239](https://github.com/anthropics/anthropic-sdk-ruby/commit/cfc7239c607941094a470586342ed77cee41d75c))
25
+ * **docs:** add memory store descriptions to the Managed Agents API reference ([cfc7239](https://github.com/anthropics/anthropic-sdk-ruby/commit/cfc7239c607941094a470586342ed77cee41d75c))
26
+ * **docs:** improve descriptions in the Dreams API reference ([54a81a7](https://github.com/anthropics/anthropic-sdk-ruby/commit/54a81a7c9f7fce043fafb342014144bf2a1bf050))
27
+ * **docs:** simplify the session thread agent type description ([23d1d44](https://github.com/anthropics/anthropic-sdk-ruby/commit/23d1d4418dcf305366c48f144756071f173f909b))
28
+ * **docs:** update diagnostics field descriptions on beta messages ([678a792](https://github.com/anthropics/anthropic-sdk-ruby/commit/678a7923359f8de6be74cffd9bbd1123df5e2cb9))
29
+ * **internal:** let the typecheck task use every core, up to 16 ([f0ac300](https://github.com/anthropics/anthropic-sdk-ruby/commit/f0ac30052d083a8bf95c66a7c98a80985649c70d))
30
+
31
+
32
+ ### Documentation
33
+
34
+ * add path and header parameter descriptions ([d458058](https://github.com/anthropics/anthropic-sdk-ruby/commit/d458058bfe901b540f5b346af63926d344c253dd))
35
+
36
+ ## 1.72.0 (2026-09-18)
37
+
38
+ Full Changelog: [v1.71.0...v1.72.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.71.0...v1.72.0)
39
+
40
+ ### Features
41
+
42
+ * **api:** add group with display_name to rate limits, deprecate group_type ([8155b1d](https://github.com/anthropics/anthropic-sdk-ruby/commit/8155b1d0d17408a7ca0b04e774d5ff087d9aa438))
43
+ * **ruby:** accept the discriminator enum in union .new signatures ([f31077a](https://github.com/anthropics/anthropic-sdk-ruby/commit/f31077a956e382b5453fbde900b8f03641bd8cbb))
44
+
45
+
46
+ ### Bug Fixes
47
+
48
+ * **bedrock:** skip typeless chunks and raise on event-stream error frames ([#254](https://github.com/anthropics/anthropic-sdk-ruby/issues/254)) ([ae8f6e2](https://github.com/anthropics/anthropic-sdk-ruby/commit/ae8f6e2296396528ff52249f3049fffb3b176434))
49
+
50
+
51
+ ### Chores
52
+
53
+ * **docs:** add descriptions for enum values and path parameters ([929b51e](https://github.com/anthropics/anthropic-sdk-ruby/commit/929b51ebe061ef833b593f03b912c08a021be7ca))
54
+ * **docs:** clarify the compaction tool_changes and tool change descriptions ([4bc6c5f](https://github.com/anthropics/anthropic-sdk-ruby/commit/4bc6c5f7c0c8cf4a98277ee74ca04c9a46ef2864))
55
+ * **internal:** update CLAUDE.md branch guidance ([#261](https://github.com/anthropics/anthropic-sdk-ruby/issues/261)) ([1931e53](https://github.com/anthropics/anthropic-sdk-ruby/commit/1931e537da142e3b6f33aa6ea2781c8f8659375c))
56
+
3
57
  ## 1.71.0 (2026-09-15)
4
58
 
5
59
  Full Changelog: [v1.70.0...v1.71.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.70.0...v1.71.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.71.0"
18
+ gem "anthropic", "~> 1.73.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -33,7 +33,7 @@ anthropic = Anthropic::Client.new(
33
33
  message = anthropic.messages.create(
34
34
  max_tokens: 1024,
35
35
  messages: [{role: "user", content: "Hello, Claude"}],
36
- model: "claude-opus-4-6"
36
+ model: "claude-opus-5-5"
37
37
  )
38
38
 
39
39
  puts(message.content)
@@ -61,8 +61,10 @@ module Anthropic
61
61
  #
62
62
  # `:message-type: event` frames carry a JSON payload
63
63
  # `{"bytes": "<base64>"}` wrapping the Anthropic event; emit it as
64
- # an `event:`/`data:` pair. `:message-type: exception` frames carry an
65
- # error payload and a `:exception-type` header re-emit as the same
64
+ # an `event:`/`data:` pair, skipping chunks with no `type`.
65
+ # `:message-type: exception` frames (error payload plus an
66
+ # `:exception-type` header) and `:message-type: error` frames
67
+ # (`:error-code`/`:error-message` headers) are re-emitted as the same
66
68
  # `event: error` / `data: {"type":"error",...}` SSE shape the API
67
69
  # would have sent, so the stream consumer's existing error path fires.
68
70
  #
@@ -74,13 +76,21 @@ module Anthropic
74
76
  in "event"
75
77
  payload = JSON.parse(msg.payload.read, symbolize_names: true)
76
78
  inner = Base64.decode64(payload.fetch(:bytes))
77
- type = JSON.parse(inner, symbolize_names: true).fetch(:type)
78
- y << "event: #{type}\ndata: #{inner}\n\n"
79
+ case JSON.parse(inner, symbolize_names: true)
80
+ in {type: String => type}
81
+ y << "event: #{type}\ndata: #{inner}\n\n"
82
+ else
83
+ end
79
84
  in "exception"
80
85
  exc_type = msg.headers[":exception-type"]&.value
81
86
  body = msg.payload.read
82
87
  data = JSON.generate(type: "error", error: {type: exc_type, message: body})
83
88
  y << "event: error\ndata: #{data}\n\n"
89
+ in "error"
90
+ code = msg.headers[":error-code"]&.value
91
+ message = msg.headers[":error-message"]&.value
92
+ data = JSON.generate(type: "error", error: {type: code, message: message})
93
+ y << "event: error\ndata: #{data}\n\n"
84
94
  else
85
95
  # Unknown message-type — drop. AWS may add prelude/metadata frames.
86
96
  end
@@ -35,54 +35,29 @@ module Anthropic
35
35
 
36
36
  case data
37
37
  in {tools: Array => tool_array}
38
- # rubocop:disable Metrics/BlockLength
39
- mapped = tool_array.map do |tool|
40
- case tool
41
- # Runnable tool instance (an `Anthropic::BaseTool` subclass, hand-written or helper-built):
42
- in Anthropic::Helpers::Tools::BaseTool
43
- name = tool_api_name(tool)
44
- # Helper-built tools (e.g. MCP) declare an explicit `tool_name` and only send the
45
- # description they were given; hand-written tools fall back to their name.
46
- description = tool.class.doc_string
47
- description ||= name unless tool.class.tool_name
48
- tools.store(name, tool)
49
- input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
50
- # On a clash the derived keys win, so nothing in `tool_options` can shadow them.
51
- definition =
52
- {name:, description:, input_schema:}
53
- .merge(tool.class.tool_options) { |_key, derived, _option| derived }
54
- .compact
55
- definition.tap { _1.update(strict:) if strict }
56
- # Input schema class used directly as a tool:
57
- in Anthropic::Helpers::InputSchema::JsonSchemaConverter
58
- name = model_name(tool.name)
59
-
60
- description =
61
- case tool
62
- in Class if tool <= Anthropic::Helpers::InputSchema::BaseModel
63
- tool.doc_string || name
38
+ tool_array.replace(tool_array.map { tool_to_param(_1, tools:, strict:) })
39
+ else
40
+ end
41
+
42
+ # A `tool_addition` block defines a tool by value, in the shape of a `tools` entry.
43
+ case data
44
+ in {messages: Array => messages}
45
+ messages.each do |message|
46
+ case message
47
+ in {role: :system | "system", content: Array => blocks}
48
+ blocks.each do |block|
49
+ case block
50
+ in {
51
+ type: :tool_addition | "tool_addition",
52
+ tool: {type: :tool_definition | "tool_definition", definition:} => tool
53
+ }
54
+ tool.store(:definition, tool_to_param(definition, tools:, strict:))
64
55
  else
65
- name
66
56
  end
67
-
68
- tools.store(name, tool)
69
- input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
70
- {name:, description:, input_schema:}.tap { _1.update(strict:) if strict }
71
- # Tool with explicit name/description and BaseModel as input_schema:
72
- in {name: String => name,
73
- input_schema: Anthropic::Helpers::InputSchema::JsonSchemaConverter => tool,
74
- **rest}
75
- tools.store(name, tool)
76
- input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
77
- rest.merge(name:, input_schema:).tap { _1.update(strict:) if strict }
57
+ end
78
58
  else
79
- # Any other format (pass through unchanged)
80
- # This includes raw JSON schemas and any other tool definitions.
81
- tool
82
59
  end
83
60
  end
84
- # rubocop:enable Metrics/BlockLength
85
- tool_array.replace(mapped)
86
61
  else
87
62
  end
88
63
 
@@ -212,6 +187,64 @@ module Anthropic
212
187
  data[:betas] = data[:betas].to_a.dup.push("structured-outputs-2025-12-15").uniq
213
188
  end
214
189
 
190
+ # @api private
191
+ #
192
+ # Convert one tool in any of the forms the helpers accept into a plain tool definition,
193
+ # recording under its name what `tool_use.input` is parsed back into.
194
+ #
195
+ # @param tool [Object]
196
+ #
197
+ # @param tools [Hash{String=>Class}]
198
+ #
199
+ # @param strict [Boolean, nil]
200
+ #
201
+ # @return [Object]
202
+ private def tool_to_param(tool, tools:, strict:)
203
+ case tool
204
+ # Runnable tool instance (an `Anthropic::BaseTool` subclass, hand-written or helper-built):
205
+ in Anthropic::Helpers::Tools::BaseTool
206
+ name = tool_api_name(tool)
207
+ # Helper-built tools (e.g. MCP) declare an explicit `tool_name` and only send the
208
+ # description they were given; hand-written tools fall back to their name.
209
+ description = tool.class.doc_string
210
+ description ||= name unless tool.class.tool_name
211
+ tools.store(name, tool)
212
+ input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
213
+ # On a clash the derived keys win, so nothing in `tool_options` can shadow them.
214
+ definition =
215
+ {name:, description:, input_schema:}
216
+ .merge(tool.class.tool_options) { |_key, derived, _option| derived }
217
+ .compact
218
+ definition.tap { _1.update(strict:) if strict }
219
+ # Input schema class used directly as a tool:
220
+ in Anthropic::Helpers::InputSchema::JsonSchemaConverter
221
+ name = model_name(tool.name)
222
+
223
+ description =
224
+ case tool
225
+ in Class if tool <= Anthropic::Helpers::InputSchema::BaseModel
226
+ tool.doc_string || name
227
+ else
228
+ name
229
+ end
230
+
231
+ tools.store(name, tool)
232
+ input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
233
+ {name:, description:, input_schema:}.tap { _1.update(strict:) if strict }
234
+ # Tool with explicit name/description and BaseModel as input_schema:
235
+ in {name: String => name,
236
+ input_schema: Anthropic::Helpers::InputSchema::JsonSchemaConverter => model,
237
+ **rest}
238
+ tools.store(name, model)
239
+ input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(model)
240
+ rest.merge(name:, input_schema:).tap { _1.update(strict:) if strict }
241
+ else
242
+ # Any other format (pass through unchanged)
243
+ # This includes raw JSON schemas and any other tool definitions.
244
+ tool
245
+ end
246
+ end
247
+
215
248
  # @api private
216
249
  #
217
250
  # The `name` a runnable tool is serialized under in `tools[]`.