anthropic 1.82.0 → 2.1.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 (893) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/LICENSE +197 -4
  4. data/LICENSE-MIT +11 -0
  5. data/README.md +2 -2
  6. data/lib/anthropic/client.rb +65 -72
  7. data/lib/anthropic/credentials.rb +4 -4
  8. data/lib/anthropic/helpers/aws/client.rb +2 -2
  9. data/lib/anthropic/helpers/aws_auth.rb +3 -10
  10. data/lib/anthropic/helpers/bedrock/client.rb +7 -12
  11. data/lib/anthropic/helpers/bedrock/mantle_client.rb +3 -11
  12. data/lib/anthropic/helpers/google_cloud/client.rb +6 -17
  13. data/lib/anthropic/helpers/tools/runner.rb +8 -6
  14. data/lib/anthropic/helpers/vertex/client.rb +7 -5
  15. data/lib/anthropic/internal/tracing.rb +3 -4
  16. data/lib/anthropic/internal/transport/base_client.rb +8 -5
  17. data/lib/anthropic/models/assistant_message_param.rb +21 -0
  18. data/lib/anthropic/models/beta/agent_create_params.rb +3 -3
  19. data/lib/anthropic/models/beta/agent_update_params.rb +3 -3
  20. data/lib/anthropic/models/beta/beta_assistant_message_param.rb +25 -0
  21. data/lib/anthropic/models/beta/beta_dream.rb +5 -15
  22. data/lib/anthropic/models/beta/beta_dream_input.rb +2 -2
  23. data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +4 -14
  24. data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +4 -14
  25. data/lib/anthropic/models/beta/beta_dream_output.rb +4 -14
  26. data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +4 -14
  27. data/lib/anthropic/models/beta/beta_environment_delete_response.rb +4 -16
  28. data/lib/anthropic/models/beta/beta_managed_agents_advisor.rb +4 -14
  29. data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +4 -14
  30. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +10 -20
  31. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -15
  32. data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -14
  33. data/lib/anthropic/models/beta/beta_managed_agents_agent_message_preview.rb +4 -14
  34. data/lib/anthropic/models/beta/beta_managed_agents_agent_params.rb +5 -15
  35. data/lib/anthropic/models/beta/beta_managed_agents_agent_reference.rb +4 -14
  36. data/lib/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rb +4 -14
  37. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rb +4 -14
  38. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +5 -15
  39. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +2 -2
  40. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +2 -2
  41. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +8 -18
  42. data/lib/anthropic/models/beta/beta_managed_agents_always_allow_policy.rb +4 -14
  43. data/lib/anthropic/models/beta/beta_managed_agents_always_ask_policy.rb +4 -14
  44. data/lib/anthropic/models/beta/beta_managed_agents_anthropic_skill.rb +4 -14
  45. data/lib/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rb +5 -15
  46. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +2 -2
  47. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +2 -2
  48. data/lib/anthropic/models/beta/beta_managed_agents_branch_checkout.rb +4 -14
  49. data/lib/anthropic/models/beta/beta_managed_agents_budget_limit.rb +4 -14
  50. data/lib/anthropic/models/beta/beta_managed_agents_commit_checkout.rb +4 -14
  51. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +5 -15
  52. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rb +4 -14
  53. data/lib/anthropic/models/beta/beta_managed_agents_custom_skill.rb +4 -14
  54. data/lib/anthropic/models/beta/beta_managed_agents_custom_skill_params.rb +5 -15
  55. data/lib/anthropic/models/beta/beta_managed_agents_custom_tool.rb +4 -14
  56. data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +4 -14
  57. data/lib/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rb +4 -14
  58. data/lib/anthropic/models/beta/beta_managed_agents_deleted_session.rb +4 -14
  59. data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +4 -14
  60. data/lib/anthropic/models/beta/beta_managed_agents_delta_content.rb +5 -15
  61. data/lib/anthropic/models/beta/beta_managed_agents_delta_event.rb +4 -14
  62. data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +5 -15
  63. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +3 -3
  64. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +3 -3
  65. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +2 -2
  66. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +14 -38
  67. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +20 -30
  68. data/lib/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rb +4 -14
  69. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +7 -17
  70. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +8 -18
  71. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +2 -2
  72. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +2 -2
  73. data/lib/anthropic/models/beta/beta_managed_agents_effort_high.rb +4 -14
  74. data/lib/anthropic/models/beta/beta_managed_agents_effort_low.rb +4 -14
  75. data/lib/anthropic/models/beta/beta_managed_agents_effort_max.rb +4 -14
  76. data/lib/anthropic/models/beta/beta_managed_agents_effort_medium.rb +4 -14
  77. data/lib/anthropic/models/beta/beta_managed_agents_effort_xhigh.rb +4 -14
  78. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -15
  79. data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -14
  80. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -15
  81. data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -14
  82. data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +4 -14
  83. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -15
  84. data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -14
  85. data/lib/anthropic/models/beta/beta_managed_agents_file_resource_config.rb +5 -15
  86. data/lib/anthropic/models/beta/beta_managed_agents_file_resource_params.rb +5 -15
  87. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +7 -17
  88. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +7 -17
  89. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +2 -2
  90. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +2 -2
  91. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +2 -2
  92. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +2 -2
  93. data/lib/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rb +4 -14
  94. data/lib/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rb +4 -14
  95. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -15
  96. data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -14
  97. data/lib/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rb +4 -14
  98. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +2 -2
  99. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +2 -2
  100. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset.rb +4 -14
  101. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +2 -2
  102. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +2 -2
  103. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +5 -15
  104. data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +5 -15
  105. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -15
  106. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -14
  107. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +5 -15
  108. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +5 -15
  109. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +5 -5
  110. data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
  111. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +6 -16
  112. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +4 -14
  113. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
  114. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rb +4 -14
  115. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +4 -15
  116. data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -14
  117. data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +4 -14
  118. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +2 -2
  119. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +2 -2
  120. data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +5 -15
  121. data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +4 -14
  122. data/lib/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rb +4 -14
  123. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +4 -15
  124. data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -15
  125. data/lib/anthropic/models/beta/beta_managed_agents_session.rb +5 -15
  126. data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +10 -20
  127. data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +3 -3
  128. data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -14
  129. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent.rb +1 -1
  130. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +6 -16
  131. data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -14
  132. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +3 -3
  133. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +4 -15
  134. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -14
  135. data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +10 -20
  136. data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +5 -15
  137. data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +5 -15
  138. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -15
  139. data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -14
  140. data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +2 -2
  141. data/lib/anthropic/models/beta/beta_managed_agents_start_event.rb +4 -14
  142. data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +2 -2
  143. data/lib/anthropic/models/beta/beta_managed_agents_system_content_block.rb +4 -14
  144. data/lib/anthropic/models/beta/beta_managed_agents_system_message_event.rb +5 -15
  145. data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +2 -2
  146. data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -14
  147. data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +4 -14
  148. data/lib/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rb +5 -15
  149. data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +9 -19
  150. data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +5 -15
  151. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -15
  152. data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -14
  153. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -15
  154. data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -14
  155. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +2 -2
  156. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +2 -2
  157. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +2 -2
  158. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +2 -2
  159. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -15
  160. data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -14
  161. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +2 -2
  162. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +2 -2
  163. data/lib/anthropic/models/beta/beta_message_content_param.rb +24 -0
  164. data/lib/anthropic/models/beta/beta_message_param.rb +37 -71
  165. data/lib/anthropic/models/beta/beta_output_behavior.rb +2 -2
  166. data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +4 -14
  167. data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +4 -14
  168. data/lib/anthropic/models/beta/beta_system_message_param.rb +160 -0
  169. data/lib/anthropic/models/beta/beta_user_message_param.rb +25 -0
  170. data/lib/anthropic/models/beta/beta_user_profile.rb +4 -16
  171. data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +4 -16
  172. data/lib/anthropic/models/beta/deployment_create_params.rb +3 -3
  173. data/lib/anthropic/models/beta/deployment_update_params.rb +3 -3
  174. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +3 -3
  175. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +4 -14
  176. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -14
  177. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +5 -16
  178. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +4 -14
  179. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -6
  180. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +5 -15
  181. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -2
  182. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +5 -15
  183. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +5 -16
  184. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +4 -14
  185. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +5 -15
  186. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +5 -15
  187. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +4 -14
  188. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rb +5 -15
  189. data/lib/anthropic/models/beta/message_count_tokens_params.rb +4 -5
  190. data/lib/anthropic/models/beta/message_create_params.rb +5 -59
  191. data/lib/anthropic/models/beta/messages/batch_create_params.rb +5 -59
  192. data/lib/anthropic/models/beta/organization/beta_api_key.rb +2 -15
  193. data/lib/anthropic/models/beta/organization/beta_api_key_workspace_scope.rb +3 -4
  194. data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +6 -46
  195. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +1 -12
  196. data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +16 -3
  197. data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +6 -47
  198. data/lib/anthropic/models/beta/session_create_params.rb +5 -5
  199. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +5 -15
  200. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +9 -19
  201. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +5 -15
  202. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +6 -16
  203. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rb +4 -14
  204. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rb +4 -15
  205. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +9 -20
  206. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +9 -19
  207. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +9 -19
  208. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +5 -15
  209. data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rb +4 -14
  210. data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rb +4 -14
  211. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +7 -17
  212. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +8 -19
  213. data/lib/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rb +4 -14
  214. data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +10 -20
  215. data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +7 -13
  216. data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rb +4 -14
  217. data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rb +4 -14
  218. data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb +5 -15
  219. data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rb +4 -14
  220. data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rb +4 -14
  221. data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +7 -17
  222. data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +7 -17
  223. data/lib/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rb +5 -5
  224. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +7 -18
  225. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +7 -17
  226. data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +5 -15
  227. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +7 -17
  228. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +7 -17
  229. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +7 -17
  230. data/lib/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rb +7 -30
  231. data/lib/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rb +4 -14
  232. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +3 -3
  233. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +3 -3
  234. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +3 -3
  235. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +3 -3
  236. data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +3 -3
  237. data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rb +4 -14
  238. data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rb +4 -14
  239. data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rb +4 -14
  240. data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rb +4 -14
  241. data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rb +4 -14
  242. data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +7 -7
  243. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rb +4 -14
  244. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rb +4 -14
  245. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rb +4 -14
  246. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +12 -28
  247. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +35 -62
  248. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rb +4 -14
  249. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +3 -3
  250. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rb +4 -14
  251. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +8 -18
  252. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rb +4 -15
  253. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rb +4 -14
  254. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rb +4 -15
  255. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +7 -17
  256. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +5 -15
  257. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +8 -19
  258. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rb +4 -15
  259. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rb +4 -15
  260. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rb +4 -15
  261. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rb +4 -14
  262. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rb +4 -14
  263. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +5 -16
  264. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +4 -15
  265. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +4 -15
  266. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +37 -64
  267. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +37 -64
  268. data/lib/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rb +4 -14
  269. data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_block.rb +4 -14
  270. data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rb +4 -14
  271. data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rb +4 -14
  272. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +7 -17
  273. data/lib/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rb +5 -15
  274. data/lib/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rb +5 -15
  275. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +9 -19
  276. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +9 -20
  277. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +6 -16
  278. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +7 -18
  279. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +5 -15
  280. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rb +5 -15
  281. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +9 -19
  282. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +8 -18
  283. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +5 -15
  284. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +5 -16
  285. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +9 -19
  286. data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +3 -3
  287. data/lib/anthropic/models/beta/sessions/resource_update_response.rb +3 -3
  288. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +8 -21
  289. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +2 -7
  290. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +5 -15
  291. data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +4 -14
  292. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +6 -22
  293. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +5 -16
  294. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +5 -16
  295. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +4 -15
  296. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +4 -15
  297. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +5 -15
  298. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +5 -15
  299. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +3 -3
  300. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +3 -12
  301. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +2 -8
  302. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +5 -15
  303. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rb +4 -14
  304. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +4 -14
  305. data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +5 -15
  306. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +4 -14
  307. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rb +4 -15
  308. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +5 -16
  309. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rb +4 -14
  310. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rb +4 -14
  311. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +4 -14
  312. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rb +4 -14
  313. data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +5 -16
  314. data/lib/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rb +4 -15
  315. data/lib/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rb +4 -15
  316. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -6
  317. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -6
  318. data/lib/anthropic/models/message_content_param.rb +19 -0
  319. data/lib/anthropic/models/message_count_tokens_params.rb +4 -5
  320. data/lib/anthropic/models/message_create_params.rb +5 -59
  321. data/lib/anthropic/models/message_param.rb +33 -28
  322. data/lib/anthropic/models/messages/batch_create_params.rb +5 -59
  323. data/lib/anthropic/models/model_list_params.rb +1 -13
  324. data/lib/anthropic/models/model_retrieve_params.rb +1 -13
  325. data/lib/anthropic/models/organization/api_key.rb +1 -1
  326. data/lib/anthropic/models/organization/api_key_workspace_scope.rb +3 -4
  327. data/lib/anthropic/models/organization/organization_rate_limit.rb +5 -8
  328. data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +5 -8
  329. data/lib/anthropic/models/system_message_param.rb +36 -0
  330. data/lib/anthropic/models/user_message_param.rb +21 -0
  331. data/lib/anthropic/models/user_profile.rb +26 -1
  332. data/lib/anthropic/models/user_profile_enforcement_action.rb +66 -0
  333. data/lib/anthropic/models/user_profile_enforcement_action_ban.rb +62 -0
  334. data/lib/anthropic/models/user_profile_enforcement_action_next_step.rb +17 -0
  335. data/lib/anthropic/models/user_profile_enforcement_action_reason.rb +23 -0
  336. data/lib/anthropic/models/user_profile_enforcement_action_restriction.rb +67 -0
  337. data/lib/anthropic/models/user_profile_enforcement_status.rb +20 -0
  338. data/lib/anthropic/models/user_profile_list_params.rb +17 -1
  339. data/lib/anthropic/models.rb +20 -4
  340. data/lib/anthropic/resources/beta/messages.rb +8 -32
  341. data/lib/anthropic/resources/beta/organization/spend_limits.rb +11 -7
  342. data/lib/anthropic/resources/beta/sessions/resources.rb +3 -3
  343. data/lib/anthropic/resources/beta/webhooks.rb +1 -0
  344. data/lib/anthropic/resources/messages.rb +7 -25
  345. data/lib/anthropic/resources/models.rb +4 -11
  346. data/lib/anthropic/resources/user_profiles.rb +5 -3
  347. data/lib/anthropic/version.rb +1 -1
  348. data/lib/anthropic.rb +14 -3
  349. data/rbi/anthropic/client.rbi +19 -7
  350. data/rbi/anthropic/helpers/bedrock/client.rbi +0 -5
  351. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +0 -4
  352. data/rbi/anthropic/helpers/google_cloud/client.rbi +0 -4
  353. data/rbi/anthropic/helpers/tools/runner.rbi +5 -1
  354. data/rbi/anthropic/helpers/vertex/client.rbi +0 -2
  355. data/rbi/anthropic/internal/tracing.rbi +0 -1
  356. data/rbi/anthropic/models/assistant_message_param.rbi +35 -0
  357. data/rbi/anthropic/models/beta/beta_assistant_message_param.rbi +45 -0
  358. data/rbi/anthropic/models/beta/beta_dream.rbi +6 -24
  359. data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +6 -42
  360. data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +6 -42
  361. data/rbi/anthropic/models/beta/beta_dream_output.rbi +6 -38
  362. data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +6 -38
  363. data/rbi/anthropic/models/beta/beta_environment_delete_response.rbi +4 -51
  364. data/rbi/anthropic/models/beta/beta_managed_agents_advisor.rbi +4 -45
  365. data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +4 -51
  366. data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +6 -34
  367. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +4 -49
  368. data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +4 -51
  369. data/rbi/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbi +4 -51
  370. data/rbi/anthropic/models/beta/beta_managed_agents_agent_params.rbi +7 -46
  371. data/rbi/anthropic/models/beta/beta_managed_agents_agent_reference.rbi +6 -51
  372. data/rbi/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rbi +4 -51
  373. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbi +4 -39
  374. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +6 -41
  375. data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +6 -41
  376. data/rbi/anthropic/models/beta/beta_managed_agents_always_allow_policy.rbi +4 -49
  377. data/rbi/anthropic/models/beta/beta_managed_agents_always_ask_policy.rbi +4 -49
  378. data/rbi/anthropic/models/beta/beta_managed_agents_anthropic_skill.rbi +6 -49
  379. data/rbi/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rbi +6 -45
  380. data/rbi/anthropic/models/beta/beta_managed_agents_branch_checkout.rbi +4 -51
  381. data/rbi/anthropic/models/beta/beta_managed_agents_budget_limit.rbi +4 -36
  382. data/rbi/anthropic/models/beta/beta_managed_agents_commit_checkout.rbi +4 -51
  383. data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule.rbi +6 -41
  384. data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rbi +6 -47
  385. data/rbi/anthropic/models/beta/beta_managed_agents_custom_skill.rbi +6 -45
  386. data/rbi/anthropic/models/beta/beta_managed_agents_custom_skill_params.rbi +6 -45
  387. data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool.rbi +4 -35
  388. data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +4 -39
  389. data/rbi/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbi +4 -51
  390. data/rbi/anthropic/models/beta/beta_managed_agents_deleted_session.rbi +4 -51
  391. data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +4 -50
  392. data/rbi/anthropic/models/beta/beta_managed_agents_delta_content.rbi +6 -41
  393. data/rbi/anthropic/models/beta/beta_managed_agents_delta_event.rbi +4 -35
  394. data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +6 -37
  395. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +4 -39
  396. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rbi +4 -39
  397. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +6 -41
  398. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +4 -39
  399. data/rbi/anthropic/models/beta/beta_managed_agents_effort_high.rbi +4 -42
  400. data/rbi/anthropic/models/beta/beta_managed_agents_effort_low.rbi +4 -42
  401. data/rbi/anthropic/models/beta/beta_managed_agents_effort_max.rbi +4 -42
  402. data/rbi/anthropic/models/beta/beta_managed_agents_effort_medium.rbi +4 -48
  403. data/rbi/anthropic/models/beta/beta_managed_agents_effort_xhigh.rbi +4 -43
  404. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +4 -49
  405. data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +4 -51
  406. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +4 -49
  407. data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +4 -51
  408. data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +4 -39
  409. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +4 -49
  410. data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +4 -51
  411. data/rbi/anthropic/models/beta/beta_managed_agents_file_resource_config.rbi +6 -45
  412. data/rbi/anthropic/models/beta/beta_managed_agents_file_resource_params.rbi +6 -45
  413. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbi +6 -41
  414. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +6 -41
  415. data/rbi/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rbi +4 -49
  416. data/rbi/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rbi +4 -49
  417. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +4 -49
  418. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +4 -51
  419. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rbi +6 -51
  420. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset.rbi +4 -35
  421. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbi +6 -41
  422. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +6 -37
  423. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +4 -49
  424. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +4 -51
  425. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbi +6 -41
  426. data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +6 -41
  427. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +4 -39
  428. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +4 -39
  429. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rbi +4 -49
  430. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +4 -49
  431. data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +4 -51
  432. data/rbi/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbi +4 -39
  433. data/rbi/anthropic/models/beta/beta_managed_agents_schedule.rbi +6 -37
  434. data/rbi/anthropic/models/beta/beta_managed_agents_schedule_params.rbi +6 -47
  435. data/rbi/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbi +4 -49
  436. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +4 -49
  437. data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +4 -51
  438. data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +6 -35
  439. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +6 -41
  440. data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +4 -51
  441. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +4 -39
  442. data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +4 -51
  443. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +4 -49
  444. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +4 -51
  445. data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +6 -41
  446. data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +6 -41
  447. data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +6 -41
  448. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +4 -49
  449. data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +4 -51
  450. data/rbi/anthropic/models/beta/beta_managed_agents_start_event.rbi +4 -35
  451. data/rbi/anthropic/models/beta/beta_managed_agents_system_content_block.rbi +4 -51
  452. data/rbi/anthropic/models/beta/beta_managed_agents_system_message_event.rbi +6 -41
  453. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +4 -49
  454. data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +4 -51
  455. data/rbi/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rbi +7 -52
  456. data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +6 -41
  457. data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +6 -34
  458. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +4 -49
  459. data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +4 -51
  460. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +4 -49
  461. data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +4 -51
  462. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +4 -49
  463. data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +4 -51
  464. data/rbi/anthropic/models/beta/beta_message_content_param.rbi +37 -0
  465. data/rbi/anthropic/models/beta/beta_message_param.rbi +49 -145
  466. data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +4 -42
  467. data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +6 -49
  468. data/rbi/anthropic/models/beta/beta_system_message_param.rbi +300 -0
  469. data/rbi/anthropic/models/beta/beta_user_message_param.rbi +45 -0
  470. data/rbi/anthropic/models/beta/beta_user_profile.rbi +7 -32
  471. data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +8 -48
  472. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbi +4 -49
  473. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +4 -49
  474. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +7 -50
  475. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +4 -51
  476. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +6 -41
  477. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +6 -41
  478. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +5 -50
  479. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +4 -51
  480. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +6 -41
  481. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbi +7 -50
  482. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbi +4 -49
  483. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbi +5 -50
  484. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +29 -7
  485. data/rbi/anthropic/models/beta/message_create_params.rbi +29 -76
  486. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +32 -79
  487. data/rbi/anthropic/models/beta/organization/beta_api_key.rbi +3 -16
  488. data/rbi/anthropic/models/beta/organization/beta_api_key_workspace_scope.rbi +4 -6
  489. data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +5 -86
  490. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +0 -10
  491. data/rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi +21 -2
  492. data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +5 -86
  493. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +6 -41
  494. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +6 -41
  495. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +6 -41
  496. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +4 -39
  497. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbi +6 -49
  498. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbi +6 -49
  499. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +6 -41
  500. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +6 -41
  501. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +6 -41
  502. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +6 -41
  503. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rbi +6 -49
  504. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rbi +6 -49
  505. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +4 -39
  506. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +6 -41
  507. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rbi +4 -51
  508. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +7 -46
  509. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rbi +4 -49
  510. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rbi +4 -49
  511. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbi +6 -41
  512. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rbi +4 -49
  513. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rbi +4 -49
  514. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +6 -41
  515. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +4 -39
  516. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +4 -39
  517. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +4 -39
  518. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +6 -41
  519. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +4 -39
  520. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +4 -39
  521. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +4 -39
  522. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rbi +8 -87
  523. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbi +4 -49
  524. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rbi +4 -49
  525. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rbi +4 -49
  526. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rbi +4 -49
  527. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbi +4 -39
  528. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rbi +4 -51
  529. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbi +4 -49
  530. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbi +6 -49
  531. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rbi +4 -49
  532. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +4 -39
  533. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rbi +6 -47
  534. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rbi +4 -49
  535. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +4 -39
  536. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbi +6 -49
  537. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbi +6 -49
  538. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbi +6 -49
  539. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +6 -41
  540. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +6 -41
  541. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +4 -39
  542. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbi +4 -39
  543. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbi +4 -39
  544. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbi +4 -39
  545. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbi +4 -39
  546. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbi +6 -49
  547. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbi +6 -41
  548. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbi +4 -39
  549. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbi +4 -39
  550. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rbi +4 -39
  551. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_block.rbi +4 -51
  552. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rbi +4 -49
  553. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rbi +4 -49
  554. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +4 -39
  555. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rbi +5 -52
  556. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rbi +5 -52
  557. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +6 -41
  558. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +6 -41
  559. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +4 -39
  560. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +6 -41
  561. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbi +6 -41
  562. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rbi +7 -46
  563. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +6 -41
  564. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +4 -39
  565. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +6 -41
  566. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbi +6 -41
  567. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +6 -41
  568. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +6 -41
  569. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +6 -41
  570. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +4 -51
  571. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +4 -39
  572. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +6 -41
  573. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +6 -41
  574. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +6 -47
  575. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +6 -47
  576. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +6 -41
  577. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +6 -41
  578. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +6 -41
  579. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rbi +6 -49
  580. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +6 -47
  581. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +7 -50
  582. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +6 -49
  583. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rbi +4 -49
  584. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +7 -48
  585. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rbi +4 -49
  586. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rbi +4 -49
  587. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +6 -49
  588. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rbi +4 -49
  589. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +7 -48
  590. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rbi +4 -49
  591. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rbi +4 -49
  592. data/rbi/anthropic/models/message_content_param.rbi +28 -0
  593. data/rbi/anthropic/models/message_count_tokens_params.rbi +29 -7
  594. data/rbi/anthropic/models/message_create_params.rbi +29 -76
  595. data/rbi/anthropic/models/message_param.rbi +28 -52
  596. data/rbi/anthropic/models/messages/batch_create_params.rbi +32 -79
  597. data/rbi/anthropic/models/model_list_params.rbi +0 -19
  598. data/rbi/anthropic/models/model_retrieve_params.rbi +0 -19
  599. data/rbi/anthropic/models/organization/api_key.rbi +2 -3
  600. data/rbi/anthropic/models/organization/api_key_workspace_scope.rbi +4 -6
  601. data/rbi/anthropic/models/organization/organization_rate_limit.rbi +5 -8
  602. data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit.rbi +5 -8
  603. data/rbi/anthropic/models/system_message_param.rbi +59 -0
  604. data/rbi/anthropic/models/user_message_param.rbi +35 -0
  605. data/rbi/anthropic/models/user_profile.rbi +42 -0
  606. data/rbi/anthropic/models/user_profile_enforcement_action.rbi +95 -0
  607. data/rbi/anthropic/models/user_profile_enforcement_action_ban.rbi +96 -0
  608. data/rbi/anthropic/models/user_profile_enforcement_action_next_step.rbi +34 -0
  609. data/rbi/anthropic/models/user_profile_enforcement_action_reason.rbi +58 -0
  610. data/rbi/anthropic/models/user_profile_enforcement_action_restriction.rbi +106 -0
  611. data/rbi/anthropic/models/user_profile_enforcement_status.rbi +39 -0
  612. data/rbi/anthropic/models/user_profile_list_params.rbi +36 -0
  613. data/rbi/anthropic/models.rbi +24 -4
  614. data/rbi/anthropic/resources/beta/messages.rbi +46 -124
  615. data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +12 -4
  616. data/rbi/anthropic/resources/beta/sessions/resources.rbi +3 -4
  617. data/rbi/anthropic/resources/messages.rbi +36 -93
  618. data/rbi/anthropic/resources/models.rbi +0 -6
  619. data/rbi/anthropic/resources/user_profiles.rbi +12 -0
  620. data/sig/anthropic/client.rbs +2 -2
  621. data/sig/anthropic/helpers/bedrock/client.rbs +0 -4
  622. data/sig/anthropic/helpers/google_cloud/client.rbs +0 -2
  623. data/sig/anthropic/helpers/vertex/client.rbs +0 -2
  624. data/sig/anthropic/internal/tracing.rbs +0 -1
  625. data/sig/anthropic/models/assistant_message_param.rbs +22 -0
  626. data/sig/anthropic/models/beta/beta_assistant_message_param.rbs +29 -0
  627. data/sig/anthropic/models/beta/beta_dream.rbs +5 -15
  628. data/sig/anthropic/models/beta/beta_dream_memory_store_input.rbs +4 -23
  629. data/sig/anthropic/models/beta/beta_dream_memory_store_output.rbs +4 -23
  630. data/sig/anthropic/models/beta/beta_dream_output.rbs +4 -24
  631. data/sig/anthropic/models/beta/beta_dream_sessions_input.rbs +4 -23
  632. data/sig/anthropic/models/beta/beta_environment_delete_response.rbs +4 -23
  633. data/sig/anthropic/models/beta/beta_managed_agents_advisor.rbs +4 -24
  634. data/sig/anthropic/models/beta/beta_managed_agents_advisor_params.rbs +4 -23
  635. data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +5 -15
  636. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +4 -20
  637. data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +4 -23
  638. data/sig/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbs +4 -23
  639. data/sig/anthropic/models/beta/beta_managed_agents_agent_params.rbs +4 -26
  640. data/sig/anthropic/models/beta/beta_managed_agents_agent_reference.rbs +4 -26
  641. data/sig/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rbs +4 -23
  642. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbs +4 -14
  643. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbs +5 -15
  644. data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +5 -15
  645. data/sig/anthropic/models/beta/beta_managed_agents_always_allow_policy.rbs +4 -21
  646. data/sig/anthropic/models/beta/beta_managed_agents_always_ask_policy.rbs +4 -21
  647. data/sig/anthropic/models/beta/beta_managed_agents_anthropic_skill.rbs +5 -23
  648. data/sig/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rbs +5 -23
  649. data/sig/anthropic/models/beta/beta_managed_agents_branch_checkout.rbs +4 -24
  650. data/sig/anthropic/models/beta/beta_managed_agents_budget_limit.rbs +4 -17
  651. data/sig/anthropic/models/beta/beta_managed_agents_commit_checkout.rbs +4 -24
  652. data/sig/anthropic/models/beta/beta_managed_agents_cron_schedule.rbs +5 -15
  653. data/sig/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rbs +4 -22
  654. data/sig/anthropic/models/beta/beta_managed_agents_custom_skill.rbs +5 -23
  655. data/sig/anthropic/models/beta/beta_managed_agents_custom_skill_params.rbs +5 -23
  656. data/sig/anthropic/models/beta/beta_managed_agents_custom_tool.rbs +4 -14
  657. data/sig/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbs +4 -14
  658. data/sig/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbs +4 -23
  659. data/sig/anthropic/models/beta/beta_managed_agents_deleted_session.rbs +4 -23
  660. data/sig/anthropic/models/beta/beta_managed_agents_deleted_vault.rbs +4 -23
  661. data/sig/anthropic/models/beta/beta_managed_agents_delta_content.rbs +5 -15
  662. data/sig/anthropic/models/beta/beta_managed_agents_delta_event.rbs +4 -14
  663. data/sig/anthropic/models/beta/beta_managed_agents_deployment.rbs +5 -15
  664. data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +4 -14
  665. data/sig/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rbs +4 -14
  666. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +5 -15
  667. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +4 -14
  668. data/sig/anthropic/models/beta/beta_managed_agents_effort_high.rbs +4 -19
  669. data/sig/anthropic/models/beta/beta_managed_agents_effort_low.rbs +4 -19
  670. data/sig/anthropic/models/beta/beta_managed_agents_effort_max.rbs +4 -19
  671. data/sig/anthropic/models/beta/beta_managed_agents_effort_medium.rbs +4 -19
  672. data/sig/anthropic/models/beta/beta_managed_agents_effort_xhigh.rbs +4 -19
  673. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +4 -20
  674. data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +4 -20
  675. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +4 -20
  676. data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +4 -20
  677. data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -14
  678. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +4 -20
  679. data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +4 -23
  680. data/sig/anthropic/models/beta/beta_managed_agents_file_resource_config.rbs +5 -23
  681. data/sig/anthropic/models/beta/beta_managed_agents_file_resource_params.rbs +5 -23
  682. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs +5 -15
  683. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +5 -15
  684. data/sig/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rbs +4 -20
  685. data/sig/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rbs +4 -21
  686. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +4 -20
  687. data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +4 -20
  688. data/sig/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rbs +4 -26
  689. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset.rbs +4 -14
  690. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbs +5 -15
  691. data/sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs +5 -15
  692. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +4 -20
  693. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +4 -20
  694. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbs +5 -15
  695. data/sig/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbs +5 -15
  696. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +4 -14
  697. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbs +4 -14
  698. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rbs +4 -21
  699. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +4 -20
  700. data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +4 -20
  701. data/sig/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbs +4 -14
  702. data/sig/anthropic/models/beta/beta_managed_agents_schedule.rbs +5 -15
  703. data/sig/anthropic/models/beta/beta_managed_agents_schedule_params.rbs +4 -22
  704. data/sig/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbs +4 -23
  705. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +4 -18
  706. data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +4 -17
  707. data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +5 -15
  708. data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +5 -15
  709. data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +4 -17
  710. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +4 -14
  711. data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +4 -20
  712. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +4 -20
  713. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +4 -17
  714. data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +5 -15
  715. data/sig/anthropic/models/beta/beta_managed_agents_session_updated_event.rbs +5 -15
  716. data/sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs +5 -15
  717. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +4 -20
  718. data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +4 -23
  719. data/sig/anthropic/models/beta/beta_managed_agents_start_event.rbs +4 -14
  720. data/sig/anthropic/models/beta/beta_managed_agents_system_content_block.rbs +4 -23
  721. data/sig/anthropic/models/beta/beta_managed_agents_system_message_event.rbs +5 -15
  722. data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +4 -20
  723. data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +4 -23
  724. data/sig/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rbs +4 -26
  725. data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +5 -15
  726. data/sig/anthropic/models/beta/beta_managed_agents_vault.rbs +5 -15
  727. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +4 -20
  728. data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +4 -23
  729. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +4 -20
  730. data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +4 -23
  731. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +4 -20
  732. data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +4 -20
  733. data/sig/anthropic/models/beta/beta_message_content_param.rbs +18 -0
  734. data/sig/anthropic/models/beta/beta_message_param.rbs +30 -50
  735. data/sig/anthropic/models/beta/beta_output_behavior_create_new.rbs +4 -19
  736. data/sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs +4 -20
  737. data/sig/anthropic/models/beta/beta_system_message_param.rbs +116 -0
  738. data/sig/anthropic/models/beta/beta_user_message_param.rbs +29 -0
  739. data/sig/anthropic/models/beta/beta_user_profile.rbs +5 -15
  740. data/sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs +5 -23
  741. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbs +4 -23
  742. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +4 -23
  743. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbs +5 -21
  744. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbs +4 -23
  745. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbs +5 -15
  746. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +5 -15
  747. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +5 -18
  748. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbs +4 -23
  749. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbs +5 -15
  750. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbs +5 -21
  751. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbs +4 -23
  752. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbs +4 -23
  753. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +4 -4
  754. data/sig/anthropic/models/beta/message_create_params.rbs +4 -25
  755. data/sig/anthropic/models/beta/messages/batch_create_params.rbs +7 -28
  756. data/sig/anthropic/models/beta/organization/beta_api_key.rbs +2 -7
  757. data/sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs +0 -26
  758. data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +0 -5
  759. data/sig/anthropic/models/beta/organization/spend_limit_list_params.rbs +7 -0
  760. data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs +0 -26
  761. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbs +5 -15
  762. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +5 -15
  763. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +5 -15
  764. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +4 -14
  765. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbs +4 -18
  766. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbs +4 -14
  767. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +5 -15
  768. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +5 -15
  769. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +5 -15
  770. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +5 -15
  771. data/sig/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rbs +4 -22
  772. data/sig/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rbs +4 -22
  773. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +4 -14
  774. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +5 -15
  775. data/sig/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rbs +4 -23
  776. data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +7 -18
  777. data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rbs +4 -23
  778. data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rbs +4 -23
  779. data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbs +5 -15
  780. data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rbs +4 -24
  781. data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rbs +4 -23
  782. data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +5 -15
  783. data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +4 -14
  784. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +4 -14
  785. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +4 -14
  786. data/sig/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbs +5 -15
  787. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +4 -14
  788. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +4 -14
  789. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +4 -14
  790. data/sig/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rbs +7 -31
  791. data/sig/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbs +4 -21
  792. data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rbs +4 -21
  793. data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rbs +4 -21
  794. data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rbs +4 -21
  795. data/sig/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbs +4 -14
  796. data/sig/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rbs +4 -23
  797. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbs +4 -20
  798. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbs +4 -18
  799. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rbs +4 -21
  800. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +4 -14
  801. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rbs +4 -20
  802. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rbs +4 -20
  803. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +4 -14
  804. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbs +4 -14
  805. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbs +4 -18
  806. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbs +4 -18
  807. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +5 -15
  808. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbs +5 -15
  809. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +4 -14
  810. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbs +4 -14
  811. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbs +4 -14
  812. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbs +4 -14
  813. data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbs +4 -14
  814. data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbs +4 -18
  815. data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbs +5 -15
  816. data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbs +4 -14
  817. data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbs +4 -14
  818. data/sig/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rbs +4 -14
  819. data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_block.rbs +4 -24
  820. data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rbs +4 -24
  821. data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rbs +4 -23
  822. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +4 -14
  823. data/sig/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rbs +4 -23
  824. data/sig/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rbs +4 -24
  825. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +5 -15
  826. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +5 -15
  827. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +4 -14
  828. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +5 -15
  829. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbs +5 -15
  830. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rbs +5 -18
  831. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +5 -15
  832. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +4 -14
  833. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbs +5 -15
  834. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbs +5 -15
  835. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +5 -15
  836. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +5 -15
  837. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbs +5 -15
  838. data/sig/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbs +4 -23
  839. data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +4 -14
  840. data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbs +5 -15
  841. data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbs +5 -15
  842. data/sig/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbs +4 -20
  843. data/sig/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbs +4 -20
  844. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbs +5 -15
  845. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbs +5 -15
  846. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbs +5 -15
  847. data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rbs +4 -20
  848. data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbs +4 -18
  849. data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbs +4 -23
  850. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbs +4 -20
  851. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rbs +4 -20
  852. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbs +5 -21
  853. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rbs +4 -20
  854. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rbs +4 -20
  855. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbs +4 -20
  856. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rbs +4 -20
  857. data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbs +5 -21
  858. data/sig/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rbs +4 -20
  859. data/sig/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rbs +4 -20
  860. data/sig/anthropic/models/message_content_param.rbs +14 -0
  861. data/sig/anthropic/models/message_count_tokens_params.rbs +4 -4
  862. data/sig/anthropic/models/message_create_params.rbs +4 -25
  863. data/sig/anthropic/models/message_param.rbs +26 -28
  864. data/sig/anthropic/models/messages/batch_create_params.rbs +7 -28
  865. data/sig/anthropic/models/model_list_params.rbs +0 -9
  866. data/sig/anthropic/models/model_retrieve_params.rbs +1 -13
  867. data/sig/anthropic/models/system_message_param.rbs +32 -0
  868. data/sig/anthropic/models/user_message_param.rbs +22 -0
  869. data/sig/anthropic/models/user_profile.rbs +10 -0
  870. data/sig/anthropic/models/user_profile_enforcement_action.rbs +50 -0
  871. data/sig/anthropic/models/user_profile_enforcement_action_ban.rbs +45 -0
  872. data/sig/anthropic/models/user_profile_enforcement_action_next_step.rbs +13 -0
  873. data/sig/anthropic/models/user_profile_enforcement_action_reason.rbs +24 -0
  874. data/sig/anthropic/models/user_profile_enforcement_action_restriction.rbs +45 -0
  875. data/sig/anthropic/models/user_profile_enforcement_status.rbs +17 -0
  876. data/sig/anthropic/models/user_profile_list_params.rbs +9 -0
  877. data/sig/anthropic/models.rbs +21 -5
  878. data/sig/anthropic/resources/beta/messages.rbs +4 -13
  879. data/sig/anthropic/resources/beta/organization/spend_limits.rbs +1 -0
  880. data/sig/anthropic/resources/beta/sessions/resources.rbs +1 -1
  881. data/sig/anthropic/resources/messages.rbs +4 -13
  882. data/sig/anthropic/resources/models.rbs +0 -2
  883. data/sig/anthropic/resources/user_profiles.rbs +1 -0
  884. metadata +47 -13
  885. data/lib/anthropic/models/completion.rb +0 -67
  886. data/lib/anthropic/models/completion_create_params.rb +0 -159
  887. data/lib/anthropic/resources/completions.rb +0 -149
  888. data/rbi/anthropic/models/completion.rbi +0 -95
  889. data/rbi/anthropic/models/completion_create_params.rbi +0 -236
  890. data/rbi/anthropic/resources/completions.rbi +0 -218
  891. data/sig/anthropic/models/completion.rbs +0 -40
  892. data/sig/anthropic/models/completion_create_params.rbs +0 -87
  893. data/sig/anthropic/resources/completions.rbs +0 -35
