anthropic 1.72.0 → 1.74.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 (878) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +2 -2
  4. data/lib/anthropic/helpers/messages.rb +76 -43
  5. data/lib/anthropic/helpers/refusal_fallback.rb +19 -5
  6. data/lib/anthropic/helpers/tools/runner.rb +319 -143
  7. data/lib/anthropic/internal/transport/base_client.rb +3 -0
  8. data/lib/anthropic/internal/type/file_input.rb +2 -3
  9. data/lib/anthropic/models/anthropic_beta.rb +6 -0
  10. data/lib/anthropic/models/beta/agent_archive_params.rb +12 -2
  11. data/lib/anthropic/models/beta/agent_create_params.rb +12 -6
  12. data/lib/anthropic/models/beta/agent_list_params.rb +10 -1
  13. data/lib/anthropic/models/beta/agent_retrieve_params.rb +9 -2
  14. data/lib/anthropic/models/beta/agent_update_params.rb +14 -7
  15. data/lib/anthropic/models/beta/agents/version_list_params.rb +12 -2
  16. data/lib/anthropic/models/beta/beta_browser_toolset_20260801.rb +3 -6
  17. data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +77 -0
  18. data/lib/anthropic/models/beta/beta_cloud_config_params.rb +4 -9
  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_computer_toolset_20260801.rb +3 -6
  22. data/lib/anthropic/models/beta/beta_content_block.rb +17 -2
  23. data/lib/anthropic/models/beta/beta_content_block_param.rb +30 -11
  24. data/lib/anthropic/models/beta/beta_context_management_capability.rb +6 -6
  25. data/lib/anthropic/models/beta/beta_diagnostics.rb +3 -81
  26. data/lib/anthropic/models/beta/beta_dream.rb +72 -26
  27. data/lib/anthropic/models/beta/beta_dream_error.rb +12 -2
  28. data/lib/anthropic/models/beta/beta_dream_input.rb +10 -4
  29. data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +13 -4
  30. data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +10 -2
  31. data/lib/anthropic/models/beta/beta_dream_model_config.rb +10 -11
  32. data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +16 -10
  33. data/lib/anthropic/models/beta/beta_dream_output.rb +11 -2
  34. data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +14 -2
  35. data/lib/anthropic/models/beta/beta_dream_status.rb +11 -2
  36. data/lib/anthropic/models/beta/beta_dream_usage.rb +22 -9
  37. data/lib/anthropic/models/beta/beta_dreaming_error.rb +4 -2
  38. data/lib/anthropic/models/beta/beta_effort_capability.rb +2 -2
  39. data/lib/anthropic/models/beta/beta_fallback_param.rb +10 -5
  40. data/lib/anthropic/models/beta/beta_fallback_refusal_trigger.rb +10 -3
  41. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +4 -4
  42. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +1 -1
  43. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +2 -2
  44. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +5 -3
  45. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +2 -2
  46. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +5 -3
  47. data/lib/anthropic/models/beta/beta_managed_agents_budget_limit.rb +6 -2
  48. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +3 -2
  49. data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +2 -2
  50. data/lib/anthropic/models/beta/beta_managed_agents_delta_content.rb +3 -2
  51. data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +21 -17
  52. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +1 -1
  53. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +1 -1
  54. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
  55. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +12 -11
  56. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +3 -3
  57. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +1 -1
  58. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +5 -3
  59. data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +2 -2
  60. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +5 -3
  61. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +5 -3
  62. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +3 -3
  63. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +3 -3
  64. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +2 -2
  65. data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +9 -6
  66. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +5 -3
  67. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +5 -3
  68. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +11 -1
  69. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +11 -9
  70. data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +3 -7
  71. data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
  72. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +2 -2
  73. data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +3 -2
  74. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +5 -3
  75. data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +5 -3
  76. data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +1 -2
  77. data/lib/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rb +8 -2
  78. data/lib/anthropic/models/beta/beta_managed_agents_session.rb +8 -9
  79. data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +3 -3
  80. data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +2 -2
  81. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +1 -1
  82. data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +10 -8
  83. data/lib/anthropic/models/beta/beta_managed_agents_session_usage.rb +8 -6
  84. data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +7 -7
  85. data/lib/anthropic/models/beta/beta_managed_agents_system_content_block.rb +1 -1
  86. data/lib/anthropic/models/beta/beta_managed_agents_system_message_event.rb +2 -2
  87. data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +4 -1
  88. data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +4 -4
  89. data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
  90. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +5 -3
  91. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +5 -3
  92. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +5 -3
  93. data/lib/anthropic/models/beta/beta_mcp_tool.rb +34 -0
  94. data/lib/anthropic/models/beta/beta_mcp_tool_listing_block.rb +35 -0
  95. data/lib/anthropic/models/beta/beta_mcp_tool_listing_block_param.rb +43 -0
  96. data/lib/anthropic/models/beta/beta_mcp_tool_param.rb +39 -0
  97. data/lib/anthropic/models/beta/beta_mcp_toolset.rb +19 -1
  98. data/lib/anthropic/models/beta/beta_message.rb +13 -10
  99. data/lib/anthropic/models/beta/beta_message_delta_usage.rb +4 -0
  100. data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
  101. data/lib/anthropic/models/beta/beta_model_capabilities.rb +3 -4
  102. data/lib/anthropic/models/beta/beta_model_info.rb +3 -2
  103. data/lib/anthropic/models/beta/beta_output_behavior.rb +12 -3
  104. data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +5 -3
  105. data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +13 -4
  106. data/lib/anthropic/models/beta/beta_output_config.rb +11 -5
  107. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +19 -4
  108. data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +8 -5
  109. data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +1 -1
  110. data/lib/anthropic/models/beta/beta_refusal_stop_details.rb +7 -3
  111. data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +26 -10
  112. data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +7 -5
  113. data/lib/anthropic/models/beta/beta_response_tool.rb +132 -0
  114. data/lib/anthropic/models/beta/beta_response_tool_addition_block.rb +112 -0
  115. data/lib/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rb +35 -0
  116. data/lib/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rb +28 -0
  117. data/lib/anthropic/models/beta/beta_response_tool_change_tool_reference.rb +30 -0
  118. data/lib/anthropic/models/beta/beta_response_tool_input_schema.rb +38 -0
  119. data/lib/anthropic/models/beta/beta_response_tool_removal_block.rb +96 -0
  120. data/lib/anthropic/models/beta/beta_response_tool_union.rb +92 -0
  121. data/lib/anthropic/models/beta/beta_system_message_output_config.rb +12 -3
  122. data/lib/anthropic/models/beta/beta_target_store_held_error.rb +13 -10
  123. data/lib/anthropic/models/beta/beta_thinking_block_binding.rb +6 -6
  124. data/lib/anthropic/models/beta/beta_thinking_config_adaptive.rb +3 -3
  125. data/lib/anthropic/models/beta/beta_thinking_config_between_tools.rb +19 -0
  126. data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +3 -3
  127. data/lib/anthropic/models/beta/beta_thinking_config_param.rb +8 -3
  128. data/lib/anthropic/models/beta/beta_tool_change_tool_definition.rb +29 -0
  129. data/lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb +29 -0
  130. data/lib/anthropic/models/beta/beta_tool_change_tool_reference.rb +3 -2
  131. data/lib/anthropic/models/beta/beta_tunnel.rb +5 -4
  132. data/lib/anthropic/models/beta/beta_usage.rb +7 -7
  133. data/lib/anthropic/models/beta/beta_user_profile.rb +35 -21
  134. data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +5 -2
  135. data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +18 -18
  136. data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +20 -18
  137. data/lib/anthropic/models/beta/beta_user_profile_trust_grant.rb +3 -0
  138. data/lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb +3 -7
  139. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260209.rb +3 -7
  140. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +3 -7
  141. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260318.rb +3 -7
  142. data/lib/anthropic/models/beta/deployment_archive_params.rb +12 -2
  143. data/lib/anthropic/models/beta/deployment_create_params.rb +17 -8
  144. data/lib/anthropic/models/beta/deployment_list_params.rb +7 -1
  145. data/lib/anthropic/models/beta/deployment_pause_params.rb +12 -2
  146. data/lib/anthropic/models/beta/deployment_retrieve_params.rb +12 -2
  147. data/lib/anthropic/models/beta/deployment_run_list_params.rb +7 -1
  148. data/lib/anthropic/models/beta/deployment_run_params.rb +12 -2
  149. data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +12 -2
  150. data/lib/anthropic/models/beta/deployment_unpause_params.rb +12 -2
  151. data/lib/anthropic/models/beta/deployment_update_params.rb +19 -9
  152. data/lib/anthropic/models/beta/dream_archive_params.rb +12 -2
  153. data/lib/anthropic/models/beta/dream_cancel_params.rb +12 -2
  154. data/lib/anthropic/models/beta/dream_create_params.rb +41 -6
  155. data/lib/anthropic/models/beta/dream_list_params.rb +25 -16
  156. data/lib/anthropic/models/beta/dream_retrieve_params.rb +12 -2
  157. data/lib/anthropic/models/beta/environment_archive_params.rb +10 -1
  158. data/lib/anthropic/models/beta/environment_create_params.rb +8 -2
  159. data/lib/anthropic/models/beta/environment_delete_params.rb +10 -1
  160. data/lib/anthropic/models/beta/environment_list_params.rb +7 -1
  161. data/lib/anthropic/models/beta/environment_retrieve_params.rb +10 -1
  162. data/lib/anthropic/models/beta/environment_update_params.rb +8 -2
  163. data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +10 -1
  164. data/lib/anthropic/models/beta/environments/work_stats_params.rb +10 -1
  165. data/lib/anthropic/models/beta/environments/work_stop_params.rb +10 -1
  166. data/lib/anthropic/models/beta/environments/work_update_params.rb +10 -1
  167. data/lib/anthropic/models/beta/file_delete_params.rb +10 -1
  168. data/lib/anthropic/models/beta/file_download_params.rb +10 -1
  169. data/lib/anthropic/models/beta/file_list_params.rb +7 -1
  170. data/lib/anthropic/models/beta/file_retrieve_metadata_params.rb +10 -1
  171. data/lib/anthropic/models/beta/file_upload_params.rb +7 -1
  172. data/lib/anthropic/models/beta/memory_store_archive_params.rb +14 -2
  173. data/lib/anthropic/models/beta/memory_store_create_params.rb +7 -1
  174. data/lib/anthropic/models/beta/memory_store_delete_params.rb +14 -2
  175. data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -1
  176. data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +13 -2
  177. data/lib/anthropic/models/beta/memory_store_update_params.rb +11 -2
  178. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +11 -13
  179. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +4 -4
  180. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +15 -3
  181. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +7 -4
  182. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -2
  183. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +26 -3
  184. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +14 -1
  185. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +21 -19
  186. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +5 -6
  187. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rb +4 -4
  188. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +6 -6
  189. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rb +3 -3
  190. data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +15 -4
  191. data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +20 -5
  192. data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +9 -2
  193. data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +20 -5
  194. data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +22 -12
  195. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +37 -18
  196. data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +15 -3
  197. data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +21 -5
  198. data/lib/anthropic/models/beta/message_count_tokens_params.rb +23 -18
  199. data/lib/anthropic/models/beta/message_create_params.rb +27 -21
  200. data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +10 -1
  201. data/lib/anthropic/models/beta/messages/batch_create_params.rb +35 -25
  202. data/lib/anthropic/models/beta/messages/batch_delete_params.rb +10 -1
  203. data/lib/anthropic/models/beta/messages/batch_list_params.rb +7 -1
  204. data/lib/anthropic/models/beta/messages/batch_results_params.rb +10 -1
  205. data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +10 -1
  206. data/lib/anthropic/models/beta/model_list_params.rb +7 -1
  207. data/lib/anthropic/models/beta/model_retrieve_params.rb +10 -1
  208. data/lib/anthropic/models/beta/organization/federation/beta_federation_issuer.rb +5 -6
  209. data/lib/anthropic/models/beta/organization/federation/rule_update_params.rb +4 -8
  210. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +9 -7
  211. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rb +27 -0
  212. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb +63 -3
  213. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rb +22 -0
  214. data/lib/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rb +10 -1
  215. data/lib/anthropic/models/beta/session_archive_params.rb +10 -1
  216. data/lib/anthropic/models/beta/session_create_params.rb +14 -6
  217. data/lib/anthropic/models/beta/session_delete_params.rb +10 -1
  218. data/lib/anthropic/models/beta/session_list_params.rb +7 -1
  219. data/lib/anthropic/models/beta/session_retrieve_params.rb +10 -1
  220. data/lib/anthropic/models/beta/session_update_params.rb +20 -8
  221. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +2 -2
  222. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rb +21 -0
  223. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +4 -4
  224. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +14 -24
  225. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +2 -2
  226. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rb +2 -2
  227. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rb +2 -2
  228. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +3 -3
  229. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +3 -3
  230. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +1 -5
  231. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rb +2 -8
  232. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +4 -4
  233. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +14 -24
  234. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -3
  235. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +3 -3
  236. data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +3 -3
  237. data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +2 -2
  238. data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +3 -3
  239. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +3 -3
  240. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +3 -3
  241. data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +5 -3
  242. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +3 -3
  243. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +3 -3
  244. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +3 -3
  245. data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rb +2 -2
  246. data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +3 -3
  247. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rb +2 -2
  248. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +3 -3
  249. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +9 -9
  250. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rb +52 -0
  251. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +1 -1
  252. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +2 -2
  253. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rb +2 -2
  254. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rb +2 -2
  255. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rb +2 -2
  256. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +19 -17
  257. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +2 -2
  258. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +2 -2
  259. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rb +2 -2
  260. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rb +2 -2
  261. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rb +2 -2
  262. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rb +12 -6
  263. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rb +7 -6
  264. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rb +4 -4
  265. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rb +2 -2
  266. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rb +5 -7
  267. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +5 -4
  268. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +2 -2
  269. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +2 -2
  270. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +9 -9
  271. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +9 -9
  272. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -3
  273. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +4 -4
  274. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +2 -2
  275. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +7 -5
  276. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +3 -3
  277. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +2 -2
  278. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +3 -3
  279. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +1 -1
  280. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +5 -5
  281. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +3 -3
  282. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +2 -2
  283. data/lib/anthropic/models/beta/sessions/event_list_params.rb +12 -6
  284. data/lib/anthropic/models/beta/sessions/event_send_params.rb +10 -1
  285. data/lib/anthropic/models/beta/sessions/event_stream_params.rb +7 -1
  286. data/lib/anthropic/models/beta/sessions/resource_add_params.rb +10 -1
  287. data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +10 -1
  288. data/lib/anthropic/models/beta/sessions/resource_list_params.rb +7 -1
  289. data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +10 -1
  290. data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +1 -1
  291. data/lib/anthropic/models/beta/sessions/resource_update_params.rb +7 -1
  292. data/lib/anthropic/models/beta/sessions/resource_update_response.rb +1 -1
  293. data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +10 -1
  294. data/lib/anthropic/models/beta/sessions/thread_list_params.rb +10 -1
  295. data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +10 -1
  296. data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +12 -5
  297. data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +7 -1
  298. data/lib/anthropic/models/beta/skill_create_params.rb +7 -1
  299. data/lib/anthropic/models/beta/skill_delete_params.rb +7 -1
  300. data/lib/anthropic/models/beta/skill_list_params.rb +7 -1
  301. data/lib/anthropic/models/beta/skill_retrieve_params.rb +7 -1
  302. data/lib/anthropic/models/beta/skills/version_create_params.rb +7 -1
  303. data/lib/anthropic/models/beta/skills/version_delete_params.rb +7 -1
  304. data/lib/anthropic/models/beta/skills/version_download_params.rb +7 -1
  305. data/lib/anthropic/models/beta/skills/version_list_params.rb +7 -1
  306. data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +7 -1
  307. data/lib/anthropic/models/beta/tunnel_archive_params.rb +12 -2
  308. data/lib/anthropic/models/beta/tunnel_create_params.rb +10 -1
  309. data/lib/anthropic/models/beta/tunnel_list_params.rb +10 -1
  310. data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +12 -2
  311. data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +12 -2
  312. data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +12 -2
  313. data/lib/anthropic/models/beta/tunnels/beta_tunnel_certificate.rb +11 -6
  314. data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +14 -3
  315. data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +9 -2
  316. data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +9 -2
  317. data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +14 -3
  318. data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +13 -2
  319. data/lib/anthropic/models/beta/user_profile_create_params.rb +26 -14
  320. data/lib/anthropic/models/beta/user_profile_list_params.rb +33 -11
  321. data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +12 -2
  322. data/lib/anthropic/models/beta/user_profile_update_params.rb +21 -15
  323. data/lib/anthropic/models/beta/vault_archive_params.rb +12 -2
  324. data/lib/anthropic/models/beta/vault_create_params.rb +7 -1
  325. data/lib/anthropic/models/beta/vault_delete_params.rb +12 -2
  326. data/lib/anthropic/models/beta/vault_list_params.rb +10 -1
  327. data/lib/anthropic/models/beta/vault_retrieve_params.rb +12 -2
  328. data/lib/anthropic/models/beta/vault_update_params.rb +9 -2
  329. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +6 -6
  330. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +13 -8
  331. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +2 -2
  332. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +2 -2
  333. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +2 -2
  334. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +6 -2
  335. data/lib/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rb +10 -5
  336. data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +14 -3
  337. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +13 -6
  338. data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +14 -3
  339. data/lib/anthropic/models/beta/vaults/credential_list_params.rb +12 -2
  340. data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +15 -3
  341. data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +14 -3
  342. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +17 -7
  343. data/lib/anthropic/models/browser_toolset_20260801.rb +3 -6
  344. data/lib/anthropic/models/cache_miss_messages_changed.rb +27 -0
  345. data/lib/anthropic/models/cache_miss_model_changed.rb +27 -0
  346. data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +15 -0
  347. data/lib/anthropic/models/cache_miss_reason.rb +73 -0
  348. data/lib/anthropic/models/cache_miss_system_changed.rb +27 -0
  349. data/lib/anthropic/models/cache_miss_tools_changed.rb +27 -0
  350. data/lib/anthropic/models/cache_miss_unavailable.rb +15 -0
  351. data/lib/anthropic/models/completion_create_params.rb +10 -1
  352. data/lib/anthropic/models/computer_toolset_20260801.rb +3 -6
  353. data/lib/anthropic/models/context_management_capability.rb +6 -6
  354. data/lib/anthropic/models/diagnostics.rb +25 -0
  355. data/lib/anthropic/models/diagnostics_param.rb +26 -0
  356. data/lib/anthropic/models/effort_capability.rb +2 -2
  357. data/lib/anthropic/models/file_delete_params.rb +10 -1
  358. data/lib/anthropic/models/file_download_params.rb +10 -1
  359. data/lib/anthropic/models/file_list_params.rb +7 -1
  360. data/lib/anthropic/models/file_retrieve_metadata_params.rb +10 -1
  361. data/lib/anthropic/models/file_upload_params.rb +7 -1
  362. data/lib/anthropic/models/message.rb +18 -6
  363. data/lib/anthropic/models/message_count_tokens_params.rb +9 -3
  364. data/lib/anthropic/models/message_create_params.rb +20 -4
  365. data/lib/anthropic/models/messages/batch_cancel_params.rb +10 -1
  366. data/lib/anthropic/models/messages/batch_create_params.rb +28 -8
  367. data/lib/anthropic/models/messages/batch_delete_params.rb +10 -1
  368. data/lib/anthropic/models/messages/batch_list_params.rb +7 -1
  369. data/lib/anthropic/models/messages/batch_results_params.rb +10 -1
  370. data/lib/anthropic/models/messages/batch_retrieve_params.rb +10 -1
  371. data/lib/anthropic/models/model.rb +11 -1
  372. data/lib/anthropic/models/model_info.rb +3 -2
  373. data/lib/anthropic/models/model_list_params.rb +11 -1
  374. data/lib/anthropic/models/model_retrieve_params.rb +14 -1
  375. data/lib/anthropic/models/output_config.rb +9 -3
  376. data/lib/anthropic/models/raw_message_delta_event.rb +8 -5
  377. data/lib/anthropic/models/refusal_stop_details.rb +7 -3
  378. data/lib/anthropic/models/skill_create_params.rb +7 -1
  379. data/lib/anthropic/models/skill_delete_params.rb +7 -1
  380. data/lib/anthropic/models/skill_list_params.rb +7 -1
  381. data/lib/anthropic/models/skill_retrieve_params.rb +7 -1
  382. data/lib/anthropic/models/skills/version_create_params.rb +7 -1
  383. data/lib/anthropic/models/skills/version_delete_params.rb +7 -1
  384. data/lib/anthropic/models/skills/version_list_params.rb +7 -1
  385. data/lib/anthropic/models/skills/version_retrieve_params.rb +7 -1
  386. data/lib/anthropic/models/thinking_config_between_tools.rb +15 -0
  387. data/lib/anthropic/models/thinking_config_param.rb +7 -2
  388. data/lib/anthropic/models/web_fetch_tool_20250910.rb +3 -7
  389. data/lib/anthropic/models/web_fetch_tool_20260209.rb +3 -7
  390. data/lib/anthropic/models/web_fetch_tool_20260309.rb +3 -7
  391. data/lib/anthropic/models/web_fetch_tool_20260318.rb +3 -7
  392. data/lib/anthropic/models.rb +20 -0
  393. data/lib/anthropic/resources/beta/agents.rb +2 -2
  394. data/lib/anthropic/resources/beta/deployments.rb +4 -4
  395. data/lib/anthropic/resources/beta/dreams.rb +58 -18
  396. data/lib/anthropic/resources/beta/memory_stores/memories.rb +13 -13
  397. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +15 -14
  398. data/lib/anthropic/resources/beta/messages.rb +16 -19
  399. data/lib/anthropic/resources/beta/organization/federation/rules.rb +2 -2
  400. data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +9 -5
  401. data/lib/anthropic/resources/beta/sessions/events.rb +5 -5
  402. data/lib/anthropic/resources/beta/sessions/resources.rb +8 -8
  403. data/lib/anthropic/resources/beta/sessions/threads/events.rb +6 -6
  404. data/lib/anthropic/resources/beta/sessions/threads.rb +5 -5
  405. data/lib/anthropic/resources/beta/sessions.rb +7 -7
  406. data/lib/anthropic/resources/beta/user_profiles.rb +11 -11
  407. data/lib/anthropic/resources/beta/vaults/credentials.rb +2 -2
  408. data/lib/anthropic/resources/messages.rb +12 -6
  409. data/lib/anthropic/version.rb +1 -1
  410. data/lib/anthropic.rb +30 -1
  411. data/rbi/anthropic/helpers/tools/runner.rbi +29 -0
  412. data/rbi/anthropic/models/anthropic_beta.rbi +7 -0
  413. data/rbi/anthropic/models/beta/agent_archive_params.rbi +14 -0
  414. data/rbi/anthropic/models/beta/agent_create_params.rbi +18 -6
  415. data/rbi/anthropic/models/beta/agent_list_params.rbi +12 -0
  416. data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +14 -0
  417. data/rbi/anthropic/models/beta/agent_update_params.rbi +20 -6
  418. data/rbi/anthropic/models/beta/agents/version_list_params.rbi +14 -0
  419. data/rbi/anthropic/models/beta/beta_browser_toolset_20260801.rbi +4 -10
  420. data/rbi/anthropic/models/beta/beta_cache_miss_reason.rbi +98 -0
  421. data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +6 -16
  422. data/rbi/anthropic/models/beta/beta_compaction_block.rbi +124 -1
  423. data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +132 -1
  424. data/rbi/anthropic/models/beta/beta_computer_toolset_20260801.rbi +4 -10
  425. data/rbi/anthropic/models/beta/beta_content_block.rbi +27 -3
  426. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +37 -3
  427. data/rbi/anthropic/models/beta/beta_context_management_capability.rbi +6 -6
  428. data/rbi/anthropic/models/beta/beta_diagnostics.rbi +4 -113
  429. data/rbi/anthropic/models/beta/beta_dream.rbi +105 -21
  430. data/rbi/anthropic/models/beta/beta_dream_error.rbi +16 -1
  431. data/rbi/anthropic/models/beta/beta_dream_input.rbi +18 -1
  432. data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +16 -4
  433. data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +13 -2
  434. data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +11 -13
  435. data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +24 -12
  436. data/rbi/anthropic/models/beta/beta_dream_output.rbi +14 -2
  437. data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +21 -2
  438. data/rbi/anthropic/models/beta/beta_dream_status.rbi +11 -2
  439. data/rbi/anthropic/models/beta/beta_dream_usage.rbi +20 -9
  440. data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
  441. data/rbi/anthropic/models/beta/beta_effort_capability.rbi +2 -2
  442. data/rbi/anthropic/models/beta/beta_fallback_param.rbi +11 -2
  443. data/rbi/anthropic/models/beta/beta_fallback_refusal_trigger.rbi +9 -3
  444. data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +4 -4
  445. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +2 -1
  446. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +2 -2
  447. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +6 -3
  448. data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +2 -2
  449. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +6 -3
  450. data/rbi/anthropic/models/beta/beta_managed_agents_budget_limit.rbi +4 -2
  451. data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule.rbi +4 -2
  452. data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +2 -2
  453. data/rbi/anthropic/models/beta/beta_managed_agents_delta_content.rbi +4 -2
  454. data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +26 -18
  455. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +1 -1
  456. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +1 -1
  457. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +1 -1
  458. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +14 -12
  459. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +3 -3
  460. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +1 -1
  461. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +6 -3
  462. data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +2 -2
  463. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +6 -3
  464. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +6 -3
  465. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +3 -3
  466. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +3 -3
  467. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbi +2 -2
  468. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +12 -6
  469. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbi +6 -3
  470. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +6 -3
  471. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +15 -1
  472. data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +15 -12
  473. data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +3 -9
  474. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +1 -1
  475. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +2 -2
  476. data/rbi/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbi +4 -2
  477. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +6 -3
  478. data/rbi/anthropic/models/beta/beta_managed_agents_schedule.rbi +6 -3
  479. data/rbi/anthropic/models/beta/beta_managed_agents_schedule_params.rbi +1 -2
  480. data/rbi/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbi +6 -2
  481. data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +8 -10
  482. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +4 -4
  483. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +2 -2
  484. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +2 -1
  485. data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +14 -10
  486. data/rbi/anthropic/models/beta/beta_managed_agents_session_usage.rbi +10 -6
  487. data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +8 -8
  488. data/rbi/anthropic/models/beta/beta_managed_agents_system_content_block.rbi +1 -1
  489. data/rbi/anthropic/models/beta/beta_managed_agents_system_message_event.rbi +2 -2
  490. data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +3 -1
  491. data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +4 -4
  492. data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
  493. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +6 -3
  494. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +6 -3
  495. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +6 -3
  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_message.rbi +18 -11
  502. data/rbi/anthropic/models/beta/beta_message_delta_usage.rbi +8 -0
  503. data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +4 -6
  504. data/rbi/anthropic/models/beta/beta_model_info.rbi +4 -2
  505. data/rbi/anthropic/models/beta/beta_output_behavior.rbi +9 -1
  506. data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +5 -3
  507. data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +15 -4
  508. data/rbi/anthropic/models/beta/beta_output_config.rbi +14 -5
  509. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +29 -4
  510. data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +12 -6
  511. data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +2 -1
  512. data/rbi/anthropic/models/beta/beta_refusal_stop_details.rbi +9 -3
  513. data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +54 -9
  514. data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +3 -2
  515. data/rbi/anthropic/models/beta/beta_response_tool.rbi +255 -0
  516. data/rbi/anthropic/models/beta/beta_response_tool_addition_block.rbi +182 -0
  517. data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbi +46 -0
  518. data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbi +38 -0
  519. data/rbi/anthropic/models/beta/beta_response_tool_change_tool_reference.rbi +38 -0
  520. data/rbi/anthropic/models/beta/beta_response_tool_input_schema.rbi +54 -0
  521. data/rbi/anthropic/models/beta/beta_response_tool_removal_block.rbi +139 -0
  522. data/rbi/anthropic/models/beta/beta_response_tool_union.rbi +55 -0
  523. data/rbi/anthropic/models/beta/beta_system_message_output_config.rbi +12 -3
  524. data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +14 -11
  525. data/rbi/anthropic/models/beta/beta_thinking_block_binding.rbi +10 -10
  526. data/rbi/anthropic/models/beta/beta_thinking_config_adaptive.rbi +4 -4
  527. data/rbi/anthropic/models/beta/beta_thinking_config_between_tools.rbi +30 -0
  528. data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +4 -4
  529. data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +8 -2
  530. data/rbi/anthropic/models/beta/beta_tool_change_tool_definition.rbi +78 -0
  531. data/rbi/anthropic/models/beta/beta_tool_change_tool_definition_param.rbi +141 -0
  532. data/rbi/anthropic/models/beta/beta_tool_change_tool_reference.rbi +3 -2
  533. data/rbi/anthropic/models/beta/beta_tunnel.rbi +6 -4
  534. data/rbi/anthropic/models/beta/beta_usage.rbi +11 -9
  535. data/rbi/anthropic/models/beta/beta_user_profile.rbi +45 -27
  536. data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +4 -2
  537. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details.rbi +21 -23
  538. data/rbi/anthropic/models/beta/beta_user_profile_external_user_details_params.rbi +25 -23
  539. data/rbi/anthropic/models/beta/beta_user_profile_trust_grant.rbi +2 -0
  540. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20250910.rbi +4 -12
  541. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260209.rbi +4 -12
  542. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260309.rbi +4 -12
  543. data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260318.rbi +4 -12
  544. data/rbi/anthropic/models/beta/deployment_archive_params.rbi +14 -0
  545. data/rbi/anthropic/models/beta/deployment_create_params.rbi +28 -9
  546. data/rbi/anthropic/models/beta/deployment_list_params.rbi +12 -0
  547. data/rbi/anthropic/models/beta/deployment_pause_params.rbi +14 -0
  548. data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +14 -0
  549. data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +12 -0
  550. data/rbi/anthropic/models/beta/deployment_run_params.rbi +14 -0
  551. data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +14 -0
  552. data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +14 -0
  553. data/rbi/anthropic/models/beta/deployment_update_params.rbi +30 -9
  554. data/rbi/anthropic/models/beta/dream_archive_params.rbi +14 -0
  555. data/rbi/anthropic/models/beta/dream_cancel_params.rbi +14 -0
  556. data/rbi/anthropic/models/beta/dream_create_params.rbi +56 -0
  557. data/rbi/anthropic/models/beta/dream_list_params.rbi +36 -18
  558. data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +14 -0
  559. data/rbi/anthropic/models/beta/environment_archive_params.rbi +12 -0
  560. data/rbi/anthropic/models/beta/environment_create_params.rbi +15 -8
  561. data/rbi/anthropic/models/beta/environment_delete_params.rbi +12 -0
  562. data/rbi/anthropic/models/beta/environment_list_params.rbi +12 -0
  563. data/rbi/anthropic/models/beta/environment_retrieve_params.rbi +12 -0
  564. data/rbi/anthropic/models/beta/environment_update_params.rbi +15 -8
  565. data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +12 -0
  566. data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +12 -0
  567. data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +12 -0
  568. data/rbi/anthropic/models/beta/environments/work_update_params.rbi +12 -0
  569. data/rbi/anthropic/models/beta/file_delete_params.rbi +12 -0
  570. data/rbi/anthropic/models/beta/file_download_params.rbi +12 -0
  571. data/rbi/anthropic/models/beta/file_list_params.rbi +12 -0
  572. data/rbi/anthropic/models/beta/file_retrieve_metadata_params.rbi +12 -0
  573. data/rbi/anthropic/models/beta/file_upload_params.rbi +12 -0
  574. data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +18 -0
  575. data/rbi/anthropic/models/beta/memory_store_create_params.rbi +12 -0
  576. data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +18 -0
  577. data/rbi/anthropic/models/beta/memory_store_list_params.rbi +12 -0
  578. data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +16 -0
  579. data/rbi/anthropic/models/beta/memory_store_update_params.rbi +18 -0
  580. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +8 -11
  581. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbi +4 -4
  582. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +7 -0
  583. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +10 -4
  584. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +5 -2
  585. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +23 -0
  586. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +16 -1
  587. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +32 -28
  588. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbi +5 -6
  589. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbi +4 -4
  590. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbi +7 -8
  591. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbi +3 -3
  592. data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +24 -2
  593. data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +26 -2
  594. data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +14 -0
  595. data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +26 -2
  596. data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +34 -14
  597. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +46 -16
  598. data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +16 -0
  599. data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +26 -2
  600. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +40 -25
  601. data/rbi/anthropic/models/beta/message_create_params.rbi +44 -27
  602. data/rbi/anthropic/models/beta/messages/batch_cancel_params.rbi +12 -0
  603. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +58 -33
  604. data/rbi/anthropic/models/beta/messages/batch_delete_params.rbi +12 -0
  605. data/rbi/anthropic/models/beta/messages/batch_list_params.rbi +12 -0
  606. data/rbi/anthropic/models/beta/messages/batch_results_params.rbi +12 -0
  607. data/rbi/anthropic/models/beta/messages/batch_retrieve_params.rbi +12 -0
  608. data/rbi/anthropic/models/beta/model_list_params.rbi +12 -0
  609. data/rbi/anthropic/models/beta/model_retrieve_params.rbi +12 -0
  610. data/rbi/anthropic/models/beta/organization/federation/beta_federation_issuer.rbi +8 -10
  611. data/rbi/anthropic/models/beta/organization/federation/rule_update_params.rbi +4 -12
  612. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +12 -8
  613. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rbi +38 -0
  614. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbi +99 -3
  615. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rbi +36 -0
  616. data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rbi +13 -0
  617. data/rbi/anthropic/models/beta/session_archive_params.rbi +12 -0
  618. data/rbi/anthropic/models/beta/session_create_params.rbi +23 -6
  619. data/rbi/anthropic/models/beta/session_delete_params.rbi +12 -0
  620. data/rbi/anthropic/models/beta/session_list_params.rbi +12 -0
  621. data/rbi/anthropic/models/beta/session_retrieve_params.rbi +12 -0
  622. data/rbi/anthropic/models/beta/session_update_params.rbi +34 -10
  623. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +2 -2
  624. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbi +49 -0
  625. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +4 -4
  626. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +22 -54
  627. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +2 -2
  628. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbi +2 -2
  629. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbi +2 -2
  630. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +3 -3
  631. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +3 -3
  632. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +1 -3
  633. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbi +2 -6
  634. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +4 -4
  635. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +22 -54
  636. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +3 -3
  637. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +3 -3
  638. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +3 -3
  639. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -2
  640. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +3 -3
  641. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +3 -3
  642. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +3 -3
  643. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +6 -3
  644. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +3 -3
  645. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +3 -3
  646. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +3 -3
  647. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbi +2 -2
  648. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +4 -3
  649. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbi +2 -2
  650. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +3 -3
  651. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +22 -17
  652. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbi +204 -0
  653. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +2 -1
  654. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +2 -2
  655. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbi +2 -2
  656. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbi +2 -2
  657. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbi +2 -2
  658. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +22 -18
  659. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +2 -2
  660. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +2 -2
  661. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbi +2 -2
  662. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbi +2 -2
  663. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbi +2 -2
  664. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbi +18 -6
  665. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbi +8 -6
  666. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbi +4 -4
  667. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbi +2 -2
  668. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rbi +6 -9
  669. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbi +6 -4
  670. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbi +2 -2
  671. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbi +2 -2
  672. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +22 -17
  673. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +22 -17
  674. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +3 -3
  675. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +4 -4
  676. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +2 -2
  677. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +8 -5
  678. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +3 -3
  679. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbi +2 -2
  680. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +3 -3
  681. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +1 -1
  682. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +5 -5
  683. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbi +3 -3
  684. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +2 -2
  685. data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +37 -6
  686. data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +12 -0
  687. data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +12 -0
  688. data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +12 -0
  689. data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +12 -0
  690. data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +12 -0
  691. data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +12 -0
  692. data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -1
  693. data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +12 -0
  694. data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -1
  695. data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +12 -0
  696. data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +12 -0
  697. data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +12 -0
  698. data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +12 -4
  699. data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +12 -0
  700. data/rbi/anthropic/models/beta/skill_create_params.rbi +12 -0
  701. data/rbi/anthropic/models/beta/skill_delete_params.rbi +12 -0
  702. data/rbi/anthropic/models/beta/skill_list_params.rbi +12 -0
  703. data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +12 -0
  704. data/rbi/anthropic/models/beta/skills/version_create_params.rbi +12 -0
  705. data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +12 -0
  706. data/rbi/anthropic/models/beta/skills/version_download_params.rbi +12 -0
  707. data/rbi/anthropic/models/beta/skills/version_list_params.rbi +12 -0
  708. data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +12 -0
  709. data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +14 -0
  710. data/rbi/anthropic/models/beta/tunnel_create_params.rbi +12 -0
  711. data/rbi/anthropic/models/beta/tunnel_list_params.rbi +12 -0
  712. data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +14 -0
  713. data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +14 -0
  714. data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +14 -0
  715. data/rbi/anthropic/models/beta/tunnels/beta_tunnel_certificate.rbi +10 -6
  716. data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +16 -0
  717. data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +14 -0
  718. data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +14 -0
  719. data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +16 -0
  720. data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +14 -0
  721. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +39 -17
  722. data/rbi/anthropic/models/beta/user_profile_list_params.rbi +40 -10
  723. data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +14 -0
  724. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +30 -17
  725. data/rbi/anthropic/models/beta/vault_archive_params.rbi +14 -0
  726. data/rbi/anthropic/models/beta/vault_create_params.rbi +12 -0
  727. data/rbi/anthropic/models/beta/vault_delete_params.rbi +14 -0
  728. data/rbi/anthropic/models/beta/vault_list_params.rbi +12 -0
  729. data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +14 -0
  730. data/rbi/anthropic/models/beta/vault_update_params.rbi +14 -0
  731. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +6 -6
  732. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +10 -8
  733. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +2 -2
  734. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +2 -2
  735. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +2 -2
  736. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +4 -2
  737. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbi +7 -5
  738. data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +16 -0
  739. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +18 -4
  740. data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +16 -0
  741. data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +14 -0
  742. data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +16 -0
  743. data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +16 -0
  744. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +23 -4
  745. data/rbi/anthropic/models/browser_toolset_20260801.rbi +4 -10
  746. data/rbi/anthropic/models/cache_miss_messages_changed.rbi +42 -0
  747. data/rbi/anthropic/models/cache_miss_model_changed.rbi +39 -0
  748. data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +26 -0
  749. data/rbi/anthropic/models/cache_miss_reason.rbi +76 -0
  750. data/rbi/anthropic/models/cache_miss_system_changed.rbi +39 -0
  751. data/rbi/anthropic/models/cache_miss_tools_changed.rbi +39 -0
  752. data/rbi/anthropic/models/cache_miss_unavailable.rbi +23 -0
  753. data/rbi/anthropic/models/completion_create_params.rbi +12 -0
  754. data/rbi/anthropic/models/computer_toolset_20260801.rbi +4 -10
  755. data/rbi/anthropic/models/context_management_capability.rbi +6 -6
  756. data/rbi/anthropic/models/diagnostics.rbi +53 -0
  757. data/rbi/anthropic/models/diagnostics_param.rbi +39 -0
  758. data/rbi/anthropic/models/effort_capability.rbi +2 -2
  759. data/rbi/anthropic/models/file_delete_params.rbi +12 -0
  760. data/rbi/anthropic/models/file_download_params.rbi +12 -0
  761. data/rbi/anthropic/models/file_list_params.rbi +12 -0
  762. data/rbi/anthropic/models/file_retrieve_metadata_params.rbi +12 -0
  763. data/rbi/anthropic/models/file_upload_params.rbi +12 -0
  764. data/rbi/anthropic/models/message.rbi +27 -6
  765. data/rbi/anthropic/models/message_count_tokens_params.rbi +16 -0
  766. data/rbi/anthropic/models/message_create_params.rbi +33 -0
  767. data/rbi/anthropic/models/messages/batch_cancel_params.rbi +12 -0
  768. data/rbi/anthropic/models/messages/batch_create_params.rbi +49 -6
  769. data/rbi/anthropic/models/messages/batch_delete_params.rbi +12 -0
  770. data/rbi/anthropic/models/messages/batch_list_params.rbi +12 -0
  771. data/rbi/anthropic/models/messages/batch_results_params.rbi +12 -0
  772. data/rbi/anthropic/models/messages/batch_retrieve_params.rbi +12 -0
  773. data/rbi/anthropic/models/model.rbi +9 -1
  774. data/rbi/anthropic/models/model_info.rbi +4 -2
  775. data/rbi/anthropic/models/model_list_params.rbi +12 -0
  776. data/rbi/anthropic/models/model_retrieve_params.rbi +12 -0
  777. data/rbi/anthropic/models/output_config.rbi +12 -3
  778. data/rbi/anthropic/models/raw_message_delta_event.rbi +12 -6
  779. data/rbi/anthropic/models/refusal_stop_details.rbi +9 -3
  780. data/rbi/anthropic/models/skill_create_params.rbi +12 -0
  781. data/rbi/anthropic/models/skill_delete_params.rbi +12 -0
  782. data/rbi/anthropic/models/skill_list_params.rbi +12 -0
  783. data/rbi/anthropic/models/skill_retrieve_params.rbi +12 -0
  784. data/rbi/anthropic/models/skills/version_create_params.rbi +12 -0
  785. data/rbi/anthropic/models/skills/version_delete_params.rbi +12 -0
  786. data/rbi/anthropic/models/skills/version_list_params.rbi +12 -0
  787. data/rbi/anthropic/models/skills/version_retrieve_params.rbi +12 -0
  788. data/rbi/anthropic/models/thinking_config_between_tools.rbi +26 -0
  789. data/rbi/anthropic/models/thinking_config_param.rbi +6 -0
  790. data/rbi/anthropic/models/web_fetch_tool_20250910.rbi +4 -12
  791. data/rbi/anthropic/models/web_fetch_tool_20260209.rbi +4 -12
  792. data/rbi/anthropic/models/web_fetch_tool_20260309.rbi +4 -12
  793. data/rbi/anthropic/models/web_fetch_tool_20260318.rbi +4 -12
  794. data/rbi/anthropic/models.rbi +21 -0
  795. data/rbi/anthropic/resources/beta/agents.rbi +4 -6
  796. data/rbi/anthropic/resources/beta/deployments.rbi +14 -8
  797. data/rbi/anthropic/resources/beta/dreams.rbi +81 -21
  798. data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +33 -18
  799. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +28 -14
  800. data/rbi/anthropic/resources/beta/messages.rbi +42 -39
  801. data/rbi/anthropic/resources/beta/organization/federation/rules.rbi +4 -6
  802. data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +10 -4
  803. data/rbi/anthropic/resources/beta/sessions/events.rbi +8 -5
  804. data/rbi/anthropic/resources/beta/sessions/resources.rbi +8 -8
  805. data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +6 -6
  806. data/rbi/anthropic/resources/beta/sessions/threads.rbi +5 -5
  807. data/rbi/anthropic/resources/beta/sessions.rbi +16 -12
  808. data/rbi/anthropic/resources/beta/user_profiles.rbi +30 -19
  809. data/rbi/anthropic/resources/beta/vaults/credentials.rbi +3 -2
  810. data/rbi/anthropic/resources/messages.rbi +18 -0
  811. data/sig/anthropic/models/anthropic_beta.rbs +4 -0
  812. data/sig/anthropic/models/beta/beta_cache_miss_reason.rbs +70 -0
  813. data/sig/anthropic/models/beta/beta_compaction_block.rbs +44 -2
  814. data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +47 -2
  815. data/sig/anthropic/models/beta/beta_content_block.rbs +14 -2
  816. data/sig/anthropic/models/beta/beta_content_block_param.rbs +13 -1
  817. data/sig/anthropic/models/beta/beta_diagnostics.rbs +4 -70
  818. data/sig/anthropic/models/beta/beta_dream_status.rbs +3 -1
  819. data/sig/anthropic/models/beta/beta_fallback_param.rbs +6 -1
  820. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +10 -2
  821. data/sig/anthropic/models/beta/beta_mcp_tool.rbs +32 -0
  822. data/sig/anthropic/models/beta/beta_mcp_tool_listing_block.rbs +34 -0
  823. data/sig/anthropic/models/beta/beta_mcp_tool_listing_block_param.rbs +34 -0
  824. data/sig/anthropic/models/beta/beta_mcp_tool_param.rbs +34 -0
  825. data/sig/anthropic/models/beta/beta_mcp_toolset.rbs +7 -2
  826. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +14 -2
  827. data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +12 -2
  828. data/sig/anthropic/models/beta/beta_response_tool.rbs +105 -0
  829. data/sig/anthropic/models/beta/beta_response_tool_addition_block.rbs +84 -0
  830. data/sig/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbs +30 -0
  831. data/sig/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbs +23 -0
  832. data/sig/anthropic/models/beta/beta_response_tool_change_tool_reference.rbs +20 -0
  833. data/sig/anthropic/models/beta/beta_response_tool_input_schema.rbs +34 -0
  834. data/sig/anthropic/models/beta/beta_response_tool_removal_block.rbs +74 -0
  835. data/sig/anthropic/models/beta/beta_response_tool_union.rbs +43 -0
  836. data/sig/anthropic/models/beta/beta_thinking_config_between_tools.rbs +17 -0
  837. data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +6 -1
  838. data/sig/anthropic/models/beta/beta_tool_change_tool_definition.rbs +29 -0
  839. data/sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs +29 -0
  840. data/sig/anthropic/models/beta/beta_user_profile.rbs +3 -0
  841. data/sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs +5 -0
  842. data/sig/anthropic/models/beta/beta_user_profile_external_user_details_params.rbs +5 -0
  843. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rbs +20 -0
  844. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbs +43 -1
  845. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rbs +19 -0
  846. data/sig/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rbs +7 -0
  847. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbs +20 -0
  848. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +6 -18
  849. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +6 -18
  850. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +3 -4
  851. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbs +84 -0
  852. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +3 -4
  853. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +3 -4
  854. data/sig/anthropic/models/beta/sessions/event_list_params.rbs +7 -5
  855. data/sig/anthropic/models/beta/user_profile_create_params.rbs +3 -0
  856. data/sig/anthropic/models/beta/user_profile_list_params.rbs +6 -0
  857. data/sig/anthropic/models/beta/user_profile_update_params.rbs +3 -0
  858. data/sig/anthropic/models/cache_miss_messages_changed.rbs +22 -0
  859. data/sig/anthropic/models/cache_miss_model_changed.rbs +22 -0
  860. data/sig/anthropic/models/cache_miss_previous_message_not_found.rbs +14 -0
  861. data/sig/anthropic/models/cache_miss_reason.rbs +66 -0
  862. data/sig/anthropic/models/cache_miss_system_changed.rbs +22 -0
  863. data/sig/anthropic/models/cache_miss_tools_changed.rbs +22 -0
  864. data/sig/anthropic/models/cache_miss_unavailable.rbs +13 -0
  865. data/sig/anthropic/models/diagnostics.rbs +18 -0
  866. data/sig/anthropic/models/diagnostics_param.rbs +13 -0
  867. data/sig/anthropic/models/message.rbs +5 -0
  868. data/sig/anthropic/models/message_create_params.rbs +5 -0
  869. data/sig/anthropic/models/messages/batch_create_params.rbs +5 -0
  870. data/sig/anthropic/models/model.rbs +10 -2
  871. data/sig/anthropic/models/thinking_config_between_tools.rbs +13 -0
  872. data/sig/anthropic/models/thinking_config_param.rbs +6 -1
  873. data/sig/anthropic/models.rbs +20 -0
  874. data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +1 -0
  875. data/sig/anthropic/resources/beta/sessions/events.rbs +1 -1
  876. data/sig/anthropic/resources/messages.rbs +3 -0
  877. metadata +92 -3
  878. data/lib/anthropic/helpers/tools/compaction_control.rb +0 -109
