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
@@ -0,0 +1,106 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ class UserProfileEnforcementActionRestriction < Anthropic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Anthropic::UserProfileEnforcementActionRestriction,
10
+ Anthropic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The action's ID (`enac_...`), stable while the action is open.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The next step on the action: `verify` or `null`. `verify`: the end user can
19
+ # clear it now by passing an identity check. `null`: there is nothing the end user
20
+ # can do now to clear it, including while Anthropic reviews an identity check the
21
+ # end user submitted.
22
+ sig do
23
+ returns(
24
+ T.nilable(
25
+ Anthropic::UserProfileEnforcementActionNextStep::TaggedSymbol
26
+ )
27
+ )
28
+ end
29
+ attr_accessor :action
30
+
31
+ # When the action ends on its own, in RFC 3339 format; it stops showing once this
32
+ # time has passed. `null` when it has no end date, and always `null` when `reason`
33
+ # is `account_compromise`.
34
+ sig { returns(T.nilable(Time)) }
35
+ attr_accessor :expires_at
36
+
37
+ # When Anthropic opened the action, in RFC 3339 format.
38
+ sig { returns(Time) }
39
+ attr_accessor :opened_at
40
+
41
+ # Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`,
42
+ # `high_harm`, `usage_policy_violation`, `account_compromise` or `unspecified`.
43
+ sig do
44
+ returns(Anthropic::UserProfileEnforcementActionReason::TaggedSymbol)
45
+ end
46
+ attr_accessor :reason
47
+
48
+ sig { returns(Symbol) }
49
+ attr_accessor :type
50
+
51
+ # Anthropic has limited how it serves the end user until the action is resolved.
52
+ # The end user may still be served in part.
53
+ sig do
54
+ params(
55
+ id: String,
56
+ action:
57
+ T.nilable(
58
+ Anthropic::UserProfileEnforcementActionNextStep::OrSymbol
59
+ ),
60
+ expires_at: T.nilable(Time),
61
+ opened_at: Time,
62
+ reason: Anthropic::UserProfileEnforcementActionReason::OrSymbol,
63
+ type: Symbol
64
+ ).returns(T.attached_class)
65
+ end
66
+ def self.new(
67
+ # The action's ID (`enac_...`), stable while the action is open.
68
+ id:,
69
+ # The next step on the action: `verify` or `null`. `verify`: the end user can
70
+ # clear it now by passing an identity check. `null`: there is nothing the end user
71
+ # can do now to clear it, including while Anthropic reviews an identity check the
72
+ # end user submitted.
73
+ action:,
74
+ # When the action ends on its own, in RFC 3339 format; it stops showing once this
75
+ # time has passed. `null` when it has no end date, and always `null` when `reason`
76
+ # is `account_compromise`.
77
+ expires_at:,
78
+ # When Anthropic opened the action, in RFC 3339 format.
79
+ opened_at:,
80
+ # Why Anthropic placed the limit: `unsupported_region`, `fraud_or_abuse`,
81
+ # `high_harm`, `usage_policy_violation`, `account_compromise` or `unspecified`.
82
+ reason:,
83
+ type: :restriction
84
+ )
85
+ end
86
+
87
+ sig do
88
+ override.returns(
89
+ {
90
+ id: String,
91
+ action:
92
+ T.nilable(
93
+ Anthropic::UserProfileEnforcementActionNextStep::TaggedSymbol
94
+ ),
95
+ expires_at: T.nilable(Time),
96
+ opened_at: Time,
97
+ reason: Anthropic::UserProfileEnforcementActionReason::TaggedSymbol,
98
+ type: Symbol
99
+ }
100
+ )
101
+ end
102
+ def to_hash
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,39 @@
1
+ # typed: strong
2
+
3
+ module Anthropic
4
+ module Models
5
+ # Anthropic's enforcement status of this profile: `unrestricted`, `pending`,
6
+ # `restricted` or `banned`. More values may be added; read a value you do not
7
+ # recognize as `restricted`.
8
+ module UserProfileEnforcementStatus
9
+ extend Anthropic::Internal::Type::Enum
10
+
11
+ TaggedSymbol =
12
+ T.type_alias { T.all(Symbol, Anthropic::UserProfileEnforcementStatus) }
13
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
14
+
15
+ UNRESTRICTED =
16
+ T.let(
17
+ :unrestricted,
18
+ Anthropic::UserProfileEnforcementStatus::TaggedSymbol
19
+ )
20
+ PENDING =
21
+ T.let(:pending, Anthropic::UserProfileEnforcementStatus::TaggedSymbol)
22
+ RESTRICTED =
23
+ T.let(
24
+ :restricted,
25
+ Anthropic::UserProfileEnforcementStatus::TaggedSymbol
26
+ )
27
+ BANNED =
28
+ T.let(:banned, Anthropic::UserProfileEnforcementStatus::TaggedSymbol)
29
+
30
+ sig do
31
+ override.returns(
32
+ T::Array[Anthropic::UserProfileEnforcementStatus::TaggedSymbol]
33
+ )
34
+ end
35
+ def self.values
36
+ end
37
+ end
38
+ end
39
+ end
@@ -11,6 +11,29 @@ module Anthropic
11
11
  T.any(Anthropic::UserProfileListParams, Anthropic::Internal::AnyHash)