@@ -162,13 +162,12 @@ module Anthropic
162
162
  #
163
163
  # Note that if you want to include a
164
164
  # [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
165
- # you can use the top-level `system` parameter — there is no `"system"` role for
166
- # input messages in the Messages API.
165
+ # you can use the top-level `system` parameter.
167
166
  #
168
167
  # There is a limit of 100,000 messages in a single request.
169
168
  #
170
- # @return [Array<Anthropic::Models::MessageParam>]
171
- required :messages, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::MessageParam] }
169
+ # @return [Array<Anthropic::Models::UserMessageParam, Anthropic::Models::AssistantMessageParam, Anthropic::Models::SystemMessageParam>]
170
+ required :messages, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::MessageParam] }
172
171
 
173
172
  # @!attribute model
174
173
  # The model that will complete your prompt.
@@ -285,23 +284,6 @@ module Anthropic
285
284
  union: -> { Anthropic::Messages::BatchCreateParams::Request::Params::System },
286
285
  api_name: :system
287
286
 
288
- # @!attribute temperature
289
- # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting
290
- # temperature. A value of 1.0 will be accepted for backwards compatibility, all
291
- # other values will be rejected with a 400 error.
292
- #
293
- # Amount of randomness injected into the response.
294
- #
295
- # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
296
- # for analytical / multiple choice, and closer to `1.0` for creative and
297
- # generative tasks.
298
- #
299
- # Note that even with `temperature` of `0.0`, the results will not be fully
300
- # deterministic.
301
- #
302
- # @return [Float, nil]
303
- optional :temperature, Float
304
-
305
287
  # @!attribute thinking