@@ -46,6 +46,12 @@ module Anthropic
46
46
  end
47
47
  attr_writer :betas
48
48
 
49
+ # Optional header to select the Workspace for this request. The value is a
50
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
51
+ #
52
+ # Only needed for credentials that can act on more than one Workspace. A
53
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
54
+ # match that Workspace.
49
55
  sig { returns(T.nilable(String)) }
50
56
  attr_reader :workspace_id
51
57
 
@@ -71,6 +77,12 @@ module Anthropic
71
77
  expires_in_seconds: nil,
72
78
  # Optional header to specify the beta version(s) you want to use.
73
79
  betas: nil,
80
+ # Optional header to select the Workspace for this request. The value is a
81
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
82
+ #
83
+ # Only needed for credentials that can act on more than one Workspace. A
84
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
85
+ # match that Workspace.
74
86
  workspace_id: nil,
75
87
  request_options: {}
76
88
  )
@@ -15,6 +15,9 @@ module Anthropic
15
15
  )
16
16
  end
17
17
 
18
+ # ID of the memory store to archive (a `memstore_...` identifier). Required.
19
+ # Archiving is one-way and idempotent; archived stores cannot be unarchived.
20
+ # Enumerate IDs via `GET /v1/memory_stores`.
18
21
  sig { returns(String) }
