anthropic 1.69.0 → 1.71.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/internal/transport/base_client.rb +12 -12
- 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 +10 -4
- data/lib/anthropic/models/beta/agent_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +8 -8
- 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 +8 -8
- data/lib/anthropic/models/beta/agents/version_list_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_browser_state_change.rb +0 -6
- 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 +3 -4
- data/lib/anthropic/models/beta/beta_content_block_param.rb +4 -5
- data/lib/anthropic/models/beta/beta_context_management_config.rb +0 -2
- data/lib/anthropic/models/beta/beta_dream.rb +1 -4
- data/lib/anthropic/models/beta/beta_dream_input.rb +0 -3
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +0 -7
- data/lib/anthropic/models/beta/beta_fallback_message_iteration_usage.rb +5 -4
- data/lib/anthropic/models/beta/beta_fallbacks_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_input_transformation.rb +62 -0
- data/lib/anthropic/models/beta/beta_iterations_usage.rb +7 -6
- 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 +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +6 -6
- data/lib/anthropic/models/beta/beta_managed_agents_auto_policy.rb +24 -0
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +13 -8
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +10 -4
- 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 +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +10 -4
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +10 -4
- 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 +0 -3
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +4 -9
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +20 -17
- data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +1 -11
- data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +1 -11
- data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +1 -8
- data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +1 -4
- data/lib/anthropic/models/beta/beta_summarize_compaction.rb +40 -0
- data/lib/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rb +73 -0
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +0 -1
- data/lib/anthropic/models/beta/beta_tool_union.rb +0 -2
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +1 -4
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +1 -4
- data/lib/anthropic/models/beta/beta_user_profile.rb +15 -3
- data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +122 -0
- data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +122 -0
- 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 +1 -7
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +1 -4
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rb +1 -0
- 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 +1 -7
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +3 -6
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +3 -3
- data/lib/anthropic/models/beta/deployment_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/deployment_create_params.rb +9 -9
- 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 +9 -9
- 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 +6 -6
- 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 +2 -2
- 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/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/model_list_params.rb +2 -2
- data/lib/anthropic/models/beta/model_retrieve_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/beta_compliance_settings.rb +1 -47
- data/lib/anthropic/models/beta/organization/beta_compliance_settings_state.rb +52 -0
- data/lib/anthropic/models/beta/organization/beta_compliance_settings_state_param.rb +52 -0
- 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/compliance_setting_update_params.rb +1 -46
- data/lib/anthropic/models/beta/organization/federation/issuer_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/federation/issuer_create_params.rb +2 -2
- 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 +2 -2
- 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/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 +2 -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 +69 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rb +21 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rb +35 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rb +37 -0
- 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_use_event.rb +13 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +69 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rb +37 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +14 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +1 -12
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +4 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +0 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +1 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +1 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +4 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +4 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +3 -4
- 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_update_params.rb +2 -2
- 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 +23 -4
- 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 +24 -4
- 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_networking_params.rb +0 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +1 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +1 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +1 -4
- data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +2 -2
- 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 +2 -2
- data/lib/anthropic/models/browser_state_change.rb +0 -6
- 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 +2 -3
- data/lib/anthropic/models/content_block_param.rb +2 -3
- 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/model_list_params.rb +2 -2
- data/lib/anthropic/models/model_retrieve_params.rb +2 -2
- data/lib/anthropic/models/raw_content_block_start_event.rb +3 -8
- data/lib/anthropic/models/raw_message_stream_event.rb +1 -1
- data/lib/anthropic/models/server_tool_use_block.rb +1 -8
- data/lib/anthropic/models/server_tool_use_block_param.rb +1 -4
- data/lib/anthropic/models/tool_result_block_param.rb +0 -1
- data/lib/anthropic/models/tool_union.rb +0 -2
- data/lib/anthropic/models/tool_use_block.rb +2 -4
- data/lib/anthropic/models/tool_use_block_param.rb +1 -4
- 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 +1 -7
- data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +1 -4
- data/lib/anthropic/models/web_fetch_tool_result_error_code.rb +1 -0
- 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 +1 -7
- data/lib/anthropic/models/web_search_tool_result_block_param.rb +3 -6
- data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +3 -3
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/request_options.rb +1 -2
- data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
- data/lib/anthropic/resources/beta/agents.rb +7 -7
- data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
- data/lib/anthropic/resources/beta/deployments.rb +10 -10
- 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 +6 -6
- 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 +4 -4
- data/lib/anthropic/resources/beta/tunnels.rb +6 -6
- data/lib/anthropic/resources/beta/user_profiles.rb +42 -15
- data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
- data/lib/anthropic/resources/beta/vaults.rb +6 -6
- 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 +30 -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 +8 -1
- data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/agent_create_params.rbi +12 -12
- 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 +14 -14
- data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +0 -6
- 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 +2 -4
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +4 -9
- data/rbi/anthropic/models/beta/beta_context_management_config.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_dream.rbi +0 -6
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +0 -7
- data/rbi/anthropic/models/beta/beta_fallback_message_iteration_usage.rbi +5 -4
- data/rbi/anthropic/models/beta/beta_fallbacks_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_input_transformation.rbi +99 -0
- data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +5 -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 +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +10 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_auto_policy.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +13 -8
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +13 -4
- 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 +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +9 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +13 -4
- 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 +0 -3
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +3 -11
- data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +40 -29
- data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +21 -14
- data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +0 -9
- data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +0 -9
- data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +1 -10
- data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_summarize_compaction.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbi +140 -0
- data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +0 -1
- data/rbi/anthropic/models/beta/beta_tool_union.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +32 -2
- data/rbi/anthropic/models/beta/beta_user_profile_external_user_details.rbi +228 -0
- data/rbi/anthropic/models/beta/beta_user_profile_external_user_details_params.rbi +234 -0
- 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 +0 -3
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_error_code.rbi +5 -0
- 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 +412 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +0 -3
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +6 -11
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +2 -2
- data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +13 -12
- 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 +15 -14
- 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 +10 -10
- 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 +4 -4
- 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/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/model_list_params.rbi +4 -4
- data/rbi/anthropic/models/beta/model_retrieve_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings.rbi +2 -69
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbi +75 -0
- 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/compliance_setting_update_params.rbi +0 -68
- data/rbi/anthropic/models/beta/organization/federation/issuer_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/organization/federation/issuer_create_params.rbi +4 -4
- 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 +4 -4
- 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/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 -15
- data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -4
- data/rbi/anthropic/models/beta/session_list_params.rbi +4 -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 +90 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rbi +31 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rbi +45 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbi +46 -0
- 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_use_event.rbi +40 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +98 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rbi +32 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rbi +32 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbi +66 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +42 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +0 -9
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +10 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +0 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +0 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +0 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +10 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +10 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +4 -6
- 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_update_params.rbi +4 -4
- 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 +45 -6
- 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 +47 -6
- 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_networking_params.rbi +0 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +0 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +0 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +0 -3
- data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -4
- 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 +4 -4
- data/rbi/anthropic/models/browser_state_change.rbi +0 -6
- 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 +0 -3
- data/rbi/anthropic/models/content_block_param.rbi +2 -5
- data/rbi/anthropic/models/message_count_tokens_tool.rbi +0 -2
- 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_start_event.rbi +1 -10
- data/rbi/anthropic/models/raw_message_stream_event.rbi +0 -1
- data/rbi/anthropic/models/server_tool_use_block.rbi +1 -10
- data/rbi/anthropic/models/server_tool_use_block_param.rbi +0 -3
- data/rbi/anthropic/models/tool_result_block_param.rbi +0 -1
- data/rbi/anthropic/models/tool_union.rbi +0 -2
- data/rbi/anthropic/models/tool_use_block.rbi +0 -3
- data/rbi/anthropic/models/tool_use_block_param.rbi +0 -3
- 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 +0 -3
- data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +0 -3
- data/rbi/anthropic/models/web_fetch_tool_result_error_code.rbi +5 -0
- 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 +386 -0
- data/rbi/anthropic/models/web_search_tool_result_block.rbi +0 -3
- data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +6 -9
- data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +2 -2
- data/rbi/anthropic/models.rbi +13 -0
- data/rbi/anthropic/request_options.rbi +1 -2
- data/rbi/anthropic/resources/beta/agents/versions.rbi +1 -1
- data/rbi/anthropic/resources/beta/agents.rbi +9 -9
- data/rbi/anthropic/resources/beta/deployment_runs.rbi +2 -2
- data/rbi/anthropic/resources/beta/deployments.rbi +12 -12
- 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 +8 -8
- 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 +6 -6
- 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 +4 -4
- data/rbi/anthropic/resources/beta/tunnels.rbi +6 -6
- data/rbi/anthropic/resources/beta/user_profiles.rbi +64 -7
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +7 -7
- data/rbi/anthropic/resources/beta/vaults.rbi +6 -6
- 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 +6 -2
- data/sig/anthropic/models/beta/agent_create_params.rbs +2 -2
- data/sig/anthropic/models/beta/agent_update_params.rbs +2 -2
- 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 +3 -2
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +3 -2
- data/sig/anthropic/models/beta/beta_fallbacks_param.rbs +1 -1
- data/sig/anthropic/models/beta/beta_input_transformation.rbs +46 -0
- data/sig/anthropic/models/beta/beta_iterations_usage.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_auto_policy.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +7 -5
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +6 -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 +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +6 -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_raw_content_block_start_event.rbs +3 -2
- data/sig/anthropic/models/beta/beta_raw_message_delta_event.rbs +4 -4
- data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +2 -2
- data/sig/anthropic/models/beta/beta_summarize_compaction.rbs +20 -0
- data/sig/anthropic/models/beta/beta_thinking_mismatch_allowed_input_transformation.rbs +51 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +9 -0
- data/sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs +79 -0
- data/sig/anthropic/models/beta/beta_user_profile_external_user_details_params.rbs +81 -0
- 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_error_code.rbs +2 -0
- 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 +162 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +2 -2
- data/sig/anthropic/models/beta/deployment_create_params.rbs +3 -3
- data/sig/anthropic/models/beta/deployment_update_params.rbs +3 -3
- data/sig/anthropic/models/beta/dream_create_params.rbs +1 -1
- 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/organization/beta_compliance_settings.rbs +4 -36
- data/sig/anthropic/models/beta/organization/beta_compliance_settings_state.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_compliance_settings_state_param.rbs +39 -0
- 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/compliance_setting_update_params.rbs +4 -36
- data/sig/anthropic/models/beta/session_create_params.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission.rbs +47 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_allow.rbs +18 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_ask.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_auto_evaluated_permission_deny.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +9 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbs +46 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_allow.rbs +18 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_always_ask.rbs +18 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbs +29 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +9 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +3 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +3 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +3 -0
- data/sig/anthropic/models/beta/user_profile_create_enrollment_url_params.rbs +8 -1
- data/sig/anthropic/models/beta/user_profile_create_params.rbs +17 -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 +17 -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_error_code.rbs +2 -0
- 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 +151 -0
- 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/organization/compliance_settings.rbs +1 -1
- data/sig/anthropic/resources/beta/user_profiles.rbs +7 -0
- metadata +92 -16
|
@@ -17,6 +17,7 @@ module Anthropic
|
|
|
17
17
|
max_uses: Integer?,
|
|
18
18
|
response_inclusion: Anthropic::Models::Beta::BetaWebFetchTool20260318::response_inclusion,
|
|
19
19
|
strict: bool,
|
|
20
|
+
url_sources: Anthropic::Beta::BetaWebFetchURLSources?,
|
|
20
21
|
use_cache: bool
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -57,6 +58,8 @@ module Anthropic
|
|
|
57
58
|
|
|
58
59
|
def strict=: (bool) -> bool
|
|
59
60
|
|
|
61
|
+
attr_accessor url_sources: Anthropic::Beta::BetaWebFetchURLSources?
|
|
62
|
+
|
|
60
63
|
attr_reader use_cache: bool?
|
|
61
64
|
|
|
62
65
|
def use_cache=: (bool) -> bool
|
|
@@ -72,6 +75,7 @@ module Anthropic
|
|
|
72
75
|
?max_uses: Integer?,
|
|
73
76
|
?response_inclusion: Anthropic::Models::Beta::BetaWebFetchTool20260318::response_inclusion,
|
|
74
77
|
?strict: bool,
|
|
78
|
+
?url_sources: Anthropic::Beta::BetaWebFetchURLSources?,
|
|
75
79
|
?use_cache: bool,
|
|
76
80
|
?name: :web_fetch,
|
|
77
81
|
?type: :web_fetch_20260318
|
|
@@ -90,6 +94,7 @@ module Anthropic
|
|
|
90
94
|
max_uses: Integer?,
|
|
91
95
|
response_inclusion: Anthropic::Models::Beta::BetaWebFetchTool20260318::response_inclusion,
|
|
92
96
|
strict: bool,
|
|
97
|
+
url_sources: Anthropic::Beta::BetaWebFetchURLSources?,
|
|
93
98
|
use_cache: bool
|
|
94
99
|
}
|
|
95
100
|
|
|
@@ -13,6 +13,7 @@ module Anthropic
|
|
|
13
13
|
| :too_many_requests
|
|
14
14
|
| :max_uses_exceeded
|
|
15
15
|
| :unavailable
|
|
16
|
+
| :content_too_large
|
|
16
17
|
|
|
17
18
|
module BetaWebFetchToolResultErrorCode
|
|
18
19
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -26,6 +27,7 @@ module Anthropic
|
|
|
26
27
|
TOO_MANY_REQUESTS: :too_many_requests
|
|
27
28
|
MAX_USES_EXCEEDED: :max_uses_exceeded
|
|
28
29
|
UNAVAILABLE: :unavailable
|
|
30
|
+
CONTENT_TOO_LARGE: :content_too_large
|
|
29
31
|
|
|
30
32
|
def self?.values: -> ::Array[Anthropic::Models::Beta::beta_web_fetch_tool_result_error_code]
|
|
31
33
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSourceAll = Beta::BetaWebFetchURLSourceAll
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_source_all = { type: :all }
|
|
7
|
+
|
|
8
|
+
class BetaWebFetchURLSourceAll < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor type: :all
|
|
10
|
+
|
|
11
|
+
def initialize: (?type: :all) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: :all }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSourceExcept = Beta::BetaWebFetchURLSourceExcept
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_source_except =
|
|
7
|
+
{
|
|
8
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
9
|
+
type: :except
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class BetaWebFetchURLSourceExcept < Anthropic::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
14
|
+
|
|
15
|
+
attr_accessor type: :except
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
19
|
+
?type: :except
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
24
|
+
type: :except
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSourceNone = Beta::BetaWebFetchURLSourceNone
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_source_none = { type: :none }
|
|
7
|
+
|
|
8
|
+
class BetaWebFetchURLSourceNone < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor type: :none
|
|
10
|
+
|
|
11
|
+
def initialize: (?type: :none) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: :none }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSourceOnly = Beta::BetaWebFetchURLSourceOnly
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_source_only =
|
|
7
|
+
{
|
|
8
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
9
|
+
type: :only
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class BetaWebFetchURLSourceOnly < Anthropic::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
14
|
+
|
|
15
|
+
attr_accessor type: :only
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
19
|
+
?type: :only
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
|
|
24
|
+
type: :only
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSourceToolReference = Beta::BetaWebFetchURLSourceToolReference
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_source_tool_reference =
|
|
7
|
+
{ name: String, type: :tool_reference }
|
|
8
|
+
|
|
9
|
+
class BetaWebFetchURLSourceToolReference < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor name: String
|
|
11
|
+
|
|
12
|
+
attr_accessor type: :tool_reference
|
|
13
|
+
|
|
14
|
+
def initialize: (name: String, ?type: :tool_reference) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { name: String, type: :tool_reference }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class BetaWebFetchURLSources = Beta::BetaWebFetchURLSources
|
|
4
|
+
|
|
5
|
+
module Beta
|
|
6
|
+
type beta_web_fetch_url_sources =
|
|
7
|
+
{
|
|
8
|
+
client_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results,
|
|
9
|
+
server_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results,
|
|
10
|
+
user_input: Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class BetaWebFetchURLSources < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_reader client_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results?
|
|
15
|
+
|
|
16
|
+
def client_tool_results=: (
|
|
17
|
+
Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results
|
|
18
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results
|
|
19
|
+
|
|
20
|
+
attr_reader server_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results?
|
|
21
|
+
|
|
22
|
+
def server_tool_results=: (
|
|
23
|
+
Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results
|
|
24
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results
|
|
25
|
+
|
|
26
|
+
attr_reader user_input: Anthropic::Models::Beta::BetaWebFetchURLSources::user_input?
|
|
27
|
+
|
|
28
|
+
def user_input=: (
|
|
29
|
+
Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
30
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
?client_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results,
|
|
34
|
+
?server_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results,
|
|
35
|
+
?user_input: Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
36
|
+
) -> void
|
|
37
|
+
|
|
38
|
+
def to_hash: -> {
|
|
39
|
+
client_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results,
|
|
40
|
+
server_tool_results: Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results,
|
|
41
|
+
user_input: Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type client_tool_results =
|
|
45
|
+
Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
46
|
+
| Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
47
|
+
| Anthropic::Beta::BetaWebFetchURLSourceOnly
|
|
48
|
+
| Anthropic::Beta::BetaWebFetchURLSourceExcept
|
|
49
|
+
|
|
50
|
+
module ClientToolResults
|
|
51
|
+
extend Anthropic::Internal::Type::Union
|
|
52
|
+
|
|
53
|
+
type type_ = :all | :none | :only | :except
|
|
54
|
+
|
|
55
|
+
module Type
|
|
56
|
+
extend Anthropic::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
ALL: :all
|
|
59
|
+
NONE: :none
|
|
60
|
+
ONLY: :only
|
|
61
|
+
EXCEPT: :except
|
|
62
|
+
|
|
63
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::ClientToolResults::type_]
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results]
|
|
67
|
+
|
|
68
|
+
def self.new:
|
|
69
|
+
(type: :all | "all") -> Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
70
|
+
| (
|
|
71
|
+
type: :none | "none"
|
|
72
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
73
|
+
| (
|
|
74
|
+
type: :only | "only",
|
|
75
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
76
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceOnly
|
|
77
|
+
| (
|
|
78
|
+
type: :except | "except",
|
|
79
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
80
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceExcept
|
|
81
|
+
| (
|
|
82
|
+
type: Symbol | String,
|
|
83
|
+
?tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
84
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::client_tool_results
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
type server_tool_results =
|
|
88
|
+
Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
89
|
+
| Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
90
|
+
| Anthropic::Beta::BetaWebFetchURLSourceOnly
|
|
91
|
+
| Anthropic::Beta::BetaWebFetchURLSourceExcept
|
|
92
|
+
|
|
93
|
+
module ServerToolResults
|
|
94
|
+
extend Anthropic::Internal::Type::Union
|
|
95
|
+
|
|
96
|
+
type type_ = :all | :none | :only | :except
|
|
97
|
+
|
|
98
|
+
module Type
|
|
99
|
+
extend Anthropic::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
ALL: :all
|
|
102
|
+
NONE: :none
|
|
103
|
+
ONLY: :only
|
|
104
|
+
EXCEPT: :except
|
|
105
|
+
|
|
106
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::ServerToolResults::type_]
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results]
|
|
110
|
+
|
|
111
|
+
def self.new:
|
|
112
|
+
(type: :all | "all") -> Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
113
|
+
| (
|
|
114
|
+
type: :none | "none"
|
|
115
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
116
|
+
| (
|
|
117
|
+
type: :only | "only",
|
|
118
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
119
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceOnly
|
|
120
|
+
| (
|
|
121
|
+
type: :except | "except",
|
|
122
|
+
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
123
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceExcept
|
|
124
|
+
| (
|
|
125
|
+
type: Symbol | String,
|
|
126
|
+
?tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference]
|
|
127
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::server_tool_results
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
type user_input =
|
|
131
|
+
Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
132
|
+
| Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
133
|
+
|
|
134
|
+
module UserInput
|
|
135
|
+
extend Anthropic::Internal::Type::Union
|
|
136
|
+
|
|
137
|
+
type type_ = :all | :none
|
|
138
|
+
|
|
139
|
+
module Type
|
|
140
|
+
extend Anthropic::Internal::Type::Enum
|
|
141
|
+
|
|
142
|
+
ALL: :all
|
|
143
|
+
NONE: :none
|
|
144
|
+
|
|
145
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::UserInput::type_]
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::BetaWebFetchURLSources::user_input]
|
|
149
|
+
|
|
150
|
+
def self.new:
|
|
151
|
+
(type: :all | "all") -> Anthropic::Beta::BetaWebFetchURLSourceAll
|
|
152
|
+
| (
|
|
153
|
+
type: :none | "none"
|
|
154
|
+
) -> Anthropic::Beta::BetaWebFetchURLSourceNone
|
|
155
|
+
| (
|
|
156
|
+
type: Symbol | String
|
|
157
|
+
) -> Anthropic::Models::Beta::BetaWebFetchURLSources::user_input
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
@@ -4,8 +4,8 @@ module Anthropic
|
|
|
4
4
|
|
|
5
5
|
module Beta
|
|
6
6
|
type beta_web_search_tool_result_block_param_content =
|
|
7
|
-
|
|
8
|
-
| Anthropic::Beta::
|
|
7
|
+
Anthropic::Beta::BetaWebSearchToolRequestError
|
|
8
|
+
| ::Array[Anthropic::Beta::BetaWebSearchResultBlockParam]
|
|
9
9
|
|
|
10
10
|
module BetaWebSearchToolResultBlockParamContent
|
|
11
11
|
extend Anthropic::Internal::Type::Union
|
|
@@ -92,7 +92,7 @@ module Anthropic
|
|
|
92
92
|
request_options: Anthropic::RequestOptions
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
type agent =
|
|
95
|
+
type agent = Anthropic::Beta::BetaManagedAgentsAgentParams | String
|
|
96
96
|
|
|
97
97
|
module Agent
|
|
98
98
|
extend Anthropic::Internal::Type::Union
|
|
@@ -125,8 +125,8 @@ module Anthropic
|
|
|
125
125
|
def self.new:
|
|
126
126
|
(
|
|
127
127
|
type: :github_repository | "github_repository",
|
|
128
|
-
authorization_token: String,
|
|
129
128
|
url: String,
|
|
129
|
+
?authorization_token: String,
|
|
130
130
|
?checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams::checkout?,
|
|
131
131
|
?mount_path: String?
|
|
132
132
|
) -> Anthropic::Beta::BetaManagedAgentsGitHubRepositoryResourceParams
|
|
@@ -143,8 +143,8 @@ module Anthropic
|
|
|
143
143
|
) -> Anthropic::Beta::BetaManagedAgentsMemoryStoreResourceParam
|
|
144
144
|
| (
|
|
145
145
|
type: Symbol | String,
|
|
146
|
-
?authorization_token: String,
|
|
147
146
|
?url: String,
|
|
147
|
+
?authorization_token: String,
|
|
148
148
|
?checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams::checkout?,
|
|
149
149
|
?mount_path: String?,
|
|
150
150
|
?file_id: String,
|
|
@@ -101,7 +101,7 @@ module Anthropic
|
|
|
101
101
|
request_options: Anthropic::RequestOptions
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
type agent =
|
|
104
|
+
type agent = Anthropic::Beta::BetaManagedAgentsAgentParams | String
|
|
105
105
|
|
|
106
106
|
module Agent
|
|
107
107
|
extend Anthropic::Internal::Type::Union
|
|
@@ -134,8 +134,8 @@ module Anthropic
|
|
|
134
134
|
def self.new:
|
|
135
135
|
(
|
|
136
136
|
type: :github_repository | "github_repository",
|
|
137
|
-
authorization_token: String,
|
|
138
137
|
url: String,
|
|
138
|
+
?authorization_token: String,
|
|
139
139
|
?checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams::checkout?,
|
|
140
140
|
?mount_path: String?
|
|
141
141
|
) -> Anthropic::Beta::BetaManagedAgentsGitHubRepositoryResourceParams
|
|
@@ -152,8 +152,8 @@ module Anthropic
|
|
|
152
152
|
) -> Anthropic::Beta::BetaManagedAgentsMemoryStoreResourceParam
|
|
153
153
|
| (
|
|
154
154
|
type: Symbol | String,
|
|
155
|
-
?authorization_token: String,
|
|
156
155
|
?url: String,
|
|
156
|
+
?authorization_token: String,
|
|
157
157
|
?checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceParams::checkout?,
|
|
158
158
|
?mount_path: String?,
|
|
159
159
|
?file_id: String,
|
|
@@ -58,7 +58,7 @@ module Anthropic
|
|
|
58
58
|
request_options: Anthropic::RequestOptions
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
type model =
|
|
61
|
+
type model = Anthropic::Beta::BetaDreamModelConfigParam | String
|
|
62
62
|
|
|
63
63
|
module Model
|
|
64
64
|
extend Anthropic::Internal::Type::Union
|
|
@@ -6,6 +6,7 @@ module Anthropic
|
|
|
6
6
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
7
7
|
model: Anthropic::Models::model,
|
|
8
8
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
9
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
9
10
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
10
11
|
mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
11
12
|
output_config: Anthropic::Beta::BetaOutputConfig,
|
|
@@ -31,6 +32,8 @@ module Anthropic
|
|
|
31
32
|
|
|
32
33
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
33
34
|
|
|
35
|
+
attr_accessor compaction: Anthropic::Beta::BetaCompactionConfig?
|
|
36
|
+
|
|
34
37
|
attr_accessor context_management: Anthropic::Beta::BetaContextManagementConfig?
|
|
35
38
|
|
|
36
39
|
attr_reader mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition]?
|
|
@@ -91,6 +94,7 @@ module Anthropic
|
|
|
91
94
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
92
95
|
model: Anthropic::Models::model,
|
|
93
96
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
97
|
+
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
94
98
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
95
99
|
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
96
100
|
?output_config: Anthropic::Beta::BetaOutputConfig,
|
|
@@ -110,6 +114,7 @@ module Anthropic
|
|
|
110
114
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
111
115
|
model: Anthropic::Models::model,
|
|
112
116
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
117
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
113
118
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
114
119
|
mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
115
120
|
output_config: Anthropic::Beta::BetaOutputConfig,
|
|
@@ -7,6 +7,7 @@ module Anthropic
|
|
|
7
7
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
8
8
|
model: Anthropic::Models::model,
|
|
9
9
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
10
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
10
11
|
container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
11
12
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
12
13
|
diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -45,6 +46,8 @@ module Anthropic
|
|
|
45
46
|
|
|
46
47
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
47
48
|
|
|
49
|
+
attr_accessor compaction: Anthropic::Beta::BetaCompactionConfig?
|
|
50
|
+
|
|
48
51
|
attr_accessor container: Anthropic::Models::Beta::MessageCreateParams::container?
|
|
49
52
|
|
|
50
53
|
attr_accessor context_management: Anthropic::Beta::BetaContextManagementConfig?
|
|
@@ -144,6 +147,7 @@ module Anthropic
|
|
|
144
147
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
145
148
|
model: Anthropic::Models::model,
|
|
146
149
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
150
|
+
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
147
151
|
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
148
152
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
149
153
|
?diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -175,6 +179,7 @@ module Anthropic
|
|
|
175
179
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
176
180
|
model: Anthropic::Models::model,
|
|
177
181
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
182
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
178
183
|
container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
179
184
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
180
185
|
diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -210,7 +215,7 @@ module Anthropic
|
|
|
210
215
|
end
|
|
211
216
|
|
|
212
217
|
type fallback_credit_token =
|
|
213
|
-
|
|
218
|
+
Anthropic::Beta::BetaFallbackCreditTokenParam | String
|
|
214
219
|
|
|
215
220
|
module FallbackCreditToken
|
|
216
221
|
extend Anthropic::Internal::Type::Union
|
|
@@ -74,6 +74,7 @@ module Anthropic
|
|
|
74
74
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
75
75
|
model: Anthropic::Models::model,
|
|
76
76
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
77
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
77
78
|
container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
|
|
78
79
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
79
80
|
diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -106,6 +107,8 @@ module Anthropic
|
|
|
106
107
|
|
|
107
108
|
attr_accessor cache_control: Anthropic::Beta::BetaCacheControlEphemeral?
|
|
108
109
|
|
|
110
|
+
attr_accessor compaction: Anthropic::Beta::BetaCompactionConfig?
|
|
111
|
+
|
|
109
112
|
attr_accessor container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?
|
|
110
113
|
|
|
111
114
|
attr_accessor context_management: Anthropic::Beta::BetaContextManagementConfig?
|
|
@@ -195,6 +198,7 @@ module Anthropic
|
|
|
195
198
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
196
199
|
model: Anthropic::Models::model,
|
|
197
200
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
201
|
+
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
198
202
|
?container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
|
|
199
203
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
200
204
|
?diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -223,6 +227,7 @@ module Anthropic
|
|
|
223
227
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
224
228
|
model: Anthropic::Models::model,
|
|
225
229
|
cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
230
|
+
compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
226
231
|
container: Anthropic::Models::Beta::Messages::BatchCreateParams::Request::Params::container?,
|
|
227
232
|
context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
228
233
|
diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
@@ -255,7 +260,7 @@ module Anthropic
|
|
|
255
260
|
end
|
|
256
261
|
|
|
257
262
|
type fallback_credit_token =
|
|
258
|
-
|
|
263
|
+
Anthropic::Beta::BetaFallbackCreditTokenParam | String
|
|
259
264
|
|
|
260
265
|
module FallbackCreditToken
|
|
261
266
|
extend Anthropic::Internal::Type::Union
|
|
@@ -4,56 +4,24 @@ module Anthropic
|
|
|
4
4
|
module Organization
|
|
5
5
|
type beta_compliance_settings =
|
|
6
6
|
{
|
|
7
|
-
state: Anthropic::Models::Beta::Organization::
|
|
7
|
+
state: Anthropic::Models::Beta::Organization::beta_compliance_settings_state,
|
|
8
8
|
type: :compliance_settings
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class BetaComplianceSettings < Anthropic::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor state: Anthropic::Models::Beta::Organization::
|
|
12
|
+
attr_accessor state: Anthropic::Models::Beta::Organization::beta_compliance_settings_state
|
|
13
13
|
|
|
14
14
|
attr_accessor type: :compliance_settings
|
|
15
15
|
|
|
16
16
|
def initialize: (
|
|
17
|
-
state: Anthropic::Models::Beta::Organization::
|
|
17
|
+
state: Anthropic::Models::Beta::Organization::beta_compliance_settings_state,
|
|
18
18
|
?type: :compliance_settings
|
|
19
19
|
) -> void
|
|
20
20
|
|
|
21
21
|
def to_hash: -> {
|
|
22
|
-
state: Anthropic::Models::Beta::Organization::
|
|
22
|
+
state: Anthropic::Models::Beta::Organization::beta_compliance_settings_state,
|
|
23
23
|
type: :compliance_settings
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
type state =
|
|
27
|
-
Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabled
|
|
28
|
-
| Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabled
|
|
29
|
-
|
|
30
|
-
module State
|
|
31
|
-
extend Anthropic::Internal::Type::Union
|
|
32
|
-
|
|
33
|
-
type type_ = :enabled | :disabled
|
|
34
|
-
|
|
35
|
-
module Type
|
|
36
|
-
extend Anthropic::Internal::Type::Enum
|
|
37
|
-
|
|
38
|
-
ENABLED: :enabled
|
|
39
|
-
DISABLED: :disabled
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaComplianceSettings::State::type_]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::BetaComplianceSettings::state]
|
|
45
|
-
|
|
46
|
-
def self.new:
|
|
47
|
-
(
|
|
48
|
-
type: :enabled | "enabled"
|
|
49
|
-
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabled
|
|
50
|
-
| (
|
|
51
|
-
type: :disabled | "disabled"
|
|
52
|
-
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabled
|
|
53
|
-
| (
|
|
54
|
-
type: Symbol | String
|
|
55
|
-
) -> Anthropic::Models::Beta::Organization::BetaComplianceSettings::state
|
|
56
|
-
end
|
|
57
25
|
end
|
|
58
26
|
end
|
|
59
27
|
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_compliance_settings_state =
|
|
6
|
+
Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabled
|
|
7
|
+
| Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabled
|
|
8
|
+
|
|
9
|
+
module BetaComplianceSettingsState
|
|
10
|
+
extend Anthropic::Internal::Type::Union
|
|
11
|
+
|
|
12
|
+
type type_ = :enabled | :disabled
|
|
13
|
+
|
|
14
|
+
module Type
|
|
15
|
+
extend Anthropic::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
ENABLED: :enabled
|
|
18
|
+
DISABLED: :disabled
|
|
19
|
+
|
|
20
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaComplianceSettingsState::type_]
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::beta_compliance_settings_state]
|
|
24
|
+
|
|
25
|
+
def self.new:
|
|
26
|
+
(
|
|
27
|
+
type: :enabled | "enabled"
|
|
28
|
+
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabled
|
|
29
|
+
| (
|
|
30
|
+
type: :disabled | "disabled"
|
|
31
|
+
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabled
|
|
32
|
+
| (
|
|
33
|
+
type: Symbol | String
|
|
34
|
+
) -> Anthropic::Models::Beta::Organization::beta_compliance_settings_state
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_compliance_settings_state_param =
|
|
6
|
+
Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabledParam
|
|
7
|
+
| Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabledParam
|
|
8
|
+
|
|
9
|
+
module BetaComplianceSettingsStateParam
|
|
10
|
+
extend Anthropic::Internal::Type::Union
|
|
11
|
+
|
|
12
|
+
type type_ = :enabled | :disabled
|
|
13
|
+
|
|
14
|
+
module Type
|
|
15
|
+
extend Anthropic::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
ENABLED: :enabled
|
|
18
|
+
DISABLED: :disabled
|
|
19
|
+
|
|
20
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::BetaComplianceSettingsStateParam::type_]
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self?.variants: -> ::Array[Anthropic::Models::Beta::Organization::beta_compliance_settings_state_param]
|
|
24
|
+
|
|
25
|
+
def self.new:
|
|
26
|
+
(
|
|
27
|
+
type: :enabled | "enabled"
|
|
28
|
+
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateEnabledParam
|
|
29
|
+
| (
|
|
30
|
+
type: :disabled | "disabled"
|
|
31
|
+
) -> Anthropic::Beta::Organization::BetaComplianceSettingsStateDisabledParam
|
|
32
|
+
| (
|
|
33
|
+
type: Symbol | String
|
|
34
|
+
) -> Anthropic::Models::Beta::Organization::beta_compliance_settings_state_param
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|