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
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
# @!attribute permission_policy
|
|
21
21
|
# Permission policy for tool execution.
|
|
22
22
|
#
|
|
23
|
-
# @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, nil]
|
|
23
|
+
# @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy, nil]
|
|
24
24
|
optional :permission_policy,
|
|
25
25
|
union: -> { Anthropic::Beta::BetaManagedAgentsWriteToolConfigParams::PermissionPolicy },
|
|
26
26
|
nil?: true
|
|
@@ -39,7 +39,7 @@ module Anthropic
|
|
|
39
39
|
#
|
|
40
40
|
# @param enabled [Boolean, nil] Whether this tool is enabled and available to Claude. Overrides the default_conf
|
|
41
41
|
#
|
|
42
|
-
# @param permission_policy [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, nil] Permission policy for tool execution.
|
|
42
|
+
# @param permission_policy [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy, nil] Permission policy for tool execution.
|
|
43
43
|
#
|
|
44
44
|
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsWriteToolConfigParams::Type]
|
|
45
45
|
#
|
|
@@ -59,18 +59,22 @@ module Anthropic
|
|
|
59
59
|
# Tool calls require user confirmation before execution.
|
|
60
60
|
variant :always_ask, -> { Anthropic::Beta::BetaManagedAgentsAlwaysAskPolicy }
|
|
61
61
|
|
|
62
|
+
# The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask.
|
|
63
|
+
variant :auto, -> { Anthropic::Beta::BetaManagedAgentsAutoPolicy }
|
|
64
|
+
|
|
62
65
|
module Type
|
|
63
66
|
extend Anthropic::Internal::Type::Enum
|
|
64
67
|
|
|
65
68
|
ALWAYS_ALLOW = :always_allow
|
|
66
69
|
ALWAYS_ASK = :always_ask
|
|
70
|
+
AUTO = :auto
|
|
67
71
|
|
|
68
72
|
# @!method self.values
|
|
69
73
|
# @return [Array<Symbol>]
|
|
70
74
|
end
|
|
71
75
|
|
|
72
76
|
# @!method self.variants
|
|
73
|
-
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy)]
|
|
77
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy)]
|
|
74
78
|
|
|
75
79
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
76
80
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -80,13 +84,15 @@ module Anthropic
|
|
|
80
84
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
81
85
|
#
|
|
82
86
|
# @raise [ArgumentError]
|
|
83
|
-
# @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy]
|
|
87
|
+
# @return [Anthropic::Models::Beta::BetaManagedAgentsAlwaysAllowPolicy, Anthropic::Models::Beta::BetaManagedAgentsAlwaysAskPolicy, Anthropic::Models::Beta::BetaManagedAgentsAutoPolicy]
|
|
84
88
|
def self.new(type:, **args)
|
|
85
89
|
case type.to_sym
|
|
86
90
|
when :always_allow
|
|
87
91
|
Anthropic::Beta::BetaManagedAgentsAlwaysAllowPolicy.new(**args)
|
|
88
92
|
when :always_ask
|
|
89
93
|
Anthropic::Beta::BetaManagedAgentsAlwaysAskPolicy.new(**args)
|
|
94
|
+
when :auto
|
|
95
|
+
Anthropic::Beta::BetaManagedAgentsAutoPolicy.new(**args)
|
|
90
96
|
else
|
|
91
97
|
raise ArgumentError, "unknown type: #{type}"
|
|
92
98
|
end
|
|
@@ -168,27 +168,30 @@ module Anthropic
|
|
|
168
168
|
required :usage, -> { Anthropic::Beta::BetaUsage }
|
|
169
169
|
|
|
170
170
|
# @!attribute input_transformations
|
|
171
|
-
# Changes the API made to the request's input before showing it to the model
|
|
172
|
-
#
|
|
173
|
-
# `thinking_dropped` — a `thinking`,
|
|
174
|
-
# from the request's `messages` that
|
|
175
|
-
#
|
|
176
|
-
#
|
|
171
|
+
# Changes the API made to the request's input before showing it to the model, and
|
|
172
|
+
# blocks that failed a binding check but were left unchanged: one entry per block,
|
|
173
|
+
# in request order. Two entry types today. `thinking_dropped` — a `thinking`,
|
|
174
|
+
# `redacted_thinking` or `connector_text` block from the request's `messages` that
|
|
175
|
+
# was removed from the prompt instead of being shown to the model because it
|
|
176
|
+
# failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
|
|
177
|
+
# `redacted_thinking` block that failed the conversation check (the conversation
|
|
178
|
+
# before it differs from the one it was created in, or it carries no record of one
|
|
179
|
+
# on a model that requires it) and was shown to the model all the same, because
|
|
180
|
+
# that check is not enforced for this request. More entry types may be added over
|
|
181
|
+
# time; ignore types you do not recognize.
|
|
177
182
|
#
|
|
178
183
|
# Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
|
|
179
184
|
# every such response from a model that supports extended thinking, as `[]` when
|
|
180
|
-
#
|
|
181
|
-
# nothing is reported. Removed blocks contribute nothing to
|
|
182
|
-
#
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
# `message_start`.
|
|
186
|
-
#
|
|
187
|
-
# @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil]
|
|
185
|
+
# there is no entry to report; without the beta, blocks are removed or left in
|
|
186
|
+
# place all the same but nothing is reported. Removed blocks contribute nothing to
|
|
187
|
+
# `usage.input_tokens`; blocks left in place count as sent. When streaming, the
|
|
188
|
+
# array is final in `message_start`; the final `message_delta` event carries it
|
|
189
|
+
# only when a server-side model fallback happened mid-stream, in which case it
|
|
190
|
+
# holds the serving model's entries and replaces the one in `message_start`.
|
|
191
|
+
#
|
|
192
|
+
# @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil]
|
|
188
193
|
optional :input_transformations,
|
|
189
|
-
-> {
|
|
190
|
-
Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaThinkingDroppedInputTransformation]
|
|
191
|
-
},
|
|
194
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaInputTransformation] },
|
|
192
195
|
nil?: true
|
|
193
196
|
|
|
194
197
|
# @!method initialize(id:, container:, content:, context_management:, diagnostics:, model:, stop_details:, stop_reason:, stop_sequence:, usage:, input_transformations: nil, role: :assistant, type: :message)
|
|
@@ -215,7 +218,7 @@ module Anthropic
|
|
|
215
218
|
#
|
|
216
219
|
# @param usage [Anthropic::Models::Beta::BetaUsage] Billing and rate-limit usage.
|
|
217
220
|
#
|
|
218
|
-
# @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model
|
|
221
|
+
# @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model,
|
|
219
222
|
#
|
|
220
223
|
# @param role [Symbol, :assistant] Conversational role of the generated message.
|
|
221
224
|
#
|
|
@@ -34,8 +34,8 @@ module Anthropic
|
|
|
34
34
|
# See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
35
35
|
# details and options.
|
|
36
36
|
#
|
|
37
|
-
# @return [Symbol, String, Anthropic::Models::Model]
|
|
38
|
-
required :model, union: -> { Anthropic::Model }
|
|
37
|
+
# @return [Symbol, String, Anthropic::Models::Model, nil]
|
|
38
|
+
required :model, union: -> { Anthropic::Model }, nil?: true
|
|
39
39
|
|
|
40
40
|
# @!attribute output_tokens
|
|
41
41
|
# The number of output tokens which were used.
|
|
@@ -63,7 +63,7 @@ module Anthropic
|
|
|
63
63
|
#
|
|
64
64
|
# @param input_tokens [Integer] The number of input tokens which were used.
|
|
65
65
|
#
|
|
66
|
-
# @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
|
|
66
|
+
# @param model [Symbol, String, Anthropic::Models::Model, nil] The model that will complete your prompt.
|
|
67
67
|
#
|
|
68
68
|
# @param output_tokens [Integer] The number of output tokens which were used.
|
|
69
69
|
#
|
|
@@ -22,6 +22,14 @@ module Anthropic
|
|
|
22
22
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport]
|
|
23
23
|
required :code_execution, -> { Anthropic::Beta::BetaCapabilitySupport }
|
|
24
24
|
|
|
25
|
+
# @!attribute compaction
|
|
26
|
+
# Compaction capability details: whether the model accepts the top-level
|
|
27
|
+
# `compaction` request parameter, with one entry per supported `compaction.type`
|
|
28
|
+
# value.
|
|
29
|
+
#
|
|
30
|
+
# @return [Anthropic::Models::Beta::BetaCompactionCapability, nil]
|
|
31
|
+
required :compaction, -> { Anthropic::Beta::BetaCompactionCapability }, nil?: true
|
|
32
|
+
|
|
25
33
|
# @!attribute context_management
|
|
26
34
|
# Context management support and available strategies.
|
|
27
35
|
#
|
|
@@ -58,15 +66,20 @@ module Anthropic
|
|
|
58
66
|
# @return [Anthropic::Models::Beta::BetaThinkingCapability]
|
|
59
67
|
required :thinking, -> { Anthropic::Beta::BetaThinkingCapability }
|
|
60
68
|
|
|
61
|
-
# @!method initialize(batch:, citations:, code_execution:, context_management:, effort:, image_input:, pdf_input:, structured_outputs:, thinking:)
|
|
69
|
+
# @!method initialize(batch:, citations:, code_execution:, compaction:, context_management:, effort:, image_input:, pdf_input:, structured_outputs:, thinking:)
|
|
62
70
|
# Model capability information.
|
|
63
71
|
#
|
|
72
|
+
# Some parameter documentations has been truncated, see
|
|
73
|
+
# {Anthropic::Models::Beta::BetaModelCapabilities} for more details.
|
|
74
|
+
#
|
|
64
75
|
# @param batch [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports the Batch API.
|
|
65
76
|
#
|
|
66
77
|
# @param citations [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports citation generation.
|
|
67
78
|
#
|
|
68
79
|
# @param code_execution [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports code execution tools.
|
|
69
80
|
#
|
|
81
|
+
# @param compaction [Anthropic::Models::Beta::BetaCompactionCapability, nil] Compaction capability details: whether the model accepts the top-level
|
|
82
|
+
#
|
|
70
83
|
# @param context_management [Anthropic::Models::Beta::BetaContextManagementCapability] Context management support and available strategies.
|
|
71
84
|
#
|
|
72
85
|
# @param effort [Anthropic::Models::Beta::BetaEffortCapability] Effort (reasoning_effort) support and available levels.
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
-
# The default destination: the job creates a new output memory store as a clone of
|
|
7
|
-
# the memory_store input and writes the consolidated memories into it. The input
|
|
8
|
-
# store is never mutated.
|
|
9
6
|
module BetaOutputBehavior
|
|
10
7
|
extend Anthropic::Internal::Type::Union
|
|
11
8
|
|
|
@@ -5,7 +5,6 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaRawContentBlockStartEvent < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute content_block
|
|
8
|
-
# Response model for a file uploaded to the container.
|
|
9
8
|
#
|
|
10
9
|
# @return [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
|
|
11
10
|
required :content_block, union: -> { Anthropic::Beta::BetaRawContentBlockStartEvent::ContentBlock }
|
|
@@ -21,14 +20,10 @@ module Anthropic
|
|
|
21
20
|
required :type, const: :content_block_start
|
|
22
21
|
|
|
23
22
|
# @!method initialize(content_block:, index:, type: :content_block_start)
|
|
24
|
-
# @param content_block [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
|
|
25
|
-
#
|
|
23
|
+
# @param content_block [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
|
|
26
24
|
# @param index [Integer]
|
|
27
|
-
#
|
|
28
25
|
# @param type [Symbol, :content_block_start]
|
|
29
26
|
|
|
30
|
-
# Response model for a file uploaded to the container.
|
|
31
|
-
#
|
|
32
27
|
# @see Anthropic::Models::Beta::BetaRawContentBlockStartEvent#content_block
|
|
33
28
|
module ContentBlock
|
|
34
29
|
extend Anthropic::Internal::Type::Union
|
|
@@ -130,7 +125,7 @@ module Anthropic
|
|
|
130
125
|
#
|
|
131
126
|
# @option args [String] :text
|
|
132
127
|
#
|
|
133
|
-
# @option args [String] :signature A value used to verify that this thinking block was generated by Claude when it
|
|
128
|
+
# @option args [String, String, nil] :signature A value used to verify that this thinking block was generated by Claude when it
|
|
134
129
|
#
|
|
135
130
|
# @option args [String] :thinking The text of Claude's thinking process for this block.
|
|
136
131
|
#
|
|
@@ -142,11 +137,11 @@ module Anthropic
|
|
|
142
137
|
#
|
|
143
138
|
# @option args [String, Symbol, Anthropic::Models::Beta::BetaServerToolUseBlock::Name] :name The name of the MCP tool
|
|
144
139
|
#
|
|
145
|
-
# @option args [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] :caller_
|
|
140
|
+
# @option args [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] :caller_
|
|
146
141
|
#
|
|
147
142
|
# @option args [String, nil] :toolset_name For a toolset member tool_use, the toolset family.
|
|
148
143
|
#
|
|
149
|
-
# @option args [Anthropic::Models::Beta::BetaWebSearchToolResultError, Array<Anthropic::Models::Beta::BetaWebSearchResultBlock>, Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock, Anthropic::Models::Beta::BetaAdvisorToolResultError, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultError, Anthropic::Models::Beta::BetaCodeExecutionResultBlock, Anthropic::Models::Beta::BetaEncryptedCodeExecutionResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError, Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionCreateResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionStrReplaceResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultError, Anthropic::Models::Beta::BetaToolSearchToolSearchResultBlock, String, Array<Anthropic::Models::Beta::BetaTextBlock>, String, nil] :content
|
|
144
|
+
# @option args [Anthropic::Models::Beta::BetaWebSearchToolResultError, Array<Anthropic::Models::Beta::BetaWebSearchResultBlock>, Anthropic::Models::Beta::BetaWebFetchToolResultErrorBlock, Anthropic::Models::Beta::BetaWebFetchBlock, Anthropic::Models::Beta::BetaAdvisorToolResultError, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultError, Anthropic::Models::Beta::BetaCodeExecutionResultBlock, Anthropic::Models::Beta::BetaEncryptedCodeExecutionResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError, Anthropic::Models::Beta::BetaTextEditorCodeExecutionViewResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionCreateResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionStrReplaceResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultError, Anthropic::Models::Beta::BetaToolSearchToolSearchResultBlock, String, Array<Anthropic::Models::Beta::BetaTextBlock>, String, nil] :content Summary of compacted content, or null if compaction failed
|
|
150
145
|
#
|
|
151
146
|
# @option args [String] :tool_use_id
|
|
152
147
|
#
|
|
@@ -41,27 +41,30 @@ module Anthropic
|
|
|
41
41
|
required :usage, -> { Anthropic::Beta::BetaMessageDeltaUsage }
|
|
42
42
|
|
|
43
43
|
# @!attribute input_transformations
|
|
44
|
-
# Changes the API made to the request's input before showing it to the model
|
|
45
|
-
#
|
|
46
|
-
# `thinking_dropped` — a `thinking`,
|
|
47
|
-
# from the request's `messages` that
|
|
48
|
-
#
|
|
49
|
-
#
|
|
44
|
+
# Changes the API made to the request's input before showing it to the model, and
|
|
45
|
+
# blocks that failed a binding check but were left unchanged: one entry per block,
|
|
46
|
+
# in request order. Two entry types today. `thinking_dropped` — a `thinking`,
|
|
47
|
+
# `redacted_thinking` or `connector_text` block from the request's `messages` that
|
|
48
|
+
# was removed from the prompt instead of being shown to the model because it
|
|
49
|
+
# failed a binding check. `thinking_mismatch_allowed` — a `thinking` or
|
|
50
|
+
# `redacted_thinking` block that failed the conversation check (the conversation
|
|
51
|
+
# before it differs from the one it was created in, or it carries no record of one
|
|
52
|
+
# on a model that requires it) and was shown to the model all the same, because
|
|
53
|
+
# that check is not enforced for this request. More entry types may be added over
|
|
54
|
+
# time; ignore types you do not recognize.
|
|
50
55
|
#
|
|
51
56
|
# Requires `anthropic-beta: thinking-binding-controls-2026-08-01`. Present on
|
|
52
57
|
# every such response from a model that supports extended thinking, as `[]` when
|
|
53
|
-
#
|
|
54
|
-
# nothing is reported. Removed blocks contribute nothing to
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
# `message_start`.
|
|
58
|
+
# there is no entry to report; without the beta, blocks are removed or left in
|
|
59
|
+
# place all the same but nothing is reported. Removed blocks contribute nothing to
|
|
60
|
+
# `usage.input_tokens`; blocks left in place count as sent. When streaming, the
|
|
61
|
+
# array is final in `message_start`; the final `message_delta` event carries it
|
|
62
|
+
# only when a server-side model fallback happened mid-stream, in which case it
|
|
63
|
+
# holds the serving model's entries and replaces the one in `message_start`.
|
|
59
64
|
#
|
|
60
|
-
# @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil]
|
|
65
|
+
# @return [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil]
|
|
61
66
|
optional :input_transformations,
|
|
62
|
-
-> {
|
|
63
|
-
Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaThinkingDroppedInputTransformation]
|
|
64
|
-
},
|
|
67
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaInputTransformation] },
|
|
65
68
|
nil?: true
|
|
66
69
|
|
|
67
70
|
# @!method initialize(context_management:, delta:, usage:, input_transformations: nil, type: :message_delta)
|
|
@@ -74,7 +77,7 @@ module Anthropic
|
|
|
74
77
|
#
|
|
75
78
|
# @param usage [Anthropic::Models::Beta::BetaMessageDeltaUsage] Billing and rate-limit usage.
|
|
76
79
|
#
|
|
77
|
-
# @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model
|
|
80
|
+
# @param input_transformations [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] Changes the API made to the request's input before showing it to the model,
|
|
78
81
|
#
|
|
79
82
|
# @param type [Symbol, :message_delta]
|
|
80
83
|
|
|
@@ -55,9 +55,9 @@ module Anthropic
|
|
|
55
55
|
#
|
|
56
56
|
# @option args [Anthropic::Models::Beta::BetaMessageDeltaUsage] :usage Billing and rate-limit usage.
|
|
57
57
|
#
|
|
58
|
-
# @option args [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation>, nil] :input_transformations Changes the API made to the request's input before showing it to the model
|
|
58
|
+
# @option args [Array<Anthropic::Models::Beta::BetaThinkingDroppedInputTransformation, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation>, nil] :input_transformations Changes the API made to the request's input before showing it to the model,
|
|
59
59
|
#
|
|
60
|
-
# @option args [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock] :content_block
|
|
60
|
+
# @option args [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock] :content_block
|
|
61
61
|
#
|
|
62
62
|
# @option args [Integer] :index
|
|
63
63
|
#
|
|
@@ -5,9 +5,6 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaRequestToolAdditionBlock < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute tool
|
|
8
|
-
# Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
9
|
-
# accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
10
|
-
# tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
11
8
|
#
|
|
12
9
|
# @return [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
|
|
13
10
|
required :tool, union: -> { Anthropic::Beta::BetaRequestToolAdditionBlock::Tool }
|
|
@@ -29,19 +26,12 @@ module Anthropic
|
|
|
29
26
|
# `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
|
|
30
27
|
# is offered to the model from this point in the conversation onward.
|
|
31
28
|
#
|
|
32
|
-
#
|
|
33
|
-
# {Anthropic::Models::Beta::BetaRequestToolAdditionBlock} for more details.
|
|
34
|
-
#
|
|
35
|
-
# @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference] Reference to a single tool the caller declared directly in
|
|
29
|
+
# @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
|
|
36
30
|
#
|
|
37
31
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
38
32
|
#
|
|
39
33
|
# @param type [Symbol, :tool_addition]
|
|
40
34
|
|
|
41
|
-
# Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
42
|
-
# accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
43
|
-
# tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
44
|
-
#
|
|
45
35
|
# @see Anthropic::Models::Beta::BetaRequestToolAdditionBlock#tool
|
|
46
36
|
module Tool
|
|
47
37
|
extend Anthropic::Internal::Type::Union
|
|
@@ -5,9 +5,6 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaRequestToolRemovalBlock < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute tool
|
|
8
|
-
# Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
9
|
-
# accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
10
|
-
# tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
11
8
|
#
|
|
12
9
|
# @return [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
|
|
13
10
|
required :tool, union: -> { Anthropic::Beta::BetaRequestToolRemovalBlock::Tool }
|
|
@@ -29,19 +26,12 @@ module Anthropic
|
|
|
29
26
|
# `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
|
|
30
27
|
# is no longer offered to the model from this point in the conversation onward.
|
|
31
28
|
#
|
|
32
|
-
#
|
|
33
|
-
# {Anthropic::Models::Beta::BetaRequestToolRemovalBlock} for more details.
|
|
34
|
-
#
|
|
35
|
-
# @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference] Reference to a single tool the caller declared directly in
|
|
29
|
+
# @param tool [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference]
|
|
36
30
|
#
|
|
37
31
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
38
32
|
#
|
|
39
33
|
# @param type [Symbol, :tool_removal]
|
|
40
34
|
|
|
41
|
-
# Reference to a single tool the caller declared directly in `tools[]`. Does not
|
|
42
|
-
# accept the composed `{server}_{name}` form the server assigns to MCP-resolved
|
|
43
|
-
# tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
|
|
44
|
-
#
|
|
45
35
|
# @see Anthropic::Models::Beta::BetaRequestToolRemovalBlock#tool
|
|
46
36
|
module Tool
|
|
47
37
|
extend Anthropic::Internal::Type::Union
|
|
@@ -25,20 +25,15 @@ module Anthropic
|
|
|
25
25
|
required :type, const: :server_tool_use
|
|
26
26
|
|
|
27
27
|
# @!attribute caller_
|
|
28
|
-
# Tool invocation directly from the model.
|
|
29
28
|
#
|
|
30
29
|
# @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
|
|
31
30
|
optional :caller_, union: -> { Anthropic::Beta::BetaServerToolUseBlock::Caller }, api_name: :caller
|
|
32
31
|
|
|
33
32
|
# @!method initialize(id:, input:, name:, caller_: nil, type: :server_tool_use)
|
|
34
33
|
# @param id [String]
|
|
35
|
-
#
|
|
36
34
|
# @param input [Object]
|
|
37
|
-
#
|
|
38
35
|
# @param name [Symbol, Anthropic::Models::Beta::BetaServerToolUseBlock::Name]
|
|
39
|
-
#
|
|
40
|
-
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Tool invocation directly from the model.
|
|
41
|
-
#
|
|
36
|
+
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
42
37
|
# @param type [Symbol, :server_tool_use]
|
|
43
38
|
|
|
44
39
|
# @see Anthropic::Models::Beta::BetaServerToolUseBlock#name
|
|
@@ -58,8 +53,6 @@ module Anthropic
|
|
|
58
53
|
# @return [Array<Symbol>]
|
|
59
54
|
end
|
|
60
55
|
|
|
61
|
-
# Tool invocation directly from the model.
|
|
62
|
-
#
|
|
63
56
|
# @see Anthropic::Models::Beta::BetaServerToolUseBlock#caller_
|
|
64
57
|
module Caller
|
|
65
58
|
extend Anthropic::Internal::Type::Union
|
|
@@ -31,7 +31,6 @@ module Anthropic
|
|
|
31
31
|
optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
|
|
32
32
|
|
|
33
33
|
# @!attribute caller_
|
|
34
|
-
# Tool invocation directly from the model.
|
|
35
34
|
#
|
|
36
35
|
# @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
|
|
37
36
|
optional :caller_,
|
|
@@ -49,7 +48,7 @@ module Anthropic
|
|
|
49
48
|
#
|
|
50
49
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
51
50
|
#
|
|
52
|
-
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
51
|
+
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
53
52
|
#
|
|
54
53
|
# @param type [Symbol, :server_tool_use]
|
|
55
54
|
|
|
@@ -70,8 +69,6 @@ module Anthropic
|
|
|
70
69
|
# @return [Array<Symbol>]
|
|
71
70
|
end
|
|
72
71
|
|
|
73
|
-
# Tool invocation directly from the model.
|
|
74
|
-
#
|
|
75
72
|
# @see Anthropic::Models::Beta::BetaServerToolUseBlockParam#caller_
|
|
76
73
|
module Caller
|
|
77
74
|
extend Anthropic::Internal::Type::Union
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaSummarizeCompaction < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :summarize]
|
|
10
|
+
required :type, const: :summarize
|
|
11
|
+
|
|
12
|
+
# @!attribute instructions
|
|
13
|
+
# Replaces the server's default summarization prompt for this request. An empty or
|
|
14
|
+
# whitespace-only value counts as absent.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :instructions, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!method initialize(instructions: nil, type: :summarize)
|
|
20
|
+
# Compact the whole conversation and return a signed `compaction` block, alone,
|
|
21
|
+
# that a later request sends back first in `messages`, in place of the messages it
|
|
22
|
+
# summarizes. There is no trigger and no pause flag: sending the parameter
|
|
23
|
+
# compacts, and nothing is sampled after the block.
|
|
24
|
+
#
|
|
25
|
+
# The summarization prompt is the server's own unless `instructions` are given,
|
|
26
|
+
# which then replace it for this request; a value that is empty or only whitespace
|
|
27
|
+
# counts as absent.
|
|
28
|
+
#
|
|
29
|
+
# Some parameter documentations has been truncated, see
|
|
30
|
+
# {Anthropic::Models::Beta::BetaSummarizeCompaction} for more details.
|
|
31
|
+
#
|
|
32
|
+
# @param instructions [String, nil] Replaces the server's default summarization prompt for this request. An empty or
|
|
33
|
+
#
|
|
34
|
+
# @param type [Symbol, :summarize]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
BetaSummarizeCompaction = Beta::BetaSummarizeCompaction
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaThinkingMismatchAllowedInputTransformation < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute path
|
|
8
|
+
# Where the block is in your request, as `messages.{i}.content.{j}`: `i` indexes
|
|
9
|
+
# the `messages` array you sent and `j` that message's `content` array — the same
|
|
10
|
+
# form error messages use.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :path, String
|
|
14
|
+
|
|
15
|
+
# @!attribute reason
|
|
16
|
+
# Which binding check the block failed; the block was shown to the model all the
|
|
17
|
+
# same. Always `prefix_binding_mismatch` today — the conversation before the block
|
|
18
|
+
# differs from the conversation it was created in, or the block carries no record
|
|
19
|
+
# of one on a model that requires it. Were the check enforced for this request,
|
|
20
|
+
# the block would have been removed or the request rejected
|
|
21
|
+
# (`thinking.block_binding.prefix_mismatch_behavior`). A removal also takes the
|
|
22
|
+
# rest of that turn's consecutive thinking blocks, whereas here each block is
|
|
23
|
+
# checked on its own, so `thinking_mismatch_allowed` entries are a lower bound on
|
|
24
|
+
# what enforcement would remove.
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason]
|
|
27
|
+
required :reason, enum: -> { Anthropic::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason }
|
|
28
|
+
|
|
29
|
+
# @!attribute type
|
|
30
|
+
# Always `thinking_mismatch_allowed` for this entry type.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, :thinking_mismatch_allowed]
|
|
33
|
+
required :type, const: :thinking_mismatch_allowed
|
|
34
|
+
|
|
35
|
+
# @!method initialize(path:, reason:, type: :thinking_mismatch_allowed)
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation} for
|
|
38
|
+
# more details.
|
|
39
|
+
#
|
|
40
|
+
# @param path [String] Where the block is in your request, as `messages.{i}.content.{j}`:
|
|
41
|
+
#
|
|
42
|
+
# @param reason [Symbol, Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation::Reason] Which binding check the block failed; the block was shown to the model all
|
|
43
|
+
#
|
|
44
|
+
# @param type [Symbol, :thinking_mismatch_allowed] Always `thinking_mismatch_allowed` for this entry type.
|
|
45
|
+
|
|
46
|
+
# Which binding check the block failed; the block was shown to the model all the
|
|
47
|
+
# same. Always `prefix_binding_mismatch` today — the conversation before the block
|
|
48
|
+
# differs from the conversation it was created in, or the block carries no record
|
|
49
|
+
# of one on a model that requires it. Were the check enforced for this request,
|
|
50
|
+
# the block would have been removed or the request rejected
|
|
51
|
+
# (`thinking.block_binding.prefix_mismatch_behavior`). A removal also takes the
|
|
52
|
+
# rest of that turn's consecutive thinking blocks, whereas here each block is
|
|
53
|
+
# checked on its own, so `thinking_mismatch_allowed` entries are a lower bound on
|
|
54
|
+
# what enforcement would remove.
|
|
55
|
+
#
|
|
56
|
+
# @see Anthropic::Models::Beta::BetaThinkingMismatchAllowedInputTransformation#reason
|
|
57
|
+
module Reason
|
|
58
|
+
extend Anthropic::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
MODEL_BINDING_MISMATCH = :model_binding_mismatch
|
|
61
|
+
PREFIX_BINDING_MISMATCH = :prefix_binding_mismatch
|
|
62
|
+
ORGANIZATION_BINDING_MISMATCH = :organization_binding_mismatch
|
|
63
|
+
END_USER_BINDING_MISMATCH = :end_user_binding_mismatch
|
|
64
|
+
|
|
65
|
+
# @!method self.values
|
|
66
|
+
# @return [Array<Symbol>]
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
BetaThinkingMismatchAllowedInputTransformation = Beta::BetaThinkingMismatchAllowedInputTransformation
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -25,7 +25,6 @@ module Anthropic
|
|
|
25
25
|
required :type, const: :tool_use
|
|
26
26
|
|
|
27
27
|
# @!attribute caller_
|
|
28
|
-
# Tool invocation directly from the model.
|
|
29
28
|
#
|
|
30
29
|
# @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
|
|
31
30
|
optional :caller_, union: -> { Anthropic::Beta::BetaToolUseBlock::Caller }, api_name: :caller
|
|
@@ -57,14 +56,12 @@ module Anthropic
|
|
|
57
56
|
#
|
|
58
57
|
# @param name [String]
|
|
59
58
|
#
|
|
60
|
-
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
59
|
+
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
61
60
|
#
|
|
62
61
|
# @param toolset_name [String, nil] For a toolset member tool_use, the toolset family.
|
|
63
62
|
#
|
|
64
63
|
# @param type [Symbol, :tool_use]
|
|
65
64
|
|
|
66
|
-
# Tool invocation directly from the model.
|
|
67
|
-
#
|
|
68
65
|
# @see Anthropic::Models::Beta::BetaToolUseBlock#caller_
|
|
69
66
|
module Caller
|
|
70
67
|
extend Anthropic::Internal::Type::Union
|
|
@@ -31,7 +31,6 @@ module Anthropic
|
|
|
31
31
|
optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
|
|
32
32
|
|
|
33
33
|
# @!attribute caller_
|
|
34
|
-
# Tool invocation directly from the model.
|
|
35
34
|
#
|
|
36
35
|
# @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
|
|
37
36
|
optional :caller_, union: -> { Anthropic::Beta::BetaToolUseBlockParam::Caller }, api_name: :caller
|
|
@@ -51,14 +50,12 @@ module Anthropic
|
|
|
51
50
|
#
|
|
52
51
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
53
52
|
#
|
|
54
|
-
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
53
|
+
# @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120]
|
|
55
54
|
#
|
|
56
55
|
# @param toolset_name [String, nil] For a toolset member tool_use, the toolset family this member belongs to.
|
|
57
56
|
#
|
|
58
57
|
# @param type [Symbol, :tool_use]
|
|
59
58
|
|
|
60
|
-
# Tool invocation directly from the model.
|
|
61
|
-
#
|
|
62
59
|
# @see Anthropic::Models::Beta::BetaToolUseBlockParam#caller_
|
|
63
60
|
module Caller
|
|
64
61
|
extend Anthropic::Internal::Type::Union
|