19
22
  attr_accessor :memory_store_id
20
23
 
@@ -35,6 +38,12 @@ module Anthropic
35
38
  end
36
39
  attr_writer :betas
37
40
 
41
+ # Optional header to select the Workspace for this request. The value is a
42
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
43
+ #
44
+ # Only needed for credentials that can act on more than one Workspace. A
45
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
46
+ # match that Workspace.
38
47
  sig { returns(T.nilable(String)) }
39
48
  attr_reader :workspace_id
40
49
 
@@ -50,9 +59,18 @@ module Anthropic
50
59
  ).returns(T.attached_class)
51
60
  end
52
61
  def self.new(
62
+ # ID of the memory store to archive (a `memstore_...` identifier). Required.
63
+ # Archiving is one-way and idempotent; archived stores cannot be unarchived.
64
+ # Enumerate IDs via `GET /v1/memory_stores`.
53
65
  memory_store_id:,
54
66
  # Optional header to specify the beta version(s) you want to use.
55
67
  betas: nil,
68
+ # Optional header to select the Workspace for this request. The value is a
69
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
70
+ #
71
+ # Only needed for credentials that can act on more than one Workspace. A
72
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
73
+ # match that Workspace.
56
74
  workspace_id: nil,
57
75
  request_options: {}
58
76
  )
