anthropic 1.70.0 → 1.72.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 +65 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/event_stream.rb +14 -4
- data/lib/anthropic/internal/transport/base_client.rb +12 -8
- data/lib/anthropic/internal/transport/pooled_net_requester.rb +63 -4
- data/lib/anthropic/internal/type/union.rb +6 -2
- data/lib/anthropic/internal/util.rb +3 -1
- data/lib/anthropic/models/anthropic_beta.rb +7 -4
- data/lib/anthropic/models/beta/agent_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +9 -9
- data/lib/anthropic/models/beta/agent_list_params.rb +2 -2
- data/lib/anthropic/models/beta/agent_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/agent_update_params.rb +9 -9
- data/lib/anthropic/models/beta/agents/version_list_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_browser_state_change.rb +1 -7
- data/lib/anthropic/models/beta/beta_citations_delta.rb +1 -1
- data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb +1 -1
- data/lib/anthropic/models/beta/beta_cloud_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_cloud_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +1 -4
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +0 -1
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param.rb +1 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rb +0 -1
- data/lib/anthropic/models/beta/beta_compaction_block.rb +9 -1
- data/lib/anthropic/models/beta/beta_compaction_block_param.rb +9 -1
- data/lib/anthropic/models/beta/beta_compaction_capability.rb +32 -0
- data/lib/anthropic/models/beta/beta_compaction_config.rb +40 -0
- data/lib/anthropic/models/beta/beta_content_block.rb +4 -5
- data/lib/anthropic/models/beta/beta_content_block_param.rb +5 -6
- data/lib/anthropic/models/beta/beta_content_block_source_content.rb +1 -1
- data/lib/anthropic/models/beta/beta_context_management_config.rb +1 -3
- data/lib/anthropic/models/beta/beta_context_management_response.rb +1 -1
- data/lib/anthropic/models/beta/beta_diagnostics.rb +1 -1
- data/lib/anthropic/models/beta/beta_document_block.rb +1 -1
- data/lib/anthropic/models/beta/beta_dream.rb +1 -4
- data/lib/anthropic/models/beta/beta_dream_input.rb +1 -4
- data/lib/anthropic/models/beta/beta_dream_status.rb +15 -0
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -8
- data/lib/anthropic/models/beta/beta_environment.rb +1 -1
- data/lib/anthropic/models/beta/beta_fallback_credit_usage.rb +1 -1
- data/lib/anthropic/models/beta/beta_fallback_message_iteration_usage.rb +5 -4
- data/lib/anthropic/models/beta/beta_fallback_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_fallbacks_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_image_block_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_input_transformation.rb +62 -0
- data/lib/anthropic/models/beta/beta_iterations_usage.rb +8 -7
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +7 -7
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_status.rb +3 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +9 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session.rb +7 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_type.rb +3 -0
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_memory_tool_20250818_command.rb +1 -1
- data/lib/anthropic/models/beta/beta_message.rb +21 -18
- data/lib/anthropic/models/beta/beta_message_iteration_usage.rb +3 -3
- data/lib/anthropic/models/beta/beta_model_capabilities.rb +14 -1
- data/lib/anthropic/models/beta/beta_output_behavior.rb +1 -4
- data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +1 -1
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +5 -10
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +20 -17
- data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_request_document_block.rb +1 -1
- data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +3 -13
- data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +3 -13
- data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +2 -9
- data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +2 -5
- data/lib/anthropic/models/beta/beta_summarize_compaction.rb +40 -0
- data/lib/anthropic/models/beta/beta_text_citation.rb +1 -1
- data/lib/anthropic/models/beta/beta_text_citation_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb +73 -0
- data/lib/anthropic/models/beta/beta_tool_change_mcp_tool_reference.rb +1 -1
- data/lib/anthropic/models/beta/beta_tool_choice.rb +1 -1
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +1 -2
- data/lib/anthropic/models/beta/beta_tool_union.rb +0 -2
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +2 -5
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +2 -5
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb +14 -1
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260209.rb +14 -1
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +14 -1
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260318.rb +14 -1
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb +2 -8
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +2 -5
- data/lib/anthropic/models/beta/beta_web_fetch_url_source_all.rb +22 -0
- data/lib/anthropic/models/beta/beta_web_fetch_url_source_except.rb +29 -0
- data/lib/anthropic/models/beta/beta_web_fetch_url_source_none.rb +22 -0
- data/lib/anthropic/models/beta/beta_web_fetch_url_source_only.rb +28 -0
- data/lib/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rb +28 -0
- data/lib/anthropic/models/beta/beta_web_fetch_url_sources.rb +234 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +2 -8
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +4 -7
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +3 -3
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +1 -1
- data/lib/anthropic/models/beta/deployment_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_create_params.rb +8 -8
- data/lib/anthropic/models/beta/deployment_list_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_pause_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_run_list_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_run_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_unpause_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_update_params.rb +8 -8
- data/lib/anthropic/models/beta/dream_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/dream_cancel_params.rb +2 -2
- data/lib/anthropic/models/beta/dream_create_params.rb +8 -16
- data/lib/anthropic/models/beta/dream_list_params.rb +2 -2
- data/lib/anthropic/models/beta/dream_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/environment_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/environment_create_params.rb +3 -3
- data/lib/anthropic/models/beta/environment_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/environment_list_params.rb +2 -2
- data/lib/anthropic/models/beta/environment_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/environment_update_params.rb +3 -3
- data/lib/anthropic/models/beta/environments/work_ack_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_list_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_poll_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_stats_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_stop_params.rb +2 -2
- data/lib/anthropic/models/beta/environments/work_update_params.rb +2 -2
- data/lib/anthropic/models/beta/file_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/file_download_params.rb +2 -2
- data/lib/anthropic/models/beta/file_list_params.rb +2 -2
- data/lib/anthropic/models/beta/file_retrieve_metadata_params.rb +2 -2
- data/lib/anthropic/models/beta/file_upload_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_create_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_list_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_store_update_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +1 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +1 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +1 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +5 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +3 -0
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +18 -5
- data/lib/anthropic/models/beta/message_create_params.rb +26 -11
- data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +26 -11
- data/lib/anthropic/models/beta/messages/batch_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/batch_list_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/batch_results_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/beta_message_batch_result.rb +1 -1
- data/lib/anthropic/models/beta/model_list_params.rb +2 -2
- data/lib/anthropic/models/beta/model_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_api_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_compliance_settings_state.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_compliance_settings_state_param.rb +1 -1
- data/lib/anthropic/models/beta/organization/beta_data_residency.rb +41 -12
- data/lib/anthropic/models/beta/organization/beta_data_residency_create_config.rb +5 -5
- data/lib/anthropic/models/beta/organization/beta_data_residency_update_config.rb +5 -5
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +103 -10
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rb +34 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rb +34 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rb +43 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rb +34 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rb +34 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rb +34 -0
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +1 -1
- data/lib/anthropic/models/beta/organization/external_key_update_params.rb +1 -1
- data/lib/anthropic/models/beta/organization/federation/beta_federation_issuer.rb +1 -1
- data/lib/anthropic/models/beta/organization/federation/issuer_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/issuer_create_params.rb +3 -3
- data/lib/anthropic/models/beta/organization/federation/issuer_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/issuer_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/issuer_update_params.rb +3 -3
- data/lib/anthropic/models/beta/organization/federation/rule_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rule_create_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rule_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rule_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rule_update_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rules/workspace_add_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rules/workspace_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/rules/workspace_remove_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_account_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_account_create_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_account_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_account_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_account_update_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_accounts/workspace_add_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_accounts/workspace_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/service_accounts/workspace_remove_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +102 -10
- data/lib/anthropic/models/beta/organization/workspaces/service_account_add_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/service_account_list_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/service_account_remove_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/service_account_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/workspaces/service_account_update_params.rb +2 -2
- data/lib/anthropic/models/beta/session_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/session_create_params.rb +9 -9
- data/lib/anthropic/models/beta/session_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/session_list_params.rb +9 -2
- data/lib/anthropic/models/beta/session_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/session_update_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +3 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +3 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +2 -13
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +1 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +2 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +2 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +3 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/event_list_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/event_send_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/event_stream_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_add_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_list_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +1 -1
- data/lib/anthropic/models/beta/sessions/resource_update_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +1 -1
- data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/thread_list_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +2 -2
- data/lib/anthropic/models/beta/skill_create_params.rb +2 -2
- data/lib/anthropic/models/beta/skill_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/skill_list_params.rb +2 -2
- data/lib/anthropic/models/beta/skill_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_create_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_download_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_list_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_create_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_list_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +2 -2
- data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +10 -3
- data/lib/anthropic/models/beta/user_profile_create_params.rb +10 -3
- data/lib/anthropic/models/beta/user_profile_list_params.rb +10 -3
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +10 -3
- data/lib/anthropic/models/beta/user_profile_update_params.rb +10 -3
- data/lib/anthropic/models/beta/vault_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/vault_create_params.rb +2 -2
- data/lib/anthropic/models/beta/vault_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/vault_list_params.rb +2 -2
- data/lib/anthropic/models/beta/vault_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/vault_update_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +5 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +2 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +2 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +2 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rb +7 -0
- data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -3
- data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -3
- data/lib/anthropic/models/beta_error.rb +1 -1
- data/lib/anthropic/models/browser_state_change.rb +1 -7
- data/lib/anthropic/models/citations_delta.rb +1 -1
- data/lib/anthropic/models/code_execution_tool_result_block.rb +1 -4
- data/lib/anthropic/models/code_execution_tool_result_block_content.rb +0 -1
- data/lib/anthropic/models/code_execution_tool_result_block_param.rb +1 -2
- data/lib/anthropic/models/code_execution_tool_result_block_param_content.rb +0 -1
- data/lib/anthropic/models/completion_create_params.rb +3 -3
- data/lib/anthropic/models/content_block.rb +3 -4
- data/lib/anthropic/models/content_block_param.rb +3 -4
- data/lib/anthropic/models/content_block_source_content.rb +1 -1
- data/lib/anthropic/models/document_block.rb +1 -1
- data/lib/anthropic/models/document_block_param.rb +1 -1
- data/lib/anthropic/models/error_object.rb +1 -1
- data/lib/anthropic/models/image_block_param.rb +1 -1
- data/lib/anthropic/models/message_count_tokens_tool.rb +0 -2
- data/lib/anthropic/models/message_create_params.rb +1 -1
- data/lib/anthropic/models/messages/batch_create_params.rb +1 -1
- data/lib/anthropic/models/messages/message_batch_result.rb +1 -1
- data/lib/anthropic/models/model_list_params.rb +2 -2
- data/lib/anthropic/models/model_retrieve_params.rb +2 -2
- data/lib/anthropic/models/raw_content_block_delta.rb +1 -1
- data/lib/anthropic/models/raw_content_block_start_event.rb +4 -9
- data/lib/anthropic/models/raw_message_stream_event.rb +2 -2
- data/lib/anthropic/models/server_tool_use_block.rb +2 -9
- data/lib/anthropic/models/server_tool_use_block_param.rb +2 -5
- data/lib/anthropic/models/text_citation.rb +1 -1
- data/lib/anthropic/models/text_citation_param.rb +1 -1
- data/lib/anthropic/models/thinking_config_param.rb +1 -1
- data/lib/anthropic/models/tool_choice.rb +1 -1
- data/lib/anthropic/models/tool_result_block_param.rb +1 -2
- data/lib/anthropic/models/tool_union.rb +0 -2
- data/lib/anthropic/models/tool_use_block.rb +3 -5
- data/lib/anthropic/models/tool_use_block_param.rb +2 -5
- data/lib/anthropic/models/web_fetch_tool_20250910.rb +14 -1
- data/lib/anthropic/models/web_fetch_tool_20260209.rb +14 -1
- data/lib/anthropic/models/web_fetch_tool_20260309.rb +14 -1
- data/lib/anthropic/models/web_fetch_tool_20260318.rb +14 -1
- data/lib/anthropic/models/web_fetch_tool_result_block.rb +2 -8
- data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +2 -5
- data/lib/anthropic/models/web_fetch_url_source_all.rb +18 -0
- data/lib/anthropic/models/web_fetch_url_source_except.rb +24 -0
- data/lib/anthropic/models/web_fetch_url_source_none.rb +18 -0
- data/lib/anthropic/models/web_fetch_url_source_only.rb +23 -0
- data/lib/anthropic/models/web_fetch_url_source_tool_reference.rb +24 -0
- data/lib/anthropic/models/web_fetch_url_sources.rb +230 -0
- data/lib/anthropic/models/web_search_tool_result_block.rb +2 -8
- data/lib/anthropic/models/web_search_tool_result_block_param.rb +4 -7
- data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +3 -3
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/resources/beta/agents/versions.rb +2 -2
- data/lib/anthropic/resources/beta/agents.rb +10 -10
- data/lib/anthropic/resources/beta/deployment_runs.rb +3 -3
- data/lib/anthropic/resources/beta/deployments.rb +16 -16
- data/lib/anthropic/resources/beta/dreams.rb +7 -7
- data/lib/anthropic/resources/beta/environments/work.rb +8 -8
- data/lib/anthropic/resources/beta/environments.rb +6 -6
- data/lib/anthropic/resources/beta/files.rb +5 -5
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +5 -5
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +3 -3
- data/lib/anthropic/resources/beta/memory_stores.rb +10 -10
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +22 -14
- data/lib/anthropic/resources/beta/models.rb +2 -2
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +5 -5
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +3 -3
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +5 -5
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +3 -3
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +5 -5
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +5 -5
- data/lib/anthropic/resources/beta/organization/workspaces.rb +1 -1
- data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
- data/lib/anthropic/resources/beta/sessions/resources.rb +5 -5
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
- data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
- data/lib/anthropic/resources/beta/sessions.rb +7 -7
- data/lib/anthropic/resources/beta/skills/versions.rb +5 -5
- data/lib/anthropic/resources/beta/skills.rb +4 -4
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +10 -10
- data/lib/anthropic/resources/beta/tunnels.rb +10 -10
- data/lib/anthropic/resources/beta/user_profiles.rb +38 -15
- data/lib/anthropic/resources/beta/vaults/credentials.rb +19 -19
- data/lib/anthropic/resources/beta/vaults.rb +10 -10
- data/lib/anthropic/resources/completions.rb +2 -2
- data/lib/anthropic/resources/models.rb +2 -2
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +23 -1
- data/manifest.yaml +0 -1
- data/rbi/anthropic/client.rbi +5 -0
- data/rbi/anthropic/internal/transport/base_client.rbi +2 -0
- data/rbi/anthropic/internal/transport/pooled_net_requester.rbi +27 -5
- data/rbi/anthropic/models/anthropic_beta.rbi +3 -1
- data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/agent_create_params.rbi +13 -13
- data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/agent_update_params.rbi +15 -15
- data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +1 -7
- data/rbi/anthropic/models/beta/beta_citations_delta.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi +5 -1
- data/rbi/anthropic/models/beta/beta_cloud_config.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -7
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_param.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_param_content.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_compaction_block.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_compaction_capability.rbi +60 -0
- data/rbi/anthropic/models/beta/beta_compaction_config.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_content_block.rbi +3 -5
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +5 -10
- data/rbi/anthropic/models/beta/beta_content_block_source_content.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_context_management_config.rbi +2 -3
- data/rbi/anthropic/models/beta/beta_context_management_response.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_diagnostics.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_document_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_dream.rbi +0 -6
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +1 -4
- data/rbi/anthropic/models/beta/beta_dream_status.rbi +15 -0
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +4 -10
- data/rbi/anthropic/models/beta/beta_environment.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_fallback_credit_usage.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_fallback_message_iteration_usage.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_fallbacks_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_image_block_param.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_input_transformation.rbi +99 -0
- data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +12 -11
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +5 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_status.rbi +3 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +9 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_params.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_start_event_preview.rbi +5 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +5 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_trigger_type.rbi +3 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +6 -5
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +4 -1
- data/rbi/anthropic/models/beta/beta_memory_tool_20250818_command.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_message.rbi +40 -29
- data/rbi/anthropic/models/beta/beta_message_iteration_usage.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_output_behavior.rbi +4 -6
- data/rbi/anthropic/models/beta/beta_raw_content_block_delta.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +5 -12
- data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +40 -29
- data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +22 -15
- data/rbi/anthropic/models/beta/beta_request_document_block.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +2 -10
- data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +2 -10
- data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +6 -13
- data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_summarize_compaction.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_text_citation.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_text_citation_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbi +140 -0
- data/rbi/anthropic/models/beta/beta_tool_change_mcp_tool_reference.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_tool_choice.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_tool_union.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +4 -6
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +5 -6
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20250910.rbi +28 -1
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260209.rbi +28 -1
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260309.rbi +27 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260318.rbi +27 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_web_fetch_url_source_all.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_url_source_except.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_url_source_none.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_url_source_only.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_url_sources.rbi +417 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +11 -12
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +1 -1
- data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +11 -10
- data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_update_params.rbi +13 -12
- data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -4
- data/rbi/anthropic/models/beta/dream_create_params.rbi +8 -17
- data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environment_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environment_create_params.rbi +6 -5
- data/rbi/anthropic/models/beta/environment_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environment_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environment_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environment_update_params.rbi +6 -5
- data/rbi/anthropic/models/beta/environments/work_ack_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_poll_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +4 -4
- data/rbi/anthropic/models/beta/environments/work_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/file_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/file_download_params.rbi +4 -4
- data/rbi/anthropic/models/beta/file_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/file_retrieve_metadata_params.rbi +4 -4
- data/rbi/anthropic/models/beta/file_upload_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +5 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +3 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +34 -6
- data/rbi/anthropic/models/beta/message_create_params.rbi +43 -13
- data/rbi/anthropic/models/beta/messages/batch_cancel_params.rbi +4 -4
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +47 -15
- data/rbi/anthropic/models/beta/messages/batch_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/messages/batch_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/messages/batch_results_params.rbi +4 -4
- data/rbi/anthropic/models/beta/messages/batch_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/messages/beta_message_batch_result.rbi +2 -1
- data/rbi/anthropic/models/beta/model_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/model_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/beta_api_key.rbi +7 -2
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state.rbi +4 -1
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbi +4 -1
- data/rbi/anthropic/models/beta/organization/beta_data_residency.rbi +103 -10
- data/rbi/anthropic/models/beta/organization/beta_data_residency_create_config.rbi +8 -8
- data/rbi/anthropic/models/beta/organization/beta_data_residency_update_config.rbi +8 -8
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +6 -2
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +145 -11
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rbi +58 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +2 -1
- data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +2 -1
- data/rbi/anthropic/models/beta/organization/federation/beta_federation_issuer.rbi +2 -1
- data/rbi/anthropic/models/beta/organization/federation/issuer_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/issuer_create_params.rbi +6 -5
- data/rbi/anthropic/models/beta/organization/federation/issuer_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/issuer_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/issuer_update_params.rbi +6 -5
- data/rbi/anthropic/models/beta/organization/federation/rule_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rule_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rule_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rule_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rule_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rules/workspace_add_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rules/workspace_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/rules/workspace_remove_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_account_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_account_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_account_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_account_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_account_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_accounts/workspace_add_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_accounts/workspace_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/service_accounts/workspace_remove_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +143 -11
- data/rbi/anthropic/models/beta/organization/workspaces/service_account_add_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/service_account_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/service_account_remove_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/service_account_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/workspaces/service_account_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/session_create_params.rbi +16 -14
- data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/session_list_params.rbi +11 -4
- data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/session_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbi +5 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +6 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +5 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +6 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +2 -10
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +2 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +2 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +2 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +2 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +2 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +4 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +6 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +4 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skill_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skill_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skill_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_download_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +13 -4
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +13 -4
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +13 -4
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +13 -4
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +13 -4
- data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +2 -1
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +2 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +5 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +2 -1
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +2 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +2 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbi +7 -0
- data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +6 -5
- data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +6 -5
- data/rbi/anthropic/models/beta_error.rbi +4 -3
- data/rbi/anthropic/models/browser_state_change.rbi +1 -7
- data/rbi/anthropic/models/citations_delta.rbi +1 -1
- data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -7
- data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +0 -1
- data/rbi/anthropic/models/code_execution_tool_result_block_param.rbi +0 -2
- data/rbi/anthropic/models/code_execution_tool_result_block_param_content.rbi +0 -1
- data/rbi/anthropic/models/completion_create_params.rbi +4 -4
- data/rbi/anthropic/models/content_block.rbi +1 -4
- data/rbi/anthropic/models/content_block_param.rbi +3 -6
- data/rbi/anthropic/models/content_block_source_content.rbi +1 -1
- data/rbi/anthropic/models/document_block.rbi +1 -1
- data/rbi/anthropic/models/document_block_param.rbi +1 -1
- data/rbi/anthropic/models/error_object.rbi +4 -3
- data/rbi/anthropic/models/image_block_param.rbi +1 -1
- data/rbi/anthropic/models/message_count_tokens_tool.rbi +0 -2
- data/rbi/anthropic/models/messages/message_batch_result.rbi +1 -1
- data/rbi/anthropic/models/model_list_params.rbi +4 -4
- data/rbi/anthropic/models/model_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/raw_content_block_delta.rbi +1 -1
- data/rbi/anthropic/models/raw_content_block_start_event.rbi +3 -11
- data/rbi/anthropic/models/raw_message_stream_event.rbi +1 -2
- data/rbi/anthropic/models/server_tool_use_block.rbi +5 -13
- data/rbi/anthropic/models/server_tool_use_block_param.rbi +4 -6
- data/rbi/anthropic/models/text_citation.rbi +1 -1
- data/rbi/anthropic/models/text_citation_param.rbi +1 -1
- data/rbi/anthropic/models/thinking_config_param.rbi +1 -1
- data/rbi/anthropic/models/tool_choice.rbi +1 -1
- data/rbi/anthropic/models/tool_result_block_param.rbi +2 -2
- data/rbi/anthropic/models/tool_union.rbi +0 -2
- data/rbi/anthropic/models/tool_use_block.rbi +4 -6
- data/rbi/anthropic/models/tool_use_block_param.rbi +4 -6
- data/rbi/anthropic/models/web_fetch_tool_20250910.rbi +26 -1
- data/rbi/anthropic/models/web_fetch_tool_20260209.rbi +26 -1
- data/rbi/anthropic/models/web_fetch_tool_20260309.rbi +25 -0
- data/rbi/anthropic/models/web_fetch_tool_20260318.rbi +25 -0
- data/rbi/anthropic/models/web_fetch_tool_result_block.rbi +4 -6
- data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +5 -6
- data/rbi/anthropic/models/web_fetch_url_source_all.rbi +25 -0
- data/rbi/anthropic/models/web_fetch_url_source_except.rbi +43 -0
- data/rbi/anthropic/models/web_fetch_url_source_none.rbi +25 -0
- data/rbi/anthropic/models/web_fetch_url_source_only.rbi +39 -0
- data/rbi/anthropic/models/web_fetch_url_source_tool_reference.rbi +31 -0
- data/rbi/anthropic/models/web_fetch_url_sources.rbi +388 -0
- data/rbi/anthropic/models/web_search_tool_result_block.rbi +4 -6
- data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +11 -12
- data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +2 -2
- data/rbi/anthropic/models.rbi +13 -0
- data/rbi/anthropic/resources/beta/agents/versions.rbi +2 -2
- data/rbi/anthropic/resources/beta/agents.rbi +12 -12
- data/rbi/anthropic/resources/beta/deployment_runs.rbi +3 -3
- data/rbi/anthropic/resources/beta/deployments.rbi +18 -18
- data/rbi/anthropic/resources/beta/dreams.rbi +8 -10
- data/rbi/anthropic/resources/beta/environments/work.rbi +8 -8
- data/rbi/anthropic/resources/beta/environments.rbi +6 -6
- data/rbi/anthropic/resources/beta/files.rbi +5 -5
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +5 -5
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +3 -3
- data/rbi/anthropic/resources/beta/memory_stores.rbi +17 -10
- data/rbi/anthropic/resources/beta/messages/batches.rbi +6 -6
- data/rbi/anthropic/resources/beta/messages.rbi +60 -16
- data/rbi/anthropic/resources/beta/models.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/federation/issuers.rbi +5 -5
- data/rbi/anthropic/resources/beta/organization/federation/rules/workspaces.rbi +3 -3
- data/rbi/anthropic/resources/beta/organization/federation/rules.rbi +5 -5
- data/rbi/anthropic/resources/beta/organization/service_accounts/workspaces.rbi +3 -3
- data/rbi/anthropic/resources/beta/organization/service_accounts.rbi +5 -5
- data/rbi/anthropic/resources/beta/organization/workspaces/service_accounts.rbi +5 -5
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +1 -1
- data/rbi/anthropic/resources/beta/sessions/events.rbi +3 -3
- data/rbi/anthropic/resources/beta/sessions/resources.rbi +5 -5
- data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +2 -2
- data/rbi/anthropic/resources/beta/sessions/threads.rbi +3 -3
- data/rbi/anthropic/resources/beta/sessions.rbi +8 -8
- data/rbi/anthropic/resources/beta/skills/versions.rbi +5 -5
- data/rbi/anthropic/resources/beta/skills.rbi +4 -4
- data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +10 -10
- data/rbi/anthropic/resources/beta/tunnels.rbi +10 -10
- data/rbi/anthropic/resources/beta/user_profiles.rbi +45 -5
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +19 -19
- data/rbi/anthropic/resources/beta/vaults.rbi +10 -10
- data/rbi/anthropic/resources/completions.rbi +2 -2
- data/rbi/anthropic/resources/models.rbi +2 -2
- data/sig/anthropic/client.rbs +1 -0
- data/sig/anthropic/internal/transport/base_client.rbs +1 -0
- data/sig/anthropic/internal/transport/pooled_net_requester.rbs +10 -2
- data/sig/anthropic/models/anthropic_beta.rbs +4 -2
- data/sig/anthropic/models/beta/agent_create_params.rbs +4 -3
- data/sig/anthropic/models/beta/agent_update_params.rbs +4 -3
- data/sig/anthropic/models/beta/beta_browser_state_change.rbs +2 -1
- data/sig/anthropic/models/beta/beta_citations_delta.rbs +2 -1
- data/sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs +2 -1
- data/sig/anthropic/models/beta/beta_cloud_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_cloud_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_compaction_block.rbs +11 -2
- data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +7 -2
- data/sig/anthropic/models/beta/beta_compaction_capability.rbs +26 -0
- data/sig/anthropic/models/beta/beta_compaction_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_content_block.rbs +4 -3
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +5 -3
- data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +2 -1
- data/sig/anthropic/models/beta/beta_context_management_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_context_management_response.rbs +2 -1
- data/sig/anthropic/models/beta/beta_diagnostics.rbs +2 -1
- data/sig/anthropic/models/beta/beta_document_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_dream_input.rbs +1 -1
- data/sig/anthropic/models/beta/beta_dream_status.rbs +15 -0
- data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -1
- data/sig/anthropic/models/beta/beta_environment.rbs +2 -1
- data/sig/anthropic/models/beta/beta_fallback_credit_usage.rbs +2 -1
- data/sig/anthropic/models/beta/beta_fallback_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_fallbacks_param.rbs +1 -1
- data/sig/anthropic/models/beta/beta_image_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_input_transformation.rbs +47 -0
- data/sig/anthropic/models/beta/beta_iterations_usage.rbs +4 -3
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +4 -2
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +4 -3
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_status.rbs +3 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_model_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_model_config_params.rbs +9 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +7 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +4 -2
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +4 -2
- data/sig/anthropic/models/beta/beta_managed_agents_skill_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_start_event_preview.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_trigger_context.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_trigger_type.rbs +3 -0
- data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +2 -1
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +2 -1
- data/sig/anthropic/models/beta/beta_memory_tool_20250818_command.rbs +2 -1
- data/sig/anthropic/models/beta/beta_message.rbs +4 -4
- data/sig/anthropic/models/beta/beta_message_iteration_usage.rbs +4 -4
- data/sig/anthropic/models/beta/beta_model_capabilities.rbs +5 -0
- data/sig/anthropic/models/beta/beta_output_behavior.rbs +1 -1
- data/sig/anthropic/models/beta/beta_raw_content_block_delta.rbs +2 -1
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +5 -3
- data/sig/anthropic/models/beta/beta_raw_message_delta_event.rbs +4 -4
- data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +4 -3
- data/sig/anthropic/models/beta/beta_request_document_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_request_tool_removal_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_summarize_compaction.rbs +20 -0
- data/sig/anthropic/models/beta/beta_text_citation.rbs +1 -1
- data/sig/anthropic/models/beta/beta_text_citation_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbs +51 -0
- data/sig/anthropic/models/beta/beta_tool_choice.rbs +1 -1
- data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_web_fetch_tool_20250910.rbs +7 -2
- data/sig/anthropic/models/beta/beta_web_fetch_tool_20260209.rbs +7 -2
- data/sig/anthropic/models/beta/beta_web_fetch_tool_20260309.rbs +5 -0
- data/sig/anthropic/models/beta/beta_web_fetch_tool_20260318.rbs +5 -0
- data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_web_fetch_url_source_all.rbs +17 -0
- data/sig/anthropic/models/beta/beta_web_fetch_url_source_except.rbs +29 -0
- data/sig/anthropic/models/beta/beta_web_fetch_url_source_none.rbs +17 -0
- data/sig/anthropic/models/beta/beta_web_fetch_url_source_only.rbs +29 -0
- data/sig/anthropic/models/beta/beta_web_fetch_url_source_tool_reference.rbs +20 -0
- data/sig/anthropic/models/beta/beta_web_fetch_url_sources.rbs +165 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block.rbs +2 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +2 -2
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +1 -1
- data/sig/anthropic/models/beta/deployment_create_params.rbs +3 -2
- data/sig/anthropic/models/beta/deployment_update_params.rbs +3 -2
- data/sig/anthropic/models/beta/dream_create_params.rbs +1 -1
- data/sig/anthropic/models/beta/environment_create_params.rbs +2 -1
- data/sig/anthropic/models/beta/environment_update_params.rbs +2 -1
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs +2 -1
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +2 -1
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbs +2 -1
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbs +5 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbs +3 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +6 -1
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +6 -1
- data/sig/anthropic/models/beta/messages/beta_message_batch_result.rbs +2 -1
- data/sig/anthropic/models/beta/organization/beta_api_key.rbs +4 -2
- data/sig/anthropic/models/beta/organization/beta_compliance_settings_state.rbs +2 -1
- data/sig/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbs +2 -1
- data/sig/anthropic/models/beta/organization/beta_data_residency.rbs +33 -10
- data/sig/anthropic/models/beta/organization/beta_data_residency_create_config.rbs +2 -2
- data/sig/anthropic/models/beta/organization/beta_data_residency_update_config.rbs +2 -2
- data/sig/anthropic/models/beta/organization/beta_external_key.rbs +4 -2
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit.rbs +73 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_batch_group.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_files_group.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_model_group.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_skills_group.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_token_count_group.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_organization_rate_limit_web_search_group.rbs +20 -0
- data/sig/anthropic/models/beta/organization/external_key_create_params.rbs +2 -1
- data/sig/anthropic/models/beta/organization/external_key_update_params.rbs +2 -1
- data/sig/anthropic/models/beta/organization/federation/beta_federation_issuer.rbs +2 -1
- data/sig/anthropic/models/beta/organization/federation/issuer_create_params.rbs +2 -1
- data/sig/anthropic/models/beta/organization/federation/issuer_update_params.rbs +2 -1
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbs +73 -0
- data/sig/anthropic/models/beta/session_create_params.rbs +6 -4
- data/sig/anthropic/models/beta/session_list_params.rbs +7 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs +2 -1
- data/sig/anthropic/models/beta/sessions/resource_update_response.rbs +2 -1
- data/sig/anthropic/models/beta/user_profile_create_enrollment_url_params.rbs +8 -1
- data/sig/anthropic/models/beta/user_profile_create_params.rbs +8 -1
- data/sig/anthropic/models/beta/user_profile_list_params.rbs +8 -1
- data/sig/anthropic/models/beta/user_profile_retrieve_params.rbs +8 -1
- data/sig/anthropic/models/beta/user_profile_update_params.rbs +8 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +5 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbs +7 -0
- data/sig/anthropic/models/beta/vaults/credential_create_params.rbs +2 -1
- data/sig/anthropic/models/beta/vaults/credential_update_params.rbs +2 -1
- data/sig/anthropic/models/beta_error.rbs +1 -1
- data/sig/anthropic/models/browser_state_change.rbs +1 -1
- data/sig/anthropic/models/citations_delta.rbs +1 -1
- data/sig/anthropic/models/content_block.rbs +1 -1
- data/sig/anthropic/models/content_block_param.rbs +1 -1
- data/sig/anthropic/models/content_block_source_content.rbs +1 -1
- data/sig/anthropic/models/document_block.rbs +1 -1
- data/sig/anthropic/models/document_block_param.rbs +1 -1
- data/sig/anthropic/models/error_object.rbs +1 -1
- data/sig/anthropic/models/image_block_param.rbs +1 -1
- data/sig/anthropic/models/messages/message_batch_result.rbs +2 -1
- data/sig/anthropic/models/raw_content_block_delta.rbs +1 -1
- data/sig/anthropic/models/raw_content_block_start_event.rbs +2 -1
- data/sig/anthropic/models/raw_message_stream_event.rbs +1 -1
- data/sig/anthropic/models/server_tool_use_block.rbs +1 -1
- data/sig/anthropic/models/server_tool_use_block_param.rbs +2 -1
- data/sig/anthropic/models/text_citation.rbs +1 -1
- data/sig/anthropic/models/text_citation_param.rbs +1 -1
- data/sig/anthropic/models/thinking_config_param.rbs +1 -1
- data/sig/anthropic/models/tool_choice.rbs +1 -1
- data/sig/anthropic/models/tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/tool_use_block.rbs +1 -1
- data/sig/anthropic/models/tool_use_block_param.rbs +1 -1
- data/sig/anthropic/models/web_fetch_tool_20250910.rbs +7 -2
- data/sig/anthropic/models/web_fetch_tool_20260209.rbs +7 -2
- data/sig/anthropic/models/web_fetch_tool_20260309.rbs +5 -0
- data/sig/anthropic/models/web_fetch_tool_20260318.rbs +5 -0
- data/sig/anthropic/models/web_fetch_tool_result_block.rbs +2 -1
- data/sig/anthropic/models/web_fetch_tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/web_fetch_url_source_all.rbs +13 -0
- data/sig/anthropic/models/web_fetch_url_source_except.rbs +25 -0
- data/sig/anthropic/models/web_fetch_url_source_none.rbs +13 -0
- data/sig/anthropic/models/web_fetch_url_source_only.rbs +22 -0
- data/sig/anthropic/models/web_fetch_url_source_tool_reference.rbs +16 -0
- data/sig/anthropic/models/web_fetch_url_sources.rbs +154 -0
- data/sig/anthropic/models/web_search_tool_result_block.rbs +2 -1
- data/sig/anthropic/models/web_search_tool_result_block_param.rbs +2 -1
- data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +2 -2
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/messages.rbs +4 -0
- data/sig/anthropic/resources/beta/user_profiles.rbs +5 -0
- metadata +71 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e7aa200569945cdf76744a8c251b760350a75834328da86c44930b40f741b31
|
|
4
|
+
data.tar.gz: 780bb11d38658bb95e1142b1c389fc82e49ad04d20cdc4c01a9c4ed54b7038dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3de8eca81334145eaf72e0bfd8e142143ce8742e341db711085acac170f16132308f3c02fdaf424bdbc7e51d0832bc1de7a79e2abed18a2d80e57a92697c3b8c
|
|
7
|
+
data.tar.gz: 5994156c894b26d1cd0d504888f2cebc5409e4ff41bf81aa17f36f643e7de6c863ee831a34dc2ba49415f9fa531ab4456c33851d7655cb6461f36b7b39192074
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.72.0 (2026-09-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.71.0...v1.72.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.71.0...v1.72.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add group with display_name to rate limits, deprecate group_type ([8155b1d](https://github.com/anthropics/anthropic-sdk-ruby/commit/8155b1d0d17408a7ca0b04e774d5ff087d9aa438))
|
|
10
|
+
* **ruby:** accept the discriminator enum in union .new signatures ([f31077a](https://github.com/anthropics/anthropic-sdk-ruby/commit/f31077a956e382b5453fbde900b8f03641bd8cbb))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **bedrock:** skip typeless chunks and raise on event-stream error frames ([#254](https://github.com/anthropics/anthropic-sdk-ruby/issues/254)) ([ae8f6e2](https://github.com/anthropics/anthropic-sdk-ruby/commit/ae8f6e2296396528ff52249f3049fffb3b176434))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **docs:** add descriptions for enum values and path parameters ([929b51e](https://github.com/anthropics/anthropic-sdk-ruby/commit/929b51ebe061ef833b593f03b912c08a021be7ca))
|
|
21
|
+
* **docs:** clarify the compaction tool_changes and tool change descriptions ([4bc6c5f](https://github.com/anthropics/anthropic-sdk-ruby/commit/4bc6c5f7c0c8cf4a98277ee74ca04c9a46ef2864))
|
|
22
|
+
* **internal:** update CLAUDE.md branch guidance ([#261](https://github.com/anthropics/anthropic-sdk-ruby/issues/261)) ([1931e53](https://github.com/anthropics/anthropic-sdk-ruby/commit/1931e537da142e3b6f33aa6ea2781c8f8659375c))
|
|
23
|
+
|
|
24
|
+
## 1.71.0 (2026-09-15)
|
|
25
|
+
|
|
26
|
+
Full Changelog: [v1.70.0...v1.71.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.70.0...v1.71.0)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **api:** add auto mode tool permissions for Managed Agents ([8145b1f](https://github.com/anthropics/anthropic-sdk-ruby/commit/8145b1fce049b1fe98feefad2c41ccbd911ad892))
|
|
31
|
+
* **api:** add compaction parameter and signed compaction blocks (beta) ([68baa7f](https://github.com/anthropics/anthropic-sdk-ruby/commit/68baa7f15aaad3e919adf9afbb4d94a421bf3d34))
|
|
32
|
+
* **api:** add enum types for workspace data-residency geo fields ([389726b](https://github.com/anthropics/anthropic-sdk-ruby/commit/389726beec073e24a676456506e675f88912bd90))
|
|
33
|
+
* **api:** add thinking_mismatch_allowed entries to input_transformations (beta) ([509b7ce](https://github.com/anthropics/anthropic-sdk-ruby/commit/509b7cebde87b9cf071d549a142789bcb2b11a85))
|
|
34
|
+
* **api:** add url_sources to the web fetch tool ([0a787a2](https://github.com/anthropics/anthropic-sdk-ruby/commit/0a787a28e314f48c0de64d80ac66212997ec2a35))
|
|
35
|
+
* **api:** add workspace_id parameter to user profiles methods ([f0ad83c](https://github.com/anthropics/anthropic-sdk-ruby/commit/f0ad83ccc3e07e1cd15d55509fe3d0162946eecf))
|
|
36
|
+
* **client:** add a `proxy` client option ([9f39c26](https://github.com/anthropics/anthropic-sdk-ruby/commit/9f39c26cbac6bb52a3fe52f47dba522ff588a3ab))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **api:** mark usage iteration model as nullable ([167854a](https://github.com/anthropics/anthropic-sdk-ruby/commit/167854a6801249f8aa5f0d16512dcc531c68e9e5))
|
|
42
|
+
* **api:** use one input transformation type for message and delta event ([7807c32](https://github.com/anthropics/anthropic-sdk-ruby/commit/7807c32042d64c130d81a9f879e30a8c744ea4fc))
|
|
43
|
+
* **client:** ignore invalid Retry-After values and validate maxRetries ([8145b1f](https://github.com/anthropics/anthropic-sdk-ruby/commit/8145b1fce049b1fe98feefad2c41ccbd911ad892))
|
|
44
|
+
* **client:** retry connection errors in the async client and stop blocking in the coroutine retry loop ([8145b1f](https://github.com/anthropics/anthropic-sdk-ruby/commit/8145b1fce049b1fe98feefad2c41ccbd911ad892))
|
|
45
|
+
* **client:** stop union fields raising a conversion error after an earlier variant failed to match ([9f39c26](https://github.com/anthropics/anthropic-sdk-ruby/commit/9f39c26cbac6bb52a3fe52f47dba522ff588a3ab))
|
|
46
|
+
* **client:** use exponential retry backoff and fall back to it for non-positive Retry-After values ([9f39c26](https://github.com/anthropics/anthropic-sdk-ruby/commit/9f39c26cbac6bb52a3fe52f47dba522ff588a3ab))
|
|
47
|
+
* **client:** use the default backoff when Retry-After is out of range ([bdf00db](https://github.com/anthropics/anthropic-sdk-ruby/commit/bdf00db3626682338ff98c9fb3b2359faecd9460))
|
|
48
|
+
* coerce union values to their most specific variant ([c8240de](https://github.com/anthropics/anthropic-sdk-ruby/commit/c8240de05c210c74a31c42ae0063c69fc465d08a))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Chores
|
|
52
|
+
|
|
53
|
+
* **client:** decode proxy credentials without the cgi library ([9023815](https://github.com/anthropics/anthropic-sdk-ruby/commit/90238157521df7ba4c0aa460c3ed51fd4453a179))
|
|
54
|
+
* **deps:** remove cgi dependency ([#233](https://github.com/anthropics/anthropic-sdk-ruby/issues/233)) ([02a81dd](https://github.com/anthropics/anthropic-sdk-ruby/commit/02a81dd6c7d93e3e3a00675b409fa95d258626b5))
|
|
55
|
+
* **docs:** clarify that session_thread_id on tool use events is informational ([5356110](https://github.com/anthropics/anthropic-sdk-ruby/commit/53561106e4a21cd464a9441b719310d97a2ea6b0))
|
|
56
|
+
* **docs:** correct the compaction beta's parameter descriptions ([edf62b3](https://github.com/anthropics/anthropic-sdk-ruby/commit/edf62b365844022b648310732ea3ac78c2b21aaf))
|
|
57
|
+
* **internal:** reorder union variants in type listings ([9f39c26](https://github.com/anthropics/anthropic-sdk-ruby/commit/9f39c26cbac6bb52a3fe52f47dba522ff588a3ab))
|
|
58
|
+
* **internal:** set the gem license from the generator config ([9f39c26](https://github.com/anthropics/anthropic-sdk-ruby/commit/9f39c26cbac6bb52a3fe52f47dba522ff588a3ab))
|
|
59
|
+
* **tests:** stop the mock server without failing a passing test run ([46d47b0](https://github.com/anthropics/anthropic-sdk-ruby/commit/46d47b094d0467c2a534d633b66b8c9fd1121843))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Documentation
|
|
63
|
+
|
|
64
|
+
* **api:** clarify usage.iterations entry typing under server-side fallback ([82136a5](https://github.com/anthropics/anthropic-sdk-ruby/commit/82136a54d292f0919b5f6713bbc3153b7b766a72))
|
|
65
|
+
* **api:** fix typo in temperature deprecation message ([7605285](https://github.com/anthropics/anthropic-sdk-ruby/commit/76052855d56e41189c5bc5654aa96863d5ae5307))
|
|
66
|
+
* stop documenting unions with their first variant's description ([a24a371](https://github.com/anthropics/anthropic-sdk-ruby/commit/a24a37104e5ac949ba1fdef8643e083f7c7d314e))
|
|
67
|
+
|
|
3
68
|
## 1.70.0 (2026-09-10)
|
|
4
69
|
|
|
5
70
|
Full Changelog: [v1.69.0...v1.70.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.69.0...v1.70.0)
|
data/README.md
CHANGED
data/lib/anthropic/client.rb
CHANGED
|
@@ -173,6 +173,10 @@ module Anthropic
|
|
|
173
173
|
# +"https://api.example.com/v2/"+. Defaults to +ENV["ANTHROPIC_BASE_URL"]+,
|
|
174
174
|
# then to the profile's +base_url+ if present, then to +https://api.anthropic.com+.
|
|
175
175
|
#
|
|
176
|
+
# @param proxy [String, URI::Generic, nil] HTTP proxy URL, e.g., `"http://user:pass@proxy.example.com:8080"`. When `nil`,
|
|
177
|
+
# `net/http` reads the `http_proxy`, `https_proxy`, and `no_proxy` environment
|
|
178
|
+
# variables.
|
|
179
|
+
#
|
|
176
180
|
# @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
|
|
177
181
|
#
|
|
178
182
|
# @param timeout [Float]
|
|
@@ -191,6 +195,7 @@ module Anthropic
|
|
|
191
195
|
credentials: nil,
|
|
192
196
|
config: nil,
|
|
193
197
|
base_url: nil,
|
|
198
|
+
proxy: nil,
|
|
194
199
|
max_retries: self.class::DEFAULT_MAX_RETRIES,
|
|
195
200
|
timeout: self.class::DEFAULT_TIMEOUT_IN_SECONDS,
|
|
196
201
|
initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
|
|
@@ -279,6 +284,7 @@ module Anthropic
|
|
|
279
284
|
|
|
280
285
|
super(
|
|
281
286
|
base_url: base_url,
|
|
287
|
+
proxy: proxy,
|
|
282
288
|
timeout: timeout,
|
|
283
289
|
max_retries: max_retries,
|
|
284
290
|
initial_retry_delay: initial_retry_delay,
|
|
@@ -61,8 +61,10 @@ module Anthropic
|
|
|
61
61
|
#
|
|
62
62
|
# `:message-type: event` frames carry a JSON payload
|
|
63
63
|
# `{"bytes": "<base64>"}` wrapping the Anthropic event; emit it as
|
|
64
|
-
# an `event:`/`data:` pair
|
|
65
|
-
#
|
|
64
|
+
# an `event:`/`data:` pair, skipping chunks with no `type`.
|
|
65
|
+
# `:message-type: exception` frames (error payload plus an
|
|
66
|
+
# `:exception-type` header) and `:message-type: error` frames
|
|
67
|
+
# (`:error-code`/`:error-message` headers) are re-emitted as the same
|
|
66
68
|
# `event: error` / `data: {"type":"error",...}` SSE shape the API
|
|
67
69
|
# would have sent, so the stream consumer's existing error path fires.
|
|
68
70
|
#
|
|
@@ -74,13 +76,21 @@ module Anthropic
|
|
|
74
76
|
in "event"
|
|
75
77
|
payload = JSON.parse(msg.payload.read, symbolize_names: true)
|
|
76
78
|
inner = Base64.decode64(payload.fetch(:bytes))
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
case JSON.parse(inner, symbolize_names: true)
|
|
80
|
+
in {type: String => type}
|
|
81
|
+
y << "event: #{type}\ndata: #{inner}\n\n"
|
|
82
|
+
else
|
|
83
|
+
end
|
|
79
84
|
in "exception"
|
|
80
85
|
exc_type = msg.headers[":exception-type"]&.value
|
|
81
86
|
body = msg.payload.read
|
|
82
87
|
data = JSON.generate(type: "error", error: {type: exc_type, message: body})
|
|
83
88
|
y << "event: error\ndata: #{data}\n\n"
|
|
89
|
+
in "error"
|
|
90
|
+
code = msg.headers[":error-code"]&.value
|
|
91
|
+
message = msg.headers[":error-message"]&.value
|
|
92
|
+
data = JSON.generate(type: "error", error: {type: code, message: message})
|
|
93
|
+
y << "event: error\ndata: #{data}\n\n"
|
|
84
94
|
else
|
|
85
95
|
# Unknown message-type — drop. AWS may add prelude/metadata frames.
|
|
86
96
|
end
|
|
@@ -191,6 +191,7 @@ module Anthropic
|
|
|
191
191
|
# @api private
|
|
192
192
|
#
|
|
193
193
|
# @param base_url [String]
|
|
194
|
+
# @param proxy [String, URI::Generic, nil]
|
|
194
195
|
# @param timeout [Float]
|
|
195
196
|
# @param max_retries [Integer]
|
|
196
197
|
# @param initial_retry_delay [Float]
|
|
@@ -201,6 +202,7 @@ module Anthropic
|
|
|
201
202
|
# @param requester [Anthropic::Internal::Transport::PooledNetRequester, nil]
|
|
202
203
|
def initialize(
|
|
203
204
|
base_url:,
|
|
205
|
+
proxy: nil,
|
|
204
206
|
timeout: 0.0,
|
|
205
207
|
max_retries: 0,
|
|
206
208
|
initial_retry_delay: 0.0,
|
|
@@ -211,7 +213,7 @@ module Anthropic
|
|
|
211
213
|
requester: nil
|
|
212
214
|
)
|
|
213
215
|
@middleware = Array(middleware).freeze
|
|
214
|
-
@requester = requester || Anthropic::Internal::Transport::PooledNetRequester.new
|
|
216
|
+
@requester = requester || Anthropic::Internal::Transport::PooledNetRequester.new(proxy: proxy)
|
|
215
217
|
@headers = Anthropic::Internal::Util.normalized_headers(
|
|
216
218
|
self.class::PLATFORM_HEADERS,
|
|
217
219
|
{
|
|
@@ -365,21 +367,23 @@ module Anthropic
|
|
|
365
367
|
private def retry_delay(headers, retry_count:)
|
|
366
368
|
# Non-standard extension
|
|
367
369
|
span = Float(headers["retry-after-ms"], exception: false)&.then { _1 / 1000 }
|
|
368
|
-
return span if span
|
|
369
370
|
|
|
370
371
|
retry_header = headers["retry-after"]
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
span = retry_header&.then do
|
|
372
|
+
span ||= Float(retry_header, exception: false)
|
|
373
|
+
span ||= retry_header&.then do
|
|
374
374
|
Time.httpdate(_1) - Time.now
|
|
375
375
|
rescue ArgumentError
|
|
376
376
|
nil
|
|
377
377
|
end
|
|
378
|
-
return span if span
|
|
379
378
|
|
|
380
|
-
|
|
379
|
+
# If the API asks us to wait a certain amount of time, do what it says, however long.
|
|
380
|
+
# A non-positive value, e.g. an HTTP-date in the past, falls back to the computed backoff rather than reaching `sleep`.
|
|
381
|
+
return span if span&.positive?
|
|
382
|
+
|
|
383
|
+
# Exponential backoff capped at `max_retry_delay`, minus up to 25% jitter.
|
|
384
|
+
scale = 2**retry_count
|
|
381
385
|
jitter = 1 - (0.25 * rand)
|
|
382
|
-
(@initial_retry_delay * scale
|
|
386
|
+
(@initial_retry_delay * scale).clamp(0, @max_retry_delay) * jitter
|
|
383
387
|
end
|
|
384
388
|
|
|
385
389
|
# @api private
|
|
@@ -18,9 +18,10 @@ module Anthropic
|
|
|
18
18
|
#
|
|
19
19
|
# @param cert_store [OpenSSL::X509::Store]
|
|
20
20
|
# @param url [URI::Generic]
|
|
21
|
+
# @param proxy [URI::Generic, nil]
|
|
21
22
|
#
|
|
22
23
|
# @return [Net::HTTP]
|
|
23
|
-
def connect(cert_store:, url:)
|
|
24
|
+
def connect(cert_store:, url:, proxy: nil)
|
|
24
25
|
port =
|
|
25
26
|
case [url.port, url.scheme]
|
|
26
27
|
in [Integer, _]
|
|
@@ -31,7 +32,23 @@ module Anthropic
|
|
|
31
32
|
Net::HTTP.https_default_port
|
|
32
33
|
end
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
conn =
|
|
36
|
+
if proxy.nil?
|
|
37
|
+
# `net/http` falls back to the `http_proxy`/`https_proxy`/`no_proxy` environment variables.
|
|
38
|
+
Net::HTTP.new(url.host, port)
|
|
39
|
+
else
|
|
40
|
+
# `https://` targets are tunnelled through the proxy with CONNECT by `net/http` itself.
|
|
41
|
+
Net::HTTP.new(
|
|
42
|
+
url.host,
|
|
43
|
+
port,
|
|
44
|
+
proxy.hostname,
|
|
45
|
+
proxy.port,
|
|
46
|
+
proxy.user&.then { URI.decode_uri_component(_1) },
|
|
47
|
+
proxy.password&.then { URI.decode_uri_component(_1) }
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
conn.tap do
|
|
35
52
|
_1.use_ssl = %w[https wss].include?(url.scheme)
|
|
36
53
|
_1.max_retries = 0
|
|
37
54
|
|
|
@@ -39,6 +56,37 @@ module Anthropic
|
|
|
39
56
|
end
|
|
40
57
|
end
|
|
41
58
|
|
|
59
|
+
# @api private
|
|
60
|
+
#
|
|
61
|
+
# @param proxy [String, URI::Generic, nil]
|
|
62
|
+
#
|
|
63
|
+
# @raise [ArgumentError]
|
|
64
|
+
# @return [URI::Generic, nil]
|
|
65
|
+
def parse_proxy(proxy)
|
|
66
|
+
return nil if proxy.nil?
|
|
67
|
+
|
|
68
|
+
parsed =
|
|
69
|
+
case proxy
|
|
70
|
+
in URI::Generic
|
|
71
|
+
proxy
|
|
72
|
+
in String
|
|
73
|
+
begin
|
|
74
|
+
URI(proxy)
|
|
75
|
+
rescue URI::InvalidURIError
|
|
76
|
+
nil
|
|
77
|
+
end
|
|
78
|
+
else
|
|
79
|
+
nil
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# The offending value is deliberately left out of the message since proxy URLs often embed credentials.
|
|
83
|
+
if parsed.nil? || parsed.scheme&.downcase != "http" || parsed.host.to_s.empty?
|
|
84
|
+
raise ArgumentError.new("Expected proxy to be an http:// URL with a host, for example http://proxy.example.com:8080")
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
parsed
|
|
88
|
+
end
|
|
89
|
+
|
|
42
90
|
# @api private
|
|
43
91
|
#
|
|
44
92
|
# @param conn [Net::HTTP]
|
|
@@ -105,7 +153,7 @@ module Anthropic
|
|
|
105
153
|
pool =
|
|
106
154
|
@mutex.synchronize do
|
|
107
155
|
@pools[origin] ||= ConnectionPool.new(size: @size) do
|
|
108
|
-
self.class.connect(cert_store: @cert_store, url: url)
|
|
156
|
+
self.class.connect(cert_store: @cert_store, url: url, proxy: @proxy)
|
|
109
157
|
end
|
|
110
158
|
end
|
|
111
159
|
|
|
@@ -194,13 +242,24 @@ module Anthropic
|
|
|
194
242
|
# @api private
|
|
195
243
|
#
|
|
196
244
|
# @param size [Integer]
|
|
197
|
-
|
|
245
|
+
# @param proxy [String, URI::Generic, nil]
|
|
246
|
+
def initialize(size: self.class::DEFAULT_MAX_CONNECTIONS, proxy: nil)
|
|
198
247
|
@mutex = Mutex.new
|
|
199
248
|
@size = size
|
|
249
|
+
@proxy = self.class.parse_proxy(proxy)
|
|
200
250
|
@cert_store = OpenSSL::X509::Store.new.tap(&:set_default_paths)
|
|
201
251
|
@pools = {}
|
|
202
252
|
end
|
|
203
253
|
|
|
254
|
+
# @api private
|
|
255
|
+
#
|
|
256
|
+
# @return [String]
|
|
257
|
+
def inspect
|
|
258
|
+
# Proxy URLs often embed credentials, so never surface the password.
|
|
259
|
+
proxy = @proxy&.then { _1.password.nil? ? _1 : _1.dup.tap { |uri| uri.password = "REDACTED" } }
|
|
260
|
+
"#<#{self.class.name}:0x#{object_id.to_s(16)} size=#{@size} proxy=#{proxy.inspect}>"
|
|
261
|
+
end
|
|
262
|
+
|
|
204
263
|
define_sorbet_constant!(:Request) do
|
|
205
264
|
T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
|
|
206
265
|
end
|
|
@@ -171,12 +171,15 @@ module Anthropic
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
exactness = state.fetch(:exactness)
|
|
174
|
+
error = state[:error]
|
|
174
175
|
|
|
175
176
|
alternatives = []
|
|
176
177
|
known_variants.each do |_, variant_fn|
|
|
177
178
|
target = variant_fn.call
|
|
178
179
|
exact = state[:exactness] = {yes: 0, no: 0, maybe: 0}
|
|
179
180
|
state[:branched] += 1
|
|
181
|
+
# a variant that was tried and passed over must not leave its error behind
|
|
182
|
+
state[:error] = error
|
|
180
183
|
|
|
181
184
|
coerced = Anthropic::Internal::Type::Converter.coerce(target, value, state: state)
|
|
182
185
|
yes, no, maybe = exact.values
|
|
@@ -185,7 +188,7 @@ module Anthropic
|
|
|
185
188
|
state[:exactness] = exactness
|
|
186
189
|
return coerced
|
|
187
190
|
elsif maybe.positive?
|
|
188
|
-
alternatives << [[-yes, -maybe, no], exact, coerced]
|
|
191
|
+
alternatives << [[-yes, -maybe, no], exact, coerced, state[:error]]
|
|
189
192
|
end
|
|
190
193
|
end
|
|
191
194
|
|
|
@@ -194,8 +197,9 @@ module Anthropic
|
|
|
194
197
|
exactness[:no] += 1
|
|
195
198
|
state[:error] = ArgumentError.new("no matching variant for #{value.inspect}")
|
|
196
199
|
value
|
|
197
|
-
in [[_, exact, coerced], *]
|
|
200
|
+
in [[_, exact, coerced, error], *]
|
|
198
201
|
exact.each { exactness[_1] += _2 }
|
|
202
|
+
state[:error] = error
|
|
199
203
|
coerced
|
|
200
204
|
end
|
|
201
205
|
.tap { state[:exactness] = exactness }
|
|
@@ -318,7 +318,9 @@ module Anthropic
|
|
|
318
318
|
#
|
|
319
319
|
# @return [Hash{String=>Array<String>}]
|
|
320
320
|
def decode_query(query)
|
|
321
|
-
|
|
321
|
+
URI.decode_www_form(query.to_s).each_with_object({}) do |(key, value), out|
|
|
322
|
+
(out[key] ||= []) << value
|
|
323
|
+
end
|
|
322
324
|
end
|
|
323
325
|
|
|
324
326
|
# @api private
|
|
@@ -5,8 +5,6 @@ module Anthropic
|
|
|
5
5
|
module AnthropicBeta
|
|
6
6
|
extend Anthropic::Internal::Type::Union
|
|
7
7
|
|
|
8
|
-
variant String
|
|
9
|
-
|
|
10
8
|
variant const: -> { Anthropic::Models::AnthropicBeta::MESSAGE_BATCHES_2024_09_24 }
|
|
11
9
|
|
|
12
10
|
variant const: -> { Anthropic::Models::AnthropicBeta::PROMPT_CACHING_2024_07_31 }
|
|
@@ -97,11 +95,15 @@ module Anthropic
|
|
|
97
95
|
|
|
98
96
|
variant const: -> { Anthropic::Models::AnthropicBeta::MID_CONVERSATION_SYSTEM_CLEAR_AT_2026_08_21 }
|
|
99
97
|
|
|
98
|
+
variant const: -> { Anthropic::Models::AnthropicBeta::COMPACT_2026_09_04 }
|
|
99
|
+
|
|
100
|
+
variant String
|
|
101
|
+
|
|
100
102
|
# @!method self.variants
|
|
101
|
-
# @return [Array(
|
|
103
|
+
# @return [Array(Symbol, String)]
|
|
102
104
|
|
|
103
105
|
define_sorbet_constant!(:Variants) do
|
|
104
|
-
T.type_alias { T.any(
|
|
106
|
+
T.type_alias { T.any(Anthropic::AnthropicBeta::TaggedSymbol, String) }
|
|
105
107
|
end
|
|
106
108
|
|
|
107
109
|
# @!group
|
|
@@ -151,6 +153,7 @@ module Anthropic
|
|
|
151
153
|
MID_CONVERSATION_OUTPUT_CONFIG_2026_07_01 = :"mid-conversation-output-config-2026-07-01"
|
|
152
154
|
THINKING_BINDING_CONTROLS_2026_08_01 = :"thinking-binding-controls-2026-08-01"
|
|
153
155
|
MID_CONVERSATION_SYSTEM_CLEAR_AT_2026_08_21 = :"mid-conversation-system-clear-at-2026-08-21"
|
|
156
|
+
COMPACT_2026_09_04 = :"compact-2026-09-04"
|
|
154
157
|
|
|
155
158
|
# @!endgroup
|
|
156
159
|
end
|
|
@@ -16,7 +16,7 @@ module Anthropic
|
|
|
16
16
|
# @!attribute betas
|
|
17
17
|
# Optional header to specify the beta version(s) you want to use.
|
|
18
18
|
#
|
|
19
|
-
# @return [Array<
|
|
19
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
20
20
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
21
21
|
|
|
22
22
|
# @!attribute workspace_id
|
|
@@ -27,7 +27,7 @@ module Anthropic
|
|
|
27
27
|
# @!method initialize(agent_id:, betas: nil, workspace_id: nil, request_options: {})
|
|
28
28
|
# @param agent_id [String]
|
|
29
29
|
#
|
|
30
|
-
# @param betas [Array<
|
|
30
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
31
31
|
#
|
|
32
32
|
# @param workspace_id [String]
|
|
33
33
|
#
|
|
@@ -14,7 +14,7 @@ module Anthropic
|
|
|
14
14
|
# e.g. `claude-opus-5`, or a `model_config` object for additional configuration
|
|
15
15
|
# control
|
|
16
16
|
#
|
|
17
|
-
# @return [
|
|
17
|
+
# @return [Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel]
|
|
18
18
|
required :model, union: -> { Anthropic::Beta::AgentCreateParams::Model }
|
|
19
19
|
|
|
20
20
|
# @!attribute name
|
|
@@ -77,7 +77,7 @@ module Anthropic
|
|
|
77
77
|
# @!attribute betas
|
|
78
78
|
# Optional header to specify the beta version(s) you want to use.
|
|
79
79
|
#
|
|
80
|
-
# @return [Array<
|
|
80
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
81
81
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
82
82
|
|
|
83
83
|
# @!attribute workspace_id
|
|
@@ -89,7 +89,7 @@ module Anthropic
|
|
|
89
89
|
# Some parameter documentations has been truncated, see
|
|
90
90
|
# {Anthropic::Models::Beta::AgentCreateParams} for more details.
|
|
91
91
|
#
|
|
92
|
-
# @param model [
|
|
92
|
+
# @param model [Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel] Model identifier. Accepts the [model string](https://platform.claude.com/docs/en
|
|
93
93
|
#
|
|
94
94
|
# @param name [String] Human-readable name for the agent.
|
|
95
95
|
#
|
|
@@ -107,7 +107,7 @@ module Anthropic
|
|
|
107
107
|
#
|
|
108
108
|
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>] Tool configurations available to the agent. Maximum of 128 tools across all tool
|
|
109
109
|
#
|
|
110
|
-
# @param betas [Array<
|
|
110
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
111
111
|
#
|
|
112
112
|
# @param workspace_id [String]
|
|
113
113
|
#
|
|
@@ -120,16 +120,16 @@ module Anthropic
|
|
|
120
120
|
module Model
|
|
121
121
|
extend Anthropic::Internal::Type::Union
|
|
122
122
|
|
|
123
|
+
# An object that defines additional configuration control over model use
|
|
124
|
+
variant -> { Anthropic::Beta::BetaManagedAgentsModelConfigParams }
|
|
125
|
+
|
|
123
126
|
# The model that will power your agent.
|
|
124
127
|
#
|
|
125
128
|
# See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
|
|
126
129
|
variant union: -> { Anthropic::Beta::BetaManagedAgentsModel }
|
|
127
130
|
|
|
128
|
-
# An object that defines additional configuration control over model use
|
|
129
|
-
variant -> { Anthropic::Beta::BetaManagedAgentsModelConfigParams }
|
|
130
|
-
|
|
131
131
|
# @!method self.variants
|
|
132
|
-
# @return [Array(
|
|
132
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel)]
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
# Union type for tool configurations in the tools array.
|
|
@@ -167,7 +167,7 @@ module Anthropic
|
|
|
167
167
|
# Some parameter documentations has been truncated, see
|
|
168
168
|
# {Anthropic::Models::Beta::AgentCreateParams::Tool} for more details.
|
|
169
169
|
#
|
|
170
|
-
# @param type [Symbol, String]
|
|
170
|
+
# @param type [Symbol, Anthropic::Models::Beta::AgentCreateParams::Tool::Type, String]
|
|
171
171
|
#
|
|
172
172
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
173
173
|
#
|
|
@@ -41,7 +41,7 @@ module Anthropic
|
|
|
41
41
|
# @!attribute betas
|
|
42
42
|
# Optional header to specify the beta version(s) you want to use.
|
|
43
43
|
#
|
|
44
|
-
# @return [Array<
|
|
44
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
45
45
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
46
46
|
|
|
47
47
|
# @!attribute workspace_id
|
|
@@ -60,7 +60,7 @@ module Anthropic
|
|
|
60
60
|
#
|
|
61
61
|
# @param page [String] Opaque pagination cursor from a previous response.
|
|
62
62
|
#
|
|
63
|
-
# @param betas [Array<
|
|
63
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
64
64
|
#
|
|
65
65
|
# @param workspace_id [String]
|
|
66
66
|
#
|
|
@@ -23,7 +23,7 @@ module Anthropic
|
|
|
23
23
|
# @!attribute betas
|
|
24
24
|
# Optional header to specify the beta version(s) you want to use.
|
|
25
25
|
#
|
|
26
|
-
# @return [Array<
|
|
26
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
27
27
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
28
28
|
|
|
29
29
|
# @!attribute workspace_id
|
|
@@ -39,7 +39,7 @@ module Anthropic
|
|
|
39
39
|
#
|
|
40
40
|
# @param version [Integer] Agent version. Omit for the most recent version. Must be at least 1 if specified
|
|
41
41
|
#
|
|
42
|
-
# @param betas [Array<
|
|
42
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
43
43
|
#
|
|
44
44
|
# @param workspace_id [String]
|
|
45
45
|
#
|
|
@@ -47,7 +47,7 @@ module Anthropic
|
|
|
47
47
|
# e.g. `claude-opus-5`, or a `model_config` object for additional configuration
|
|
48
48
|
# control. Omit to preserve. Cannot be cleared.
|
|
49
49
|
#
|
|
50
|
-
# @return [
|
|
50
|
+
# @return [Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel, nil]
|
|
51
51
|
optional :model, union: -> { Anthropic::Beta::AgentUpdateParams::Model }
|
|
52
52
|
|
|
53
53
|
# @!attribute multiagent
|
|
@@ -101,7 +101,7 @@ module Anthropic
|
|
|
101
101
|
# @!attribute betas
|
|
102
102
|
# Optional header to specify the beta version(s) you want to use.
|
|
103
103
|
#
|
|
104
|
-
# @return [Array<
|
|
104
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
105
105
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
106
106
|
|
|
107
107
|
# @!attribute workspace_id
|
|
@@ -121,7 +121,7 @@ module Anthropic
|
|
|
121
121
|
#
|
|
122
122
|
# @param metadata [Hash{Symbol=>String, nil}, nil] Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omi
|
|
123
123
|
#
|
|
124
|
-
# @param model [
|
|
124
|
+
# @param model [Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel] Model identifier. Accepts the [model string](https://platform.claude.com/docs/en
|
|
125
125
|
#
|
|
126
126
|
# @param multiagent [Anthropic::Models::Beta::BetaManagedAgentsMultiagentParams, nil] A coordinator topology: the session's primary thread orchestrates work by spawni
|
|
127
127
|
#
|
|
@@ -135,7 +135,7 @@ module Anthropic
|
|
|
135
135
|
#
|
|
136
136
|
# @param version [Integer] The agent's current version, used to prevent concurrent overwrites. Obtain this
|
|
137
137
|
#
|
|
138
|
-
# @param betas [Array<
|
|
138
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
139
139
|
#
|
|
140
140
|
# @param workspace_id [String]
|
|
141
141
|
#
|
|
@@ -148,16 +148,16 @@ module Anthropic
|
|
|
148
148
|
module Model
|
|
149
149
|
extend Anthropic::Internal::Type::Union
|
|
150
150
|
|
|
151
|
+
# An object that defines additional configuration control over model use
|
|
152
|
+
variant -> { Anthropic::Beta::BetaManagedAgentsModelConfigParams }
|
|
153
|
+
|
|
151
154
|
# The model that will power your agent.
|
|
152
155
|
#
|
|
153
156
|
# See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
|
|
154
157
|
variant union: -> { Anthropic::Beta::BetaManagedAgentsModel }
|
|
155
158
|
|
|
156
|
-
# An object that defines additional configuration control over model use
|
|
157
|
-
variant -> { Anthropic::Beta::BetaManagedAgentsModelConfigParams }
|
|
158
|
-
|
|
159
159
|
# @!method self.variants
|
|
160
|
-
# @return [Array(
|
|
160
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams, Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel)]
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
# Union type for tool configurations in the tools array.
|
|
@@ -195,7 +195,7 @@ module Anthropic
|
|
|
195
195
|
# Some parameter documentations has been truncated, see
|
|
196
196
|
# {Anthropic::Models::Beta::AgentUpdateParams::Tool} for more details.
|
|
197
197
|
#
|
|
198
|
-
# @param type [Symbol, String]
|
|
198
|
+
# @param type [Symbol, Anthropic::Models::Beta::AgentUpdateParams::Tool::Type, String]
|
|
199
199
|
#
|
|
200
200
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
201
201
|
#
|
|
@@ -29,7 +29,7 @@ module Anthropic
|
|
|
29
29
|
# @!attribute betas
|
|
30
30
|
# Optional header to specify the beta version(s) you want to use.
|
|
31
31
|
#
|
|
32
|
-
# @return [Array<
|
|
32
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
33
33
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
34
34
|
|
|
35
35
|
# @!attribute workspace_id
|
|
@@ -44,7 +44,7 @@ module Anthropic
|
|
|
44
44
|
#
|
|
45
45
|
# @param page [String] Opaque pagination cursor.
|
|
46
46
|
#
|
|
47
|
-
# @param betas [Array<
|
|
47
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
48
48
|
#
|
|
49
49
|
# @param workspace_id [String]
|
|
50
50
|
#
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
-
# A tab this call's execution opened that remains open at its end — the creation
|
|
7
|
-
# delta of the `tabs` inventory, not an event log.
|
|
8
|
-
#
|
|
9
|
-
# Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
10
|
-
# which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
11
|
-
# deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
12
6
|
module BetaBrowserStateChange
|
|
13
7
|
extend Anthropic::Internal::Type::Union
|
|
14
8
|
|
|
@@ -56,7 +50,7 @@ module Anthropic
|
|
|
56
50
|
# Some parameter documentations has been truncated, see
|
|
57
51
|
# {Anthropic::Models::Beta::BetaBrowserStateChange} for more details.
|
|
58
52
|
#
|
|
59
|
-
# @param type [Symbol, String]
|
|
53
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaBrowserStateChange::Type, String]
|
|
60
54
|
#
|
|
61
55
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
62
56
|
#
|
|
@@ -56,7 +56,7 @@ module Anthropic
|
|
|
56
56
|
# Some parameter documentations has been truncated, see
|
|
57
57
|
# {Anthropic::Models::Beta::BetaCitationsDelta::Citation} for more details.
|
|
58
58
|
#
|
|
59
|
-
# @param type [Symbol, String]
|
|
59
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaCitationsDelta::Citation::Type, String]
|
|
60
60
|
#
|
|
61
61
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
62
62
|
#
|