306
288
  # Configuration for Claude's thinking.
307
289
  #
@@ -406,37 +388,7 @@ module Anthropic
406
388
  # @return [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::CodeExecutionTool20250522, Anthropic::Models::CodeExecutionTool20250825, Anthropic::Models::CodeExecutionTool20260120, Anthropic::Models::CodeExecutionTool20260521, Anthropic::Models::BrowserToolset20260801, Anthropic::Models::MemoryTool20250818, Anthropic::Models::ComputerToolset20260801, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305, Anthropic::Models::WebFetchTool20250910, Anthropic::Models::WebSearchTool20260209, Anthropic::Models::WebFetchTool20260209, Anthropic::Models::WebFetchTool20260309, Anthropic::Models::WebSearchTool20260318, Anthropic::Models::WebFetchTool20260318, Anthropic::Models::ToolSearchToolBm25_20251119, Anthropic::Models::ToolSearchToolRegex20251119>, nil]
407
389
  optional :tools, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::ToolUnion] }
408
390
 
409
- # @!attribute top_k
410
- # @deprecated Deprecated. Models released after Claude Opus 4.6 do not accept top_k; any value
411
- # will be rejected with a 400 error.
412
- #
413
- # Only sample from the top K options for each subsequent token.
414
- #
415
- # Used to remove "long tail" low probability responses.
416
- # [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
417
- #
418
- # Recommended for advanced use cases only.
419
- #
420
- # @return [Integer, nil]
421
- optional :top_k, Integer
422
-
423
- # @!attribute top_p
424
- # @deprecated Deprecated. Models released after Claude Opus 4.6 do not support setting top_p.
425
- # A value >= 0.99 will be accepted for backwards compatibility, all other values
426
- # will be rejected with a 400 error.
427
- #
428
- # Use nucleus sampling.
429
- #
430
- # In nucleus sampling, we compute the cumulative distribution over all the options
431
- # for each subsequent token in decreasing probability order and cut it off once it
432
- # reaches a particular probability specified by `top_p`.
433
- #
434
- # Recommended for advanced use cases only.
435
- #
436
- # @return [Float, nil]
437
- optional :top_p, Float
438
-
439
- # @!method initialize(max_tokens:, messages:, model:, cache_control: nil, container: nil, diagnostics: nil, inference_geo: nil, metadata: nil, output_config: nil, service_tier: nil, speed: nil, stop_sequences: nil, stream: nil, system_: nil, temperature: nil, thinking: nil, tool_choice: nil, tools: nil, top_k: nil, top_p: nil)
391
+ # @!method initialize(max_tokens:, messages:, model:, cache_control: nil, container: nil, diagnostics: nil, inference_geo: nil, metadata: nil, output_config: nil, service_tier: nil, speed: nil, stop_sequences: nil, stream: nil, system_: nil, thinking: nil, tool_choice: nil, tools: nil)
440
392
  # Messages API creation parameters for the individual request.