@@ -57,6 +57,12 @@ module Anthropic
57
57
  end
58
58
  attr_writer :betas
59
59
 
60
+ # Optional header to select the Workspace for this request. The value is a
61
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
62
+ #
63
+ # Only needed for credentials that can act on more than one Workspace. A
64
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
65
+ # match that Workspace.
60
66
  sig { returns(T.nilable(String)) }
61
67
  attr_reader :workspace_id
62
68
 
@@ -89,6 +95,12 @@ module Anthropic
89
95
  metadata: nil,
90
96
  # Optional header to specify the beta version(s) you want to use.
91
97
  betas: nil,
98
+ # Optional header to select the Workspace for this request. The value is a
99
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
100
+ #
101
+ # Only needed for credentials that can act on more than one Workspace. A
102
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
103
+ # match that Workspace.
92
104
  workspace_id: nil,
93
105
  request_options: {}
94
106
  )
@@ -15,6 +15,9 @@ module Anthropic
15
15
  )
16
16
  end
17
17
 
18
+ # ID of the memory store to permanently delete (a `memstore_...` identifier).
19
+ # Required. Deletion cascades to all memories and memory versions in the store and
20
+ # cannot be undone.
18
21
  sig { returns(String) }
19
22
  attr_accessor :memory_store_id