12
12
  end
13
13
 
14
+ # Return only the user profiles whose `enforcement_status` is one of these values:
15
+ # `unrestricted`, `pending`, `restricted` or `banned`. Repeat the parameter to
16
+ # match any of several. With it set, a page may hold fewer than `limit` profiles,
17
+ # or none, and still carry a `next_page`: the service examines a bounded number of
18
+ # profiles per request, and only a null `next_page` means the listing is complete.
19
+ # Rejected with `invalid_request_error` under the `user-profiles-2026-09-04` and
20
+ # earlier beta headers. Fails with `overloaded_error` when a profile's enforcement
21
+ # actions cannot be read for the moment.
22
+ sig do
23
+ returns(
24
+ T.nilable(T::Array[Anthropic::UserProfileEnforcementStatus::OrSymbol])
25
+ )
26
+ end
27
+ attr_reader :enforcement_status
28
+
29
+ sig do
30
+ params(
31
+ enforcement_status:
32
+ T::Array[Anthropic::UserProfileEnforcementStatus::OrSymbol]
33
+ ).void
34
+ end
35
+ attr_writer :enforcement_status
36
+
14
37
  # The maximum number of user profiles to return, from 1 to 100. Defaults to 20.
15
38
  sig { returns(T.nilable(Integer)) }
16
39
  attr_reader :limit
@@ -58,6 +81,8 @@ module Anthropic
58
81
 
59
82
  sig do
60
83
  params(
84
+ enforcement_status:
85
+ T::Array[Anthropic::UserProfileEnforcementStatus::OrSymbol],
61
86
  limit: Integer,
62
87
  order: Anthropic::UserProfileListOrder::OrSymbol,
63
88
  order_by: Anthropic::UserProfileListOrderBy::OrSymbol,
@@ -67,6 +92,15 @@ module Anthropic
67
92
  ).returns(T.attached_class)
68
93
  end
