anthropic 1.72.0 → 1.74.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 +68 -0
- data/README.md +2 -2
- data/lib/anthropic/helpers/messages.rb +76 -43
- data/lib/anthropic/helpers/refusal_fallback.rb +19 -5
- data/lib/anthropic/helpers/tools/runner.rb +319 -143
- data/lib/anthropic/internal/transport/base_client.rb +3 -0
- data/lib/anthropic/internal/type/file_input.rb +2 -3
- data/lib/anthropic/models/anthropic_beta.rb +6 -0
- data/lib/anthropic/models/beta/agent_archive_params.rb +12 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +12 -6
- data/lib/anthropic/models/beta/agent_list_params.rb +10 -1
- data/lib/anthropic/models/beta/agent_retrieve_params.rb +9 -2
- data/lib/anthropic/models/beta/agent_update_params.rb +14 -7
- data/lib/anthropic/models/beta/agents/version_list_params.rb +12 -2
- data/lib/anthropic/models/beta/beta_browser_toolset_20260801.rb +3 -6
- data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +77 -0
- data/lib/anthropic/models/beta/beta_cloud_config_params.rb +4 -9
- data/lib/anthropic/models/beta/beta_compaction_block.rb +74 -1
- data/lib/anthropic/models/beta/beta_compaction_block_param.rb +80 -1
- data/lib/anthropic/models/beta/beta_computer_toolset_20260801.rb +3 -6
- data/lib/anthropic/models/beta/beta_content_block.rb +17 -2
- data/lib/anthropic/models/beta/beta_content_block_param.rb +30 -11
- data/lib/anthropic/models/beta/beta_context_management_capability.rb +6 -6
- data/lib/anthropic/models/beta/beta_diagnostics.rb +3 -81
- data/lib/anthropic/models/beta/beta_dream.rb +72 -26
- data/lib/anthropic/models/beta/beta_dream_error.rb +12 -2
- data/lib/anthropic/models/beta/beta_dream_input.rb +10 -4
- data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +13 -4
- data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +10 -2
- data/lib/anthropic/models/beta/beta_dream_model_config.rb +10 -11
- data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +16 -10
- data/lib/anthropic/models/beta/beta_dream_output.rb +11 -2
- data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +14 -2
- data/lib/anthropic/models/beta/beta_dream_status.rb +11 -2
- data/lib/anthropic/models/beta/beta_dream_usage.rb +22 -9
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +4 -2
- data/lib/anthropic/models/beta/beta_effort_capability.rb +2 -2
- data/lib/anthropic/models/beta/beta_fallback_param.rb +10 -5
- data/lib/anthropic/models/beta/beta_fallback_refusal_trigger.rb +10 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_budget_limit.rb +6 -2
- data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_delta_content.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +21 -17
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +12 -11
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +9 -6
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +11 -1
- data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +11 -9
- data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +3 -7
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +3 -2
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +1 -2
- data/lib/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rb +8 -2
- data/lib/anthropic/models/beta/beta_managed_agents_session.rb +8 -9
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +10 -8
- data/lib/anthropic/models/beta/beta_managed_agents_session_usage.rb +8 -6
- data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +7 -7
- data/lib/anthropic/models/beta/beta_managed_agents_system_content_block.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_system_message_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +4 -1
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +5 -3
- data/lib/anthropic/models/beta/beta_mcp_tool.rb +34 -0
- data/lib/anthropic/models/beta/beta_mcp_tool_listing_block.rb +35 -0
- data/lib/anthropic/models/beta/beta_mcp_tool_listing_block_param.rb +43 -0
- data/lib/anthropic/models/beta/beta_mcp_tool_param.rb +39 -0
- data/lib/anthropic/models/beta/beta_mcp_toolset.rb +19 -1
- data/lib/anthropic/models/beta/beta_message.rb +13 -10
- data/lib/anthropic/models/beta/beta_message_delta_usage.rb +4 -0
- data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_model_capabilities.rb +3 -4
- data/lib/anthropic/models/beta/beta_model_info.rb +3 -2
- data/lib/anthropic/models/beta/beta_output_behavior.rb +12 -3
- data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +5 -3
- data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +13 -4
- data/lib/anthropic/models/beta/beta_output_config.rb +11 -5
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +19 -4
- data/lib/anthropic/models/beta/beta_raw_message_delta_event.rb +8 -5
- data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_refusal_stop_details.rb +7 -3
- data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +26 -10
- data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +7 -5
- data/lib/anthropic/models/beta/beta_response_tool.rb +132 -0
- data/lib/anthropic/models/beta/beta_response_tool_addition_block.rb +112 -0
- data/lib/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rb +35 -0
- data/lib/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rb +28 -0
- data/lib/anthropic/models/beta/beta_response_tool_change_tool_reference.rb +30 -0
- data/lib/anthropic/models/beta/beta_response_tool_input_schema.rb +38 -0
- data/lib/anthropic/models/beta/beta_response_tool_removal_block.rb +96 -0
- data/lib/anthropic/models/beta/beta_response_tool_union.rb +92 -0
- data/lib/anthropic/models/beta/beta_system_message_output_config.rb +12 -3
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +13 -10
- data/lib/anthropic/models/beta/beta_thinking_block_binding.rb +6 -6
- data/lib/anthropic/models/beta/beta_thinking_config_adaptive.rb +3 -3
- data/lib/anthropic/models/beta/beta_thinking_config_between_tools.rb +19 -0
- data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +3 -3
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +8 -3
- data/lib/anthropic/models/beta/beta_tool_change_tool_definition.rb +29 -0
- data/lib/anthropic/models/beta/beta_tool_change_tool_definition_param.rb +29 -0
- data/lib/anthropic/models/beta/beta_tool_change_tool_reference.rb +3 -2
- data/lib/anthropic/models/beta/beta_tunnel.rb +5 -4
- data/lib/anthropic/models/beta/beta_usage.rb +7 -7
- data/lib/anthropic/models/beta/beta_user_profile.rb +35 -21
- data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +5 -2
- data/lib/anthropic/models/beta/beta_user_profile_external_user_details.rb +18 -18
- data/lib/anthropic/models/beta/beta_user_profile_external_user_details_params.rb +20 -18
- data/lib/anthropic/models/beta/beta_user_profile_trust_grant.rb +3 -0
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20250910.rb +3 -7
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260209.rb +3 -7
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +3 -7
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260318.rb +3 -7
- data/lib/anthropic/models/beta/deployment_archive_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_create_params.rb +17 -8
- data/lib/anthropic/models/beta/deployment_list_params.rb +7 -1
- data/lib/anthropic/models/beta/deployment_pause_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_run_list_params.rb +7 -1
- data/lib/anthropic/models/beta/deployment_run_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_unpause_params.rb +12 -2
- data/lib/anthropic/models/beta/deployment_update_params.rb +19 -9
- data/lib/anthropic/models/beta/dream_archive_params.rb +12 -2
- data/lib/anthropic/models/beta/dream_cancel_params.rb +12 -2
- data/lib/anthropic/models/beta/dream_create_params.rb +41 -6
- data/lib/anthropic/models/beta/dream_list_params.rb +25 -16
- data/lib/anthropic/models/beta/dream_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/environment_archive_params.rb +10 -1
- data/lib/anthropic/models/beta/environment_create_params.rb +8 -2
- data/lib/anthropic/models/beta/environment_delete_params.rb +10 -1
- data/lib/anthropic/models/beta/environment_list_params.rb +7 -1
- data/lib/anthropic/models/beta/environment_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/environment_update_params.rb +8 -2
- data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/environments/work_stats_params.rb +10 -1
- data/lib/anthropic/models/beta/environments/work_stop_params.rb +10 -1
- data/lib/anthropic/models/beta/environments/work_update_params.rb +10 -1
- data/lib/anthropic/models/beta/file_delete_params.rb +10 -1
- data/lib/anthropic/models/beta/file_download_params.rb +10 -1
- data/lib/anthropic/models/beta/file_list_params.rb +7 -1
- data/lib/anthropic/models/beta/file_retrieve_metadata_params.rb +10 -1
- data/lib/anthropic/models/beta/file_upload_params.rb +7 -1
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +14 -2
- data/lib/anthropic/models/beta/memory_store_create_params.rb +7 -1
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +14 -2
- data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -1
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +13 -2
- data/lib/anthropic/models/beta/memory_store_update_params.rb +11 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +11 -13
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +15 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +7 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +26 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +14 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +21 -19
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +5 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +6 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +15 -4
- data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +20 -5
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +9 -2
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +20 -5
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +22 -12
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +37 -18
- data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +15 -3
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +21 -5
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +23 -18
- data/lib/anthropic/models/beta/message_create_params.rb +27 -21
- data/lib/anthropic/models/beta/messages/batch_cancel_params.rb +10 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +35 -25
- data/lib/anthropic/models/beta/messages/batch_delete_params.rb +10 -1
- data/lib/anthropic/models/beta/messages/batch_list_params.rb +7 -1
- data/lib/anthropic/models/beta/messages/batch_results_params.rb +10 -1
- data/lib/anthropic/models/beta/messages/batch_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/model_list_params.rb +7 -1
- data/lib/anthropic/models/beta/model_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/organization/federation/beta_federation_issuer.rb +5 -6
- data/lib/anthropic/models/beta/organization/federation/rule_update_params.rb +4 -8
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +9 -7
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rb +27 -0
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rb +63 -3
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rb +22 -0
- data/lib/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rb +10 -1
- data/lib/anthropic/models/beta/session_archive_params.rb +10 -1
- data/lib/anthropic/models/beta/session_create_params.rb +14 -6
- data/lib/anthropic/models/beta/session_delete_params.rb +10 -1
- data/lib/anthropic/models/beta/session_list_params.rb +7 -1
- data/lib/anthropic/models/beta/session_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/session_update_params.rb +20 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rb +21 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +14 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rb +1 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rb +2 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +14 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +5 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +9 -9
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rb +52 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +19 -17
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rb +12 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rb +7 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rb +5 -7
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +5 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +9 -9
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +9 -9
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +7 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +5 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/event_list_params.rb +12 -6
- data/lib/anthropic/models/beta/sessions/event_send_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/event_stream_params.rb +7 -1
- data/lib/anthropic/models/beta/sessions/resource_add_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/resource_list_params.rb +7 -1
- data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +1 -1
- data/lib/anthropic/models/beta/sessions/resource_update_params.rb +7 -1
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +1 -1
- data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/thread_list_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +12 -5
- data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +7 -1
- data/lib/anthropic/models/beta/skill_create_params.rb +7 -1
- data/lib/anthropic/models/beta/skill_delete_params.rb +7 -1
- data/lib/anthropic/models/beta/skill_list_params.rb +7 -1
- data/lib/anthropic/models/beta/skill_retrieve_params.rb +7 -1
- data/lib/anthropic/models/beta/skills/version_create_params.rb +7 -1
- data/lib/anthropic/models/beta/skills/version_delete_params.rb +7 -1
- data/lib/anthropic/models/beta/skills/version_download_params.rb +7 -1
- data/lib/anthropic/models/beta/skills/version_list_params.rb +7 -1
- data/lib/anthropic/models/beta/skills/version_retrieve_params.rb +7 -1
- data/lib/anthropic/models/beta/tunnel_archive_params.rb +12 -2
- data/lib/anthropic/models/beta/tunnel_create_params.rb +10 -1
- data/lib/anthropic/models/beta/tunnel_list_params.rb +10 -1
- data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +12 -2
- data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +12 -2
- data/lib/anthropic/models/beta/tunnels/beta_tunnel_certificate.rb +11 -6
- data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +14 -3
- data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +9 -2
- data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +9 -2
- data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +14 -3
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +13 -2
- data/lib/anthropic/models/beta/user_profile_create_params.rb +26 -14
- data/lib/anthropic/models/beta/user_profile_list_params.rb +33 -11
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/user_profile_update_params.rb +21 -15
- data/lib/anthropic/models/beta/vault_archive_params.rb +12 -2
- data/lib/anthropic/models/beta/vault_create_params.rb +7 -1
- data/lib/anthropic/models/beta/vault_delete_params.rb +12 -2
- data/lib/anthropic/models/beta/vault_list_params.rb +10 -1
- data/lib/anthropic/models/beta/vault_retrieve_params.rb +12 -2
- data/lib/anthropic/models/beta/vault_update_params.rb +9 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +6 -6
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +13 -8
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +6 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rb +10 -5
- data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +14 -3
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +13 -6
- data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +14 -3
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +12 -2
- data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +15 -3
- data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +14 -3
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +17 -7
- data/lib/anthropic/models/browser_toolset_20260801.rb +3 -6
- data/lib/anthropic/models/cache_miss_messages_changed.rb +27 -0
- data/lib/anthropic/models/cache_miss_model_changed.rb +27 -0
- data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +15 -0
- data/lib/anthropic/models/cache_miss_reason.rb +73 -0
- data/lib/anthropic/models/cache_miss_system_changed.rb +27 -0
- data/lib/anthropic/models/cache_miss_tools_changed.rb +27 -0
- data/lib/anthropic/models/cache_miss_unavailable.rb +15 -0
- data/lib/anthropic/models/completion_create_params.rb +10 -1
- data/lib/anthropic/models/computer_toolset_20260801.rb +3 -6
- data/lib/anthropic/models/context_management_capability.rb +6 -6
- data/lib/anthropic/models/diagnostics.rb +25 -0
- data/lib/anthropic/models/diagnostics_param.rb +26 -0
- data/lib/anthropic/models/effort_capability.rb +2 -2
- data/lib/anthropic/models/file_delete_params.rb +10 -1
- data/lib/anthropic/models/file_download_params.rb +10 -1
- data/lib/anthropic/models/file_list_params.rb +7 -1
- data/lib/anthropic/models/file_retrieve_metadata_params.rb +10 -1
- data/lib/anthropic/models/file_upload_params.rb +7 -1
- data/lib/anthropic/models/message.rb +18 -6
- data/lib/anthropic/models/message_count_tokens_params.rb +9 -3
- data/lib/anthropic/models/message_create_params.rb +20 -4
- data/lib/anthropic/models/messages/batch_cancel_params.rb +10 -1
- data/lib/anthropic/models/messages/batch_create_params.rb +28 -8
- data/lib/anthropic/models/messages/batch_delete_params.rb +10 -1
- data/lib/anthropic/models/messages/batch_list_params.rb +7 -1
- data/lib/anthropic/models/messages/batch_results_params.rb +10 -1
- data/lib/anthropic/models/messages/batch_retrieve_params.rb +10 -1
- data/lib/anthropic/models/model.rb +11 -1
- data/lib/anthropic/models/model_info.rb +3 -2
- data/lib/anthropic/models/model_list_params.rb +11 -1
- data/lib/anthropic/models/model_retrieve_params.rb +14 -1
- data/lib/anthropic/models/output_config.rb +9 -3
- data/lib/anthropic/models/raw_message_delta_event.rb +8 -5
- data/lib/anthropic/models/refusal_stop_details.rb +7 -3
- data/lib/anthropic/models/skill_create_params.rb +7 -1
- data/lib/anthropic/models/skill_delete_params.rb +7 -1
- data/lib/anthropic/models/skill_list_params.rb +7 -1
- data/lib/anthropic/models/skill_retrieve_params.rb +7 -1
- data/lib/anthropic/models/skills/version_create_params.rb +7 -1
- data/lib/anthropic/models/skills/version_delete_params.rb +7 -1
- data/lib/anthropic/models/skills/version_list_params.rb +7 -1
- data/lib/anthropic/models/skills/version_retrieve_params.rb +7 -1
- data/lib/anthropic/models/thinking_config_between_tools.rb +15 -0
- data/lib/anthropic/models/thinking_config_param.rb +7 -2
- data/lib/anthropic/models/web_fetch_tool_20250910.rb +3 -7
- data/lib/anthropic/models/web_fetch_tool_20260209.rb +3 -7
- data/lib/anthropic/models/web_fetch_tool_20260309.rb +3 -7
- data/lib/anthropic/models/web_fetch_tool_20260318.rb +3 -7
- data/lib/anthropic/models.rb +20 -0
- data/lib/anthropic/resources/beta/agents.rb +2 -2
- data/lib/anthropic/resources/beta/deployments.rb +4 -4
- data/lib/anthropic/resources/beta/dreams.rb +58 -18
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +13 -13
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +15 -14
- data/lib/anthropic/resources/beta/messages.rb +16 -19
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +9 -5
- data/lib/anthropic/resources/beta/sessions/events.rb +5 -5
- data/lib/anthropic/resources/beta/sessions/resources.rb +8 -8
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +6 -6
- data/lib/anthropic/resources/beta/sessions/threads.rb +5 -5
- data/lib/anthropic/resources/beta/sessions.rb +7 -7
- data/lib/anthropic/resources/beta/user_profiles.rb +11 -11
- data/lib/anthropic/resources/beta/vaults/credentials.rb +2 -2
- data/lib/anthropic/resources/messages.rb +12 -6
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +30 -1
- data/rbi/anthropic/helpers/tools/runner.rbi +29 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +7 -0
- data/rbi/anthropic/models/beta/agent_archive_params.rbi +14 -0
- data/rbi/anthropic/models/beta/agent_create_params.rbi +18 -6
- data/rbi/anthropic/models/beta/agent_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/agent_update_params.rbi +20 -6
- data/rbi/anthropic/models/beta/agents/version_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/beta_browser_toolset_20260801.rbi +4 -10
- data/rbi/anthropic/models/beta/beta_cache_miss_reason.rbi +98 -0
- data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +6 -16
- data/rbi/anthropic/models/beta/beta_compaction_block.rbi +124 -1
- data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +132 -1
- data/rbi/anthropic/models/beta/beta_computer_toolset_20260801.rbi +4 -10
- data/rbi/anthropic/models/beta/beta_content_block.rbi +27 -3
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +37 -3
- data/rbi/anthropic/models/beta/beta_context_management_capability.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_diagnostics.rbi +4 -113
- data/rbi/anthropic/models/beta/beta_dream.rbi +105 -21
- data/rbi/anthropic/models/beta/beta_dream_error.rbi +16 -1
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +18 -1
- data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +16 -4
- data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +13 -2
- data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +11 -13
- data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +24 -12
- data/rbi/anthropic/models/beta/beta_dream_output.rbi +14 -2
- data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +21 -2
- data/rbi/anthropic/models/beta/beta_dream_status.rbi +11 -2
- data/rbi/anthropic/models/beta/beta_dream_usage.rbi +20 -9
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_effort_capability.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +11 -2
- data/rbi/anthropic/models/beta/beta_fallback_refusal_trigger.rbi +9 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_budget_limit.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_cron_schedule.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_delta_content.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +26 -18
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +14 -12
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +12 -6
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +15 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +15 -12
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +3 -9
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule_params.rbi +1 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_schedule_trigger_context.rbi +6 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +8 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +14 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_session_usage.rbi +10 -6
- data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +8 -8
- data/rbi/anthropic/models/beta/beta_managed_agents_system_content_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_system_message_event.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_mcp_tool.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_mcp_tool_listing_block.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_mcp_tool_listing_block_param.rbi +62 -0
- data/rbi/anthropic/models/beta/beta_mcp_tool_param.rbi +62 -0
- data/rbi/anthropic/models/beta/beta_mcp_toolset.rbi +16 -1
- data/rbi/anthropic/models/beta/beta_message.rbi +18 -11
- data/rbi/anthropic/models/beta/beta_message_delta_usage.rbi +8 -0
- data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +4 -6
- data/rbi/anthropic/models/beta/beta_model_info.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_output_behavior.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +5 -3
- data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +15 -4
- data/rbi/anthropic/models/beta/beta_output_config.rbi +14 -5
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +29 -4
- data/rbi/anthropic/models/beta/beta_raw_message_delta_event.rbi +12 -6
- data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_refusal_stop_details.rbi +9 -3
- data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +54 -9
- data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +3 -2
- data/rbi/anthropic/models/beta/beta_response_tool.rbi +255 -0
- data/rbi/anthropic/models/beta/beta_response_tool_addition_block.rbi +182 -0
- data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbi +38 -0
- data/rbi/anthropic/models/beta/beta_response_tool_change_tool_reference.rbi +38 -0
- data/rbi/anthropic/models/beta/beta_response_tool_input_schema.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_response_tool_removal_block.rbi +139 -0
- data/rbi/anthropic/models/beta/beta_response_tool_union.rbi +55 -0
- data/rbi/anthropic/models/beta/beta_system_message_output_config.rbi +12 -3
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +14 -11
- data/rbi/anthropic/models/beta/beta_thinking_block_binding.rbi +10 -10
- data/rbi/anthropic/models/beta/beta_thinking_config_adaptive.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_thinking_config_between_tools.rbi +30 -0
- data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +4 -4
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +8 -2
- data/rbi/anthropic/models/beta/beta_tool_change_tool_definition.rbi +78 -0
- data/rbi/anthropic/models/beta/beta_tool_change_tool_definition_param.rbi +141 -0
- data/rbi/anthropic/models/beta/beta_tool_change_tool_reference.rbi +3 -2
- data/rbi/anthropic/models/beta/beta_tunnel.rbi +6 -4
- data/rbi/anthropic/models/beta/beta_usage.rbi +11 -9
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +45 -27
- data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_user_profile_external_user_details.rbi +21 -23
- data/rbi/anthropic/models/beta/beta_user_profile_external_user_details_params.rbi +25 -23
- data/rbi/anthropic/models/beta/beta_user_profile_trust_grant.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20250910.rbi +4 -12
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260209.rbi +4 -12
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260309.rbi +4 -12
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_20260318.rbi +4 -12
- data/rbi/anthropic/models/beta/deployment_archive_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +28 -9
- data/rbi/anthropic/models/beta/deployment_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/deployment_pause_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/deployment_run_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +14 -0
- data/rbi/anthropic/models/beta/deployment_update_params.rbi +30 -9
- data/rbi/anthropic/models/beta/dream_archive_params.rbi +14 -0
- data/rbi/anthropic/models/beta/dream_cancel_params.rbi +14 -0
- data/rbi/anthropic/models/beta/dream_create_params.rbi +56 -0
- data/rbi/anthropic/models/beta/dream_list_params.rbi +36 -18
- data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/environment_archive_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environment_create_params.rbi +15 -8
- data/rbi/anthropic/models/beta/environment_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environment_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environment_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environment_update_params.rbi +15 -8
- data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +12 -0
- data/rbi/anthropic/models/beta/environments/work_update_params.rbi +12 -0
- data/rbi/anthropic/models/beta/file_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/file_download_params.rbi +12 -0
- data/rbi/anthropic/models/beta/file_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/file_retrieve_metadata_params.rbi +12 -0
- data/rbi/anthropic/models/beta/file_upload_params.rbi +12 -0
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +18 -0
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +18 -0
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +16 -0
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +18 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +8 -11
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +7 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +10 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +5 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +23 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +16 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +32 -28
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbi +5 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbi +4 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbi +7 -8
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbi +3 -3
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +24 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +26 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +26 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +34 -14
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +46 -16
- data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +16 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +26 -2
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +40 -25
- data/rbi/anthropic/models/beta/message_create_params.rbi +44 -27
- data/rbi/anthropic/models/beta/messages/batch_cancel_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +58 -33
- data/rbi/anthropic/models/beta/messages/batch_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_results_params.rbi +12 -0
- data/rbi/anthropic/models/beta/messages/batch_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/model_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/model_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/federation/beta_federation_issuer.rbi +8 -10
- data/rbi/anthropic/models/beta/organization/federation/rule_update_params.rbi +4 -12
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +12 -8
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbi +99 -3
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rbi +36 -0
- data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rbi +13 -0
- data/rbi/anthropic/models/beta/session_archive_params.rbi +12 -0
- data/rbi/anthropic/models/beta/session_create_params.rbi +23 -6
- data/rbi/anthropic/models/beta/session_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/session_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/session_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/session_update_params.rbi +34 -10
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbi +49 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbi +22 -54
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thinking_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_context_compacted_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation.rbi +1 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_evaluation_auto.rbi +2 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbi +22 -54
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +6 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_search_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +4 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_deleted_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +22 -17
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbi +204 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_rescheduled_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_running_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_terminated_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +22 -18
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_rescheduled_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_running_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_terminated_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbi +18 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbi +8 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_end_event.rbi +4 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_request_start_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rbi +6 -9
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rbi +6 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +22 -17
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +22 -17
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +3 -3
- 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_custom_tool_result_event_params.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +8 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +1 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rbi +5 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rbi +3 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +37 -6
- data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +12 -4
- data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skill_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skill_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skill_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skill_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skills/version_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skills/version_delete_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skills/version_download_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skills/version_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/skills/version_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnel_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/tunnel_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnels/beta_tunnel_certificate.rbi +10 -6
- data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +16 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +16 -0
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +14 -0
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +39 -17
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +40 -10
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +30 -17
- data/rbi/anthropic/models/beta/vault_archive_params.rbi +14 -0
- data/rbi/anthropic/models/beta/vault_create_params.rbi +12 -0
- data/rbi/anthropic/models/beta/vault_delete_params.rbi +14 -0
- data/rbi/anthropic/models/beta/vault_list_params.rbi +12 -0
- data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +14 -0
- data/rbi/anthropic/models/beta/vault_update_params.rbi +14 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +6 -6
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +10 -8
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_refresh_object.rbi +7 -5
- data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +16 -0
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +18 -4
- data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +16 -0
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +14 -0
- data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +16 -0
- data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +16 -0
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +23 -4
- data/rbi/anthropic/models/browser_toolset_20260801.rbi +4 -10
- data/rbi/anthropic/models/cache_miss_messages_changed.rbi +42 -0
- data/rbi/anthropic/models/cache_miss_model_changed.rbi +39 -0
- data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +26 -0
- data/rbi/anthropic/models/cache_miss_reason.rbi +76 -0
- data/rbi/anthropic/models/cache_miss_system_changed.rbi +39 -0
- data/rbi/anthropic/models/cache_miss_tools_changed.rbi +39 -0
- data/rbi/anthropic/models/cache_miss_unavailable.rbi +23 -0
- data/rbi/anthropic/models/completion_create_params.rbi +12 -0
- data/rbi/anthropic/models/computer_toolset_20260801.rbi +4 -10
- data/rbi/anthropic/models/context_management_capability.rbi +6 -6
- data/rbi/anthropic/models/diagnostics.rbi +53 -0
- data/rbi/anthropic/models/diagnostics_param.rbi +39 -0
- data/rbi/anthropic/models/effort_capability.rbi +2 -2
- data/rbi/anthropic/models/file_delete_params.rbi +12 -0
- data/rbi/anthropic/models/file_download_params.rbi +12 -0
- data/rbi/anthropic/models/file_list_params.rbi +12 -0
- data/rbi/anthropic/models/file_retrieve_metadata_params.rbi +12 -0
- data/rbi/anthropic/models/file_upload_params.rbi +12 -0
- data/rbi/anthropic/models/message.rbi +27 -6
- data/rbi/anthropic/models/message_count_tokens_params.rbi +16 -0
- data/rbi/anthropic/models/message_create_params.rbi +33 -0
- data/rbi/anthropic/models/messages/batch_cancel_params.rbi +12 -0
- data/rbi/anthropic/models/messages/batch_create_params.rbi +49 -6
- data/rbi/anthropic/models/messages/batch_delete_params.rbi +12 -0
- data/rbi/anthropic/models/messages/batch_list_params.rbi +12 -0
- data/rbi/anthropic/models/messages/batch_results_params.rbi +12 -0
- data/rbi/anthropic/models/messages/batch_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/model.rbi +9 -1
- data/rbi/anthropic/models/model_info.rbi +4 -2
- data/rbi/anthropic/models/model_list_params.rbi +12 -0
- data/rbi/anthropic/models/model_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/output_config.rbi +12 -3
- data/rbi/anthropic/models/raw_message_delta_event.rbi +12 -6
- data/rbi/anthropic/models/refusal_stop_details.rbi +9 -3
- data/rbi/anthropic/models/skill_create_params.rbi +12 -0
- data/rbi/anthropic/models/skill_delete_params.rbi +12 -0
- data/rbi/anthropic/models/skill_list_params.rbi +12 -0
- data/rbi/anthropic/models/skill_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/skills/version_create_params.rbi +12 -0
- data/rbi/anthropic/models/skills/version_delete_params.rbi +12 -0
- data/rbi/anthropic/models/skills/version_list_params.rbi +12 -0
- data/rbi/anthropic/models/skills/version_retrieve_params.rbi +12 -0
- data/rbi/anthropic/models/thinking_config_between_tools.rbi +26 -0
- data/rbi/anthropic/models/thinking_config_param.rbi +6 -0
- data/rbi/anthropic/models/web_fetch_tool_20250910.rbi +4 -12
- data/rbi/anthropic/models/web_fetch_tool_20260209.rbi +4 -12
- data/rbi/anthropic/models/web_fetch_tool_20260309.rbi +4 -12
- data/rbi/anthropic/models/web_fetch_tool_20260318.rbi +4 -12
- data/rbi/anthropic/models.rbi +21 -0
- data/rbi/anthropic/resources/beta/agents.rbi +4 -6
- data/rbi/anthropic/resources/beta/deployments.rbi +14 -8
- data/rbi/anthropic/resources/beta/dreams.rbi +81 -21
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +33 -18
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +28 -14
- data/rbi/anthropic/resources/beta/messages.rbi +42 -39
- data/rbi/anthropic/resources/beta/organization/federation/rules.rbi +4 -6
- data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +10 -4
- data/rbi/anthropic/resources/beta/sessions/events.rbi +8 -5
- data/rbi/anthropic/resources/beta/sessions/resources.rbi +8 -8
- data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +6 -6
- data/rbi/anthropic/resources/beta/sessions/threads.rbi +5 -5
- data/rbi/anthropic/resources/beta/sessions.rbi +16 -12
- data/rbi/anthropic/resources/beta/user_profiles.rbi +30 -19
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +3 -2
- data/rbi/anthropic/resources/messages.rbi +18 -0
- data/sig/anthropic/models/anthropic_beta.rbs +4 -0
- data/sig/anthropic/models/beta/beta_cache_miss_reason.rbs +70 -0
- data/sig/anthropic/models/beta/beta_compaction_block.rbs +44 -2
- data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +47 -2
- data/sig/anthropic/models/beta/beta_content_block.rbs +14 -2
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +13 -1
- data/sig/anthropic/models/beta/beta_diagnostics.rbs +4 -70
- data/sig/anthropic/models/beta/beta_dream_status.rbs +3 -1
- data/sig/anthropic/models/beta/beta_fallback_param.rbs +6 -1
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +10 -2
- data/sig/anthropic/models/beta/beta_mcp_tool.rbs +32 -0
- data/sig/anthropic/models/beta/beta_mcp_tool_listing_block.rbs +34 -0
- data/sig/anthropic/models/beta/beta_mcp_tool_listing_block_param.rbs +34 -0
- data/sig/anthropic/models/beta/beta_mcp_tool_param.rbs +34 -0
- data/sig/anthropic/models/beta/beta_mcp_toolset.rbs +7 -2
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +14 -2
- data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +12 -2
- data/sig/anthropic/models/beta/beta_response_tool.rbs +105 -0
- data/sig/anthropic/models/beta/beta_response_tool_addition_block.rbs +84 -0
- data/sig/anthropic/models/beta/beta_response_tool_change_mcp_tool_reference.rbs +30 -0
- data/sig/anthropic/models/beta/beta_response_tool_change_mcp_toolset_reference.rbs +23 -0
- data/sig/anthropic/models/beta/beta_response_tool_change_tool_reference.rbs +20 -0
- data/sig/anthropic/models/beta/beta_response_tool_input_schema.rbs +34 -0
- data/sig/anthropic/models/beta/beta_response_tool_removal_block.rbs +74 -0
- data/sig/anthropic/models/beta/beta_response_tool_union.rbs +43 -0
- data/sig/anthropic/models/beta/beta_thinking_config_between_tools.rbs +17 -0
- data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +6 -1
- data/sig/anthropic/models/beta/beta_tool_change_tool_definition.rbs +29 -0
- data/sig/anthropic/models/beta/beta_tool_change_tool_definition_param.rbs +29 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +3 -0
- data/sig/anthropic/models/beta/beta_user_profile_external_user_details.rbs +5 -0
- data/sig/anthropic/models/beta/beta_user_profile_external_user_details_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_organization_source.rbs +20 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_value.rbs +43 -1
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_workspace_source.rbs +19 -0
- data/sig/anthropic/models/beta/organization/workspaces/rate_limit_list_params.rbs +7 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_evaluated_permission.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rbs +6 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rbs +6 -18
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +3 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event_type.rbs +84 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +3 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +3 -4
- data/sig/anthropic/models/beta/sessions/event_list_params.rbs +7 -5
- data/sig/anthropic/models/beta/user_profile_create_params.rbs +3 -0
- data/sig/anthropic/models/beta/user_profile_list_params.rbs +6 -0
- data/sig/anthropic/models/beta/user_profile_update_params.rbs +3 -0
- data/sig/anthropic/models/cache_miss_messages_changed.rbs +22 -0
- data/sig/anthropic/models/cache_miss_model_changed.rbs +22 -0
- data/sig/anthropic/models/cache_miss_previous_message_not_found.rbs +14 -0
- data/sig/anthropic/models/cache_miss_reason.rbs +66 -0
- data/sig/anthropic/models/cache_miss_system_changed.rbs +22 -0
- data/sig/anthropic/models/cache_miss_tools_changed.rbs +22 -0
- data/sig/anthropic/models/cache_miss_unavailable.rbs +13 -0
- data/sig/anthropic/models/diagnostics.rbs +18 -0
- data/sig/anthropic/models/diagnostics_param.rbs +13 -0
- data/sig/anthropic/models/message.rbs +5 -0
- data/sig/anthropic/models/message_create_params.rbs +5 -0
- data/sig/anthropic/models/messages/batch_create_params.rbs +5 -0
- data/sig/anthropic/models/model.rbs +10 -2
- data/sig/anthropic/models/thinking_config_between_tools.rbs +13 -0
- data/sig/anthropic/models/thinking_config_param.rbs +6 -1
- data/sig/anthropic/models.rbs +20 -0
- data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +1 -0
- data/sig/anthropic/resources/beta/sessions/events.rbs +1 -1
- data/sig/anthropic/resources/messages.rbs +3 -0
- metadata +92 -3
- data/lib/anthropic/helpers/tools/compaction_control.rb +0 -109
|
@@ -104,14 +104,15 @@ module Anthropic
|
|
|
104
104
|
end
|
|
105
105
|
attr_writer :cache_control
|
|
106
106
|
|
|
107
|
-
#
|
|
108
|
-
#
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
112
|
-
#
|
|
113
|
-
#
|
|
114
|
-
#
|
|
107
|
+
# Compaction configuration.
|
|
108
|
+
#
|
|
109
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
110
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
111
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
112
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
113
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
114
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
115
|
+
# combined with `context_management`.
|
|
115
116
|
sig { returns(T.nilable(Anthropic::Beta::BetaCompactionConfig)) }
|
|
116
117
|
attr_reader :compaction
|
|
117
118
|
|
|
@@ -182,9 +183,8 @@ module Anthropic
|
|
|
182
183
|
end
|
|
183
184
|
attr_writer :output_format
|
|
184
185
|
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
-
# combinations are rejected at create time.
|
|
186
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
187
|
+
# output-tokens-per-second inference.
|
|
188
188
|
sig do
|
|
189
189
|
returns(
|
|
190
190
|
T.nilable(
|
|
@@ -230,6 +230,7 @@ module Anthropic
|
|
|
230
230
|
T.any(
|
|
231
231
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
232
232
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
233
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
233
234
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
234
235
|
)
|
|
235
236
|
)
|
|
@@ -243,6 +244,7 @@ module Anthropic
|
|
|
243
244
|
T.any(
|
|
244
245
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
245
246
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
247
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
246
248
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
247
249
|
)
|
|
248
250
|
).void
|
|
@@ -459,6 +461,12 @@ module Anthropic
|
|
|
459
461
|
sig { params(user_profile_id: String).void }
|
|
460
462
|
attr_writer :user_profile_id
|
|
461
463
|
|
|
464
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
465
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
466
|
+
#
|
|
467
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
468
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
469
|
+
# match that Workspace.
|
|
462
470
|
sig { returns(T.nilable(String)) }
|
|
463
471
|
attr_reader :workspace_id
|
|
464
472
|
|
|
@@ -492,6 +500,7 @@ module Anthropic
|
|
|
492
500
|
T.any(
|
|
493
501
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
494
502
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
503
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
495
504
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
496
505
|
),
|
|
497
506
|
tool_choice:
|
|
@@ -616,14 +625,15 @@ module Anthropic
|
|
|
616
625
|
# Top-level cache control automatically applies a cache_control marker to the last
|
|
617
626
|
# cacheable block in the request.
|
|
618
627
|
cache_control: nil,
|
|
619
|
-
#
|
|
620
|
-
#
|
|
621
|
-
#
|
|
622
|
-
#
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
#
|
|
628
|
+
# Compaction configuration.
|
|
629
|
+
#
|
|
630
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
631
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
632
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
633
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
634
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
635
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
636
|
+
# combined with `context_management`.
|
|
627
637
|
compaction: nil,
|
|
628
638
|
# Context management configuration.
|
|
629
639
|
#
|
|
@@ -640,9 +650,8 @@ module Anthropic
|
|
|
640
650
|
# A schema to specify Claude's output format in responses. This parameter will be
|
|
641
651
|
# removed in a future release.
|
|
642
652
|
output_format: nil,
|
|
643
|
-
#
|
|
644
|
-
#
|
|
645
|
-
# combinations are rejected at create time.
|
|
653
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
654
|
+
# output-tokens-per-second inference.
|
|
646
655
|
speed: nil,
|
|
647
656
|
# System prompt.
|
|
648
657
|
#
|
|
@@ -746,6 +755,12 @@ module Anthropic
|
|
|
746
755
|
# The user profile ID to attribute this request to. Use when acting on behalf of a
|
|
747
756
|
# party other than your organization. Requires the `user-profiles` beta header.
|
|
748
757
|
user_profile_id: nil,
|
|
758
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
759
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
760
|
+
#
|
|
761
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
762
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
763
|
+
# match that Workspace.
|
|
749
764
|
workspace_id: nil,
|
|
750
765
|
request_options: {}
|
|
751
766
|
)
|
|
@@ -775,6 +790,7 @@ module Anthropic
|
|
|
775
790
|
T.any(
|
|
776
791
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
777
792
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
793
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
778
794
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
779
795
|
),
|
|
780
796
|
tool_choice:
|
|
@@ -828,9 +844,8 @@ module Anthropic
|
|
|
828
844
|
def to_hash
|
|
829
845
|
end
|
|
830
846
|
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
# combinations are rejected at create time.
|
|
847
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
848
|
+
# output-tokens-per-second inference.
|
|
834
849
|
module Speed
|
|
835
850
|
extend Anthropic::Internal::Type::Enum
|
|
836
851
|
|
|
@@ -119,14 +119,15 @@ module Anthropic
|
|
|
119
119
|
end
|
|
120
120
|
attr_writer :cache_control
|
|
121
121
|
|
|
122
|
-
#
|
|
123
|
-
# that a later request sends back first in `messages`, in place of the messages it
|
|
124
|
-
# summarizes. There is no trigger and no pause flag: sending the parameter
|
|
125
|
-
# compacts, and nothing is sampled after the block.
|
|
122
|
+
# Compaction configuration.
|
|
126
123
|
#
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
124
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
125
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
126
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
127
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
128
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
129
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
130
|
+
# combined with `context_management`.
|
|
130
131
|
sig { returns(T.nilable(Anthropic::Beta::BetaCompactionConfig)) }
|
|
131
132
|
attr_reader :compaction
|
|
132
133
|
|
|
@@ -160,8 +161,9 @@ module Anthropic
|
|
|
160
161
|
end
|
|
161
162
|
attr_writer :context_management
|
|
162
163
|
|
|
163
|
-
# Request-level diagnostics.
|
|
164
|
-
# prompt-cache divergence
|
|
164
|
+
# Request-level diagnostics. Supply `previous_message_id` to have the response
|
|
165
|
+
# include `diagnostics.cache_miss_reason` explaining any prompt-cache divergence
|
|
166
|
+
# from that prior request.
|
|
165
167
|
sig { returns(T.nilable(Anthropic::Beta::BetaDiagnosticsParam)) }
|
|
166
168
|
attr_reader :diagnostics
|
|
167
169
|
|
|
@@ -294,9 +296,8 @@ module Anthropic
|
|
|
294
296
|
end
|
|
295
297
|
attr_writer :service_tier
|
|
296
298
|
|
|
297
|
-
#
|
|
298
|
-
#
|
|
299
|
-
# combinations are rejected at create time.
|
|
299
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
300
|
+
# output-tokens-per-second inference.
|
|
300
301
|
sig do
|
|
301
302
|
returns(
|
|
302
303
|
T.nilable(Anthropic::Beta::MessageCreateParams::Speed::OrSymbol)
|
|
@@ -367,6 +368,7 @@ module Anthropic
|
|
|
367
368
|
T.any(
|
|
368
369
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
369
370
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
371
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
370
372
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
371
373
|
)
|
|
372
374
|
)
|
|
@@ -380,6 +382,7 @@ module Anthropic
|
|
|
380
382
|
T.any(
|
|
381
383
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
382
384
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
385
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
383
386
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
384
387
|
)
|
|
385
388
|
).void
|
|
@@ -621,6 +624,12 @@ module Anthropic
|
|
|
621
624
|
sig { params(user_profile_id: String).void }
|
|
622
625
|
attr_writer :user_profile_id
|
|
623
626
|
|
|
627
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
628
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
629
|
+
#
|
|
630
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
631
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
632
|
+
# match that Workspace.
|
|
624
633
|
sig { returns(T.nilable(String)) }
|
|
625
634
|
attr_reader :workspace_id
|
|
626
635
|
|
|
@@ -678,6 +687,7 @@ module Anthropic
|
|
|
678
687
|
T.any(
|
|
679
688
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
680
689
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
690
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
681
691
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
682
692
|
),
|
|
683
693
|
tool_choice:
|
|
@@ -817,14 +827,15 @@ module Anthropic
|
|
|
817
827
|
# Top-level cache control automatically applies a cache_control marker to the last
|
|
818
828
|
# cacheable block in the request.
|
|
819
829
|
cache_control: nil,
|
|
820
|
-
#
|
|
821
|
-
# that a later request sends back first in `messages`, in place of the messages it
|
|
822
|
-
# summarizes. There is no trigger and no pause flag: sending the parameter
|
|
823
|
-
# compacts, and nothing is sampled after the block.
|
|
830
|
+
# Compaction configuration.
|
|
824
831
|
#
|
|
825
|
-
#
|
|
826
|
-
#
|
|
827
|
-
#
|
|
832
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
833
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
834
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
835
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
836
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
837
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
838
|
+
# combined with `context_management`.
|
|
828
839
|
compaction: nil,
|
|
829
840
|
# Container identifier for reuse across requests.
|
|
830
841
|
container: nil,
|
|
@@ -833,8 +844,9 @@ module Anthropic
|
|
|
833
844
|
# This allows you to control how Claude manages context across multiple requests,
|
|
834
845
|
# such as whether to clear function results or not.
|
|
835
846
|
context_management: nil,
|
|
836
|
-
# Request-level diagnostics.
|
|
837
|
-
# prompt-cache divergence
|
|
847
|
+
# Request-level diagnostics. Supply `previous_message_id` to have the response
|
|
848
|
+
# include `diagnostics.cache_miss_reason` explaining any prompt-cache divergence
|
|
849
|
+
# from that prior request.
|
|
838
850
|
diagnostics: nil,
|
|
839
851
|
# The `fallback_credit_token` from a prior refusal's `stop_details`.
|
|
840
852
|
#
|
|
@@ -883,9 +895,8 @@ module Anthropic
|
|
|
883
895
|
# [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
|
|
884
896
|
# details.
|
|
885
897
|
service_tier: nil,
|
|
886
|
-
#
|
|
887
|
-
#
|
|
888
|
-
# combinations are rejected at create time.
|
|
898
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
899
|
+
# output-tokens-per-second inference.
|
|
889
900
|
speed: nil,
|
|
890
901
|
# Custom text sequences that will cause the model to stop generating.
|
|
891
902
|
#
|
|
@@ -1023,6 +1034,12 @@ module Anthropic
|
|
|
1023
1034
|
# The user profile ID to attribute this request to. Use when acting on behalf of a
|
|
1024
1035
|
# party other than your organization. Requires the `user-profiles` beta header.
|
|
1025
1036
|
user_profile_id: nil,
|
|
1037
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
1038
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1039
|
+
#
|
|
1040
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
1041
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1042
|
+
# match that Workspace.
|
|
1026
1043
|
workspace_id: nil,
|
|
1027
1044
|
request_options: {}
|
|
1028
1045
|
)
|
|
@@ -1069,6 +1086,7 @@ module Anthropic
|
|
|
1069
1086
|
T.any(
|
|
1070
1087
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
1071
1088
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
1089
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
1072
1090
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
1073
1091
|
),
|
|
1074
1092
|
tool_choice:
|
|
@@ -1217,9 +1235,8 @@ module Anthropic
|
|
|
1217
1235
|
end
|
|
1218
1236
|
end
|
|
1219
1237
|
|
|
1220
|
-
#
|
|
1221
|
-
#
|
|
1222
|
-
# combinations are rejected at create time.
|
|
1238
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
1239
|
+
# output-tokens-per-second inference.
|
|
1223
1240
|
module Speed
|
|
1224
1241
|
extend Anthropic::Internal::Type::Enum
|
|
1225
1242
|
|
|
@@ -37,6 +37,12 @@ module Anthropic
|
|
|
37
37
|
end
|
|
38
38
|
attr_writer :betas
|
|
39
39
|
|
|
40
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
41
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
42
|
+
#
|
|
43
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
44
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
45
|
+
# match that Workspace.
|
|
40
46
|
sig { returns(T.nilable(String)) }
|
|
41
47
|
attr_reader :workspace_id
|
|
42
48
|
|
|
@@ -57,6 +63,12 @@ module Anthropic
|
|
|
57
63
|
message_batch_id:,
|
|
58
64
|
# Optional header to specify the beta version(s) you want to use.
|
|
59
65
|
betas: nil,
|
|
66
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
67
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
68
|
+
#
|
|
69
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
70
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
71
|
+
# match that Workspace.
|
|
60
72
|
workspace_id: nil,
|
|
61
73
|
request_options: {}
|
|
62
74
|
)
|
|
@@ -52,6 +52,12 @@ module Anthropic
|
|
|
52
52
|
sig { params(user_profile_id: String).void }
|
|
53
53
|
attr_writer :user_profile_id
|
|
54
54
|
|
|
55
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
56
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
57
|
+
#
|
|
58
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
59
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
60
|
+
# match that Workspace.
|
|
55
61
|
sig { returns(T.nilable(String)) }
|
|
56
62
|
attr_reader :workspace_id
|
|
57
63
|
|
|
@@ -82,6 +88,12 @@ module Anthropic
|
|
|
82
88
|
# beta header. Applies to every request in the batch; an individual request whose
|
|
83
89
|
# `user_profile_id` body field conflicts with this header is errored.
|
|
84
90
|
user_profile_id: nil,
|
|
91
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
92
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
93
|
+
#
|
|
94
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
95
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
96
|
+
# match that Workspace.
|
|
85
97
|
workspace_id: nil,
|
|
86
98
|
request_options: {}
|
|
87
99
|
)
|
|
@@ -292,14 +304,15 @@ module Anthropic
|
|
|
292
304
|
end
|
|
293
305
|
attr_writer :cache_control
|
|
294
306
|
|
|
295
|
-
#
|
|
296
|
-
# that a later request sends back first in `messages`, in place of the messages it
|
|
297
|
-
# summarizes. There is no trigger and no pause flag: sending the parameter
|
|
298
|
-
# compacts, and nothing is sampled after the block.
|
|
307
|
+
# Compaction configuration.
|
|
299
308
|
#
|
|
300
|
-
#
|
|
301
|
-
#
|
|
302
|
-
#
|
|
309
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
310
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
311
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
312
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
313
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
314
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
315
|
+
# combined with `context_management`.
|
|
303
316
|
sig { returns(T.nilable(Anthropic::Beta::BetaCompactionConfig)) }
|
|
304
317
|
attr_reader :compaction
|
|
305
318
|
|
|
@@ -338,8 +351,9 @@ module Anthropic
|
|
|
338
351
|
end
|
|
339
352
|
attr_writer :context_management
|
|
340
353
|
|
|
341
|
-
# Request-level diagnostics.
|
|
342
|
-
# prompt-cache divergence
|
|
354
|
+
# Request-level diagnostics. Supply `previous_message_id` to have the response
|
|
355
|
+
# include `diagnostics.cache_miss_reason` explaining any prompt-cache divergence
|
|
356
|
+
# from that prior request.
|
|
343
357
|
sig { returns(T.nilable(Anthropic::Beta::BetaDiagnosticsParam)) }
|
|
344
358
|
attr_reader :diagnostics
|
|
345
359
|
|
|
@@ -476,9 +490,8 @@ module Anthropic
|
|
|
476
490
|
end
|
|
477
491
|
attr_writer :service_tier
|
|
478
492
|
|
|
479
|
-
#
|
|
480
|
-
#
|
|
481
|
-
# combinations are rejected at create time.
|
|
493
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
494
|
+
# output-tokens-per-second inference.
|
|
482
495
|
sig do
|
|
483
496
|
returns(
|
|
484
497
|
T.nilable(
|
|
@@ -503,10 +516,14 @@ module Anthropic
|
|
|
503
516
|
sig { params(stop_sequences: T::Array[String]).void }
|
|
504
517
|
attr_writer :stop_sequences
|
|
505
518
|
|
|
506
|
-
# Whether to incrementally stream the response using server-sent events.
|
|
519
|
+
# Whether to incrementally stream the response using server-sent events. When
|
|
520
|
+
# `true`, SDKs return a raw event stream.
|
|
507
521
|
#
|
|
508
|
-
#
|
|
509
|
-
# for
|
|
522
|
+
# In the TypeScript, Python and Ruby SDKs, the recommended way to stream is
|
|
523
|
+
# `messages.stream()`. It sets `stream` for you and accumulates the events into
|
|
524
|
+
# the final message. See
|
|
525
|
+
# [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming#streaming-with-sdks)
|
|
526
|
+
# for an example in each language.
|
|
510
527
|
sig { returns(T.nilable(T::Boolean)) }
|
|
511
528
|
attr_reader :stream
|
|
512
529
|
|
|
@@ -564,6 +581,7 @@ module Anthropic
|
|
|
564
581
|
T.any(
|
|
565
582
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
566
583
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
584
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
567
585
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
568
586
|
)
|
|
569
587
|
)
|
|
@@ -577,6 +595,7 @@ module Anthropic
|
|
|
577
595
|
T.any(
|
|
578
596
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
579
597
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
598
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
580
599
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
581
600
|
)
|
|
582
601
|
).void
|
|
@@ -860,6 +879,7 @@ module Anthropic
|
|
|
860
879
|
T.any(
|
|
861
880
|
Anthropic::Beta::BetaThinkingConfigEnabled::OrHash,
|
|
862
881
|
Anthropic::Beta::BetaThinkingConfigDisabled::OrHash,
|
|
882
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools::OrHash,
|
|
863
883
|
Anthropic::Beta::BetaThinkingConfigAdaptive::OrHash
|
|
864
884
|
),
|
|
865
885
|
tool_choice:
|
|
@@ -995,14 +1015,15 @@ module Anthropic
|
|
|
995
1015
|
# Top-level cache control automatically applies a cache_control marker to the last
|
|
996
1016
|
# cacheable block in the request.
|
|
997
1017
|
cache_control: nil,
|
|
998
|
-
#
|
|
999
|
-
# that a later request sends back first in `messages`, in place of the messages it
|
|
1000
|
-
# summarizes. There is no trigger and no pause flag: sending the parameter
|
|
1001
|
-
# compacts, and nothing is sampled after the block.
|
|
1018
|
+
# Compaction configuration.
|
|
1002
1019
|
#
|
|
1003
|
-
#
|
|
1004
|
-
#
|
|
1005
|
-
#
|
|
1020
|
+
# When set on `POST /v1/messages`, the request is a compaction request: the
|
|
1021
|
+
# conversation in `messages` is summarized and the response holds only the
|
|
1022
|
+
# resulting `compaction` block (`stop_reason` `"compaction"`), which later
|
|
1023
|
+
# requests send first in `messages` in place of the messages it summarizes.
|
|
1024
|
+
# `POST /v1/messages/count_tokens` accepts this parameter and ignores it: the
|
|
1025
|
+
# count it returns is for the conversation in `messages` as sent. Cannot be
|
|
1026
|
+
# combined with `context_management`.
|
|
1006
1027
|
compaction: nil,
|
|
1007
1028
|
# Container identifier for reuse across requests.
|
|
1008
1029
|
container: nil,
|
|
@@ -1011,8 +1032,9 @@ module Anthropic
|
|
|
1011
1032
|
# This allows you to control how Claude manages context across multiple requests,
|
|
1012
1033
|
# such as whether to clear function results or not.
|
|
1013
1034
|
context_management: nil,
|
|
1014
|
-
# Request-level diagnostics.
|
|
1015
|
-
# prompt-cache divergence
|
|
1035
|
+
# Request-level diagnostics. Supply `previous_message_id` to have the response
|
|
1036
|
+
# include `diagnostics.cache_miss_reason` explaining any prompt-cache divergence
|
|
1037
|
+
# from that prior request.
|
|
1016
1038
|
diagnostics: nil,
|
|
1017
1039
|
# The `fallback_credit_token` from a prior refusal's `stop_details`.
|
|
1018
1040
|
#
|
|
@@ -1061,9 +1083,8 @@ module Anthropic
|
|
|
1061
1083
|
# [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
|
|
1062
1084
|
# details.
|
|
1063
1085
|
service_tier: nil,
|
|
1064
|
-
#
|
|
1065
|
-
#
|
|
1066
|
-
# combinations are rejected at create time.
|
|
1086
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
1087
|
+
# output-tokens-per-second inference.
|
|
1067
1088
|
speed: nil,
|
|
1068
1089
|
# Custom text sequences that will cause the model to stop generating.
|
|
1069
1090
|
#
|
|
@@ -1075,10 +1096,14 @@ module Anthropic
|
|
|
1075
1096
|
# the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
|
|
1076
1097
|
# and the response `stop_sequence` value will contain the matched stop sequence.
|
|
1077
1098
|
stop_sequences: nil,
|
|
1078
|
-
# Whether to incrementally stream the response using server-sent events.
|
|
1099
|
+
# Whether to incrementally stream the response using server-sent events. When
|
|
1100
|
+
# `true`, SDKs return a raw event stream.
|
|
1079
1101
|
#
|
|
1080
|
-
#
|
|
1081
|
-
# for
|
|
1102
|
+
# In the TypeScript, Python and Ruby SDKs, the recommended way to stream is
|
|
1103
|
+
# `messages.stream()`. It sets `stream` for you and accumulates the events into
|
|
1104
|
+
# the final message. See
|
|
1105
|
+
# [Streaming with SDKs](https://platform.claude.com/docs/en/build-with-claude/streaming#streaming-with-sdks)
|
|
1106
|
+
# for an example in each language.
|
|
1082
1107
|
stream: nil,
|
|
1083
1108
|
# System prompt.
|
|
1084
1109
|
#
|
|
@@ -1260,6 +1285,7 @@ module Anthropic
|
|
|
1260
1285
|
T.any(
|
|
1261
1286
|
Anthropic::Beta::BetaThinkingConfigEnabled,
|
|
1262
1287
|
Anthropic::Beta::BetaThinkingConfigDisabled,
|
|
1288
|
+
Anthropic::Beta::BetaThinkingConfigBetweenTools,
|
|
1263
1289
|
Anthropic::Beta::BetaThinkingConfigAdaptive
|
|
1264
1290
|
),
|
|
1265
1291
|
tool_choice:
|
|
@@ -1408,9 +1434,8 @@ module Anthropic
|
|
|
1408
1434
|
end
|
|
1409
1435
|
end
|
|
1410
1436
|
|
|
1411
|
-
#
|
|
1412
|
-
#
|
|
1413
|
-
# combinations are rejected at create time.
|
|
1437
|
+
# The inference speed mode for this request. `"fast"` enables high
|
|
1438
|
+
# output-tokens-per-second inference.
|
|
1414
1439
|
module Speed
|
|
1415
1440
|
extend Anthropic::Internal::Type::Enum
|
|
1416
1441
|
|
|
@@ -37,6 +37,12 @@ module Anthropic
|
|
|
37
37
|
end
|
|
38
38
|
attr_writer :betas
|
|
39
39
|
|
|
40
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
41
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
42
|
+
#
|
|
43
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
44
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
45
|
+
# match that Workspace.
|
|
40
46
|
sig { returns(T.nilable(String)) }
|
|
41
47
|
attr_reader :workspace_id
|
|
42
48
|
|
|
@@ -57,6 +63,12 @@ module Anthropic
|
|
|
57
63
|
message_batch_id:,
|
|
58
64
|
# Optional header to specify the beta version(s) you want to use.
|
|
59
65
|
betas: nil,
|
|
66
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
67
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
68
|
+
#
|
|
69
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
70
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
71
|
+
# match that Workspace.
|
|
60
72
|
workspace_id: nil,
|
|
61
73
|
request_options: {}
|
|
62
74
|
)
|
|
@@ -58,6 +58,12 @@ module Anthropic
|
|
|
58
58
|
end
|
|
59
59
|
attr_writer :betas
|
|
60
60
|
|
|
61
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
62
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
63
|
+
#
|
|
64
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
65
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
66
|
+
# match that Workspace.
|
|
61
67
|
sig { returns(T.nilable(String)) }
|
|
62
68
|
attr_reader :workspace_id
|
|
63
69
|
|
|
@@ -88,6 +94,12 @@ module Anthropic
|
|
|
88
94
|
limit: nil,
|
|
89
95
|
# Optional header to specify the beta version(s) you want to use.
|
|
90
96
|
betas: nil,
|
|
97
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
98
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
99
|
+
#
|
|
100
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
101
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
102
|
+
# match that Workspace.
|
|
91
103
|
workspace_id: nil,
|
|
92
104
|
request_options: {}
|
|
93
105
|
)
|
|
@@ -37,6 +37,12 @@ module Anthropic
|
|
|
37
37
|
end
|
|
38
38
|
attr_writer :betas
|
|
39
39
|
|
|
40
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
41
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
42
|
+
#
|
|
43
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
44
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
45
|
+
# match that Workspace.
|
|
40
46
|
sig { returns(T.nilable(String)) }
|
|
41
47
|
attr_reader :workspace_id
|
|
42
48
|
|
|
@@ -57,6 +63,12 @@ module Anthropic
|
|
|
57
63
|
message_batch_id:,
|
|
58
64
|
# Optional header to specify the beta version(s) you want to use.
|
|
59
65
|
betas: nil,
|
|
66
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
67
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
68
|
+
#
|
|
69
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
70
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
71
|
+
# match that Workspace.
|
|
60
72
|
workspace_id: nil,
|
|
61
73
|
request_options: {}
|
|
62
74
|
)
|
|
@@ -37,6 +37,12 @@ module Anthropic
|
|
|
37
37
|
end
|
|
38
38
|
attr_writer :betas
|
|
39
39
|
|
|
40
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
41
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
42
|
+
#
|
|
43
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
44
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
45
|
+
# match that Workspace.
|
|
40
46
|
sig { returns(T.nilable(String)) }
|
|
41
47
|
attr_reader :workspace_id
|
|
42
48
|
|
|
@@ -57,6 +63,12 @@ module Anthropic
|
|
|
57
63
|
message_batch_id:,
|
|
58
64
|
# Optional header to specify the beta version(s) you want to use.
|
|
59
65
|
betas: nil,
|
|
66
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
67
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
68
|
+
#
|
|
69
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
70
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
71
|
+
# match that Workspace.
|
|
60
72
|
workspace_id: nil,
|
|
61
73
|
request_options: {}
|
|
62
74
|
)
|