20
23
 
@@ -35,6 +38,12 @@ module Anthropic
35
38
  end
36
39
  attr_writer :betas
37
40
 
41
+ # Optional header to select the Workspace for this request. The value is a
42
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
43
+ #
44
+ # Only needed for credentials that can act on more than one Workspace. A
45
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
46
+ # match that Workspace.
38
47
  sig { returns(T.nilable(String)) }
39
48
  attr_reader :workspace_id
40
49
 
@@ -50,9 +59,18 @@ module Anthropic
50
59
  ).returns(T.attached_class)
51
60
  end
52
61
  def self.new(
62
+ # ID of the memory store to permanently delete (a `memstore_...` identifier).
63
+ # Required. Deletion cascades to all memories and memory versions in the store and
64
+ # cannot be undone.
53
65
  memory_store_id:,
54
66
  # Optional header to specify the beta version(s) you want to use.
55
67
  betas: nil,
68
+ # Optional header to select the Workspace for this request. The value is a
69
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
70
+ #
71
+ # Only needed for credentials that can act on more than one Workspace. A
72
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
73
+ # match that Workspace.
56
74
  workspace_id: nil,
57
75
  request_options: {}
58
76
  )
@@ -72,6 +72,12 @@ module Anthropic
72
72
  end
73
73
  attr_writer :betas