441
393
  #
442
394
  # See the
@@ -449,7 +401,7 @@ module Anthropic
449
401
  #
450
402
  # @param max_tokens [Integer] The maximum number of tokens to generate before stopping.
451
403
  #
452
- # @param messages [Array<Anthropic::Models::MessageParam>] Input messages.
404
+ # @param messages [Array<Anthropic::Models::UserMessageParam, Anthropic::Models::AssistantMessageParam, Anthropic::Models::SystemMessageParam>] Input messages.
453
405
  #
454
406
  # @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
455
407
  #
@@ -475,17 +427,11 @@ module Anthropic
475
427
  #
476
428
  # @param system_ [String, Array<Anthropic::Models::TextBlockParam>] System prompt.
477
429
  #
478
- # @param temperature [Float] Amount of randomness injected into the response.
479
- #
480
430
  # @param thinking [Anthropic::Models::ThinkingConfigEnabled, Anthropic::Models::ThinkingConfigDisabled, Anthropic::Models::ThinkingConfigBetweenTools, Anthropic::Models::ThinkingConfigAdaptive] Configuration for Claude's thinking.
481
431
  #
482
432
  # @param tool_choice [Anthropic::Models::ToolChoiceAuto, Anthropic::Models::ToolChoiceAny, Anthropic::Models::ToolChoiceTool, Anthropic::Models::ToolChoiceNone] How the model should use the provided tools. The model can use a specific tool,
