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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/LICENSE +197 -4
- data/LICENSE-MIT +11 -0
- data/README.md +2 -2
- data/lib/anthropic/client.rb +65 -72
- data/lib/anthropic/credentials.rb +4 -4
- data/lib/anthropic/helpers/aws/client.rb +2 -2
- data/lib/anthropic/helpers/aws_auth.rb +3 -10
- data/lib/anthropic/helpers/bedrock/client.rb +7 -12
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +3 -11
- data/lib/anthropic/helpers/google_cloud/client.rb +6 -17
- data/lib/anthropic/helpers/tools/runner.rb +8 -6
- data/lib/anthropic/helpers/vertex/client.rb +7 -5
- data/lib/anthropic/internal/tracing.rb +3 -4
- data/lib/anthropic/internal/transport/base_client.rb +8 -5
- data/lib/anthropic/models/assistant_message_param.rb +21 -0
- data/lib/anthropic/models/beta/agent_create_params.rb +3 -3
- data/lib/anthropic/models/beta/agent_update_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_assistant_message_param.rb +25 -0
- data/lib/anthropic/models/beta/beta_dream.rb +5 -15
- data/lib/anthropic/models/beta/beta_dream_input.rb +2 -2
- data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +4 -14
- data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +4 -14
- data/lib/anthropic/models/beta/beta_dream_output.rb +4 -14
- data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +4 -14
- data/lib/anthropic/models/beta/beta_environment_delete_response.rb +4 -16
- data/lib/anthropic/models/beta/beta_managed_agents_advisor.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +10 -20
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent_message_preview.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_agent_reference.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +8 -18
- data/lib/anthropic/models/beta/beta_managed_agents_always_allow_policy.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_always_ask_policy.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_anthropic_skill.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_branch_checkout.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_budget_limit.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_commit_checkout.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_custom_skill.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_custom_skill_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_session.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_delta_content.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_delta_event.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +14 -38
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +20 -30
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +7 -17
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +8 -18
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_effort_high.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_effort_low.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_effort_max.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_effort_medium.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_effort_xhigh.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_file_resource_config.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_file_resource_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +7 -17
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +7 -17
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +5 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +6 -16
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_session.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +10 -20
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +6 -16
- data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +10 -20
- data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_start_event.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_system_content_block.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_system_message_event.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +9 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +5 -15
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -15
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -14
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_message_content_param.rb +24 -0
- data/lib/anthropic/models/beta/beta_message_param.rb +37 -71
- data/lib/anthropic/models/beta/beta_output_behavior.rb +2 -2
- data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +4 -14
- data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +4 -14
- data/lib/anthropic/models/beta/beta_system_message_param.rb +160 -0
- data/lib/anthropic/models/beta/beta_user_message_param.rb +25 -0
- data/lib/anthropic/models/beta/beta_user_profile.rb +4 -16
- data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +4 -16
- data/lib/anthropic/models/beta/deployment_create_params.rb +3 -3
- data/lib/anthropic/models/beta/deployment_update_params.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +4 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +5 -16
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +4 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +5 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +5 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +5 -16
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +4 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +5 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +5 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +4 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rb +5 -15
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +4 -5
- data/lib/anthropic/models/beta/message_create_params.rb +5 -59
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +5 -59
- data/lib/anthropic/models/beta/organization/beta_api_key.rb +2 -15
- data/lib/anthropic/models/beta/organization/beta_api_key_workspace_scope.rb +3 -4
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +6 -46
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +1 -12
- data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +16 -3
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +6 -47
- data/lib/anthropic/models/beta/session_create_params.rb +5 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +9 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +6 -16
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +9 -20
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +9 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +9 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +8 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +10 -20
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +7 -13
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rb +5 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +7 -18
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rb +7 -30
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +7 -7
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +12 -28
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +35 -62
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +8 -18
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +8 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +5 -16
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +4 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +37 -64
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +37 -64
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_block.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rb +4 -14
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +7 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +9 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +9 -20
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +6 -16
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +7 -18
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +9 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +8 -18
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +5 -15
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +5 -16
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +9 -19
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +3 -3
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +3 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +8 -21
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +2 -7
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +5 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +6 -22
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +5 -16
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +5 -16
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +4 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +4 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +5 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +5 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +3 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +3 -12
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +2 -8
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +5 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +5 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rb +4 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +5 -16
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rb +4 -14
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +5 -16
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rb +4 -15
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rb +4 -15
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -6
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -6
- data/lib/anthropic/models/message_content_param.rb +19 -0
- data/lib/anthropic/models/message_count_tokens_params.rb +4 -5
- data/lib/anthropic/models/message_create_params.rb +5 -59
- data/lib/anthropic/models/message_param.rb +33 -28
- data/lib/anthropic/models/messages/batch_create_params.rb +5 -59
- data/lib/anthropic/models/model_list_params.rb +1 -13
- data/lib/anthropic/models/model_retrieve_params.rb +1 -13
- data/lib/anthropic/models/organization/api_key.rb +1 -1
- data/lib/anthropic/models/organization/api_key_workspace_scope.rb +3 -4
- data/lib/anthropic/models/organization/organization_rate_limit.rb +5 -8
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +5 -8
- data/lib/anthropic/models/system_message_param.rb +36 -0
- data/lib/anthropic/models/user_message_param.rb +21 -0
- data/lib/anthropic/models/user_profile.rb +26 -1
- data/lib/anthropic/models/user_profile_enforcement_action.rb +66 -0
- data/lib/anthropic/models/user_profile_enforcement_action_ban.rb +62 -0
- data/lib/anthropic/models/user_profile_enforcement_action_next_step.rb +17 -0
- data/lib/anthropic/models/user_profile_enforcement_action_reason.rb +23 -0
- data/lib/anthropic/models/user_profile_enforcement_action_restriction.rb +67 -0
- data/lib/anthropic/models/user_profile_enforcement_status.rb +20 -0
- data/lib/anthropic/models/user_profile_list_params.rb +17 -1
- data/lib/anthropic/models.rb +20 -4
- data/lib/anthropic/resources/beta/messages.rb +8 -32
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +11 -7
- data/lib/anthropic/resources/beta/sessions/resources.rb +3 -3
- data/lib/anthropic/resources/beta/webhooks.rb +1 -0
- data/lib/anthropic/resources/messages.rb +7 -25
- data/lib/anthropic/resources/models.rb +4 -11
- data/lib/anthropic/resources/user_profiles.rb +5 -3
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +14 -3
- data/rbi/anthropic/client.rbi +19 -7
- data/rbi/anthropic/helpers/bedrock/client.rbi +0 -5
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +0 -4
- data/rbi/anthropic/helpers/google_cloud/client.rbi +0 -4
- data/rbi/anthropic/helpers/tools/runner.rbi +5 -1
- data/rbi/anthropic/helpers/vertex/client.rbi +0 -2
- data/rbi/anthropic/internal/tracing.rbi +0 -1
- data/rbi/anthropic/models/assistant_message_param.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_assistant_message_param.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_dream.rbi +6 -24
- data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +6 -42
- data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +6 -42
- data/rbi/anthropic/models/beta/beta_dream_output.rbi +6 -38
- data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +6 -38
- data/rbi/anthropic/models/beta/beta_environment_delete_response.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_advisor.rbi +4 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +6 -34
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_params.rbi +7 -46
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_reference.rbi +6 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_always_allow_policy.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_always_ask_policy.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_anthropic_skill.rbi +6 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rbi +6 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_branch_checkout.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_budget_limit.rbi +4 -36
- data/rbi/anthropic/models/beta/beta_managed_agents_commit_checkout.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rbi +6 -47
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_skill.rbi +6 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_skill_params.rbi +6 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool.rbi +4 -35
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_session.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +4 -50
- data/rbi/anthropic/models/beta/beta_managed_agents_delta_content.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_delta_event.rbi +4 -35
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +6 -37
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_effort_high.rbi +4 -42
- data/rbi/anthropic/models/beta/beta_managed_agents_effort_low.rbi +4 -42
- data/rbi/anthropic/models/beta/beta_managed_agents_effort_max.rbi +4 -42
- data/rbi/anthropic/models/beta/beta_managed_agents_effort_medium.rbi +4 -48
- data/rbi/anthropic/models/beta/beta_managed_agents_effort_xhigh.rbi +4 -43
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_file_resource_config.rbi +6 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_file_resource_params.rbi +6 -45
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rbi +6 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset.rbi +4 -35
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +6 -37
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule.rbi +6 -37
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule_params.rbi +6 -47
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +6 -35
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +4 -39
- data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_start_event.rbi +4 -35
- data/rbi/anthropic/models/beta/beta_managed_agents_system_content_block.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_system_message_event.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rbi +7 -52
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +6 -41
- data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +6 -34
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +4 -49
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +4 -51
- data/rbi/anthropic/models/beta/beta_message_content_param.rbi +37 -0
- data/rbi/anthropic/models/beta/beta_message_param.rbi +49 -145
- data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +4 -42
- data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +6 -49
- data/rbi/anthropic/models/beta/beta_system_message_param.rbi +300 -0
- data/rbi/anthropic/models/beta/beta_user_message_param.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +7 -32
- data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +8 -48
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbi +4 -49
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +4 -49
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +7 -50
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +4 -51
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +6 -41
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +6 -41
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +5 -50
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +4 -51
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +6 -41
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbi +7 -50
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbi +4 -49
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbi +5 -50
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +29 -7
- data/rbi/anthropic/models/beta/message_create_params.rbi +29 -76
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +32 -79
- data/rbi/anthropic/models/beta/organization/beta_api_key.rbi +3 -16
- data/rbi/anthropic/models/beta/organization/beta_api_key_workspace_scope.rbi +4 -6
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +5 -86
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +0 -10
- data/rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi +21 -2
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +5 -86
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rbi +4 -51
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +7 -46
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rbi +8 -87
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rbi +4 -51
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rbi +6 -47
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbi +6 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_block.rbi +4 -51
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rbi +4 -49
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rbi +5 -52
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rbi +5 -52
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rbi +7 -46
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +4 -39
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbi +6 -41
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +4 -51
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +4 -39
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +6 -47
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +6 -47
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +6 -41
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rbi +6 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +6 -47
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +7 -50
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +6 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rbi +4 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +7 -48
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rbi +4 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rbi +4 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +6 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rbi +4 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +7 -48
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rbi +4 -49
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rbi +4 -49
- data/rbi/anthropic/models/message_content_param.rbi +28 -0
- data/rbi/anthropic/models/message_count_tokens_params.rbi +29 -7
- data/rbi/anthropic/models/message_create_params.rbi +29 -76
- data/rbi/anthropic/models/message_param.rbi +28 -52
- data/rbi/anthropic/models/messages/batch_create_params.rbi +32 -79
- data/rbi/anthropic/models/model_list_params.rbi +0 -19
- data/rbi/anthropic/models/model_retrieve_params.rbi +0 -19
- data/rbi/anthropic/models/organization/api_key.rbi +2 -3
- data/rbi/anthropic/models/organization/api_key_workspace_scope.rbi +4 -6
- data/rbi/anthropic/models/organization/organization_rate_limit.rbi +5 -8
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit.rbi +5 -8
- data/rbi/anthropic/models/system_message_param.rbi +59 -0
- data/rbi/anthropic/models/user_message_param.rbi +35 -0
- data/rbi/anthropic/models/user_profile.rbi +42 -0
- data/rbi/anthropic/models/user_profile_enforcement_action.rbi +95 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_ban.rbi +96 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_next_step.rbi +34 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_reason.rbi +58 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_restriction.rbi +106 -0
- data/rbi/anthropic/models/user_profile_enforcement_status.rbi +39 -0
- data/rbi/anthropic/models/user_profile_list_params.rbi +36 -0
- data/rbi/anthropic/models.rbi +24 -4
- data/rbi/anthropic/resources/beta/messages.rbi +46 -124
- data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +12 -4
- data/rbi/anthropic/resources/beta/sessions/resources.rbi +3 -4
- data/rbi/anthropic/resources/messages.rbi +36 -93
- data/rbi/anthropic/resources/models.rbi +0 -6
- data/rbi/anthropic/resources/user_profiles.rbi +12 -0
- data/sig/anthropic/client.rbs +2 -2
- data/sig/anthropic/helpers/bedrock/client.rbs +0 -4
- data/sig/anthropic/helpers/google_cloud/client.rbs +0 -2
- data/sig/anthropic/helpers/vertex/client.rbs +0 -2
- data/sig/anthropic/internal/tracing.rbs +0 -1
- data/sig/anthropic/models/assistant_message_param.rbs +22 -0
- data/sig/anthropic/models/beta/beta_assistant_message_param.rbs +29 -0
- data/sig/anthropic/models/beta/beta_dream.rbs +5 -15
- data/sig/anthropic/models/beta/beta_dream_memory_store_input.rbs +4 -23
- data/sig/anthropic/models/beta/beta_dream_memory_store_output.rbs +4 -23
- data/sig/anthropic/models/beta/beta_dream_output.rbs +4 -24
- data/sig/anthropic/models/beta/beta_dream_sessions_input.rbs +4 -23
- data/sig/anthropic/models/beta/beta_environment_delete_response.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_advisor.rbs +4 -24
- data/sig/anthropic/models/beta/beta_managed_agents_advisor_params.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_agent_message_preview.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_agent_params.rbs +4 -26
- data/sig/anthropic/models/beta/beta_managed_agents_agent_reference.rbs +4 -26
- data/sig/anthropic/models/beta/beta_managed_agents_agent_thinking_preview.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_always_allow_policy.rbs +4 -21
- data/sig/anthropic/models/beta/beta_managed_agents_always_ask_policy.rbs +4 -21
- data/sig/anthropic/models/beta/beta_managed_agents_anthropic_skill.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_anthropic_skill_params.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_branch_checkout.rbs +4 -24
- data/sig/anthropic/models/beta/beta_managed_agents_budget_limit.rbs +4 -17
- data/sig/anthropic/models/beta/beta_managed_agents_commit_checkout.rbs +4 -24
- data/sig/anthropic/models/beta/beta_managed_agents_cron_schedule.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rbs +4 -22
- data/sig/anthropic/models/beta/beta_managed_agents_custom_skill.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_custom_skill_params.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_custom_tool.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_deleted_session.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_deleted_vault.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_delta_content.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_delta_event.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_deployment.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_system_message_event.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_effort_high.rbs +4 -19
- data/sig/anthropic/models/beta/beta_managed_agents_effort_low.rbs +4 -19
- data/sig/anthropic/models/beta/beta_managed_agents_effort_max.rbs +4 -19
- data/sig/anthropic/models/beta/beta_managed_agents_effort_medium.rbs +4 -19
- data/sig/anthropic/models/beta/beta_managed_agents_effort_xhigh.rbs +4 -19
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_file_resource_config.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_file_resource_params.rbs +5 -23
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_manual_deployment_paused_reason.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_manual_trigger_context.rbs +4 -21
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_server_url_definition.rbs +4 -26
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_self_params.rbs +4 -21
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_schedule.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_schedule_params.rbs +4 -22
- data/sig/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +4 -18
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +4 -17
- data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +4 -17
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +4 -17
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_updated_event.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_start_event.rbs +4 -14
- data/sig/anthropic/models/beta/beta_managed_agents_system_content_block.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_system_message_event.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rbs +4 -26
- data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_vault.rbs +5 -15
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +4 -23
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +4 -20
- data/sig/anthropic/models/beta/beta_message_content_param.rbs +18 -0
- data/sig/anthropic/models/beta/beta_message_param.rbs +30 -50
- data/sig/anthropic/models/beta/beta_output_behavior_create_new.rbs +4 -19
- data/sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs +4 -20
- data/sig/anthropic/models/beta/beta_system_message_param.rbs +116 -0
- data/sig/anthropic/models/beta/beta_user_message_param.rbs +29 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +5 -15
- data/sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs +5 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbs +4 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +4 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbs +5 -21
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbs +4 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbs +5 -15
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +5 -15
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +5 -18
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbs +4 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbs +5 -15
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbs +5 -21
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbs +4 -23
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbs +4 -23
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +4 -4
- data/sig/anthropic/models/beta/message_create_params.rbs +4 -25
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +7 -28
- data/sig/anthropic/models/beta/organization/beta_api_key.rbs +2 -7
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs +0 -26
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +0 -5
- data/sig/anthropic/models/beta/organization/spend_limit_list_params.rbs +7 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs +0 -26
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbs +4 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_base64_document_source.rbs +4 -22
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rbs +4 -22
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_delete_session_resource.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +7 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_document_source.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_image_source.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_resource.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_rubric.rbs +4 -24
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_file_rubric_params.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_plain_text_document_source.rbs +7 -31
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbs +4 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_exhausted.rbs +4 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_retrying.rbs +4 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_retry_status_terminal.rbs +4 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_search_result_content.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbs +4 -20
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbs +4 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_end_turn.rbs +4 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rbs +4 -20
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_retries_exhausted.rbs +4 -20
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbs +4 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbs +4 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbs +4 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_system_message_event_params.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_block.rbs +4 -24
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_rubric.rbs +4 -24
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_url_document_source.rbs +4 -23
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_url_image_source.rbs +4 -24
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rbs +5 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +4 -14
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbs +5 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbs +4 -23
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +4 -14
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbs +5 -15
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_auth_response.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbs +4 -18
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbs +4 -23
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_response.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbs +5 -21
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_param.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_none_response.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_response.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbs +5 -21
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_params.rbs +4 -20
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_unrestricted_credential_networking_response.rbs +4 -20
- data/sig/anthropic/models/message_content_param.rbs +14 -0
- data/sig/anthropic/models/message_count_tokens_params.rbs +4 -4
- data/sig/anthropic/models/message_create_params.rbs +4 -25
- data/sig/anthropic/models/message_param.rbs +26 -28
- data/sig/anthropic/models/messages/batch_create_params.rbs +7 -28
- data/sig/anthropic/models/model_list_params.rbs +0 -9
- data/sig/anthropic/models/model_retrieve_params.rbs +1 -13
- data/sig/anthropic/models/system_message_param.rbs +32 -0
- data/sig/anthropic/models/user_message_param.rbs +22 -0
- data/sig/anthropic/models/user_profile.rbs +10 -0
- data/sig/anthropic/models/user_profile_enforcement_action.rbs +50 -0
- data/sig/anthropic/models/user_profile_enforcement_action_ban.rbs +45 -0
- data/sig/anthropic/models/user_profile_enforcement_action_next_step.rbs +13 -0
- data/sig/anthropic/models/user_profile_enforcement_action_reason.rbs +24 -0
- data/sig/anthropic/models/user_profile_enforcement_action_restriction.rbs +45 -0
- data/sig/anthropic/models/user_profile_enforcement_status.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_params.rbs +9 -0
- data/sig/anthropic/models.rbs +21 -5
- data/sig/anthropic/resources/beta/messages.rbs +4 -13
- data/sig/anthropic/resources/beta/organization/spend_limits.rbs +1 -0
- data/sig/anthropic/resources/beta/sessions/resources.rbs +1 -1
- data/sig/anthropic/resources/messages.rbs +4 -13
- data/sig/anthropic/resources/models.rbs +0 -2
- data/sig/anthropic/resources/user_profiles.rbs +1 -0
- metadata +47 -13
- data/lib/anthropic/models/completion.rb +0 -67
- data/lib/anthropic/models/completion_create_params.rb +0 -159
- data/lib/anthropic/resources/completions.rb +0 -149
- data/rbi/anthropic/models/completion.rbi +0 -95
- data/rbi/anthropic/models/completion_create_params.rbi +0 -236
- data/rbi/anthropic/resources/completions.rbi +0 -218
- data/sig/anthropic/models/completion.rbs +0 -40
- data/sig/anthropic/models/completion_create_params.rbs +0 -87
- data/sig/anthropic/resources/completions.rbs +0 -35
|
@@ -3,7 +3,7 @@ module Anthropic
|
|
|
3
3
|
type message_create_params =
|
|
4
4
|
{
|
|
5
5
|
max_tokens: Integer,
|
|
6
|
-
messages: ::Array[Anthropic::
|
|
6
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
7
7
|
model: Anthropic::Models::model,
|
|
8
8
|
cache_control: Anthropic::CacheControlEphemeral?,
|
|
9
9
|
container: Anthropic::Models::message_create_params_container?,
|
|
@@ -15,12 +15,9 @@ module Anthropic
|
|
|
15
15
|
speed: Anthropic::Models::MessageCreateParams::speed?,
|
|
16
16
|
stop_sequences: ::Array[String],
|
|
17
17
|
system_: Anthropic::Models::MessageCreateParams::system_,
|
|
18
|
-
temperature: Float,
|
|
19
18
|
thinking: Anthropic::Models::thinking_config_param,
|
|
20
19
|
tool_choice: Anthropic::Models::tool_choice,
|
|
21
20
|
tools: ::Array[Anthropic::Models::tool_union],
|
|
22
|
-
top_k: Integer,
|
|
23
|
-
top_p: Float,
|
|
24
21
|
user_profile_id: String,
|
|
25
22
|
workspace_id: String
|
|
26
23
|
}
|
|
@@ -32,7 +29,7 @@ module Anthropic
|
|
|
32
29
|
|
|
33
30
|
attr_accessor max_tokens: Integer
|
|
34
31
|
|
|
35
|
-
attr_accessor messages: ::Array[Anthropic::
|
|
32
|
+
attr_accessor messages: ::Array[Anthropic::Models::message_param]
|
|
36
33
|
|
|
37
34
|
attr_accessor model: Anthropic::Models::model
|
|
38
35
|
|
|
@@ -70,10 +67,6 @@ module Anthropic
|
|
|
70
67
|
Anthropic::Models::MessageCreateParams::system_
|
|
71
68
|
) -> Anthropic::Models::MessageCreateParams::system_
|
|
72
69
|
|
|
73
|
-
attr_reader temperature: Float?
|
|
74
|
-
|
|
75
|
-
def temperature=: (Float) -> Float
|
|
76
|
-
|
|
77
70
|
attr_reader thinking: Anthropic::Models::thinking_config_param?
|
|
78
71
|
|
|
79
72
|
def thinking=: (
|
|
@@ -92,14 +85,6 @@ module Anthropic
|
|
|
92
85
|
::Array[Anthropic::Models::tool_union]
|
|
93
86
|
) -> ::Array[Anthropic::Models::tool_union]
|
|
94
87
|
|
|
95
|
-
attr_reader top_k: Integer?
|
|
96
|
-
|
|
97
|
-
def top_k=: (Integer) -> Integer
|
|
98
|
-
|
|
99
|
-
attr_reader top_p: Float?
|
|
100
|
-
|
|
101
|
-
def top_p=: (Float) -> Float
|
|
102
|
-
|
|
103
88
|
attr_reader user_profile_id: String?
|
|
104
89
|
|
|
105
90
|
def user_profile_id=: (String) -> String
|
|
@@ -110,7 +95,7 @@ module Anthropic
|
|
|
110
95
|
|
|
111
96
|
def initialize: (
|
|
112
97
|
max_tokens: Integer,
|
|
113
|
-
messages: ::Array[Anthropic::
|
|
98
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
114
99
|
model: Anthropic::Models::model,
|
|
115
100
|
?cache_control: Anthropic::CacheControlEphemeral?,
|
|
116
101
|
?container: Anthropic::Models::message_create_params_container?,
|
|
@@ -122,12 +107,9 @@ module Anthropic
|
|
|
122
107
|
?speed: Anthropic::Models::MessageCreateParams::speed?,
|
|
123
108
|
?stop_sequences: ::Array[String],
|
|
124
109
|
?system_: Anthropic::Models::MessageCreateParams::system_,
|
|
125
|
-
?temperature: Float,
|
|
126
110
|
?thinking: Anthropic::Models::thinking_config_param,
|
|
127
111
|
?tool_choice: Anthropic::Models::tool_choice,
|
|
128
112
|
?tools: ::Array[Anthropic::Models::tool_union],
|
|
129
|
-
?top_k: Integer,
|
|
130
|
-
?top_p: Float,
|
|
131
113
|
?user_profile_id: String,
|
|
132
114
|
?workspace_id: String,
|
|
133
115
|
?request_options: Anthropic::request_opts
|
|
@@ -135,7 +117,7 @@ module Anthropic
|
|
|
135
117
|
|
|
136
118
|
def to_hash: -> {
|
|
137
119
|
max_tokens: Integer,
|
|
138
|
-
messages: ::Array[Anthropic::
|
|
120
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
139
121
|
model: Anthropic::Models::model,
|
|
140
122
|
cache_control: Anthropic::CacheControlEphemeral?,
|
|
141
123
|
container: Anthropic::Models::message_create_params_container?,
|
|
@@ -147,12 +129,9 @@ module Anthropic
|
|
|
147
129
|
speed: Anthropic::Models::MessageCreateParams::speed?,
|
|
148
130
|
stop_sequences: ::Array[String],
|
|
149
131
|
system_: Anthropic::Models::MessageCreateParams::system_,
|
|
150
|
-
temperature: Float,
|
|
151
132
|
thinking: Anthropic::Models::thinking_config_param,
|
|
152
133
|
tool_choice: Anthropic::Models::tool_choice,
|
|
153
134
|
tools: ::Array[Anthropic::Models::tool_union],
|
|
154
|
-
top_k: Integer,
|
|
155
|
-
top_p: Float,
|
|
156
135
|
user_profile_id: String,
|
|
157
136
|
workspace_id: String,
|
|
158
137
|
request_options: Anthropic::RequestOptions
|
|
@@ -1,35 +1,12 @@
|
|
|
1
1
|
module Anthropic
|
|
2
2
|
module Models
|
|
3
3
|
type message_param =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
Anthropic::UserMessageParam
|
|
5
|
+
| Anthropic::AssistantMessageParam
|
|
6
|
+
| Anthropic::SystemMessageParam
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
attr_accessor role: Anthropic::Models::MessageParam::role
|
|
13
|
-
|
|
14
|
-
def initialize: (
|
|
15
|
-
content: Anthropic::Models::MessageParam::content,
|
|
16
|
-
role: Anthropic::Models::MessageParam::role
|
|
17
|
-
) -> void
|
|
18
|
-
|
|
19
|
-
def to_hash: -> {
|
|
20
|
-
content: Anthropic::Models::MessageParam::content,
|
|
21
|
-
role: Anthropic::Models::MessageParam::role
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type content = String | ::Array[Anthropic::Models::content_block_param]
|
|
25
|
-
|
|
26
|
-
module Content
|
|
27
|
-
extend Anthropic::Internal::Type::Union
|
|
28
|
-
|
|
29
|
-
def self?.variants: -> ::Array[Anthropic::Models::MessageParam::content]
|
|
30
|
-
|
|
31
|
-
ContentBlockParamArray: Anthropic::Internal::Type::Converter
|
|
32
|
-
end
|
|
8
|
+
module MessageParam
|
|
9
|
+
extend Anthropic::Internal::Type::Union
|
|
33
10
|
|
|
34
11
|
type role = :user | :assistant | :system
|
|
35
12
|
|
|
@@ -42,6 +19,27 @@ module Anthropic
|
|
|
42
19
|
|
|
43
20
|
def self?.values: -> ::Array[Anthropic::Models::MessageParam::role]
|
|
44
21
|
end
|
|
22
|
+
|
|
23
|
+
def self?.variants: -> ::Array[Anthropic::Models::message_param]
|
|
24
|
+
|
|
25
|
+
def self.new:
|
|
26
|
+
(
|
|
27
|
+
role: :user | "user",
|
|
28
|
+
content: Anthropic::Models::message_content_param
|
|
29
|
+
) -> Anthropic::UserMessageParam
|
|
30
|
+
| (
|
|
31
|
+
role: :assistant | "assistant",
|
|
32
|
+
content: Anthropic::Models::message_content_param
|
|
33
|
+
) -> Anthropic::AssistantMessageParam
|
|
34
|
+
| (
|
|
35
|
+
role: :system | "system",
|
|
36
|
+
content: Anthropic::Models::SystemMessageParam::content
|
|
37
|
+
) -> Anthropic::SystemMessageParam
|
|
38
|
+
| (
|
|
39
|
+
role: Anthropic::Models::MessageParam::role | String,
|
|
40
|
+
content: Anthropic::Models::message_content_param
|
|
41
|
+
| Anthropic::Models::SystemMessageParam::content
|
|
42
|
+
) -> Anthropic::Models::message_param
|
|
45
43
|
end
|
|
46
44
|
end
|
|
47
45
|
end
|
|
@@ -61,7 +61,7 @@ module Anthropic
|
|
|
61
61
|
type params =
|
|
62
62
|
{
|
|
63
63
|
max_tokens: Integer,
|
|
64
|
-
messages: ::Array[Anthropic::
|
|
64
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
65
65
|
model: Anthropic::Models::model,
|
|
66
66
|
cache_control: Anthropic::CacheControlEphemeral?,
|
|
67
67
|
container: Anthropic::Models::message_create_params_container?,
|
|
@@ -74,18 +74,15 @@ module Anthropic
|
|
|
74
74
|
stop_sequences: ::Array[String],
|
|
75
75
|
stream: bool,
|
|
76
76
|
system_: Anthropic::Models::Messages::BatchCreateParams::Request::Params::system_,
|
|
77
|
-
temperature: Float,
|
|
78
77
|
thinking: Anthropic::Models::thinking_config_param,
|
|
79
78
|
tool_choice: Anthropic::Models::tool_choice,
|
|
80
|
-
tools: ::Array[Anthropic::Models::tool_union]
|
|
81
|
-
top_k: Integer,
|
|
82
|
-
top_p: Float
|
|
79
|
+
tools: ::Array[Anthropic::Models::tool_union]
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
class Params < Anthropic::Internal::Type::BaseModel
|
|
86
83
|
attr_accessor max_tokens: Integer
|
|
87
84
|
|
|
88
|
-
attr_accessor messages: ::Array[Anthropic::
|
|
85
|
+
attr_accessor messages: ::Array[Anthropic::Models::message_param]
|
|
89
86
|
|
|
90
87
|
attr_accessor model: Anthropic::Models::model
|
|
91
88
|
|
|
@@ -129,10 +126,6 @@ module Anthropic
|
|
|
129
126
|
Anthropic::Models::Messages::BatchCreateParams::Request::Params::system_
|
|
130
127
|
) -> Anthropic::Models::Messages::BatchCreateParams::Request::Params::system_
|
|
131
128
|
|
|
132
|
-
attr_reader temperature: Float?
|
|
133
|
-
|
|
134
|
-
def temperature=: (Float) -> Float
|
|
135
|
-
|
|
136
129
|
attr_reader thinking: Anthropic::Models::thinking_config_param?
|
|
137
130
|
|
|
138
131
|
def thinking=: (
|
|
@@ -151,17 +144,9 @@ module Anthropic
|
|
|
151
144
|
::Array[Anthropic::Models::tool_union]
|
|
152
145
|
) -> ::Array[Anthropic::Models::tool_union]
|
|
153
146
|
|
|
154
|
-
attr_reader top_k: Integer?
|
|
155
|
-
|
|
156
|
-
def top_k=: (Integer) -> Integer
|
|
157
|
-
|
|
158
|
-
attr_reader top_p: Float?
|
|
159
|
-
|
|
160
|
-
def top_p=: (Float) -> Float
|
|
161
|
-
|
|
162
147
|
def initialize: (
|
|
163
148
|
max_tokens: Integer,
|
|
164
|
-
messages: ::Array[Anthropic::
|
|
149
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
165
150
|
model: Anthropic::Models::model,
|
|
166
151
|
?cache_control: Anthropic::CacheControlEphemeral?,
|
|
167
152
|
?container: Anthropic::Models::message_create_params_container?,
|
|
@@ -174,17 +159,14 @@ module Anthropic
|
|
|
174
159
|
?stop_sequences: ::Array[String],
|
|
175
160
|
?stream: bool,
|
|
176
161
|
?system_: Anthropic::Models::Messages::BatchCreateParams::Request::Params::system_,
|
|
177
|
-
?temperature: Float,
|
|
178
162
|
?thinking: Anthropic::Models::thinking_config_param,
|
|
179
163
|
?tool_choice: Anthropic::Models::tool_choice,
|
|
180
|
-
?tools: ::Array[Anthropic::Models::tool_union]
|
|
181
|
-
?top_k: Integer,
|
|
182
|
-
?top_p: Float
|
|
164
|
+
?tools: ::Array[Anthropic::Models::tool_union]
|
|
183
165
|
) -> void
|
|
184
166
|
|
|
185
167
|
def to_hash: -> {
|
|
186
168
|
max_tokens: Integer,
|
|
187
|
-
messages: ::Array[Anthropic::
|
|
169
|
+
messages: ::Array[Anthropic::Models::message_param],
|
|
188
170
|
model: Anthropic::Models::model,
|
|
189
171
|
cache_control: Anthropic::CacheControlEphemeral?,
|
|
190
172
|
container: Anthropic::Models::message_create_params_container?,
|
|
@@ -197,12 +179,9 @@ module Anthropic
|
|
|
197
179
|
stop_sequences: ::Array[String],
|
|
198
180
|
stream: bool,
|
|
199
181
|
system_: Anthropic::Models::Messages::BatchCreateParams::Request::Params::system_,
|
|
200
|
-
temperature: Float,
|
|
201
182
|
thinking: Anthropic::Models::thinking_config_param,
|
|
202
183
|
tool_choice: Anthropic::Models::tool_choice,
|
|
203
|
-
tools: ::Array[Anthropic::Models::tool_union]
|
|
204
|
-
top_k: Integer,
|
|
205
|
-
top_p: Float
|
|
184
|
+
tools: ::Array[Anthropic::Models::tool_union]
|
|
206
185
|
}
|
|
207
186
|
|
|
208
187
|
type service_tier = :auto | :standard_only
|
|
@@ -6,7 +6,6 @@ module Anthropic
|
|
|
6
6
|
before_id: String,
|
|
7
7
|
lifecycle: ::Array[Anthropic::Models::ModelListParams::lifecycle],
|
|
8
8
|
limit: Integer,
|
|
9
|
-
betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
10
9
|
workspace_id: String
|
|
11
10
|
}
|
|
12
11
|
& Anthropic::Internal::Type::request_parameters
|
|
@@ -33,12 +32,6 @@ module Anthropic
|
|
|
33
32
|
|
|
34
33
|
def limit=: (Integer) -> Integer
|
|
35
34
|
|
|
36
|
-
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
|
37
|
-
|
|
38
|
-
def betas=: (
|
|
39
|
-
::Array[Anthropic::Models::anthropic_beta]
|
|
40
|
-
) -> ::Array[Anthropic::Models::anthropic_beta]
|
|
41
|
-
|
|
42
35
|
attr_reader workspace_id: String?
|
|
43
36
|
|
|
44
37
|
def workspace_id=: (String) -> String
|
|
@@ -48,7 +41,6 @@ module Anthropic
|
|
|
48
41
|
?before_id: String,
|
|
49
42
|
?lifecycle: ::Array[Anthropic::Models::ModelListParams::lifecycle],
|
|
50
43
|
?limit: Integer,
|
|
51
|
-
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
52
44
|
?workspace_id: String,
|
|
53
45
|
?request_options: Anthropic::request_opts
|
|
54
46
|
) -> void
|
|
@@ -58,7 +50,6 @@ module Anthropic
|
|
|
58
50
|
before_id: String,
|
|
59
51
|
lifecycle: ::Array[Anthropic::Models::ModelListParams::lifecycle],
|
|
60
52
|
limit: Integer,
|
|
61
|
-
betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
62
53
|
workspace_id: String,
|
|
63
54
|
request_options: Anthropic::RequestOptions
|
|
64
55
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
module Anthropic
|
|
2
2
|
module Models
|
|
3
3
|
type model_retrieve_params =
|
|
4
|
-
{
|
|
5
|
-
model_id: String,
|
|
6
|
-
betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
7
|
-
workspace_id: String
|
|
8
|
-
}
|
|
4
|
+
{ model_id: String, workspace_id: String }
|
|
9
5
|
& Anthropic::Internal::Type::request_parameters
|
|
10
6
|
|
|
11
7
|
class ModelRetrieveParams < Anthropic::Internal::Type::BaseModel
|
|
@@ -14,26 +10,18 @@ module Anthropic
|
|
|
14
10
|
|
|
15
11
|
attr_accessor model_id: String
|
|
16
12
|
|
|
17
|
-
attr_reader betas: ::Array[Anthropic::Models::anthropic_beta]?
|
|
18
|
-
|
|
19
|
-
def betas=: (
|
|
20
|
-
::Array[Anthropic::Models::anthropic_beta]
|
|
21
|
-
) -> ::Array[Anthropic::Models::anthropic_beta]
|
|
22
|
-
|
|
23
13
|
attr_reader workspace_id: String?
|
|
24
14
|
|
|
25
15
|
def workspace_id=: (String) -> String
|
|
26
16
|
|
|
27
17
|
def initialize: (
|
|
28
18
|
model_id: String,
|
|
29
|
-
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
30
19
|
?workspace_id: String,
|
|
31
20
|
?request_options: Anthropic::request_opts
|
|
32
21
|
) -> void
|
|
33
22
|
|
|
34
23
|
def to_hash: -> {
|
|
35
24
|
model_id: String,
|
|
36
|
-
betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
37
25
|
workspace_id: String,
|
|
38
26
|
request_options: Anthropic::RequestOptions
|
|
39
27
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type system_message_param =
|
|
4
|
+
{ content: Anthropic::Models::SystemMessageParam::content, role: :system }
|
|
5
|
+
|
|
6
|
+
class SystemMessageParam < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor content: Anthropic::Models::SystemMessageParam::content
|
|
8
|
+
|
|
9
|
+
attr_accessor role: :system
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
content: Anthropic::Models::SystemMessageParam::content,
|
|
13
|
+
?role: :system
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
content: Anthropic::Models::SystemMessageParam::content,
|
|
18
|
+
role: :system
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type content = String | ::Array[Anthropic::TextBlockParam]
|
|
22
|
+
|
|
23
|
+
module Content
|
|
24
|
+
extend Anthropic::Internal::Type::Union
|
|
25
|
+
|
|
26
|
+
def self?.variants: -> ::Array[Anthropic::Models::SystemMessageParam::content]
|
|
27
|
+
|
|
28
|
+
TextBlockParamArray: Anthropic::Internal::Type::Converter
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_message_param =
|
|
4
|
+
{ content: Anthropic::Models::message_content_param, role: :user }
|
|
5
|
+
|
|
6
|
+
class UserMessageParam < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor content: Anthropic::Models::message_content_param
|
|
8
|
+
|
|
9
|
+
attr_accessor role: :user
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
content: Anthropic::Models::message_content_param,
|
|
13
|
+
?role: :user
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> {
|
|
17
|
+
content: Anthropic::Models::message_content_param,
|
|
18
|
+
role: :user
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -5,6 +5,8 @@ module Anthropic
|
|
|
5
5
|
id: String,
|
|
6
6
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
9
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
8
10
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
9
11
|
metadata: ::Hash[Symbol, String],
|
|
10
12
|
name: String?,
|
|
@@ -20,6 +22,10 @@ module Anthropic
|
|
|
20
22
|
|
|
21
23
|
attr_accessor created_at: Time
|
|
22
24
|
|
|
25
|
+
attr_accessor enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action]
|
|
26
|
+
|
|
27
|
+
attr_accessor enforcement_status: Anthropic::Models::user_profile_enforcement_status
|
|
28
|
+
|
|
23
29
|
attr_accessor external_user_details: Anthropic::UserProfileExternalUserDetails
|
|
24
30
|
|
|
25
31
|
attr_accessor metadata: ::Hash[Symbol, String]
|
|
@@ -36,6 +42,8 @@ module Anthropic
|
|
|
36
42
|
id: String,
|
|
37
43
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
38
44
|
created_at: Time,
|
|
45
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
46
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
39
47
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
40
48
|
metadata: ::Hash[Symbol, String],
|
|
41
49
|
name: String?,
|
|
@@ -48,6 +56,8 @@ module Anthropic
|
|
|
48
56
|
id: String,
|
|
49
57
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
50
58
|
created_at: Time,
|
|
59
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
60
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
51
61
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
52
62
|
metadata: ::Hash[Symbol, String],
|
|
53
63
|
name: String?,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action =
|
|
4
|
+
Anthropic::UserProfileEnforcementActionRestriction
|
|
5
|
+
| Anthropic::UserProfileEnforcementActionBan
|
|
6
|
+
|
|
7
|
+
module UserProfileEnforcementAction
|
|
8
|
+
extend Anthropic::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
type type_ = :restriction | :ban
|
|
11
|
+
|
|
12
|
+
module Type
|
|
13
|
+
extend Anthropic::Internal::Type::Enum
|
|
14
|
+
|
|
15
|
+
RESTRICTION: :restriction
|
|
16
|
+
BAN: :ban
|
|
17
|
+
|
|
18
|
+
def self?.values: -> ::Array[Anthropic::Models::UserProfileEnforcementAction::type_]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self?.variants: -> ::Array[Anthropic::Models::user_profile_enforcement_action]
|
|
22
|
+
|
|
23
|
+
def self.new:
|
|
24
|
+
(
|
|
25
|
+
type: :restriction | "restriction",
|
|
26
|
+
id: String,
|
|
27
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
28
|
+
expires_at: Time?,
|
|
29
|
+
opened_at: Time,
|
|
30
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
31
|
+
) -> Anthropic::UserProfileEnforcementActionRestriction
|
|
32
|
+
| (
|
|
33
|
+
type: :ban | "ban",
|
|
34
|
+
id: String,
|
|
35
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
36
|
+
expires_at: Time?,
|
|
37
|
+
opened_at: Time,
|
|
38
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
39
|
+
) -> Anthropic::UserProfileEnforcementActionBan
|
|
40
|
+
| (
|
|
41
|
+
type: Anthropic::Models::UserProfileEnforcementAction::type_ | String,
|
|
42
|
+
id: String,
|
|
43
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
44
|
+
expires_at: Time?,
|
|
45
|
+
opened_at: Time,
|
|
46
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
47
|
+
) -> Anthropic::Models::user_profile_enforcement_action
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_ban =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
7
|
+
expires_at: Time?,
|
|
8
|
+
opened_at: Time,
|
|
9
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
10
|
+
type: :ban
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class UserProfileEnforcementActionBan < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor action: Anthropic::Models::user_profile_enforcement_action_next_step?
|
|
17
|
+
|
|
18
|
+
attr_accessor expires_at: Time?
|
|
19
|
+
|
|
20
|
+
attr_accessor opened_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
23
|
+
|
|
24
|
+
attr_accessor type: :ban
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
29
|
+
expires_at: Time?,
|
|
30
|
+
opened_at: Time,
|
|
31
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
32
|
+
?type: :ban
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
38
|
+
expires_at: Time?,
|
|
39
|
+
opened_at: Time,
|
|
40
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
41
|
+
type: :ban
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_next_step = :verify
|
|
4
|
+
|
|
5
|
+
module UserProfileEnforcementActionNextStep
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
VERIFY: :verify
|
|
9
|
+
|
|
10
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_action_next_step]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_reason =
|
|
4
|
+
:unsupported_region
|
|
5
|
+
| :fraud_or_abuse
|
|
6
|
+
| :high_harm
|
|
7
|
+
| :usage_policy_violation
|
|
8
|
+
| :account_compromise
|
|
9
|
+
| :unspecified
|
|
10
|
+
|
|
11
|
+
module UserProfileEnforcementActionReason
|
|
12
|
+
extend Anthropic::Internal::Type::Enum
|
|
13
|
+
|
|
14
|
+
UNSUPPORTED_REGION: :unsupported_region
|
|
15
|
+
FRAUD_OR_ABUSE: :fraud_or_abuse
|
|
16
|
+
HIGH_HARM: :high_harm
|
|
17
|
+
USAGE_POLICY_VIOLATION: :usage_policy_violation
|
|
18
|
+
ACCOUNT_COMPROMISE: :account_compromise
|
|
19
|
+
UNSPECIFIED: :unspecified
|
|
20
|
+
|
|
21
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_action_reason]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_restriction =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
7
|
+
expires_at: Time?,
|
|
8
|
+
opened_at: Time,
|
|
9
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
10
|
+
type: :restriction
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class UserProfileEnforcementActionRestriction < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor action: Anthropic::Models::user_profile_enforcement_action_next_step?
|
|
17
|
+
|
|
18
|
+
attr_accessor expires_at: Time?
|
|
19
|
+
|
|
20
|
+
attr_accessor opened_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
23
|
+
|
|
24
|
+
attr_accessor type: :restriction
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
29
|
+
expires_at: Time?,
|
|
30
|
+
opened_at: Time,
|
|
31
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
32
|
+
?type: :restriction
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
38
|
+
expires_at: Time?,
|
|
39
|
+
opened_at: Time,
|
|
40
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
41
|
+
type: :restriction
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_status =
|
|
4
|
+
:unrestricted | :pending | :restricted | :banned
|
|
5
|
+
|
|
6
|
+
module UserProfileEnforcementStatus
|
|
7
|
+
extend Anthropic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
UNRESTRICTED: :unrestricted
|
|
10
|
+
PENDING: :pending
|
|
11
|
+
RESTRICTED: :restricted
|
|
12
|
+
BANNED: :banned
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -2,6 +2,7 @@ module Anthropic
|
|
|
2
2
|
module Models
|
|
3
3
|
type user_profile_list_params =
|
|
4
4
|
{
|
|
5
|
+
enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
5
6
|
limit: Integer,
|
|
6
7
|
order: Anthropic::Models::user_profile_list_order,
|
|
7
8
|
order_by: Anthropic::Models::user_profile_list_order_by,
|
|
@@ -14,6 +15,12 @@ module Anthropic
|
|
|
14
15
|
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Anthropic::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_reader enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status]?
|
|
19
|
+
|
|
20
|
+
def enforcement_status=: (
|
|
21
|
+
::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
22
|
+
) -> ::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
23
|
+
|
|
17
24
|
attr_reader limit: Integer?
|
|
18
25
|
|
|
19
26
|
def limit=: (Integer) -> Integer
|
|
@@ -39,6 +46,7 @@ module Anthropic
|
|
|
39
46
|
def workspace_id=: (String) -> String
|
|
40
47
|
|
|
41
48
|
def initialize: (
|
|
49
|
+
?enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
42
50
|
?limit: Integer,
|
|
43
51
|
?order: Anthropic::Models::user_profile_list_order,
|
|
44
52
|
?order_by: Anthropic::Models::user_profile_list_order_by,
|
|
@@ -48,6 +56,7 @@ module Anthropic
|
|
|
48
56
|
) -> void
|
|
49
57
|
|
|
50
58
|
def to_hash: -> {
|
|
59
|
+
enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
51
60
|
limit: Integer,
|
|
52
61
|
order: Anthropic::Models::user_profile_list_order,
|
|
53
62
|
order_by: Anthropic::Models::user_profile_list_order_by,
|