anthropic 1.81.0 → 2.0.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 +37 -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/report_page_cursor.rb +1 -1
- data/lib/anthropic/internal/tracing.rb +10 -4
- data/lib/anthropic/internal/transport/base_client.rb +8 -5
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- 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/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +16 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rb +43 -0
- data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rb +43 -0
- 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_deleted_organization_webhook_endpoint.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +113 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +6 -46
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +104 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rb +28 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rb +20 -0
- 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/webhook_create_params.rb +73 -0
- data/lib/anthropic/models/beta/organization/webhook_delete_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_list_params.rb +75 -0
- data/lib/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rb +39 -0
- data/lib/anthropic/models/beta/organization/webhook_retrieve_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +105 -0
- 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.rb +8 -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/organization/webhooks.rb +287 -0
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- 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/version.rb +1 -1
- data/lib/anthropic.rb +22 -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 +8 -1
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- 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/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +19 -4
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbi +65 -0
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbi +65 -0
- 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_deleted_organization_webhook_endpoint.rbi +41 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +175 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +5 -86
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +164 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbi +37 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbi +44 -0
- 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/webhook_create_params.rbi +151 -0
- data/rbi/anthropic/models/beta/organization/webhook_delete_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_list_params.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_retrieve_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +241 -0
- 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.rbi +8 -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/organization/webhooks.rbi +248 -0
- data/rbi/anthropic/resources/beta/organization.rbi +3 -0
- 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/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 +6 -1
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- 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/beta_webhook_event_data.rbs +23 -2
- data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbs +39 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbs +39 -0
- 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_deleted_organization_webhook_endpoint.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +82 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs +0 -26
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +77 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbs +18 -0
- 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/webhook_create_params.rbs +71 -0
- data/sig/anthropic/models/beta/organization/webhook_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_list_params.rbs +67 -0
- data/sig/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +102 -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.rbs +9 -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/organization/webhooks.rbs +58 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -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
- metadata +70 -12
- 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
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Resources
|
|
5
|
+
class Beta
|
|
6
|
+
class Organization
|
|
7
|
+
class Webhooks
|
|
8
|
+
# Create an organization webhook endpoint.
|
|
9
|
+
#
|
|
10
|
+
# An organization webhook endpoint belongs to the organization rather than to one
|
|
11
|
+
# of its workspaces. An organization can have at most 32 organization webhook
|
|
12
|
+
# endpoints, enabled or disabled.
|
|
13
|
+
#
|
|
14
|
+
# The response includes the endpoint's signing secret. No read returns it, so
|
|
15
|
+
# store it when you receive it.
|
|
16
|
+
#
|
|
17
|
+
# Every request must include the beta header
|
|
18
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
19
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
20
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
21
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
22
|
+
# organizations with HIPAA readiness enabled.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
enabled_events:
|
|
26
|
+
T::Array[
|
|
27
|
+
Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent::OrSymbol
|
|
28
|
+
],
|
|
29
|
+
url: String,
|
|
30
|
+
description: String,
|
|
31
|
+
name: String,
|
|
32
|
+
betas:
|
|
33
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
34
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
35
|
+
).returns(
|
|
36
|
+
Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def create(
|
|
40
|
+
# Body param: The event types to deliver to the endpoint. Must list at least one.
|
|
41
|
+
enabled_events:,
|
|
42
|
+
# Body param: The HTTPS URL that deliveries are sent to.
|
|
43
|
+
url:,
|
|
44
|
+
# Body param: Notes about the endpoint.
|
|
45
|
+
description: nil,
|
|
46
|
+
# Body param: A short label for the endpoint.
|
|
47
|
+
name: nil,
|
|
48
|
+
# Header param: This endpoint is in beta: requests must send `webhooks-2026-10-07`
|
|
49
|
+
# in this header.
|
|
50
|
+
betas: nil,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Retrieve an organization webhook endpoint by ID.
|
|
56
|
+
#
|
|
57
|
+
# Every request must include the beta header
|
|
58
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
59
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
60
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
61
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
62
|
+
# organizations with HIPAA readiness enabled.
|
|
63
|
+
sig do
|
|
64
|
+
params(
|
|
65
|
+
webhook_endpoint_id: String,
|
|
66
|
+
betas:
|
|
67
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
68
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
69
|
+
).returns(
|
|
70
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
def retrieve(
|
|
74
|
+
# ID of the webhook endpoint.
|
|
75
|
+
webhook_endpoint_id,
|
|
76
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
77
|
+
# header.
|
|
78
|
+
betas: nil,
|
|
79
|
+
request_options: {}
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Update an organization webhook endpoint. Only the fields you send are changed.
|
|
84
|
+
#
|
|
85
|
+
# Every request must include the beta header
|
|
86
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
87
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
88
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
89
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
90
|
+
# organizations with HIPAA readiness enabled.
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
webhook_endpoint_id: String,
|
|
94
|
+
description: String,
|
|
95
|
+
enabled_events:
|
|
96
|
+
T::Array[
|
|
97
|
+
Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent::OrSymbol
|
|
98
|
+
],
|
|
99
|
+
name: String,
|
|
100
|
+
state:
|
|
101
|
+
Anthropic::Beta::Organization::WebhookUpdateParams::State::OrSymbol,
|
|
102
|
+
url: String,
|
|
103
|
+
betas:
|
|
104
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
105
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
106
|
+
).returns(
|
|
107
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
def update(
|
|
111
|
+
# Path param: ID of the webhook endpoint.
|
|
112
|
+
webhook_endpoint_id,
|
|
113
|
+
# Body param: Notes about the endpoint.
|
|
114
|
+
description: nil,
|
|
115
|
+
# Body param: The event types to deliver to the endpoint. Replaces the whole set;
|
|
116
|
+
# an empty list leaves it unchanged.
|
|
117
|
+
enabled_events: nil,
|
|
118
|
+
# Body param: A short label for the endpoint.
|
|
119
|
+
name: nil,
|
|
120
|
+
# Body param: `disabled` stops deliveries. `enabled` resumes them and clears
|
|
121
|
+
# `disabled_reason`. Events that happen while the endpoint is disabled are never
|
|
122
|
+
# delivered.
|
|
123
|
+
state: nil,
|
|
124
|
+
# Body param: The HTTPS URL that deliveries are sent to.
|
|
125
|
+
url: nil,
|
|
126
|
+
# Header param: This endpoint is in beta: requests must send `webhooks-2026-10-07`
|
|
127
|
+
# in this header.
|
|
128
|
+
betas: nil,
|
|
129
|
+
request_options: {}
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# List the organization's webhook endpoints.
|
|
134
|
+
#
|
|
135
|
+
# An organization webhook endpoint belongs to the organization rather than to one
|
|
136
|
+
# of its workspaces. The list does not include webhook endpoints that belong to a
|
|
137
|
+
# workspace.
|
|
138
|
+
#
|
|
139
|
+
# Every request must include the beta header
|
|
140
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
141
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
142
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
143
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
144
|
+
# organizations with HIPAA readiness enabled.
|
|
145
|
+
sig do
|
|
146
|
+
params(
|
|
147
|
+
after_id: T.nilable(String),
|
|
148
|
+
before_id: T.nilable(String),
|
|
149
|
+
limit: Integer,
|
|
150
|
+
order:
|
|
151
|
+
T.nilable(
|
|
152
|
+
Anthropic::Beta::Organization::WebhookListParams::Order::OrSymbol
|
|
153
|
+
),
|
|
154
|
+
betas:
|
|
155
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
156
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
157
|
+
).returns(
|
|
158
|
+
Anthropic::Internal::Page[
|
|
159
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint
|
|
160
|
+
]
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
def list(
|
|
164
|
+
# Query param: ID of the object to use as a cursor for pagination. When provided,
|
|
165
|
+
# returns the page of results immediately after this object.
|
|
166
|
+
after_id: nil,
|
|
167
|
+
# Query param: ID of a webhook endpoint to use as a cursor. Returns the first
|
|
168
|
+
# `limit` endpoints that come before it in list order, not the `limit` endpoints
|
|
169
|
+
# just before it.
|
|
170
|
+
before_id: nil,
|
|
171
|
+
# Query param: Number of items to return per page, up to `100`. The default, `0`,
|
|
172
|
+
# means `20`.
|
|
173
|
+
limit: nil,
|
|
174
|
+
# Query param: Sort order by `created_at`. Defaults to `desc`, newest first.
|
|
175
|
+
order: nil,
|
|
176
|
+
# Header param: This endpoint is in beta: requests must send `webhooks-2026-10-07`
|
|
177
|
+
# in this header.
|
|
178
|
+
betas: nil,
|
|
179
|
+
request_options: {}
|
|
180
|
+
)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Delete an organization webhook endpoint.
|
|
184
|
+
#
|
|
185
|
+
# Every request must include the beta header
|
|
186
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
187
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
188
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
189
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
190
|
+
# organizations with HIPAA readiness enabled.
|
|
191
|
+
sig do
|
|
192
|
+
params(
|
|
193
|
+
webhook_endpoint_id: String,
|
|
194
|
+
betas:
|
|
195
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
196
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
197
|
+
).returns(
|
|
198
|
+
Anthropic::Beta::Organization::BetaDeletedOrganizationWebhookEndpoint
|
|
199
|
+
)
|
|
200
|
+
end
|
|
201
|
+
def delete(
|
|
202
|
+
# ID of the webhook endpoint.
|
|
203
|
+
webhook_endpoint_id,
|
|
204
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
205
|
+
# header.
|
|
206
|
+
betas: nil,
|
|
207
|
+
request_options: {}
|
|
208
|
+
)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Replace an organization webhook endpoint's signing secret. The old secret stops
|
|
212
|
+
# working immediately. The new secret is returned only in this response.
|
|
213
|
+
#
|
|
214
|
+
# Every request must include the beta header
|
|
215
|
+
# `anthropic-beta: webhooks-2026-10-07`. A request without it returns `404`,
|
|
216
|
+
# exactly as if this API did not exist. Anthropic turns organization webhook
|
|
217
|
+
# endpoints on for each organization; until yours is on, requests also return
|
|
218
|
+
# `404`. Organization webhook endpoints are in beta and are not available to
|
|
219
|
+
# organizations with HIPAA readiness enabled.
|
|
220
|
+
sig do
|
|
221
|
+
params(
|
|
222
|
+
webhook_endpoint_id: String,
|
|
223
|
+
betas:
|
|
224
|
+
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
225
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
226
|
+
).returns(
|
|
227
|
+
Anthropic::Beta::Organization::BetaOrganizationWebhookEndpointSigningSecret
|
|
228
|
+
)
|
|
229
|
+
end
|
|
230
|
+
def regenerate_signing_secret(
|
|
231
|
+
# ID of the webhook endpoint.
|
|
232
|
+
webhook_endpoint_id,
|
|
233
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
234
|
+
# header.
|
|
235
|
+
betas: nil,
|
|
236
|
+
request_options: {}
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# @api private
|
|
241
|
+
sig { params(client: Anthropic::Client).returns(T.attached_class) }
|
|
242
|
+
def self.new(client:)
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
@@ -62,6 +62,9 @@ module Anthropic
|
|
|
62
62
|
end
|
|
63
63
|
attr_reader :telemetry_destinations
|
|
64
64
|
|
|
65
|
+
sig { returns(Anthropic::Resources::Beta::Organization::Webhooks) }
|
|
66
|
+
attr_reader :webhooks
|
|
67
|
+
|
|
65
68
|
# Retrieve information about the organization associated with the authenticated
|
|
66
69
|
# API key.
|
|
67
70
|
sig do
|
|
@@ -148,12 +148,11 @@ module Anthropic
|
|
|
148
148
|
params(
|
|
149
149
|
session_id: String,
|
|
150
150
|
file_id: String,
|
|
151
|
-
type:
|
|
152
|
-
Anthropic::Beta::BetaManagedAgentsFileResourceParams::Type::OrSymbol,
|
|
153
151
|
mount_path: T.nilable(String),
|
|
154
152
|
betas:
|
|
155
153
|
T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
156
154
|
workspace_id: String,
|
|
155
|
+
type: Symbol,
|
|
157
156
|
request_options: Anthropic::RequestOptions::OrHash
|
|
158
157
|
).returns(Anthropic::Beta::Sessions::BetaManagedAgentsFileResource)
|
|
159
158
|
end
|
|
@@ -162,8 +161,6 @@ module Anthropic
|
|
|
162
161
|
session_id,
|
|
163
162
|
# Body param: ID of a previously uploaded file.
|
|
164
163
|
file_id:,
|
|
165
|
-
# Body param
|
|
166
|
-
type:,
|
|
167
164
|
# Body param: Mount path in the container. Defaults to
|
|
168
165
|
# `/mnt/session/uploads/<file_id>`.
|
|
169
166
|
mount_path: nil,
|
|
@@ -177,6 +174,8 @@ module Anthropic
|
|
|
177
174
|
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
178
175
|
# match that Workspace.
|
|
179
176
|
workspace_id: nil,
|
|
177
|
+
# Body param
|
|
178
|
+
type: :file,
|
|
180
179
|
request_options: {}
|
|
181
180
|
)
|
|
182
181
|
end
|
|
@@ -19,7 +19,14 @@ module Anthropic
|
|
|
19
19
|
sig do
|
|
20
20
|
params(
|
|
21
21
|
max_tokens: Integer,
|
|
22
|
-
messages:
|
|
22
|
+
messages:
|
|
23
|
+
T::Array[
|
|
24
|
+
T.any(
|
|
25
|
+
Anthropic::UserMessageParam::OrHash,
|
|
26
|
+
Anthropic::AssistantMessageParam::OrHash,
|
|
27
|
+
Anthropic::SystemMessageParam::OrHash
|
|
28
|
+
)
|
|
29
|
+
],
|
|
23
30
|
model: T.any(Anthropic::Model::OrSymbol, String),
|
|
24
31
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral::OrHash),
|
|
25
32
|
container:
|
|
@@ -32,7 +39,6 @@ module Anthropic
|
|
|
32
39
|
speed: T.nilable(Anthropic::MessageCreateParams::Speed::OrSymbol),
|
|
33
40
|
stop_sequences: T::Array[String],
|
|
34
41
|
system_: Anthropic::MessageCreateParams::System::Variants,
|
|
35
|
-
temperature: Float,
|
|
36
42
|
thinking:
|
|
37
43
|
T.any(
|
|
38
44
|
Anthropic::ThinkingConfigEnabled::OrHash,
|
|
@@ -73,8 +79,6 @@ module Anthropic
|
|
|
73
79
|
Anthropic::ToolSearchToolRegex20251119::OrHash
|
|
74
80
|
)
|
|
75
81
|
],
|
|
76
|
-
top_k: Integer,
|
|
77
|
-
top_p: Float,
|
|
78
82
|
user_profile_id: String,
|
|
79
83
|
workspace_id: String,
|
|
80
84
|
stream: T.noreturn,
|
|
@@ -161,8 +165,7 @@ module Anthropic
|
|
|
161
165
|
#
|
|
162
166
|
# Note that if you want to include a
|
|
163
167
|
# [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
164
|
-
# you can use the top-level `system` parameter
|
|
165
|
-
# input messages in the Messages API.
|
|
168
|
+
# you can use the top-level `system` parameter.
|
|
166
169
|
#
|
|
167
170
|
# There is a limit of 100,000 messages in a single request.
|
|
168
171
|
messages:,
|
|
@@ -219,15 +222,6 @@ module Anthropic
|
|
|
219
222
|
# as specifying a particular goal or role. See our
|
|
220
223
|
# [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
221
224
|
system_: nil,
|
|
222
|
-
# Body param: Amount of randomness injected into the response.
|
|
223
|
-
#
|
|
224
|
-
# Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
|
|
225
|
-
# for analytical / multiple choice, and closer to `1.0` for creative and
|
|
226
|
-
# generative tasks.
|
|
227
|
-
#
|
|
228
|
-
# Note that even with `temperature` of `0.0`, the results will not be fully
|
|
229
|
-
# deterministic.
|
|
230
|
-
temperature: nil,
|
|
231
225
|
# Body param: Configuration for Claude's thinking.
|
|
232
226
|
#
|
|
233
227
|
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
@@ -320,21 +314,6 @@ module Anthropic
|
|
|
320
314
|
# [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
321
315
|
# for more details.
|
|
322
316
|
tools: nil,
|
|
323
|
-
# Body param: Only sample from the top K options for each subsequent token.
|
|
324
|
-
#
|
|
325
|
-
# Used to remove "long tail" low probability responses.
|
|
326
|
-
# [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
|
|
327
|
-
#
|
|
328
|
-
# Recommended for advanced use cases only.
|
|
329
|
-
top_k: nil,
|
|
330
|
-
# Body param: Use nucleus sampling.
|
|
331
|
-
#
|
|
332
|
-
# In nucleus sampling, we compute the cumulative distribution over all the options
|
|
333
|
-
# for each subsequent token in decreasing probability order and cut it off once it
|
|
334
|
-
# reaches a particular probability specified by `top_p`.
|
|
335
|
-
#
|
|
336
|
-
# Recommended for advanced use cases only.
|
|
337
|
-
top_p: nil,
|
|
338
317
|
# Header param: The user profile ID to attribute this request to. Use when acting
|
|
339
318
|
# on behalf of a party other than your organization.
|
|
340
319
|
user_profile_id: nil,
|
|
@@ -365,7 +344,14 @@ module Anthropic
|
|
|
365
344
|
sig do
|
|
366
345
|
params(
|
|
367
346
|
max_tokens: Integer,
|
|
368
|
-
messages:
|
|
347
|
+
messages:
|
|
348
|
+
T::Array[
|
|
349
|
+
T.any(
|
|
350
|
+
Anthropic::UserMessageParam::OrHash,
|
|
351
|
+
Anthropic::AssistantMessageParam::OrHash,
|
|
352
|
+
Anthropic::SystemMessageParam::OrHash
|
|
353
|
+
)
|
|
354
|
+
],
|
|
369
355
|
model: T.any(Anthropic::Model::OrSymbol, String),
|
|
370
356
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral::OrHash),
|
|
371
357
|
container:
|
|
@@ -378,7 +364,6 @@ module Anthropic
|
|
|
378
364
|
speed: T.nilable(Anthropic::MessageCreateParams::Speed::OrSymbol),
|
|
379
365
|
stop_sequences: T::Array[String],
|
|
380
366
|
system_: Anthropic::MessageCreateParams::System::Variants,
|
|
381
|
-
temperature: Float,
|
|
382
367
|
thinking:
|
|
383
368
|
T.any(
|
|
384
369
|
Anthropic::ThinkingConfigEnabled::OrHash,
|
|
@@ -419,8 +404,6 @@ module Anthropic
|
|
|
419
404
|
Anthropic::ToolSearchToolRegex20251119::OrHash
|
|
420
405
|
)
|
|
421
406
|
],
|
|
422
|
-
top_k: Integer,
|
|
423
|
-
top_p: Float,
|
|
424
407
|
user_profile_id: String,
|
|
425
408
|
workspace_id: String,
|
|
426
409
|
stream: T.noreturn,
|
|
@@ -512,8 +495,7 @@ module Anthropic
|
|
|
512
495
|
#
|
|
513
496
|
# Note that if you want to include a
|
|
514
497
|
# [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
515
|
-
# you can use the top-level `system` parameter
|
|
516
|
-
# input messages in the Messages API.
|
|
498
|
+
# you can use the top-level `system` parameter.
|
|
517
499
|
#
|
|
518
500
|
# There is a limit of 100,000 messages in a single request.
|
|
519
501
|
messages:,
|
|
@@ -570,15 +552,6 @@ module Anthropic
|
|
|
570
552
|
# as specifying a particular goal or role. See our
|
|
571
553
|
# [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
572
554
|
system_: nil,
|
|
573
|
-
# Body param: Amount of randomness injected into the response.
|
|
574
|
-
#
|
|
575
|
-
# Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
|
|
576
|
-
# for analytical / multiple choice, and closer to `1.0` for creative and
|
|
577
|
-
# generative tasks.
|
|
578
|
-
#
|
|
579
|
-
# Note that even with `temperature` of `0.0`, the results will not be fully
|
|
580
|
-
# deterministic.
|
|
581
|
-
temperature: nil,
|
|
582
555
|
# Body param: Configuration for Claude's thinking.
|
|
583
556
|
#
|
|
584
557
|
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
@@ -671,21 +644,6 @@ module Anthropic
|
|
|
671
644
|
# [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
672
645
|
# for more details.
|
|
673
646
|
tools: nil,
|
|
674
|
-
# Body param: Only sample from the top K options for each subsequent token.
|
|
675
|
-
#
|
|
676
|
-
# Used to remove "long tail" low probability responses.
|
|
677
|
-
# [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
|
|
678
|
-
#
|
|
679
|
-
# Recommended for advanced use cases only.
|
|
680
|
-
top_k: nil,
|
|
681
|
-
# Body param: Use nucleus sampling.
|
|
682
|
-
#
|
|
683
|
-
# In nucleus sampling, we compute the cumulative distribution over all the options
|
|
684
|
-
# for each subsequent token in decreasing probability order and cut it off once it
|
|
685
|
-
# reaches a particular probability specified by `top_p`.
|
|
686
|
-
#
|
|
687
|
-
# Recommended for advanced use cases only.
|
|
688
|
-
top_p: nil,
|
|
689
647
|
# Header param: The user profile ID to attribute this request to. Use when acting
|
|
690
648
|
# on behalf of a party other than your organization.
|
|
691
649
|
user_profile_id: nil,
|
|
@@ -712,7 +670,14 @@ module Anthropic
|
|
|
712
670
|
# [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
|
|
713
671
|
sig do
|
|
714
672
|
params(
|
|
715
|
-
messages:
|
|
673
|
+
messages:
|
|
674
|
+
T::Array[
|
|
675
|
+
T.any(
|
|
676
|
+
Anthropic::UserMessageParam::OrHash,
|
|
677
|
+
Anthropic::AssistantMessageParam::OrHash,
|
|
678
|
+
Anthropic::SystemMessageParam::OrHash
|
|
679
|
+
)
|
|
680
|
+
],
|
|
716
681
|
model: T.any(Anthropic::Model::OrSymbol, String),
|
|
717
682
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral::OrHash),
|
|
718
683
|
output_config: Anthropic::OutputConfig::OrHash,
|
|
@@ -831,8 +796,7 @@ module Anthropic
|
|
|
831
796
|
#
|
|
832
797
|
# Note that if you want to include a
|
|
833
798
|
# [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
834
|
-
# you can use the top-level `system` parameter
|
|
835
|
-
# input messages in the Messages API.
|
|
799
|
+
# you can use the top-level `system` parameter.
|
|
836
800
|
#
|
|
837
801
|
# There is a limit of 100,000 messages in a single request.
|
|
838
802
|
messages:,
|
|
@@ -972,7 +936,14 @@ module Anthropic
|
|
|
972
936
|
sig do
|
|
973
937
|
params(
|
|
974
938
|
max_tokens: Integer,
|
|
975
|
-
messages:
|
|
939
|
+
messages:
|
|
940
|
+
T::Array[
|
|
941
|
+
T.any(
|
|
942
|
+
Anthropic::UserMessageParam::OrHash,
|
|
943
|
+
Anthropic::AssistantMessageParam::OrHash,
|
|
944
|
+
Anthropic::SystemMessageParam::OrHash
|
|
945
|
+
)
|
|
946
|
+
],
|
|
976
947
|
model: T.any(Anthropic::Model::OrSymbol, String),
|
|
977
948
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral::OrHash),
|
|
978
949
|
container:
|
|
@@ -985,7 +956,6 @@ module Anthropic
|
|
|
985
956
|
speed: T.nilable(Anthropic::MessageCreateParams::Speed::OrSymbol),
|
|
986
957
|
stop_sequences: T::Array[String],
|
|
987
958
|
system_: Anthropic::MessageCreateParams::System::Variants,
|
|
988
|
-
temperature: Float,
|
|
989
959
|
thinking:
|
|
990
960
|
T.any(
|
|
991
961
|
Anthropic::ThinkingConfigEnabled::OrHash,
|
|
@@ -1026,8 +996,6 @@ module Anthropic
|
|
|
1026
996
|
Anthropic::ToolSearchToolRegex20251119::OrHash
|
|
1027
997
|
)
|
|
1028
998
|
],
|
|
1029
|
-
top_k: Integer,
|
|
1030
|
-
top_p: Float,
|
|
1031
999
|
user_profile_id: String,
|
|
1032
1000
|
workspace_id: String,
|
|
1033
1001
|
request_options: Anthropic::RequestOptions::OrHash
|
|
@@ -1113,8 +1081,7 @@ module Anthropic
|
|
|
1113
1081
|
#
|
|
1114
1082
|
# Note that if you want to include a
|
|
1115
1083
|
# [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
|
|
1116
|
-
# you can use the top-level `system` parameter
|
|
1117
|
-
# input messages in the Messages API.
|
|
1084
|
+
# you can use the top-level `system` parameter.
|
|
1118
1085
|
#
|
|
1119
1086
|
# There is a limit of 100,000 messages in a single request.
|
|
1120
1087
|
messages:,
|
|
@@ -1171,15 +1138,6 @@ module Anthropic
|
|
|
1171
1138
|
# as specifying a particular goal or role. See our
|
|
1172
1139
|
# [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
1173
1140
|
system_: nil,
|
|
1174
|
-
# Body param: Amount of randomness injected into the response.
|
|
1175
|
-
#
|
|
1176
|
-
# Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
|
|
1177
|
-
# for analytical / multiple choice, and closer to `1.0` for creative and
|
|
1178
|
-
# generative tasks.
|
|
1179
|
-
#
|
|
1180
|
-
# Note that even with `temperature` of `0.0`, the results will not be fully
|
|
1181
|
-
# deterministic.
|
|
1182
|
-
temperature: nil,
|
|
1183
1141
|
# Body param: Configuration for Claude's thinking.
|
|
1184
1142
|
#
|
|
1185
1143
|
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
@@ -1272,21 +1230,6 @@ module Anthropic
|
|
|
1272
1230
|
# [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
|
|
1273
1231
|
# for more details.
|
|
1274
1232
|
tools: nil,
|
|
1275
|
-
# Body param: Only sample from the top K options for each subsequent token.
|
|
1276
|
-
#
|
|
1277
|
-
# Used to remove "long tail" low probability responses.
|
|
1278
|
-
# [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
|
|
1279
|
-
#
|
|
1280
|
-
# Recommended for advanced use cases only.
|
|
1281
|
-
top_k: nil,
|
|
1282
|
-
# Body param: Use nucleus sampling.
|
|
1283
|
-
#
|
|
1284
|
-
# In nucleus sampling, we compute the cumulative distribution over all the options
|
|
1285
|
-
# for each subsequent token in decreasing probability order and cut it off once it
|
|
1286
|
-
# reaches a particular probability specified by `top_p`.
|
|
1287
|
-
#
|
|
1288
|
-
# Recommended for advanced use cases only.
|
|
1289
|
-
top_p: nil,
|
|
1290
1233
|
# Header param: The user profile ID to attribute this request to. Use when acting
|
|
1291
1234
|
# on behalf of a party other than your organization.
|
|
1292
1235
|
user_profile_id: nil,
|
|
@@ -10,7 +10,6 @@ module Anthropic
|
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
12
|
model_id: String,
|
|
13
|
-
betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
14
13
|
workspace_id: String,
|
|
15
14
|
request_options: Anthropic::RequestOptions::OrHash
|
|
16
15
|
).returns(Anthropic::ModelInfo)
|
|
@@ -18,8 +17,6 @@ module Anthropic
|
|
|
18
17
|
def retrieve(
|
|
19
18
|
# Model identifier or alias.
|
|
20
19
|
model_id,
|
|
21
|
-
# Optional header to specify the beta version(s) you want to use.
|
|
22
|
-
betas: nil,
|
|
23
20
|
# Optional header to select the Workspace for this request. The value is a
|
|
24
21
|
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
25
22
|
#
|
|
@@ -41,7 +38,6 @@ module Anthropic
|
|
|
41
38
|
before_id: String,
|
|
42
39
|
lifecycle: T::Array[Anthropic::ModelListParams::Lifecycle::OrSymbol],
|
|
43
40
|
limit: Integer,
|
|
44
|
-
betas: T::Array[T.any(Anthropic::AnthropicBeta::OrSymbol, String)],
|
|
45
41
|
workspace_id: String,
|
|
46
42
|
request_options: Anthropic::RequestOptions::OrHash
|
|
47
43
|
).returns(Anthropic::Internal::Page[Anthropic::ModelInfo])
|
|
@@ -62,8 +58,6 @@ module Anthropic
|
|
|
62
58
|
#
|
|
63
59
|
# Defaults to `20`. Ranges from `1` to `1000`.
|
|
64
60
|
limit: nil,
|
|
65
|
-
# Header param: Optional header to specify the beta version(s) you want to use.
|
|
66
|
-
betas: nil,
|
|
67
61
|
# Header param: Optional header to select the Workspace for this request. The
|
|
68
62
|
# value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
69
63
|
#
|
data/sig/anthropic/client.rbs
CHANGED
|
@@ -14,8 +14,6 @@ module Anthropic
|
|
|
14
14
|
|
|
15
15
|
attr_reader webhook_key: String?
|
|
16
16
|
|
|
17
|
-
attr_reader completions: Anthropic::Resources::Completions
|
|
18
|
-
|
|
19
17
|
attr_reader messages: Anthropic::Resources::Messages
|
|
20
18
|
|
|
21
19
|
attr_reader models: Anthropic::Resources::Models
|
|
@@ -43,6 +41,8 @@ module Anthropic
|
|
|
43
41
|
?api_key: String?,
|
|
44
42
|
?auth_token: String?,
|
|
45
43
|
?webhook_key: String?,
|
|
44
|
+
?credentials: Anthropic::Credentials::_AccessTokenProvider?,
|
|
45
|
+
?config: ::Hash[String, untyped]?,
|
|
46
46
|
?base_url: String?,
|
|
47
47
|
?proxy: (String | URI::Generic)?,
|
|
48
48
|
?max_retries: Integer,
|
|
@@ -2,12 +2,8 @@ module Anthropic
|
|
|
2
2
|
module Helpers
|
|
3
3
|
module Bedrock
|
|
4
4
|
class Client < Anthropic::Client
|
|
5
|
-
DEFAULT_VERSION: String
|
|
6
|
-
|
|
7
5
|
attr_reader aws_region: String
|
|
8
6
|
|
|
9
|
-
attr_reader completions: Anthropic::Resources::Completions
|
|
10
|
-
|
|
11
7
|
attr_reader messages: Anthropic::Resources::Messages
|
|
12
8
|
|
|
13
9
|
attr_reader beta: Anthropic::Resources::Beta
|
|
@@ -58,7 +58,6 @@ module Anthropic
|
|
|
58
58
|
GEN_AI_AGENT_NAME: "gen_ai.agent.name"
|
|
59
59
|
|
|
60
60
|
module SpanName
|
|
61
|
-
COMPLETIONS_CREATE: "anthropic.completions.create"
|
|
62
61
|
MESSAGES_CREATE: "anthropic.messages.create"
|
|
63
62
|
MESSAGES_COUNT_TOKENS: "anthropic.messages.count_tokens"
|
|
64
63
|
MESSAGES_BATCHES_CREATE: "anthropic.messages.batches.create"
|
|
@@ -298,6 +297,12 @@ module Anthropic
|
|
|
298
297
|
ORGANIZATION_TELEMETRY_DESTINATIONS_WORKSPACES_LIST: "anthropic.organization.telemetry_destinations.workspaces.list"
|
|
299
298
|
ORGANIZATION_TELEMETRY_DESTINATIONS_WORKSPACES_ADD: "anthropic.organization.telemetry_destinations.workspaces.add"
|
|
300
299
|
ORGANIZATION_TELEMETRY_DESTINATIONS_WORKSPACES_REMOVE: "anthropic.organization.telemetry_destinations.workspaces.remove"
|
|
300
|
+
ORGANIZATION_WEBHOOKS_CREATE: "anthropic.organization.webhooks.create"
|
|
301
|
+
ORGANIZATION_WEBHOOKS_RETRIEVE: "anthropic.organization.webhooks.retrieve"
|
|
302
|
+
ORGANIZATION_WEBHOOKS_UPDATE: "anthropic.organization.webhooks.update"
|
|
303
|
+
ORGANIZATION_WEBHOOKS_LIST: "anthropic.organization.webhooks.list"
|
|
304
|
+
ORGANIZATION_WEBHOOKS_DELETE: "anthropic.organization.webhooks.delete"
|
|
305
|
+
ORGANIZATION_WEBHOOKS_REGENERATE_SIGNING_SECRET: "anthropic.organization.webhooks.regenerate_signing_secret"
|
|
301
306
|
end
|
|
302
307
|
|
|
303
308
|
CLIENT_ATTRIBUTES: ::Hash[String, String]
|
|
@@ -52,6 +52,7 @@ module Anthropic
|
|
|
52
52
|
| :"ce-plugins-2026-09-01"
|
|
53
53
|
| :"spend-limit-reads-2026-09-26"
|
|
54
54
|
| :"telemetry-destinations-2026-08-11"
|
|
55
|
+
| :"webhooks-2026-10-07"
|
|
55
56
|
| String
|
|
56
57
|
|
|
57
58
|
module AnthropicBeta
|
|
@@ -110,6 +111,7 @@ module Anthropic
|
|
|
110
111
|
CE_PLUGINS_2026_09_01: :"ce-plugins-2026-09-01"
|
|
111
112
|
SPEND_LIMIT_READS_2026_09_26: :"spend-limit-reads-2026-09-26"
|
|
112
113
|
TELEMETRY_DESTINATIONS_2026_08_11: :"telemetry-destinations-2026-08-11"
|
|
114
|
+
WEBHOOKS_2026_10_07: :"webhooks-2026-10-07"
|
|
113
115
|
end
|
|
114
116
|
end
|
|
115
117
|
end
|