483
433
  #
484
434
  # @param tools [Array<Anthropic::Models::Tool, Anthropic::Models::ToolBash20250124, Anthropic::Models::CodeExecutionTool20250522, Anthropic::Models::CodeExecutionTool20250825, Anthropic::Models::CodeExecutionTool20260120, Anthropic::Models::CodeExecutionTool20260521, Anthropic::Models::BrowserToolset20260801, Anthropic::Models::MemoryTool20250818, Anthropic::Models::ComputerToolset20260801, Anthropic::Models::ToolTextEditor20250124, Anthropic::Models::ToolTextEditor20250429, Anthropic::Models::ToolTextEditor20250728, Anthropic::Models::WebSearchTool20250305, Anthropic::Models::WebFetchTool20250910, Anthropic::Models::WebSearchTool20260209, Anthropic::Models::WebFetchTool20260209, Anthropic::Models::WebFetchTool20260309, Anthropic::Models::WebSearchTool20260318, Anthropic::Models::WebFetchTool20260318, Anthropic::Models::ToolSearchToolBm25_20251119, Anthropic::Models::ToolSearchToolRegex20251119>] Definitions of tools that the model may use.
485
- #
486
- # @param top_k [Integer] Only sample from the top K options for each subsequent token.
487
- #
488
- # @param top_p [Float] Use nucleus sampling.
489
435
 