69
94
  def self.new(
95
+ # Return only the user profiles whose `enforcement_status` is one of these values:
96
+ # `unrestricted`, `pending`, `restricted` or `banned`. Repeat the parameter to
97
+ # match any of several. With it set, a page may hold fewer than `limit` profiles,
98
+ # or none, and still carry a `next_page`: the service examines a bounded number of
99
+ # profiles per request, and only a null `next_page` means the listing is complete.
100
+ # Rejected with `invalid_request_error` under the `user-profiles-2026-09-04` and
101
+ # earlier beta headers. Fails with `overloaded_error` when a profile's enforcement
102
+ # actions cannot be read for the moment.
103
+ enforcement_status: nil,
70
104
  # The maximum number of user profiles to return, from 1 to 100. Defaults to 20.
71
105
  limit: nil,
72
106
  # The sort direction, applied to the field that `order_by` selects. Defaults to
@@ -94,6 +128,8 @@ module Anthropic
94
128
  sig do
95
129
  override.returns(
96
130
  {
131
+ enforcement_status:
132
+ T::Array[Anthropic::UserProfileEnforcementStatus::OrSymbol],
97
133
  limit: Integer,
98
134
  order: Anthropic::UserProfileListOrder::OrSymbol,
99
135
  order_by: Anthropic::UserProfileListOrderBy::OrSymbol,
@@ -5,6 +5,8 @@ module Anthropic
5
5
 
6
6
  APIErrorObject = Anthropic::Models::APIErrorObject
7
7
 
8
+ AssistantMessageParam = Anthropic::Models::AssistantMessageParam
9
+
8
10
  AuthenticationError = Anthropic::Models::AuthenticationError
9
11
 
10
12
  Base64ImageSource = Anthropic::Models::Base64ImageSource
@@ -389,10 +391,6 @@ module Anthropic
389
391
  CodeExecutionToolResultErrorParam =
390
392
  Anthropic::Models::CodeExecutionToolResultErrorParam
391
393
 
392
- Completion = Anthropic::Models::Completion
393
-
394
- CompletionCreateParams = Anthropic::Models::CompletionCreateParams
395
-
396
394
  ComputerCursorPositionConfig = Anthropic::Models::ComputerCursorPositionConfig
397
395
 
398
396
  ComputerCursorPositionInput = Anthropic::Models::ComputerCursorPositionInput
@@ -596,6 +594,8 @@ module Anthropic
596
594
 
597
595
  Message = Anthropic::Models::Message
598
596
 
597
+ MessageContentParam = Anthropic::Models::MessageContentParam
598
+
599
599
  MessageCountTokensParams = Anthropic::Models::MessageCountTokensParams
600
600
 
601
601
  MessageCountTokensTool = Anthropic::Models::MessageCountTokensTool
@@ -704,6 +704,8 @@ module Anthropic
704
704
 
705
705
  StopReason = Anthropic::Models::StopReason
706
706
 
707
+ SystemMessageParam = Anthropic::Models::SystemMessageParam
708
+
707
709
  TextBlock = Anthropic::Models::TextBlock
708
710
 
709
711
  TextBlockParam = Anthropic::Models::TextBlockParam
@@ -834,6 +836,8 @@ module Anthropic
834
836
 
835
837
  UserLocation = Anthropic::Models::UserLocation
836
838
 
839
+ UserMessageParam = Anthropic::Models::UserMessageParam
840
+
837
841
  UserProfile = Anthropic::Models::UserProfile
838
842
 
839
843
  UserProfileAccessType = Anthropic::Models::UserProfileAccessType
@@ -852,6 +856,22 @@ module Anthropic
852
856
 
853
857
  UserProfileEfsProgram = Anthropic::Models::UserProfileEfsProgram
854
858
 
859
+ UserProfileEnforcementAction = Anthropic::Models::UserProfileEnforcementAction
860
+
861
+ UserProfileEnforcementActionBan =
862
+ Anthropic::Models::UserProfileEnforcementActionBan
863
+
864
+ UserProfileEnforcementActionNextStep =
865
+ Anthropic::Models::UserProfileEnforcementActionNextStep
866
+
867
+ UserProfileEnforcementActionReason =
868
+ Anthropic::Models::UserProfileEnforcementActionReason
869
+
870
+ UserProfileEnforcementActionRestriction =
871
+ Anthropic::Models::UserProfileEnforcementActionRestriction
872
+
873
+ UserProfileEnforcementStatus = Anthropic::Models::UserProfileEnforcementStatus
874
+
855
875
  UserProfileExternalUserAccountStatus =
856
876
  Anthropic::Models::UserProfileExternalUserAccountStatus
857
877
 
@@ -10,7 +10,13 @@ module Anthropic
10
10
  sig do
11
11
  params(
12
12
  max_tokens: Integer,
13
- messages: T::Array[Anthropic::Beta::BetaMessageParam::OrHash],
13
+ messages:
14
+ T::Array[
15
+ T.any(
16
+ Anthropic::Beta::BetaMessageParam::Variants,
17
+ Anthropic::Internal::AnyHash
18
+ )
19
+ ],
14
20
  model: T.any(Anthropic::Model::OrSymbol, String),
15
21
  container:
16
22
  T.nilable(
@@ -27,7 +33,6 @@ module Anthropic
27
33
  Anthropic::Beta::MessageCreateParams::ServiceTier::OrSymbol,
28
34
  stop_sequences: T::Array[String],
29
35
  system_: Anthropic::Beta::MessageCreateParams::System::Variants,
30
- temperature: Float,
31
36
  thinking:
32
37
  T.any(
33
38
  Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
@@ -59,9 +64,8 @@ module Anthropic
59
64
  Anthropic::Beta::BetaWebFetchTool20250910::OrHash
60
65
  )
61
66
  ],
62
- top_k: Integer,
63
- top_p: Float,
64
67
  betas: T::Array[T.any(String, Anthropic::AnthropicBeta::OrSymbol)],
68
+ max_iterations: T.nilable(Integer),
65
69
  stream: T.noreturn,
66
70
  request_options: Anthropic::RequestOptions::OrHash
67
71
  ).returns(Anthropic::Helpers::Tools::Runner)
@@ -177,15 +181,6 @@ module Anthropic
177
181
  # as specifying a particular goal or role. See our
178
182
  # [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
179
183
  system_: nil,
180
- # Body param: Amount of randomness injected into the response.
181
- #
182
- # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
183
- # for analytical / multiple choice, and closer to `1.0` for creative and
184
- # generative tasks.
185
- #
186
- # Note that even with `temperature` of `0.0`, the results will not be fully
187
- # deterministic.
188
- temperature: nil,
189
184
  # Body param: Configuration for enabling Claude's extended thinking.
190
185
  #
191
186
  # When enabled, responses include `thinking` content blocks showing Claude's
@@ -275,26 +270,10 @@ module Anthropic
275
270
  #
276
271
  # See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
277
272
  tools: nil,
278
- # Body param: Only sample from the top K options for each subsequent token.
279
- #
280
- # Used to remove "long tail" low probability responses.
281
- # [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
282
- #
283
- # Recommended for advanced use cases only. You usually only need to use
284
- # `temperature`.
285
- top_k: nil,
286
- # Body param: Use nucleus sampling.
287
- #
288
- # In nucleus sampling, we compute the cumulative distribution over all the options
289
- # for each subsequent token in decreasing probability order and cut it off once it
290
- # reaches a particular probability specified by `top_p`. You should either alter
291
- # `temperature` or `top_p`, but not both.
292
- #
293
- # Recommended for advanced use cases only. You usually only need to use
294
- # `temperature`.
295
- top_p: nil,
296
273
  # Header param: Optional header to specify the beta version(s) you want to use.
297
274
  betas: nil,
275
+ # The most requests the runner sends before it stops. No limit when `nil`.
276
+ max_iterations: nil,
298
277
  # There is no need to provide `stream:`. Instead, use `#stream_raw` or `#create`
299
278
  # for streaming and non-streaming use cases, respectively.
300
279
  stream: false,
@@ -315,7 +294,14 @@ module Anthropic
315
294
  sig do
316
295
  params(
317
296
  max_tokens: Integer,
318
- messages: T::Array[Anthropic::Beta::BetaMessageParam::OrHash],
297
+ messages:
298
+ T::Array[
299
+ T.any(
300
+ Anthropic::Beta::BetaUserMessageParam::OrHash,
301
+ Anthropic::Beta::BetaAssistantMessageParam::OrHash,
302
+ Anthropic::Beta::BetaSystemMessageParam::OrHash
303
+ )
304
+ ],
319
305
  model: T.any(Anthropic::Model::OrSymbol, String),
320
306
  cache_control:
321
307
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
@@ -358,7 +344,6 @@ module Anthropic
358
344
  T.nilable(Anthropic::Beta::MessageCreateParams::Speed::OrSymbol),
359
345
  stop_sequences: T::Array[String],
360
346
  system_: Anthropic::Beta::MessageCreateParams::System::Variants,
361
- temperature: Float,
362
347
  thinking:
363
348
  T.any(
364
349
  Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
@@ -406,8 +391,6 @@ module Anthropic
406
391
  Anthropic::Beta::BetaMCPToolset::OrHash
407
392
  )
408
393
  ],
409
- top_k: Integer,
410
- top_p: Float,
411
394
  betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
412
395
  user_profile_id: String,
413
396
  workspace_id: String,
@@ -495,8 +478,7 @@ module Anthropic
495
478
  #
496
479
  # Note that if you want to include a
497
480
  # [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
498
- # you can use the top-level `system` parameter — there is no `"system"` role for
499
- # input messages in the Messages API.
481
+ # you can use the top-level `system` parameter.
500
482
  #
501
483
  # There is a limit of 100,000 messages in a single request.
502
484
  messages:,
@@ -605,15 +587,6 @@ module Anthropic
605
587
  # as specifying a particular goal or role. See our
606
588
  # [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
607
589
  system_: nil,
608
- # Body param: Amount of randomness injected into the response.
609
- #
610
- # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
611
- # for analytical / multiple choice, and closer to `1.0` for creative and
612
- # generative tasks.
613
- #
614
- # Note that even with `temperature` of `0.0`, the results will not be fully
615
- # deterministic.
616
- temperature: nil,
617
590
  # Body param: Configuration for Claude's thinking.
618
591
  #
619
592
  # With `{"type": "adaptive"}`, Claude decides when and how much to think. With
@@ -706,21 +679,6 @@ module Anthropic
706
679
  # [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
707
680
  # for more details.
708
681
  tools: nil,
709
- # Body param: Only sample from the top K options for each subsequent token.
710
- #
711
- # Used to remove "long tail" low probability responses.
712
- # [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
713
- #
714
- # Recommended for advanced use cases only.
715
- top_k: nil,
716
- # Body param: Use nucleus sampling.
717
- #
718
- # In nucleus sampling, we compute the cumulative distribution over all the options
719
- # for each subsequent token in decreasing probability order and cut it off once it
720
- # reaches a particular probability specified by `top_p`.
721
- #
722
- # Recommended for advanced use cases only.
723
- top_p: nil,
724
682
  # Header param: Optional header to specify the beta version(s) you want to use.
725
683
  betas: nil,
726
684
  # Header param: The user profile ID to attribute this request to. Use when acting
@@ -753,7 +711,14 @@ module Anthropic
753
711
  sig do
754
712
  params(
755
713
  max_tokens: Integer,
756
- messages: T::Array[Anthropic::Beta::BetaMessageParam::OrHash],
714
+ messages:
715
+ T::Array[
716
+ T.any(
717
+ Anthropic::Beta::BetaUserMessageParam::OrHash,
718
+ Anthropic::Beta::BetaAssistantMessageParam::OrHash,
719
+ Anthropic::Beta::BetaSystemMessageParam::OrHash
720
+ )
721
+ ],
757
722
  model: T.any(Anthropic::Model::OrSymbol, String),
758
723
  cache_control:
759
724
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
@@ -796,7 +761,6 @@ module Anthropic
796
761
  T.nilable(Anthropic::Beta::MessageCreateParams::Speed::OrSymbol),
797
762
  stop_sequences: T::Array[String],
798
763
  system_: Anthropic::Beta::MessageCreateParams::System::Variants,
799
- temperature: Float,
800
764
  thinking:
801
765
  T.any(
802
766
  Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
@@ -844,8 +808,6 @@ module Anthropic
844
808
  Anthropic::Beta::BetaMCPToolset::OrHash
845
809
  )
846
810
  ],
847
- top_k: Integer,
848
- top_p: Float,
849
811
  betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
850
812
  user_profile_id: String,
851
813
  workspace_id: String,
@@ -938,8 +900,7 @@ module Anthropic
938
900
  #
939
901
  # Note that if you want to include a
940
902
  # [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
941
- # you can use the top-level `system` parameter — there is no `"system"` role for
942
- # input messages in the Messages API.
903
+ # you can use the top-level `system` parameter.
943
904
  #
944
905
  # There is a limit of 100,000 messages in a single request.
945
906
  messages:,
@@ -1048,15 +1009,6 @@ module Anthropic
1048
1009
  # as specifying a particular goal or role. See our
1049
1010
  # [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
1050
1011
  system_: nil,
1051
- # Body param: Amount of randomness injected into the response.
1052
- #
1053
- # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
1054
- # for analytical / multiple choice, and closer to `1.0` for creative and
1055
- # generative tasks.
1056
- #
1057
- # Note that even with `temperature` of `0.0`, the results will not be fully
1058
- # deterministic.
1059
- temperature: nil,
1060
1012
  # Body param: Configuration for Claude's thinking.
1061
1013
  #
1062
1014
  # With `{"type": "adaptive"}`, Claude decides when and how much to think. With
@@ -1149,21 +1101,6 @@ module Anthropic
1149
1101
  # [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
1150
1102
  # for more details.
1151
1103
  tools: nil,
1152
- # Body param: Only sample from the top K options for each subsequent token.
1153
- #
1154
- # Used to remove "long tail" low probability responses.
1155
- # [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
1156
- #
1157
- # Recommended for advanced use cases only.
1158
- top_k: nil,
1159
- # Body param: Use nucleus sampling.
1160
- #
1161
- # In nucleus sampling, we compute the cumulative distribution over all the options
1162
- # for each subsequent token in decreasing probability order and cut it off once it
1163
- # reaches a particular probability specified by `top_p`.
1164
- #
1165
- # Recommended for advanced use cases only.
1166
- top_p: nil,
1167
1104
  # Header param: Optional header to specify the beta version(s) you want to use.
1168
1105
  betas: nil,
1169
1106
  # Header param: The user profile ID to attribute this request to. Use when acting
@@ -1192,7 +1129,14 @@ module Anthropic
1192
1129
  # [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
1193
1130
  sig do
1194
1131
  params(
1195
- messages: T::Array[Anthropic::Beta::BetaMessageParam::OrHash],
1132
+ messages:
1133
+ T::Array[
1134
+ T.any(
1135
+ Anthropic::Beta::BetaUserMessageParam::OrHash,
1136
+ Anthropic::Beta::BetaAssistantMessageParam::OrHash,
1137
+ Anthropic::Beta::BetaSystemMessageParam::OrHash
1138
+ )
1139
+ ],
1196
1140
  model: T.any(Anthropic::Model::OrSymbol, String),
1197
1141
  cache_control:
1198
1142
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
@@ -1333,8 +1277,7 @@ module Anthropic
1333
1277
  #
1334
1278
  # Note that if you want to include a
1335
1279
  # [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
1336
- # you can use the top-level `system` parameter — there is no `"system"` role for
1337
- # input messages in the Messages API.
1280
+ # you can use the top-level `system` parameter.
1338
1281
  #
1339
1282
  # There is a limit of 100,000 messages in a single request.
1340
1283
  messages:,
@@ -1499,7 +1442,14 @@ module Anthropic
1499
1442
  sig do
1500
1443
  params(
1501
1444
  max_tokens: Integer,
1502
- messages: T::Array[Anthropic::Beta::BetaMessageParam::OrHash],
1445
+ messages:
1446
+ T::Array[
1447
+ T.any(
1448
+ Anthropic::Beta::BetaUserMessageParam::OrHash,
1449
+ Anthropic::Beta::BetaAssistantMessageParam::OrHash,
1450
+ Anthropic::Beta::BetaSystemMessageParam::OrHash
1451
+ )
1452
+ ],
1503
1453
  model: T.any(Anthropic::Model::OrSymbol, String),
1504
1454
  cache_control:
1505
1455
  T.nilable(Anthropic::Beta::BetaCacheControlEphemeral::OrHash),
@@ -1542,7 +1492,6 @@ module Anthropic
1542
1492
  T.nilable(Anthropic::Beta::MessageCreateParams::Speed::OrSymbol),
1543
1493
  stop_sequences: T::Array[String],
1544
1494
  system_: Anthropic::Beta::MessageCreateParams::System::Variants,
1545
- temperature: Float,
1546
1495
  thinking:
1547
1496
  T.any(
1548
1497
  Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
@@ -1590,8 +1539,6 @@ module Anthropic
1590
1539
  Anthropic::Beta::BetaMCPToolset::OrHash
1591
1540
  )
1592
1541
  ],
1593
- top_k: Integer,
1594
- top_p: Float,
1595
1542
  betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
1596
1543
  user_profile_id: String,
1597
1544
  workspace_id: String,
@@ -1678,8 +1625,7 @@ module Anthropic
1678
1625
  #
1679
1626
  # Note that if you want to include a
1680
1627
  # [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
1681
- # you can use the top-level `system` parameter — there is no `"system"` role for
1682
- # input messages in the Messages API.
1628
+ # you can use the top-level `system` parameter.
1683
1629
  #
1684
1630
  # There is a limit of 100,000 messages in a single request.
1685
1631
  messages:,
@@ -1788,15 +1734,6 @@ module Anthropic
1788
1734
  # as specifying a particular goal or role. See our
1789
1735
  # [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
1790
1736
  system_: nil,
1791
- # Body param: Amount of randomness injected into the response.
1792
- #
1793
- # Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
1794
- # for analytical / multiple choice, and closer to `1.0` for creative and
1795
- # generative tasks.
1796
- #
1797
- # Note that even with `temperature` of `0.0`, the results will not be fully
1798
- # deterministic.
1799
- temperature: nil,
1800
1737
  # Body param: Configuration for Claude's thinking.
1801
1738
  #
1802
1739
  # With `{"type": "adaptive"}`, Claude decides when and how much to think. With
@@ -1889,21 +1826,6 @@ module Anthropic
1889
1826
  # [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
1890
1827
  # for more details.
1891
1828
  tools: nil,
1892
- # Body param: Only sample from the top K options for each subsequent token.
1893
- #
1894
- # Used to remove "long tail" low probability responses.
1895
- # [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
1896
- #
1897
- # Recommended for advanced use cases only.
1898
- top_k: nil,
1899
- # Body param: Use nucleus sampling.
1900
- #
1901
- # In nucleus sampling, we compute the cumulative distribution over all the options
1902
- # for each subsequent token in decreasing probability order and cut it off once it
1903
- # reaches a particular probability specified by `top_p`.
1904
- #
1905
- # Recommended for advanced use cases only.
1906
- top_p: nil,
1907
1829
  # Header param: Optional header to specify the beta version(s) you want to use.
1908
1830
  betas: nil,
1909
1831
  # Header param: The user profile ID to attribute this request to. Use when acting
@@ -35,10 +35,12 @@ module Anthropic
35
35
 
36
36
  # List the organization's spend limits.
37
37
  #
38
- # Limits are grouped by scope type, in the order `organization`, `seat_tier`,
38
+ # A Claude Console organization's limits, including any read-only `usage_tier`
39
+ # limit, come newest first. Listing them is in an early access preview. To request
40
+ # access, contact your Anthropic account team. A Claude Enterprise organization's
41
+ # limits are grouped by scope type, in the order `organization`, `seat_tier`,
39
42
  # `rbac_group`, `organization_service`, `user`; within a type they come in a fixed
40
- # order that is not creation order. Supported for Claude Enterprise organizations
41
- # only, not for Claude Console organizations.
43
+ # order that is not creation order.
42
44
  sig do
43
45
  params(
44
46
  limit: Integer,
@@ -49,6 +51,7 @@ module Anthropic
49
51
  Anthropic::Beta::Organization::SpendLimitListParams::ScopeType::OrSymbol
50
52
  ]
51
53
  ),
54
+ workspace_id: T.nilable(String),
52
55
  betas:
53
56
  T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
54
57
  request_options: Anthropic::RequestOptions::OrHash
@@ -63,8 +66,13 @@ module Anthropic
63
66
  limit: nil,
64
67
  # Query param: Opaque cursor from a previous response's `next_page` field.
65
68
  page: nil,
66
- # Query param: Return only limits with these scope types. Omit for all.
69
+ # Query param: Return only limits with these scope types. Omit for all. A scope
70
+ # type that doesn't apply to the organization gets a 400 error.
67
71
  scope_type: nil,
72
+ # Query param: Return only the limits whose `scope.workspace_id` is this workspace
73
+ # (`wrkspc_...`). Claude Console organizations only; other organizations get a 400
74
+ # error.
75
+ workspace_id: nil,
68
76
  # Header param: This endpoint is in beta: requests must send
69
77
  # `spend-limit-reads-2026-09-26` in this header.
70
78
  betas: nil,