74
74
 
75
+ # Optional header to select the Workspace for this request. The value is a
76
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
77
+ #
78
+ # Only needed for credentials that can act on more than one Workspace. A
79
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
80
+ # match that Workspace.
75
81
  sig { returns(T.nilable(String)) }
76
82
  attr_reader :workspace_id
77
83
 
@@ -108,6 +114,12 @@ module Anthropic
108
114
  page: nil,
109
115
  # Optional header to specify the beta version(s) you want to use.
110
116
  betas: nil,
117
+ # Optional header to select the Workspace for this request. The value is a
118
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
119
+ #
120
+ # Only needed for credentials that can act on more than one Workspace. A
121
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
122
+ # match that Workspace.
111
123
  workspace_id: nil,
112
124
  request_options: {}
113
125
  )
@@ -15,6 +15,8 @@ module Anthropic
15
15
  )
16
16
  end
17
17
 
18
+ # ID of the memory store to retrieve (a `memstore_...` identifier). Required.
19
+ # Enumerate IDs via `GET /v1/memory_stores`.
18
20
  sig { returns(String) }
19
21
  attr_accessor :memory_store_id
20
22
 
@@ -35,6 +37,12 @@ module Anthropic
35
37
  end
36
38
  attr_writer :betas
37
39
 
40
+ # Optional header to select the Workspace for this request. The value is a
41
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
42
+ #
43
+ # Only needed for credentials that can act on more than one Workspace. A
44
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
45
+ # match that Workspace.
38
46
  sig { returns(T.nilable(String)) }
39
47
  attr_reader :workspace_id
40
48
 
@@ -50,9 +58,17 @@ module Anthropic
50
58
  ).returns(T.attached_class)
51
59
  end
52
60
  def self.new(
61
+ # ID of the memory store to retrieve (a `memstore_...` identifier). Required.
62
+ # Enumerate IDs via `GET /v1/memory_stores`.
53
63
  memory_store_id:,
54
64
  # Optional header to specify the beta version(s) you want to use.
55
65
  betas: nil,
66
+ # Optional header to select the Workspace for this request. The value is a
67
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
68
+ #
69
+ # Only needed for credentials that can act on more than one Workspace. A
70
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
71
+ # match that Workspace.
56
72
  workspace_id: nil,
57
73
  request_options: {}
58
74
  )
@@ -15,6 +15,9 @@ module Anthropic
15
15
  )
16
16
  end
17
17
 
18
+ # ID of the memory store to update (a `memstore_...` identifier). Required.
19
+ # Enumerate IDs via `GET /v1/memory_stores`. Updating an archived store
20
+ # returns 400.
18
21
  sig { returns(String) }