490
436
  # Determines whether to use priority capacity (if available) or standard capacity
491
437
  # for this request.
@@ -39,16 +39,6 @@ module Anthropic
39
39
  # @return [Integer, nil]
40
40
  optional :limit, Integer
41
41
 
42
- # @!attribute betas
43
- # @deprecated Deprecated. This parameter will be removed from this method in a future release.
44
- # To use beta features, call the beta models methods (`client.beta.models`)
45
- # instead.
46
- #
47
- # Optional header to specify the beta version(s) you want to use.
48
- #
49
- # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
50
- optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
51
-
52
42
  # @!attribute workspace_id
53
43
  # Optional header to select the Workspace for this request. The value is a
54
44
  # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
@@ -60,7 +50,7 @@ module Anthropic
60
50
  # @return [String, nil]
61
51
  optional :workspace_id, String
62
52
 
63
- # @!method initialize(after_id: nil, before_id: nil, lifecycle: nil, limit: nil, betas: nil, workspace_id: nil, request_options: {})
53
+ # @!method initialize(after_id: nil, before_id: nil, lifecycle: nil, limit: nil, workspace_id: nil, request_options: {})
64
54
  # Some parameter documentations has been truncated, see
65
55
  # {Anthropic::Models::ModelListParams} for more details.
66
56
  #
@@ -72,8 +62,6 @@ module Anthropic
72
62
  #
73
63
  # @param limit [Integer] Number of items to return per page.
74
64
  #
75
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
76
- #
77
65
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
78
66
  #
79
67
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
@@ -13,16 +13,6 @@ module Anthropic
13
13
  # @return [String]
14
14
  required :model_id, String
15
15
 
16
- # @!attribute betas
17
- # @deprecated Deprecated. This parameter will be removed from this method in a future release.
18
- # To use beta features, call the beta models methods (`client.beta.models`)
19
- # instead.
20
- #
21
- # Optional header to specify the beta version(s) you want to use.
22
- #
23
- # @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
24
- optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
25
-
26
16
  # @!attribute workspace_id
27
17
  # Optional header to select the Workspace for this request. The value is a
28
18
  # Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
@@ -34,14 +24,12 @@ module Anthropic
34
24
  # @return [String, nil]
35
25
  optional :workspace_id, String
36
26
 
37
- # @!method initialize(model_id:, betas: nil, workspace_id: nil, request_options: {})
27
+ # @!method initialize(model_id:, workspace_id: nil, request_options: {})
38
28
  # Some parameter documentations has been truncated, see
39
29
  # {Anthropic::Models::ModelRetrieveParams} for more details.
40
30
  #
41
31
  # @param model_id [String] Model identifier or alias.
42
32
  #
43
- # @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
44
- #
45
33
  # @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
46
34
  #
47
35
  # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
@@ -189,7 +189,7 @@ module Anthropic
189
189
  #
190
190
  # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
191
191
  #
192
- # @option args [String] :workspace_id ID of the Workspace the API key belongs to. Unlike the deprecated top-level `wor
192
+ # @option args [String] :workspace_id ID of the Workspace the API key belongs to, including when it is the organizatio
193
193
  #
194
194
  # @raise [ArgumentError]
195
195
  # @return [Anthropic::Models::Organization::APIKeyOrganizationScope, Anthropic::Models::Organization::APIKeyWorkspaceScope]
@@ -11,9 +11,8 @@ module Anthropic
11
11
  required :type, const: :workspace
12
12
 
13
13
  # @!attribute workspace_id
14
- # ID of the Workspace the API key belongs to. Unlike the deprecated top-level
15
- # `workspace_id`, this is the Workspace's real ID even for the organization's
16
- # default Workspace.
14
+ # ID of the Workspace the API key belongs to, including when it is the
15
+ # organization's default Workspace.
17
16
  #
18
17
  # @return [String]
19
18
  required :workspace_id, String
@@ -22,7 +21,7 @@ module Anthropic
22
21
  # Some parameter documentations has been truncated, see
23
22
  # {Anthropic::Models::Organization::APIKeyWorkspaceScope} for more details.
24
23
  #
25
- # @param workspace_id [String] ID of the Workspace the API key belongs to. Unlike the deprecated top-level `wor
24
+ # @param workspace_id [String] ID of the Workspace the API key belongs to, including when it is the organizatio
26
25
  #
27
26
  # @param type [Symbol, :workspace] Scope type. Always `"workspace"`: the API key belongs to one Workspace.
28
27
  end
@@ -14,8 +14,7 @@ module Anthropic
14
14
  required :id, String
15
15
 
16
16
  # @!attribute group
17
- # The rate-limit group this entry's limits apply to. Its `type` equals
18
- # `group_type`.
17
+ # The rate-limit group this entry's limits apply to.
19
18
  #
20
19
  # @return [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup]
21
20
  required :group, union: -> { Anthropic::Organization::OrganizationRateLimit::Group }
@@ -29,7 +28,7 @@ module Anthropic
29
28
 
30
29
  # @!attribute models
31
30
  # Model names this entry's limits apply to, including aliases. `null` when
32
- # `group_type` is not `"model_group"`.
31
+ # `group.type` is not `"model_group"`.
33
32
  #
34
33
  # @return [Array<String>, nil]
35
34
  required :models, Anthropic::Internal::Type::ArrayOf[String], nil?: true
@@ -46,17 +45,15 @@ module Anthropic
46
45
  #
47
46
  # @param id [String] Identifier of this rate-limit entry. It is stable within the organization and di
48
47
  #
49
- # @param group [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup] The rate-limit group this entry's limits apply to. Its `type` equals `group_type
48
+ # @param group [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup] The rate-limit group this entry's limits apply to.
50
49
  #
51
50
  # @param limits [Array<Anthropic::Models::Organization::OrganizationRateLimitValue>] The limiter values that apply to this group.
52
51
  #
53
- # @param models [Array<String>, nil] Model names this entry's limits apply to, including aliases. `null` when
54
- # `group\_
52
+ # @param models [Array<String>, nil] Model names this entry's limits apply to, including aliases. `null` when `group.
55
53
  #
56
54
  # @param type [Symbol, :rate_limit] Object type. Always `rate_limit` for organization rate-limit entries.
57
55
 
58
- # The rate-limit group this entry's limits apply to. Its `type` equals
59
- # `group_type`.
56
+ # The rate-limit group this entry's limits apply to.
60
57
  #
61
58
  # @see Anthropic::Models::Organization::OrganizationRateLimit#group
62
59
  module Group
@@ -7,8 +7,7 @@ module Anthropic
7
7
  # @see Anthropic::Resources::Organization::Workspaces::RateLimits#update
8
8
  class WorkspaceRateLimit < Anthropic::Internal::Type::BaseModel
9
9
  # @!attribute group
10
- # The rate-limit group this entry's limits apply to. Its `type` equals
11
- # `group_type`.
10
+ # The rate-limit group this entry's limits apply to.
12
11
  #
13
12
  # @return [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup]
14
13
  required :group, union: -> { Anthropic::Organization::Workspaces::WorkspaceRateLimit::Group }
@@ -25,7 +24,7 @@ module Anthropic
25
24
 
26
25
  # @!attribute models
27
26
  # Model names this entry's limits apply to, including aliases. `null` when
28
- # `group_type` is not `"model_group"`.
27
+ # `group.type` is not `"model_group"`.
29
28
  #
30
29
  # @return [Array<String>, nil]
31
30
  required :models, Anthropic::Internal::Type::ArrayOf[String], nil?: true
@@ -53,12 +52,11 @@ module Anthropic
53
52
  # {Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit} for more
54
53
  # details.
55
54
  #
56
- # @param group [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup] The rate-limit group this entry's limits apply to. Its `type` equals `group_type
55
+ # @param group [Anthropic::Models::Organization::OrganizationRateLimitModelGroup, Anthropic::Models::Organization::OrganizationRateLimitBatchGroup, Anthropic::Models::Organization::OrganizationRateLimitTokenCountGroup, Anthropic::Models::Organization::OrganizationRateLimitFilesGroup, Anthropic::Models::Organization::OrganizationRateLimitSkillsGroup, Anthropic::Models::Organization::OrganizationRateLimitWebSearchGroup] The rate-limit group this entry's limits apply to.
57
56
  #
58
57
  # @param limits [Array<Anthropic::Models::Organization::Workspaces::WorkspaceRateLimitValue>] The workspace's limiter values for this group. By default only the limiter types
59
58
  #
60
- # @param models [Array<String>, nil] Model names this entry's limits apply to, including aliases. `null` when
61
- # `group\_
59
+ # @param models [Array<String>, nil] Model names this entry's limits apply to, including aliases. `null` when `group.
62
60
  #
63
61
  # @param rate_limit_id [String] The `id` of the organization's RateLimit entry this entry applies to.
64
62
  #
@@ -66,8 +64,7 @@ module Anthropic
66
64
  #
67
65
  # @param type [Symbol, :workspace_rate_limit] Object type. Always `workspace_rate_limit` for workspace rate-limit entries.
68
66
 
69
- # The rate-limit group this entry's limits apply to. Its `type` equals
70
- # `group_type`.
67
+ # The rate-limit group this entry's limits apply to.
71
68
  #
72
69
  # @see Anthropic::Models::Organization::Workspaces::WorkspaceRateLimit#group
73
70
  module Group
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class SystemMessageParam < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute content
7
+ #
8
+ # @return [String, Array<Anthropic::Models::TextBlockParam>]
9
+ required :content, union: -> { Anthropic::SystemMessageParam::Content }
10
+
11
+ # @!attribute role
12
+ #
13
+ # @return [Symbol, :system]
14
+ required :role, const: :system
15
+
16
+ # @!method initialize(content:, role: :system)
17
+ # @param content [String, Array<Anthropic::Models::TextBlockParam>]
18
+ # @param role [Symbol, :system]
19
+
20
+ # @see Anthropic::Models::SystemMessageParam#content
21
+ module Content
22
+ extend Anthropic::Internal::Type::Union
23
+
24
+ variant String
25
+
26
+ variant -> { Anthropic::Models::SystemMessageParam::Content::TextBlockParamArray }
27
+
28
+ # @!method self.variants
29
+ # @return [Array(String, Array<Anthropic::Models::TextBlockParam>)]
30
+
31
+ # @type [Anthropic::Internal::Type::Converter]
32
+ TextBlockParamArray = Anthropic::Internal::Type::ArrayOf[-> { Anthropic::TextBlockParam }]
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class UserMessageParam < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute content
7
+ #
8
+ # @return [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam>]
9
+ required :content, union: -> { Anthropic::MessageContentParam }
10
+
11
+ # @!attribute role
12
+ #
13
+ # @return [Symbol, :user]
14
+ required :role, const: :user
15
+
16
+ # @!method initialize(content:, role: :user)
17
+ # @param content [String, Array<Anthropic::Models::TextBlockParam, Anthropic::Models::ImageBlockParam, Anthropic::Models::DocumentBlockParam, Anthropic::Models::SearchResultBlockParam, Anthropic::Models::ThinkingBlockParam, Anthropic::Models::RedactedThinkingBlockParam, Anthropic::Models::ToolUseBlockParam, Anthropic::Models::ToolResultBlockParam, Anthropic::Models::ServerToolUseBlockParam, Anthropic::Models::WebSearchToolResultBlockParam, Anthropic::Models::WebFetchToolResultBlockParam, Anthropic::Models::CodeExecutionToolResultBlockParam, Anthropic::Models::BashCodeExecutionToolResultBlockParam, Anthropic::Models::TextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::ToolSearchToolResultBlockParam, Anthropic::Models::ContainerUploadBlockParam>]
18
+ # @param role [Symbol, :user]
19
+ end
20
+ end
21
+ end
@@ -23,6 +23,27 @@ module Anthropic
23
23
  # @return [Time]
24
24
  required :created_at, Time
25
25
 
26
+ # @!attribute enforcement_actions
27
+ # The enforcement actions open on this profile; empty when none is open. Absent
28
+ # under the `user-profiles-2026-09-04` and earlier beta headers.
29
+ #
30
+ # @return [Array<Anthropic::Models::UserProfileEnforcementActionRestriction, Anthropic::Models::UserProfileEnforcementActionBan>]
31
+ required :enforcement_actions,
32
+ -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::UserProfileEnforcementAction] }
33
+
34
+ # @!attribute enforcement_status
35
+ # Anthropic's enforcement status of this profile, from its open enforcement
36
+ # actions and any identity check under review, by the first rule that applies:
37
+ # `banned` while any open action is a `ban`; `pending` while a restriction that an
38
+ # identity check can clear is open, the end user has submitted that check,
39
+ # Anthropic's review of it has not ended, and no open action's `reason` is
40
+ # `account_compromise`; `restricted` while any action is open; `unrestricted`
41
+ # while none is. Absent under the `user-profiles-2026-09-04` and earlier beta
42
+ # headers.
43
+ #
44
+ # @return [Symbol, Anthropic::Models::UserProfileEnforcementStatus]
45
+ required :enforcement_status, enum: -> { Anthropic::UserProfileEnforcementStatus }
46
+
26
47
  # @!attribute external_user_details
27
48
  # Details about the entity this profile represents, as the platform states them;
28
49
  # not verified by Anthropic. Every field is present, `null` until the platform
@@ -74,7 +95,7 @@ module Anthropic
74
95
  # @return [Time]
75
96
  required :updated_at, Time
76
97
 
77
- # @!method initialize(id:, access_type:, created_at:, external_user_details:, metadata:, name:, programs:, updated_at:, type: :user_profile)
98
+ # @!method initialize(id:, access_type:, created_at:, enforcement_actions:, enforcement_status:, external_user_details:, metadata:, name:, programs:, updated_at:, type: :user_profile)
78
99
  # A record of an entity that the platform serves through the API, such as an
79
100
  # end-user of the platform's product or a company that the platform resells Claude
80
101
  # access to.
@@ -92,6 +113,10 @@ module Anthropic
92
113
  #
93
114
  # @param created_at [Time] When this user profile was created, in RFC 3339 format.
94
115
  #
116
+ # @param enforcement_actions [Array<Anthropic::Models::UserProfileEnforcementActionRestriction, Anthropic::Models::UserProfileEnforcementActionBan>] The enforcement actions open on this profile; empty when none is open. Absent un
117
+ #
118
+ # @param enforcement_status [Symbol, Anthropic::Models::UserProfileEnforcementStatus] Anthropic's enforcement status of this profile, from its open enforcement action
119
+ #
95
120
  # @param external_user_details [Anthropic::Models::UserProfileExternalUserDetails] Details about the entity this profile represents, as the platform states them; n
96
121
  #