19
22
  attr_accessor :memory_store_id
20
23
 
@@ -52,6 +55,12 @@ module Anthropic
52
55
  end
53
56
  attr_writer :betas
54
57
 
58
+ # Optional header to select the Workspace for this request. The value is a
59
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
60
+ #
61
+ # Only needed for credentials that can act on more than one Workspace. A
62
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
63
+ # match that Workspace.
55
64
  sig { returns(T.nilable(String)) }
56
65
  attr_reader :workspace_id
57
66
 
@@ -70,6 +79,9 @@ module Anthropic
70
79
  ).returns(T.attached_class)
71
80
  end
72
81
  def self.new(
82
+ # ID of the memory store to update (a `memstore_...` identifier). Required.
83
+ # Enumerate IDs via `GET /v1/memory_stores`. Updating an archived store
84
+ # returns 400.
73
85
  memory_store_id:,
74
86
  # New description for the store, up to 1024 characters. Pass an empty string to
75
87
  # clear it.
@@ -84,6 +96,12 @@ module Anthropic
84
96
  name: nil,
85
97
  # Optional header to specify the beta version(s) you want to use.
86
98
  betas: nil,
99
+ # Optional header to select the Workspace for this request. The value is a
100
+ # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
101
+ #
102
+ # Only needed for credentials that can act on more than one Workspace. A
103
+ # credential that belongs to a specific Workspace may omit it; if sent, it must
104
+ # match that Workspace.
87
105
  workspace_id: nil,
88
106
  request_options: {}
89
107
  )
@@ -4,11 +4,9 @@ module Anthropic
4
4
  module Models
5
5
  module Beta
6
6
  module MemoryStores
7
- # Identifies who performed a write or redact operation. Captured at write time on
8
- # the `memory_version` row. The API key that created a session is not recorded on
9
- # agent writes; attribution answers who made the write, not who is ultimately
10
- # responsible. Look up session provenance separately via the
11
- # [Sessions API](/en/api/beta/sessions/retrieve).
7
+ # Identifies who performed an operation. Recorded when the operation happens and
8
+ # not updated afterwards, so the ID may refer to a user, service account, API key,
9
+ # or session that has since been deleted.
12
10
  module BetaManagedAgentsActor
13
11
  extend Anthropic::Internal::Type::Union
14
12
 
@@ -92,16 +90,15 @@ module Anthropic
92
90
  end
93
91
  def self.new(
94
92
  type:,
95
- # ID of the session that performed the write (a `sesn_...` value). Look up the
96
- # session via [Retrieve a session](/en/api/beta/sessions/retrieve) for further
97
- # provenance.
93
+ # ID of the session (a `sesn_...` value). Look up the session via
94
+ # [Retrieve a session](/en/api/beta/sessions/retrieve) for further provenance.
98
95
  session_id: nil,
99
- # ID of the API key that performed the write. This identifies the key, not the
96
+ # ID of the API key (an `apikey_...` value). This identifies the key, not the
100
97
  # secret.
101
98
  api_key_id: nil,
102
- # ID of the user who performed the write (a `user_...` value).
99
+ # ID of the user (a `user_...` value).
103
100
  user_id: nil,
104
- # ID of the service account that performed the write (a `svac_...` value).
101
+ # ID of the service account (a `svac_...` value).
105
102
  service_account_id: nil
106
103
  )
107
104
  end
@@ -13,7 +13,7 @@ module Anthropic
13
13
  )
14
14
  end
15
15
 
16
- # ID of the API key that performed the write. This identifies the key, not the
16
+ # ID of the API key (an `apikey_...` value). This identifies the key, not the
17
17
  # secret.
18
18
  sig { returns(String) }
19
19
  attr_accessor :api_key_id
@@ -25,8 +25,8 @@ module Anthropic
25
25
  end
26
26
  attr_accessor :type
27
27
 
28
- # Attribution for a write made directly via the public API (outside of any
29
- # session).
28
+ # A direct caller of the public API, identified by the API key that authenticated
29
+ # the request.
30
30
  sig do
31
31
  params(
32
32
  api_key_id: String,
@@ -35,7 +35,7 @@ module Anthropic
35
35
  ).returns(T.attached_class)
36
36
  end