97
122
  # @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up t
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # A limit Anthropic has placed on the entity this profile represents and not yet
6
+ # resolved, discriminated by `type`: `restriction` or `ban`. More types may be
7
+ # added; read a `type` you do not recognize as `restriction`.
8
+ module UserProfileEnforcementAction
9
+ extend Anthropic::Internal::Type::Union
10
+
11
+ discriminator :type
12
+
13
+ # Anthropic has limited how it serves the end user until the action is resolved. The end user may still be served in part.
14
+ variant :restriction, -> { Anthropic::UserProfileEnforcementActionRestriction }
15
+
16
+ # Anthropic has stopped serving the end user where the ban applies and does not plan to serve them there again.
17
+ variant :ban, -> { Anthropic::UserProfileEnforcementActionBan }
18
+
19
+ module Type
20
+ extend Anthropic::Internal::Type::Enum
21
+
22
+ RESTRICTION = :restriction
23
+ BAN = :ban
24
+
25
+ # @!method self.values
26
+ # @return [Array<Symbol>]
27
+ end
28
+
29
+ # @!method self.variants
30
+ # @return [Array(Anthropic::Models::UserProfileEnforcementActionRestriction, Anthropic::Models::UserProfileEnforcementActionBan)]
31
+
32
+ # Creates a new instance of the variant class whose `type` matches the given
33
+ # value, passing the remaining arguments to its constructor.
34
+ #
35
+ # Some parameter documentations has been truncated, see
36
+ # {Anthropic::Models::UserProfileEnforcementAction} for more details.
37
+ #
38
+ # @param type [Symbol, Anthropic::Models::UserProfileEnforcementAction::Type, String]
39
+ #
40
+ # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
41
+ #
42
+ # @option args [String] :id The action's ID (`enac_...`), stable while the action is open.
43
+ #
44
+ # @option args [Symbol, Anthropic::Models::UserProfileEnforcementActionNextStep, nil] :action The next step on the action: `verify` or `null`. `verify`: the end user can clea
45
+ #
46
+ # @option args [Time, nil] :expires_at When the action ends on its own, in RFC 3339 format; it stops showing once this
47
+ #
48
+ # @option args [Time] :opened_at When Anthropic opened the action, in RFC 3339 format.
49
+ #
50
+ # @option args [Symbol, Anthropic::Models::UserProfileEnforcementActionReason] :reason Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`, `high_ha
51
+ #
52
+ # @raise [ArgumentError]
53
+ # @return [Anthropic::Models::UserProfileEnforcementActionRestriction, Anthropic::Models::UserProfileEnforcementActionBan]
54
+ def self.new(type:, **args)
55
+ case type.to_sym
56
+ when :restriction
57
+ Anthropic::UserProfileEnforcementActionRestriction.new(**args)
58
+ when :ban
59
+ Anthropic::UserProfileEnforcementActionBan.new(**args)
60
+ else
61
+ raise ArgumentError, "unknown type: #{type}"
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class UserProfileEnforcementActionBan < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The action's ID (`enac_...`), stable while the action is open.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute action
13
+ # Always `null`: the end user cannot clear a ban.
14
+ #
15
+ # @return [Symbol, Anthropic::Models::UserProfileEnforcementActionNextStep, nil]
16
+ required :action, enum: -> { Anthropic::UserProfileEnforcementActionNextStep }, nil?: true
17
+
18
+ # @!attribute expires_at
19
+ # Always `null`: a ban has no end date.
20
+ #
21
+ # @return [Time, nil]
22
+ required :expires_at, Time, nil?: true
23
+
24
+ # @!attribute opened_at
25
+ # When Anthropic opened the action, in RFC 3339 format.
26
+ #
27
+ # @return [Time]
28
+ required :opened_at, Time
29
+
30
+ # @!attribute reason
31
+ # Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`,
32
+ # `high_harm`, `usage_policy_violation`, `account_compromise` or `unspecified`.
33
+ #
34
+ # @return [Symbol, Anthropic::Models::UserProfileEnforcementActionReason]
35
+ required :reason, enum: -> { Anthropic::UserProfileEnforcementActionReason }
36
+
37
+ # @!attribute type
38
+ #
39
+ # @return [Symbol, :ban]
40
+ required :type, const: :ban
41
+
42
+ # @!method initialize(id:, action:, expires_at:, opened_at:, reason:, type: :ban)
43
+ # Anthropic has stopped serving the end user where the ban applies and does not
44
+ # plan to serve them there again.
45
+ #
46
+ # Some parameter documentations has been truncated, see
47
+ # {Anthropic::Models::UserProfileEnforcementActionBan} for more details.
48
+ #
49
+ # @param id [String] The action's ID (`enac_...`), stable while the action is open.
50
+ #
51
+ # @param action [Symbol, Anthropic::Models::UserProfileEnforcementActionNextStep, nil] Always `null`: the end user cannot clear a ban.
52
+ #
53
+ # @param expires_at [Time, nil] Always `null`: a ban has no end date.
54
+ #
55
+ # @param opened_at [Time] When Anthropic opened the action, in RFC 3339 format.
56
+ #
57
+ # @param reason [Symbol, Anthropic::Models::UserProfileEnforcementActionReason] Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`, `high_ha
58
+ #
59
+ # @param type [Symbol, :ban]
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # The next step on this enforcement action: `verify` means the end user can clear
6
+ # the action by passing an identity check. More values may be added; read a value
7
+ # you do not recognize as `null`.
8
+ module UserProfileEnforcementActionNextStep
9
+ extend Anthropic::Internal::Type::Enum
10
+
11
+ VERIFY = :verify
12
+
13
+ # @!method self.values
14
+ # @return [Array<Symbol>]
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ # Why Anthropic placed this enforcement action: `unsupported_region`,
6
+ # `fraud_or_abuse`, `high_harm`, `usage_policy_violation`, `account_compromise` or
7
+ # `unspecified`. More values may be added; read a value you do not recognize as
8
+ # `unspecified`.
9
+ module UserProfileEnforcementActionReason
10
+ extend Anthropic::Internal::Type::Enum
11
+
12
+ UNSUPPORTED_REGION = :unsupported_region
13
+ FRAUD_OR_ABUSE = :fraud_or_abuse
14
+ HIGH_HARM = :high_harm
15
+ USAGE_POLICY_VIOLATION = :usage_policy_violation
16
+ ACCOUNT_COMPROMISE = :account_compromise
17
+ UNSPECIFIED = :unspecified
18
+
19
+ # @!method self.values
20
+ # @return [Array<Symbol>]
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ class UserProfileEnforcementActionRestriction < Anthropic::Internal::Type::BaseModel
6
+ # @!attribute id
7
+ # The action's ID (`enac_...`), stable while the action is open.
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute action
13
+ # The next step on the action: `verify` or `null`. `verify`: the end user can
14
+ # clear it now by passing an identity check. `null`: there is nothing the end user
15
+ # can do now to clear it, including while Anthropic reviews an identity check the
16
+ # end user submitted.
17
+ #
18
+ # @return [Symbol, Anthropic::Models::UserProfileEnforcementActionNextStep, nil]
19
+ required :action, enum: -> { Anthropic::UserProfileEnforcementActionNextStep }, nil?: true
20
+
21
+ # @!attribute expires_at
22
+ # When the action ends on its own, in RFC 3339 format; it stops showing once this
23
+ # time has passed. `null` when it has no end date, and always `null` when `reason`
24
+ # is `account_compromise`.
25
+ #
26
+ # @return [Time, nil]
27
+ required :expires_at, Time, nil?: true
28
+
29
+ # @!attribute opened_at
30
+ # When Anthropic opened the action, in RFC 3339 format.
31
+ #
32
+ # @return [Time]
33
+ required :opened_at, Time
34
+
35
+ # @!attribute reason
36
+ # Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`,
37
+ # `high_harm`, `usage_policy_violation`, `account_compromise` or `unspecified`.
38
+ #
39
+ # @return [Symbol, Anthropic::Models::UserProfileEnforcementActionReason]
40
+ required :reason, enum: -> { Anthropic::UserProfileEnforcementActionReason }
41
+
42
+ # @!attribute type
43
+ #
44
+ # @return [Symbol, :restriction]
45
+ required :type, const: :restriction
46
+
47
+ # @!method initialize(id:, action:, expires_at:, opened_at:, reason:, type: :restriction)
48
+ # Anthropic has limited how it serves the end user until the action is resolved.
49
+ # The end user may still be served in part.
50
+ #
51
+ # Some parameter documentations has been truncated, see
52
+ # {Anthropic::Models::UserProfileEnforcementActionRestriction} for more details.
53
+ #
54
+ # @param id [String] The action's ID (`enac_...`), stable while the action is open.
55
+ #
56
+ # @param action [Symbol, Anthropic::Models::UserProfileEnforcementActionNextStep, nil] The next step on the action: `verify` or `null`. `verify`: the end user can clea
57
+ #
58
+ # @param expires_at [Time, nil] When the action ends on its own, in RFC 3339 format; it stops showing once this
59
+ #
60
+ # @param opened_at [Time] When Anthropic opened the action, in RFC 3339 format.
61
+ #
62
+ # @param reason [Symbol, Anthropic::Models::UserProfileEnforcementActionReason] Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`, `high_ha
63
+ #
64
+ # @param type [Symbol, :restriction]
65
+ end
66
+ end
67
+ end