37
37
  def self.new(
38
- # ID of the API key that performed the write. This identifies the key, not the
38
+ # ID of the API key (an `apikey_...` value). This identifies the key, not the
39
39
  # secret.
40
40
  api_key_id:,
41
41
  type:
@@ -134,8 +134,15 @@ module Anthropic
134
134
  end
135
135
  def self.new(
136
136
  type:,
137
+ # A human-readable explanation of why the precondition failed.
137
138
  message: nil,
139
+ # The ID of the memory that blocked the write (`mem_...`), or an empty string if
140
+ # that memory can't be identified.
141
+ #
142
+ # Retry the request when it is empty.
138
143
  conflicting_memory_id: nil,
144
+ # The path that blocked the write: the requested path, or the path of a memory
145
+ # that is an ancestor or descendant of it.
139
146
  conflicting_path: nil
140
147
  )
141
148
  end
@@ -30,7 +30,7 @@ module Anthropic
30
30
  sig { returns(Integer) }
31
31
  attr_accessor :content_size_bytes
32
32
 
33
- # A timestamp in RFC 3339 format
33
+ # When this memory was created, in RFC 3339 format.
34
34
  sig { returns(Time) }
35
35
  attr_accessor :created_at
36
36
 
@@ -59,7 +59,10 @@ module Anthropic
59
59
  end
60
60
  attr_accessor :type
61
61
 
62
- # A timestamp in RFC 3339 format
62
+ # When this memory was last modified, in RFC 3339 format. Use this as a cheap
63
+ # freshness signal; for who made the change, look up the head version's
64
+ # `created_by` via
65
+ # [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
63
66
  sig { returns(Time) }
64
67
  attr_accessor :updated_at
65
68
 
@@ -101,7 +104,7 @@ module Anthropic
101
104
  # Size of `content` in bytes (the UTF-8 plaintext length). Always populated,
102
105
  # regardless of `view`.
103
106
  content_size_bytes:,
104
- # A timestamp in RFC 3339 format
107
+ # When this memory was created, in RFC 3339 format.
105
108
  created_at:,
106
109
  # ID of the memory store this memory belongs to (a `memstore_...` value).
107
110
  memory_store_id:,
@@ -116,7 +119,10 @@ module Anthropic
116
119
  # Maximum 1,024 bytes.
117
120
  path:,
118
121
  type:,
119
- # A timestamp in RFC 3339 format
122
+ # When this memory was last modified, in RFC 3339 format. Use this as a cheap
123
+ # freshness signal; for who made the change, look up the head version's
124
+ # `created_by` via
125
+ # [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
120
126
  updated_at:,
121
127
  # The memory's UTF-8 text content. Populated when `view=full`; `null` when
122
128
  # `view=basic`. Maximum 100 kB (102,400 bytes).
@@ -98,7 +98,7 @@ module Anthropic
98
98
  # Size of `content` in bytes (the UTF-8 plaintext length). Always populated,
99
99
  # regardless of `view`.
100
100
  content_size_bytes: nil,
101
- # A timestamp in RFC 3339 format
101
+ # When this memory was created, in RFC 3339 format.
102
102
  created_at: nil,
103
103
  # ID of the memory store this memory belongs to (a `memstore_...` value).
104
104
  memory_store_id: nil,
@@ -108,7 +108,10 @@ module Anthropic
108
108
  # Enumerate the history via
109
109
  # [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
110
110
  memory_version_id: nil,
111
- # A timestamp in RFC 3339 format
111
+ # When this memory was last modified, in RFC 3339 format. Use this as a cheap
112
+ # freshness signal; for who made the change, look up the head version's
113
+ # `created_by` via
114
+ # [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
112
115
  updated_at: nil,
113
116
  # The memory's UTF-8 text content. Populated when `view=full`; `null` when
114
117
  # `view=basic`. Maximum 100 kB (102,400 bytes).
@@ -20,24 +20,39 @@ module Anthropic
20
20
  end
21
21
  attr_accessor :type
22
22
 
23
+ # The ID of the memory that blocked the write (`mem_...`), or an empty string if
24
+ # that memory can't be identified.
25
+ #
26
+ # Retry the request when it is empty.
23
27
  sig { returns(T.nilable(String)) }
24
28
  attr_reader :conflicting_memory_id
25
29
 
26
30
  sig { params(conflicting_memory_id: String).void }
27
31
  attr_writer :conflicting_memory_id
28
32
 
33
+ # The path that blocked the write: the requested path, or the path of a memory
34
+ # that is an ancestor or descendant of it.
29
35
  sig { returns(T.nilable(String)) }
30
36
  attr_reader :conflicting_path
31
37
 
32
38
  sig { params(conflicting_path: String).void }
33
39
  attr_writer :conflicting_path
34
40
 
41
+ # A human-readable explanation of the conflict. To handle the error in code, use
42
+ # `conflicting_path` and `conflicting_memory_id` instead.
35
43
  sig { returns(T.nilable(String)) }
36
44
  attr_reader :message
37
45
 
38
46
  sig { params(message: String).void }
39
47
  attr_writer :message
40
48
 
49
+ # The error returned with HTTP status 409 when a create or rename targets a path
50
+ # that another memory uses, or a path that overlaps another memory's path.
51
+ #
52
+ # Two paths overlap when one is an ancestor of the other, such as `/notes` and
53
+ # `/notes/todo.md`. To free the path, rename or delete the memory that
54
+ # `conflicting_memory_id` references, then retry. To change that memory instead of
55
+ # creating a new one, update it.
41
56
  sig do
42
57
  params(
43
58
  type:
@@ -49,8 +64,16 @@ module Anthropic
49
64
  end
50
65
  def self.new(
51
66
  type:,
67
+ # The ID of the memory that blocked the write (`mem_...`), or an empty string if
68
+ # that memory can't be identified.
69
+ #
70
+ # Retry the request when it is empty.
52
71
  conflicting_memory_id: nil,
72
+ # The path that blocked the write: the requested path, or the path of a memory
73
+ # that is an ancestor or descendant of it.
53
74
  conflicting_path: nil,
75
+ # A human-readable explanation of the conflict. To handle the error in code, use
76
+ # `conflicting_path` and `conflicting_memory_id` instead.
54
77
  message: nil
55
78
  )
56
79
  end
@@ -20,12 +20,23 @@ module Anthropic
20
20
  end
21
21
  attr_accessor :type
22
22
 
23
+ # A human-readable explanation of why the precondition failed.
23
24
  sig { returns(T.nilable(String)) }
24
25
  attr_reader :message
25
26
 
26
27
  sig { params(message: String).void }
27
28
  attr_writer :message
28
29
 
30
+ # The error returned with HTTP status 409 when a request's precondition doesn't
31
+ # hold for the memory's current state, such as `precondition` on an update or
32
+ # `expected_content_sha256` on a delete.
33
+ #
34
+ # The error doesn't include the memory's current state. Retrieve the memory to see
35
+ # its current content and `content_sha256` before you retry.
36
+ #
37
+ # See the
38
+ # [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#safe-content-edits-optimistic-concurrency)
39
+ # to learn more about safe content edits with content hash preconditions.
29
40
  sig do
30
41
  params(
31
42
  type:
@@ -33,7 +44,11 @@ module Anthropic
33
44
  message: String
34
45
  ).returns(T.attached_class)
35
46
  end
36
- def self.new(type:, message: nil)
47
+ def self.new(
48
+ type:,
49
+ # A human-readable explanation of why the precondition failed.
50
+ message: nil
51
+ )
37
52
  end
38
53
 
39
54
  sig do
@@ -17,7 +17,7 @@ module Anthropic
17
17
  sig { returns(String) }
18
18
  attr_accessor :id
19
19
 
20
- # A timestamp in RFC 3339 format
20
+ # When this version was written, in RFC 3339 format.
21
21
  sig { returns(Time) }
22
22
  attr_accessor :created_at
23
23
 
@@ -33,8 +33,7 @@ module Anthropic
33
33
  sig { returns(String) }
34
34
  attr_accessor :memory_store_id
35
35
 
36
- # The kind of mutation a `memory_version` records. Every non-no-op mutation to a
37
- # memory appends exactly one version row with one of these values.
36
+ # The kind of mutation this version records: `created`, `modified`, or `deleted`.
38
37
  sig do
39
38
  returns(
40
39
  Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation::TaggedSymbol
@@ -65,11 +64,13 @@ module Anthropic
65
64
  sig { returns(T.nilable(Integer)) }
66
65
  attr_accessor :content_size_bytes
67
66
 
68
- # Identifies who performed a write or redact operation. Captured at write time on
69
- # the `memory_version` row. The API key that created a session is not recorded on
70
- # agent writes; attribution answers who made the write, not who is ultimately
71
- # responsible. Look up session provenance separately via the
72
- # [Sessions API](/en/api/beta/sessions/retrieve).
67
+ # Who performed this write: one of `session_actor`, `api_actor`, `user_actor`, or
68
+ # `service_account_actor`; `null` when no writer is recorded. Captured at write
69
+ # time and preserved through redaction. A `session_actor` is an agent writing
70
+ # through the store's mounted filesystem at `/mnt/memory/`. The API key that
71
+ # created that session is not recorded on agent writes, so attribution names who
72
+ # made the write, not who is ultimately responsible; look up session provenance
73
+ # via the [Sessions API](/en/api/beta/sessions/retrieve).
73
74
  sig do
74
75
  returns(
75
76
  T.nilable(
@@ -97,15 +98,16 @@ module Anthropic
97
98
  sig { returns(T.nilable(String)) }
98
99
  attr_accessor :path
99
100
 
100
- # A timestamp in RFC 3339 format
101
+ # When this version was redacted, in RFC 3339 format, or `null` if it has not been
102
+ # redacted. When set, `content`, `path`, `content_size_bytes`, and
103
+ # `content_sha256` are all `null`. See
104
+ # [Redact a memory version](/en/api/beta/memory_stores/memory_versions/redact).
101
105
  sig { returns(T.nilable(Time)) }
102
106
  attr_accessor :redacted_at
103
107
 
104
- # Identifies who performed a write or redact operation. Captured at write time on
105
- # the `memory_version` row. The API key that created a session is not recorded on
106
- # agent writes; attribution answers who made the write, not who is ultimately
107
- # responsible. Look up session provenance separately via the
108
- # [Sessions API](/en/api/beta/sessions/retrieve).
108
+ # Who redacted this version, or `null` if it has not been redacted. In practice
109
+ # always an `api_actor`, `user_actor`, or `service_account_actor` (agents do not
110
+ # have a redact capability).
109
111
  sig do
110
112
  returns(
111
113
  T.nilable(
@@ -170,7 +172,7 @@ module Anthropic
170
172
  def self.new(
171
173
  # Unique identifier for this version (a `memver_...` value).
172
174
  id:,
173
- # A timestamp in RFC 3339 format
175
+ # When this version was written, in RFC 3339 format.
174
176
  created_at:,
175
177
  # ID of the memory this version snapshots (a `mem_...` value). Remains valid after
176
178
  # the memory is deleted; pass it as `memory_id` to
@@ -180,8 +182,7 @@ module Anthropic
180
182
  memory_id:,
181
183
  # ID of the memory store this version belongs to (a `memstore_...` value).
182
184
  memory_store_id:,
183
- # The kind of mutation a `memory_version` records. Every non-no-op mutation to a
184
- # memory appends exactly one version row with one of these values.
185
+ # The kind of mutation this version records: `created`, `modified`, or `deleted`.
185
186
  operation:,
186
187
  type:,
187
188
  # The memory's UTF-8 text content as of this version. `null` when `view=basic`,
@@ -194,22 +195,25 @@ module Anthropic
194
195
  # Size of `content` in bytes as of this version. `null` when `redacted_at` is set
195
196
  # or `operation` is `deleted`. Populated regardless of `view` otherwise.
196
197
  content_size_bytes: nil,
197
- # Identifies who performed a write or redact operation. Captured at write time on
198
- # the `memory_version` row. The API key that created a session is not recorded on
199
- # agent writes; attribution answers who made the write, not who is ultimately
200
- # responsible. Look up session provenance separately via the
201
- # [Sessions API](/en/api/beta/sessions/retrieve).
198
+ # Who performed this write: one of `session_actor`, `api_actor`, `user_actor`, or
199
+ # `service_account_actor`; `null` when no writer is recorded. Captured at write
200
+ # time and preserved through redaction. A `session_actor` is an agent writing
201
+ # through the store's mounted filesystem at `/mnt/memory/`. The API key that
202
+ # created that session is not recorded on agent writes, so attribution names who
203
+ # made the write, not who is ultimately responsible; look up session provenance
204
+ # via the [Sessions API](/en/api/beta/sessions/retrieve).
202
205
  created_by: nil,
203
206
  # The memory's path at the time of this write. `null` if and only if `redacted_at`
204
207
  # is set.
205
208
  path: nil,
206
- # A timestamp in RFC 3339 format
209
+ # When this version was redacted, in RFC 3339 format, or `null` if it has not been
210
+ # redacted. When set, `content`, `path`, `content_size_bytes`, and
211
+ # `content_sha256` are all `null`. See
212
+ # [Redact a memory version](/en/api/beta/memory_stores/memory_versions/redact).
207
213
  redacted_at: nil,
208
- # Identifies who performed a write or redact operation. Captured at write time on
209
- # the `memory_version` row. The API key that created a session is not recorded on
210
- # agent writes; attribution answers who made the write, not who is ultimately
211
- # responsible. Look up session provenance separately via the
212
- # [Sessions API](/en/api/beta/sessions/retrieve).
214
+ # Who redacted this version, or `null` if it has not been redacted. In practice
215
+ # always an `api_actor`, `user_actor`, or `service_account_actor` (agents do not
216
+ # have a redact capability).
213
217
  redacted_by: nil
214
218
  )
215
219
  end
@@ -30,12 +30,11 @@ module Anthropic
30
30
  sig { params(content_sha256: String).void }
31
31
  attr_writer :content_sha256
32
32
 
33
- # Optimistic-concurrency precondition: the update applies only if the memory's
34
- # stored `content_sha256` equals the supplied value. On mismatch, the request
35
- # returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and
36
- # retry against the fresh state. If the precondition fails but the stored state
37
- # already exactly matches the requested `content` and `path`, the server returns
38
- # 200 instead of 409.
33
+ # Optional condition that must hold for an update to apply. When omitted, the
34
+ # update is unconditional. Asserts the current state of the memory being updated.
35
+ # When an update changes `path`, the precondition still refers to the memory's
36
+ # current content, not the destination path. Currently the only supported variant
37
+ # is `content_sha256`.
39
38
  sig do
40
39
  params(
41
40
  type: