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
|
@@ -60,6 +60,12 @@ module Anthropic
|
|
|
60
60
|
# pair and carries no deltas.
|
|
61
61
|
variant :fallback, -> { Anthropic::Beta::BetaFallbackBlock }
|
|
62
62
|
|
|
63
|
+
# The tool listing the server fetched from an MCP server while producing
|
|
64
|
+
# this response. Send the assistant message back unchanged, this block
|
|
65
|
+
# included, so later requests use this listing instead of asking the MCP
|
|
66
|
+
# server again.
|
|
67
|
+
variant :mcp_tool_listing, -> { Anthropic::Beta::BetaMCPToolListingBlock }
|
|
68
|
+
|
|
63
69
|
module Type
|
|
64
70
|
extend Anthropic::Internal::Type::Enum
|
|
65
71
|
|
|
@@ -80,13 +86,14 @@ module Anthropic
|
|
|
80
86
|
CONTAINER_UPLOAD = :container_upload
|
|
81
87
|
COMPACTION = :compaction
|
|
82
88
|
FALLBACK = :fallback
|
|
89
|
+
MCP_TOOL_LISTING = :mcp_tool_listing
|
|
83
90
|
|
|
84
91
|
# @!method self.values
|
|
85
92
|
# @return [Array<Symbol>]
|
|
86
93
|
end
|
|
87
94
|
|
|
88
95
|
# @!method self.variants
|
|
89
|
-
# @return [Array(Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock)]
|
|
96
|
+
# @return [Array(Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock, Anthropic::Models::Beta::BetaMCPToolListingBlock)]
|
|
90
97
|
|
|
91
98
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
92
99
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -130,14 +137,20 @@ module Anthropic
|
|
|
130
137
|
#
|
|
131
138
|
# @option args [String, nil] :encrypted_content Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
132
139
|
#
|
|
140
|
+
# @option args [Array<Anthropic::Models::Beta::BetaResponseToolAdditionBlock, Anthropic::Models::Beta::BetaResponseToolRemovalBlock>, nil] :tool_changes The tool changes of the compacted range: the `tool_addition` and `tool_removal`
|
|
141
|
+
#
|
|
133
142
|
# @option args [Anthropic::Models::Beta::BetaFallbackInfo] :from The model whose output ends at this point — the model that declined at this hop.
|
|
134
143
|
#
|
|
135
144
|
# @option args [Anthropic::Models::Beta::BetaFallbackInfo] :to The fallback model producing the content that follows this block. Its `model` is
|
|
136
145
|
#
|
|
137
146
|
# @option args [Anthropic::Models::Beta::BetaFallbackRefusalTrigger] :trigger What caused the `from` model to hand over at this hop.
|
|
138
147
|
#
|
|
148
|
+
# @option args [String] :mcp_server_name
|
|
149
|
+
#
|
|
150
|
+
# @option args [Array<Anthropic::Models::Beta::BetaMCPTool>] :tools
|
|
151
|
+
#
|
|
139
152
|
# @raise [ArgumentError]
|
|
140
|
-
# @return [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock]
|
|
153
|
+
# @return [Anthropic::Models::Beta::BetaTextBlock, Anthropic::Models::Beta::BetaThinkingBlock, Anthropic::Models::Beta::BetaRedactedThinkingBlock, Anthropic::Models::Beta::BetaToolUseBlock, Anthropic::Models::Beta::BetaServerToolUseBlock, Anthropic::Models::Beta::BetaWebSearchToolResultBlock, Anthropic::Models::Beta::BetaWebFetchToolResultBlock, Anthropic::Models::Beta::BetaAdvisorToolResultBlock, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlock, Anthropic::Models::Beta::BetaToolSearchToolResultBlock, Anthropic::Models::Beta::BetaMCPToolUseBlock, Anthropic::Models::Beta::BetaMCPToolResultBlock, Anthropic::Models::Beta::BetaContainerUploadBlock, Anthropic::Models::Beta::BetaCompactionBlock, Anthropic::Models::Beta::BetaFallbackBlock, Anthropic::Models::Beta::BetaMCPToolListingBlock]
|
|
141
154
|
def self.new(type:, **args)
|
|
142
155
|
case type.to_sym
|
|
143
156
|
when :text
|
|
@@ -174,6 +187,8 @@ module Anthropic
|
|
|
174
187
|
Anthropic::Beta::BetaCompactionBlock.new(**args)
|
|
175
188
|
when :fallback
|
|
176
189
|
Anthropic::Beta::BetaFallbackBlock.new(**args)
|
|
190
|
+
when :mcp_tool_listing
|
|
191
|
+
Anthropic::Beta::BetaMCPToolListingBlock.new(**args)
|
|
177
192
|
else
|
|
178
193
|
raise ArgumentError, "unknown type: #{type}"
|
|
179
194
|
end
|
|
@@ -67,20 +67,30 @@ module Anthropic
|
|
|
67
67
|
# treats these as no-ops. Empty string content is not allowed.
|
|
68
68
|
variant :compaction, -> { Anthropic::Beta::BetaCompactionBlockParam }
|
|
69
69
|
|
|
70
|
-
# Mid-conversation directive to
|
|
71
|
-
#
|
|
72
|
-
# ``tool``
|
|
73
|
-
# ``tools
|
|
74
|
-
#
|
|
70
|
+
# Mid-conversation directive to make a tool available.
|
|
71
|
+
#
|
|
72
|
+
# ``tool`` is a reference to a tool (or MCP toolset) declared in the
|
|
73
|
+
# request's ``tools``. Under the ``inline-tools-2026-09-15`` beta it may
|
|
74
|
+
# instead be a reference to a tool defined earlier in ``messages``, or a
|
|
75
|
+
# ``tool_definition`` object that carries an inline tool definition in
|
|
76
|
+
# ``definition`` (the same object a ``tools`` entry holds). An ``mcp_toolset``
|
|
77
|
+
# definition also requires the ``mcp-client-2026-09-15`` beta. The tool is
|
|
78
|
+
# offered to the model from this point in the conversation onward.
|
|
75
79
|
variant :tool_addition, -> { Anthropic::Beta::BetaRequestToolAdditionBlock }
|
|
76
80
|
|
|
77
81
|
# Mid-conversation directive to withdraw a tool.
|
|
78
82
|
#
|
|
79
|
-
# ``tool`` references a tool (or MCP toolset) by name
|
|
80
|
-
# ``tools
|
|
81
|
-
# conversation onward.
|
|
83
|
+
# ``tool`` references a tool (or MCP toolset) by name: one declared in the
|
|
84
|
+
# request's ``tools`` or defined earlier in ``messages``. It is no longer
|
|
85
|
+
# offered to the model from this point in the conversation onward.
|
|
82
86
|
variant :tool_removal, -> { Anthropic::Beta::BetaRequestToolRemovalBlock }
|
|
83
87
|
|
|
88
|
+
# The tool listing an MCP server returned while an earlier response was
|
|
89
|
+
# produced, as that response carried it. Send the assistant message back
|
|
90
|
+
# unchanged, this block included, and the server uses this listing for the
|
|
91
|
+
# matching `mcp_toolset` instead of asking the MCP server again.
|
|
92
|
+
variant :mcp_tool_listing, -> { Anthropic::Beta::BetaMCPToolListingBlockParam }
|
|
93
|
+
|
|
84
94
|
# A `fallback` block echoed back from a prior response.
|
|
85
95
|
#
|
|
86
96
|
# Accepted in `messages[].content` and not rendered into the prompt; not
|
|
@@ -121,6 +131,7 @@ module Anthropic
|
|
|
121
131
|
COMPACTION = :compaction
|
|
122
132
|
TOOL_ADDITION = :tool_addition
|
|
123
133
|
TOOL_REMOVAL = :tool_removal
|
|
134
|
+
MCP_TOOL_LISTING = :mcp_tool_listing
|
|
124
135
|
FALLBACK = :fallback
|
|
125
136
|
|
|
126
137
|
# @!method self.values
|
|
@@ -128,7 +139,7 @@ module Anthropic
|
|
|
128
139
|
end
|
|
129
140
|
|
|
130
141
|
# @!method self.variants
|
|
131
|
-
# @return [Array(Anthropic::Models::Beta::BetaTextBlockParam, Anthropic::Models::Beta::BetaImageBlockParam, Anthropic::Models::Beta::BetaRequestDocumentBlock, Anthropic::Models::Beta::BetaSearchResultBlockParam, Anthropic::Models::Beta::BetaThinkingBlockParam, Anthropic::Models::Beta::BetaRedactedThinkingBlockParam, Anthropic::Models::Beta::BetaToolUseBlockParam, Anthropic::Models::Beta::BetaToolResultBlockParam, Anthropic::Models::Beta::BetaServerToolUseBlockParam, Anthropic::Models::Beta::BetaWebSearchToolResultBlockParam, Anthropic::Models::Beta::BetaWebFetchToolResultBlockParam, Anthropic::Models::Beta::BetaAdvisorToolResultBlockParam, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaToolSearchToolResultBlockParam, Anthropic::Models::Beta::BetaMCPToolUseBlockParam, Anthropic::Models::Beta::BetaRequestMCPToolResultBlockParam, Anthropic::Models::Beta::BetaContainerUploadBlockParam, Anthropic::Models::Beta::BetaCompactionBlockParam, Anthropic::Models::Beta::BetaRequestToolAdditionBlock, Anthropic::Models::Beta::BetaRequestToolRemovalBlock, Anthropic::Models::Beta::BetaFallbackBlockParam)]
|
|
142
|
+
# @return [Array(Anthropic::Models::Beta::BetaTextBlockParam, Anthropic::Models::Beta::BetaImageBlockParam, Anthropic::Models::Beta::BetaRequestDocumentBlock, Anthropic::Models::Beta::BetaSearchResultBlockParam, Anthropic::Models::Beta::BetaThinkingBlockParam, Anthropic::Models::Beta::BetaRedactedThinkingBlockParam, Anthropic::Models::Beta::BetaToolUseBlockParam, Anthropic::Models::Beta::BetaToolResultBlockParam, Anthropic::Models::Beta::BetaServerToolUseBlockParam, Anthropic::Models::Beta::BetaWebSearchToolResultBlockParam, Anthropic::Models::Beta::BetaWebFetchToolResultBlockParam, Anthropic::Models::Beta::BetaAdvisorToolResultBlockParam, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaToolSearchToolResultBlockParam, Anthropic::Models::Beta::BetaMCPToolUseBlockParam, Anthropic::Models::Beta::BetaRequestMCPToolResultBlockParam, Anthropic::Models::Beta::BetaContainerUploadBlockParam, Anthropic::Models::Beta::BetaCompactionBlockParam, Anthropic::Models::Beta::BetaRequestToolAdditionBlock, Anthropic::Models::Beta::BetaRequestToolRemovalBlock, Anthropic::Models::Beta::BetaMCPToolListingBlockParam, Anthropic::Models::Beta::BetaFallbackBlockParam)]
|
|
132
143
|
|
|
133
144
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
134
145
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -182,7 +193,13 @@ module Anthropic
|
|
|
182
193
|
#
|
|
183
194
|
# @option args [String, nil] :encrypted_content Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
184
195
|
#
|
|
185
|
-
# @option args [Anthropic::Models::Beta::
|
|
196
|
+
# @option args [Array<Anthropic::Models::Beta::BetaRequestToolAdditionBlock, Anthropic::Models::Beta::BetaRequestToolRemovalBlock>, nil] :tool_changes The tool changes of the compacted range, as the server returned them on this blo
|
|
197
|
+
#
|
|
198
|
+
# @option args [Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference, Anthropic::Models::Beta::BetaToolChangeToolDefinitionParam, Anthropic::Models::Beta::BetaToolChangeToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolReference, Anthropic::Models::Beta::BetaToolChangeMCPToolsetReference] :tool
|
|
199
|
+
#
|
|
200
|
+
# @option args [String] :mcp_server_name The name of the MCP server this listing came from, as `mcp_servers` declares it.
|
|
201
|
+
#
|
|
202
|
+
# @option args [Array<Anthropic::Models::Beta::BetaMCPToolParam>] :tools The server's tools, exactly as the response listed them.
|
|
186
203
|
#
|
|
187
204
|
# @option args [Anthropic::Models::Beta::BetaFallbackInfoParam] :from Identifies one hop of a fallback transition.
|
|
188
205
|
#
|
|
@@ -191,7 +208,7 @@ module Anthropic
|
|
|
191
208
|
# @option args [Object] :trigger The response block's `trigger`, echoed verbatim. Accepted and ignored by the ser
|
|
192
209
|
#
|
|
193
210
|
# @raise [ArgumentError]
|
|
194
|
-
# @return [Anthropic::Models::Beta::BetaTextBlockParam, Anthropic::Models::Beta::BetaImageBlockParam, Anthropic::Models::Beta::BetaRequestDocumentBlock, Anthropic::Models::Beta::BetaSearchResultBlockParam, Anthropic::Models::Beta::BetaThinkingBlockParam, Anthropic::Models::Beta::BetaRedactedThinkingBlockParam, Anthropic::Models::Beta::BetaToolUseBlockParam, Anthropic::Models::Beta::BetaToolResultBlockParam, Anthropic::Models::Beta::BetaServerToolUseBlockParam, Anthropic::Models::Beta::BetaWebSearchToolResultBlockParam, Anthropic::Models::Beta::BetaWebFetchToolResultBlockParam, Anthropic::Models::Beta::BetaAdvisorToolResultBlockParam, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaToolSearchToolResultBlockParam, Anthropic::Models::Beta::BetaMCPToolUseBlockParam, Anthropic::Models::Beta::BetaRequestMCPToolResultBlockParam, Anthropic::Models::Beta::BetaContainerUploadBlockParam, Anthropic::Models::Beta::BetaCompactionBlockParam, Anthropic::Models::Beta::BetaRequestToolAdditionBlock, Anthropic::Models::Beta::BetaRequestToolRemovalBlock, Anthropic::Models::Beta::BetaFallbackBlockParam]
|
|
211
|
+
# @return [Anthropic::Models::Beta::BetaTextBlockParam, Anthropic::Models::Beta::BetaImageBlockParam, Anthropic::Models::Beta::BetaRequestDocumentBlock, Anthropic::Models::Beta::BetaSearchResultBlockParam, Anthropic::Models::Beta::BetaThinkingBlockParam, Anthropic::Models::Beta::BetaRedactedThinkingBlockParam, Anthropic::Models::Beta::BetaToolUseBlockParam, Anthropic::Models::Beta::BetaToolResultBlockParam, Anthropic::Models::Beta::BetaServerToolUseBlockParam, Anthropic::Models::Beta::BetaWebSearchToolResultBlockParam, Anthropic::Models::Beta::BetaWebFetchToolResultBlockParam, Anthropic::Models::Beta::BetaAdvisorToolResultBlockParam, Anthropic::Models::Beta::BetaCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultBlockParam, Anthropic::Models::Beta::BetaToolSearchToolResultBlockParam, Anthropic::Models::Beta::BetaMCPToolUseBlockParam, Anthropic::Models::Beta::BetaRequestMCPToolResultBlockParam, Anthropic::Models::Beta::BetaContainerUploadBlockParam, Anthropic::Models::Beta::BetaCompactionBlockParam, Anthropic::Models::Beta::BetaRequestToolAdditionBlock, Anthropic::Models::Beta::BetaRequestToolRemovalBlock, Anthropic::Models::Beta::BetaMCPToolListingBlockParam, Anthropic::Models::Beta::BetaFallbackBlockParam]
|
|
195
212
|
def self.new(type:, **args)
|
|
196
213
|
case type.to_sym
|
|
197
214
|
when :text
|
|
@@ -238,6 +255,8 @@ module Anthropic
|
|
|
238
255
|
Anthropic::Beta::BetaRequestToolAdditionBlock.new(**args)
|
|
239
256
|
when :tool_removal
|
|
240
257
|
Anthropic::Beta::BetaRequestToolRemovalBlock.new(**args)
|
|
258
|
+
when :mcp_tool_listing
|
|
259
|
+
Anthropic::Beta::BetaMCPToolListingBlockParam.new(**args)
|
|
241
260
|
when :fallback
|
|
242
261
|
Anthropic::Beta::BetaFallbackBlockParam.new(**args)
|
|
243
262
|
else
|
|
@@ -5,19 +5,19 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaContextManagementCapability < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute clear_thinking_20251015
|
|
8
|
-
#
|
|
8
|
+
# Whether the clear_thinking_20251015 strategy is supported.
|
|
9
9
|
#
|
|
10
10
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
11
11
|
required :clear_thinking_20251015, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true
|
|
12
12
|
|
|
13
13
|
# @!attribute clear_tool_uses_20250919
|
|
14
|
-
#
|
|
14
|
+
# Whether the clear_tool_uses_20250919 strategy is supported.
|
|
15
15
|
#
|
|
16
16
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
17
17
|
required :clear_tool_uses_20250919, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute compact_20260112
|
|
20
|
-
#
|
|
20
|
+
# Whether the compact_20260112 strategy is supported.
|
|
21
21
|
#
|
|
22
22
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
23
23
|
required :compact_20260112, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true
|
|
@@ -31,11 +31,11 @@ module Anthropic
|
|
|
31
31
|
# @!method initialize(clear_thinking_20251015:, clear_tool_uses_20250919:, compact_20260112:, supported:)
|
|
32
32
|
# Context management capability details.
|
|
33
33
|
#
|
|
34
|
-
# @param clear_thinking_20251015 [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
34
|
+
# @param clear_thinking_20251015 [Anthropic::Models::Beta::BetaCapabilitySupport, nil] Whether the clear_thinking_20251015 strategy is supported.
|
|
35
35
|
#
|
|
36
|
-
# @param clear_tool_uses_20250919 [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
36
|
+
# @param clear_tool_uses_20250919 [Anthropic::Models::Beta::BetaCapabilitySupport, nil] Whether the clear_tool_uses_20250919 strategy is supported.
|
|
37
37
|
#
|
|
38
|
-
# @param compact_20260112 [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
38
|
+
# @param compact_20260112 [Anthropic::Models::Beta::BetaCapabilitySupport, nil] Whether the compact_20260112 strategy is supported.
|
|
39
39
|
#
|
|
40
40
|
# @param supported [Boolean] Whether this capability is supported by the model.
|
|
41
41
|
end
|
|
@@ -11,94 +11,16 @@ module Anthropic
|
|
|
11
11
|
# completed.
|
|
12
12
|
#
|
|
13
13
|
# @return [Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable, nil]
|
|
14
|
-
required :cache_miss_reason,
|
|
15
|
-
union: -> {
|
|
16
|
-
Anthropic::Beta::BetaDiagnostics::CacheMissReason
|
|
17
|
-
},
|
|
18
|
-
nil?: true
|
|
14
|
+
required :cache_miss_reason, union: -> { Anthropic::Beta::BetaCacheMissReason }, nil?: true
|
|
19
15
|
|
|
20
16
|
# @!method initialize(cache_miss_reason:)
|
|
21
|
-
#
|
|
22
|
-
#
|
|
17
|
+
# Request-level diagnostics: why the prompt cache could not fully reuse the prefix
|
|
18
|
+
# of the request named by `diagnostics.previous_message_id`.
|
|
23
19
|
#
|
|
24
20
|
# Some parameter documentations has been truncated, see
|
|
25
21
|
# {Anthropic::Models::Beta::BetaDiagnostics} for more details.
|
|
26
22
|
#
|
|
27
23
|
# @param cache_miss_reason [Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable, nil] Explains why the prompt cache could not fully reuse the prefix from the request
|
|
28
|
-
|
|
29
|
-
# Explains why the prompt cache could not fully reuse the prefix from the request
|
|
30
|
-
# identified by `diagnostics.previous_message_id`. `null` means diagnosis is still
|
|
31
|
-
# pending — the response was serialized before the background comparison
|
|
32
|
-
# completed.
|
|
33
|
-
#
|
|
34
|
-
# @see Anthropic::Models::Beta::BetaDiagnostics#cache_miss_reason
|
|
35
|
-
module CacheMissReason
|
|
36
|
-
extend Anthropic::Internal::Type::Union
|
|
37
|
-
|
|
38
|
-
discriminator :type
|
|
39
|
-
|
|
40
|
-
variant :model_changed, -> { Anthropic::Beta::BetaCacheMissModelChanged }
|
|
41
|
-
|
|
42
|
-
variant :system_changed, -> { Anthropic::Beta::BetaCacheMissSystemChanged }
|
|
43
|
-
|
|
44
|
-
variant :tools_changed, -> { Anthropic::Beta::BetaCacheMissToolsChanged }
|
|
45
|
-
|
|
46
|
-
variant :messages_changed, -> { Anthropic::Beta::BetaCacheMissMessagesChanged }
|
|
47
|
-
|
|
48
|
-
variant :previous_message_not_found, -> { Anthropic::Beta::BetaCacheMissPreviousMessageNotFound }
|
|
49
|
-
|
|
50
|
-
variant :unavailable, -> { Anthropic::Beta::BetaCacheMissUnavailable }
|
|
51
|
-
|
|
52
|
-
module Type
|
|
53
|
-
extend Anthropic::Internal::Type::Enum
|
|
54
|
-
|
|
55
|
-
MODEL_CHANGED = :model_changed
|
|
56
|
-
SYSTEM_CHANGED = :system_changed
|
|
57
|
-
TOOLS_CHANGED = :tools_changed
|
|
58
|
-
MESSAGES_CHANGED = :messages_changed
|
|
59
|
-
PREVIOUS_MESSAGE_NOT_FOUND = :previous_message_not_found
|
|
60
|
-
UNAVAILABLE = :unavailable
|
|
61
|
-
|
|
62
|
-
# @!method self.values
|
|
63
|
-
# @return [Array<Symbol>]
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# @!method self.variants
|
|
67
|
-
# @return [Array(Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable)]
|
|
68
|
-
|
|
69
|
-
# Creates a new instance of the variant class whose `type` matches the given
|
|
70
|
-
# value, passing the remaining arguments to its constructor.
|
|
71
|
-
#
|
|
72
|
-
# Some parameter documentations has been truncated, see
|
|
73
|
-
# {Anthropic::Models::Beta::BetaDiagnostics::CacheMissReason} for more details.
|
|
74
|
-
#
|
|
75
|
-
# @param type [Symbol, Anthropic::Models::Beta::BetaDiagnostics::CacheMissReason::Type, String]
|
|
76
|
-
#
|
|
77
|
-
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
78
|
-
#
|
|
79
|
-
# @option args [Integer] :cache_missed_input_tokens Approximate number of input tokens that would have been read from cache had the
|
|
80
|
-
#
|
|
81
|
-
# @raise [ArgumentError]
|
|
82
|
-
# @return [Anthropic::Models::Beta::BetaCacheMissModelChanged, Anthropic::Models::Beta::BetaCacheMissSystemChanged, Anthropic::Models::Beta::BetaCacheMissToolsChanged, Anthropic::Models::Beta::BetaCacheMissMessagesChanged, Anthropic::Models::Beta::BetaCacheMissPreviousMessageNotFound, Anthropic::Models::Beta::BetaCacheMissUnavailable]
|
|
83
|
-
def self.new(type:, **args)
|
|
84
|
-
case type.to_sym
|
|
85
|
-
when :model_changed
|
|
86
|
-
Anthropic::Beta::BetaCacheMissModelChanged.new(**args)
|
|
87
|
-
when :system_changed
|
|
88
|
-
Anthropic::Beta::BetaCacheMissSystemChanged.new(**args)
|
|
89
|
-
when :tools_changed
|
|
90
|
-
Anthropic::Beta::BetaCacheMissToolsChanged.new(**args)
|
|
91
|
-
when :messages_changed
|
|
92
|
-
Anthropic::Beta::BetaCacheMissMessagesChanged.new(**args)
|
|
93
|
-
when :previous_message_not_found
|
|
94
|
-
Anthropic::Beta::BetaCacheMissPreviousMessageNotFound.new(**args)
|
|
95
|
-
when :unavailable
|
|
96
|
-
Anthropic::Beta::BetaCacheMissUnavailable.new(**args)
|
|
97
|
-
else
|
|
98
|
-
raise ArgumentError, "unknown type: #{type}"
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
24
|
end
|
|
103
25
|
end
|
|
104
26
|
|
|
@@ -6,68 +6,105 @@ module Anthropic
|
|
|
6
6
|
# @see Anthropic::Resources::Beta::Dreams#create
|
|
7
7
|
class BetaDream < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute id
|
|
9
|
+
# The unique ID of the dream (`drm_...`).
|
|
9
10
|
#
|
|
10
11
|
# @return [String]
|
|
11
12
|
required :id, String
|
|
12
13
|
|
|
13
14
|
# @!attribute archived_at
|
|
14
|
-
#
|
|
15
|
+
# When the dream was archived, in RFC 3339, or `null` if it hasn't been archived.
|
|
15
16
|
#
|
|
16
17
|
# @return [Time, nil]
|
|
17
18
|
required :archived_at, Time, nil?: true
|
|
18
19
|
|
|
19
20
|
# @!attribute created_at
|
|
20
|
-
#
|
|
21
|
+
# When the dream was created, in RFC 3339.
|
|
22
|
+
#
|
|
23
|
+
# Lists of dreams are sorted by this time, newest first.
|
|
21
24
|
#
|
|
22
25
|
# @return [Time]
|
|
23
26
|
required :created_at, Time
|
|
24
27
|
|
|
25
28
|
# @!attribute ended_at
|
|
26
|
-
#
|
|
29
|
+
# When the dream reached `completed`, `failed`, or `canceled`, in RFC 3339, or
|
|
30
|
+
# `null` if it is still `pending` or `running`.
|
|
27
31
|
#
|
|
28
32
|
# @return [Time, nil]
|
|
29
33
|
required :ended_at, Time, nil?: true
|
|
30
34
|
|
|
31
35
|
# @!attribute error
|
|
32
|
-
#
|
|
36
|
+
# Why the dream failed, or `null` if `status` isn't `failed`.
|
|
33
37
|
#
|
|
34
38
|
# @return [Anthropic::Models::Beta::BetaDreamError, nil]
|
|
35
39
|
required :error, -> { Anthropic::Beta::BetaDreamError }, nil?: true
|
|
36
40
|
|
|
37
41
|
# @!attribute inputs
|
|
42
|
+
# The sources that the dream reads, from the request that created it.
|
|
38
43
|
#
|
|
39
44
|
# @return [Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>]
|
|
40
45
|
required :inputs, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaDreamInput] }
|
|
41
46
|
|
|
42
47
|
# @!attribute instructions
|
|
48
|
+
# The guidance given when the dream was created, or `null` if none was given.
|
|
43
49
|
#
|
|
44
50
|
# @return [String, nil]
|
|
45
51
|
required :instructions, String, nil?: true
|
|
46
52
|
|
|
47
53
|
# @!attribute model
|
|
48
|
-
#
|
|
49
|
-
#
|
|
54
|
+
# The model that runs a dream, from the request that created it.
|
|
55
|
+
#
|
|
56
|
+
# The dream uses this model for all of its work. The response always gives the
|
|
57
|
+
# model as an object, even if the request gave only a model ID.
|
|
50
58
|
#
|
|
51
59
|
# @return [Anthropic::Models::Beta::BetaDreamModelConfig]
|
|
52
60
|
required :model, -> { Anthropic::Beta::BetaDreamModelConfig }
|
|
53
61
|
|
|
54
62
|
# @!attribute output_behavior
|
|
63
|
+
# Where the dream writes its result, as set in the request that created the dream.
|
|
64
|
+
# If that request left out `output_behavior`, the dream used the `create_new`
|
|
65
|
+
# behavior.
|
|
55
66
|
#
|
|
56
67
|
# @return [Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, Anthropic::Models::Beta::BetaOutputBehaviorUpdateExisting]
|
|
57
68
|
required :output_behavior, union: -> { Anthropic::Beta::BetaOutputBehavior }
|
|
58
69
|
|
|
59
70
|
# @!attribute outputs
|
|
71
|
+
# The memory store that holds the dream's result, as a one-item array, or an empty
|
|
72
|
+
# array until the dream records that memory store.
|
|
73
|
+
#
|
|
74
|
+
# The array is empty while the dream is `pending` and for a short time after it
|
|
75
|
+
# starts `running`. It can stay empty if the dream fails or is canceled before
|
|
76
|
+
# then. The memory store holds the complete result only once `status` is
|
|
77
|
+
# `completed`.
|
|
78
|
+
#
|
|
79
|
+
# See the
|
|
80
|
+
# [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#use-the-output)
|
|
81
|
+
# for how to review and use the result.
|
|
60
82
|
#
|
|
61
83
|
# @return [Array<Anthropic::Models::Beta::BetaDreamOutput>]
|
|
62
84
|
required :outputs, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaDreamOutput] }
|
|
63
85
|
|
|
64
86
|
# @!attribute session_id
|
|
87
|
+
# The ID of the session that runs the dream (`sesn_...`), or `null` if that
|
|
88
|
+
# session hasn't started.
|
|
89
|
+
#
|
|
90
|
+
# Stream that session's events to follow what the dream reads and writes.
|
|
91
|
+
#
|
|
92
|
+
# See the
|
|
93
|
+
# [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#watch-the-pipeline-run)
|
|
94
|
+
# for how to watch a running dream.
|
|
65
95
|
#
|
|
66
96
|
# @return [String, nil]
|
|
67
97
|
required :session_id, String, nil?: true
|
|
68
98
|
|
|
69
99
|
# @!attribute status
|
|
70
|
-
#
|
|
100
|
+
# Where a dream is in its lifecycle.
|
|
101
|
+
#
|
|
102
|
+
# `completed`, `failed`, and `canceled` are final: once a dream has one of these
|
|
103
|
+
# statuses, its status doesn't change again.
|
|
104
|
+
#
|
|
105
|
+
# See the
|
|
106
|
+
# [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#lifecycle)
|
|
107
|
+
# for what each status means.
|
|
71
108
|
#
|
|
72
109
|
# @return [Symbol, Anthropic::Models::Beta::BetaDreamStatus]
|
|
73
110
|
required :status, enum: -> { Anthropic::Beta::BetaDreamStatus }
|
|
@@ -78,49 +115,58 @@ module Anthropic
|
|
|
78
115
|
required :type, enum: -> { Anthropic::Beta::BetaDream::Type }
|
|
79
116
|
|
|
80
117
|
# @!attribute usage
|
|
81
|
-
#
|
|
118
|
+
# The dream's token counts, which stop changing once its `status` is `completed`
|
|
119
|
+
# or `failed`. After a cancel, they can keep changing.
|
|
82
120
|
#
|
|
83
121
|
# @return [Anthropic::Models::Beta::BetaDreamUsage]
|
|
84
122
|
required :usage, -> { Anthropic::Beta::BetaDreamUsage }
|
|
85
123
|
|
|
86
124
|
# @!method initialize(id:, archived_at:, created_at:, ended_at:, error:, inputs:, instructions:, model:, output_behavior:, outputs:, session_id:, status:, type:, usage:)
|
|
87
|
-
# An asynchronous
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
125
|
+
# An asynchronous job that reads a memory store and past sessions, then writes a
|
|
126
|
+
# reorganized version of that memory store.
|
|
127
|
+
#
|
|
128
|
+
# By default the dream writes its result to a new memory store and doesn't change
|
|
129
|
+
# the input memory store. With `output_behavior` set to `update_existing`, it
|
|
130
|
+
# writes its result into the input memory store instead.
|
|
131
|
+
#
|
|
132
|
+
# The Dreams API is in research preview: the request and response shapes are
|
|
133
|
+
# volatile and may change without the deprecation period that applies to
|
|
92
134
|
# generally-available endpoints.
|
|
93
135
|
#
|
|
136
|
+
# See the
|
|
137
|
+
# [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#how-it-works)
|
|
138
|
+
# for what a dream reads and produces.
|
|
139
|
+
#
|
|
94
140
|
# Some parameter documentations has been truncated, see
|
|
95
141
|
# {Anthropic::Models::Beta::BetaDream} for more details.
|
|
96
142
|
#
|
|
97
|
-
# @param id [String]
|
|
143
|
+
# @param id [String] The unique ID of the dream (`drm_...`).
|
|
98
144
|
#
|
|
99
|
-
# @param archived_at [Time, nil]
|
|
145
|
+
# @param archived_at [Time, nil] When the dream was archived, in RFC 3339, or `null` if it hasn't been archived.
|
|
100
146
|
#
|
|
101
|
-
# @param created_at [Time]
|
|
147
|
+
# @param created_at [Time] When the dream was created, in RFC 3339.
|
|
102
148
|
#
|
|
103
|
-
# @param ended_at [Time, nil]
|
|
149
|
+
# @param ended_at [Time, nil] When the dream reached `completed`, `failed`, or `canceled`, in RFC 3339, or `nu
|
|
104
150
|
#
|
|
105
|
-
# @param error [Anthropic::Models::Beta::BetaDreamError, nil]
|
|
151
|
+
# @param error [Anthropic::Models::Beta::BetaDreamError, nil] Why the dream failed, or `null` if `status` isn't `failed`.
|
|
106
152
|
#
|
|
107
|
-
# @param inputs [Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>]
|
|
153
|
+
# @param inputs [Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>] The sources that the dream reads, from the request that created it.
|
|
108
154
|
#
|
|
109
|
-
# @param instructions [String, nil]
|
|
155
|
+
# @param instructions [String, nil] The guidance given when the dream was created, or `null` if none was given.
|
|
110
156
|
#
|
|
111
|
-
# @param model [Anthropic::Models::Beta::BetaDreamModelConfig]
|
|
157
|
+
# @param model [Anthropic::Models::Beta::BetaDreamModelConfig] The model that runs a dream, from the request that created it.
|
|
112
158
|
#
|
|
113
|
-
# @param output_behavior [Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, Anthropic::Models::Beta::BetaOutputBehaviorUpdateExisting]
|
|
159
|
+
# @param output_behavior [Anthropic::Models::Beta::BetaOutputBehaviorCreateNew, Anthropic::Models::Beta::BetaOutputBehaviorUpdateExisting] Where the dream writes its result, as set in the request that created the dream.
|
|
114
160
|
#
|
|
115
|
-
# @param outputs [Array<Anthropic::Models::Beta::BetaDreamOutput>]
|
|
161
|
+
# @param outputs [Array<Anthropic::Models::Beta::BetaDreamOutput>] The memory store that holds the dream's result, as a one-item array, or an empty
|
|
116
162
|
#
|
|
117
|
-
# @param session_id [String, nil]
|
|
163
|
+
# @param session_id [String, nil] The ID of the session that runs the dream (`sesn_...`), or `null` if that sessio
|
|
118
164
|
#
|
|
119
|
-
# @param status [Symbol, Anthropic::Models::Beta::BetaDreamStatus]
|
|
165
|
+
# @param status [Symbol, Anthropic::Models::Beta::BetaDreamStatus] Where a dream is in its lifecycle.
|
|
120
166
|
#
|
|
121
167
|
# @param type [Symbol, Anthropic::Models::Beta::BetaDream::Type]
|
|
122
168
|
#
|
|
123
|
-
# @param usage [Anthropic::Models::Beta::BetaDreamUsage]
|
|
169
|
+
# @param usage [Anthropic::Models::Beta::BetaDreamUsage] The dream's token counts, which stop changing once its `status` is `completed` o
|
|
124
170
|
|
|
125
171
|
# @see Anthropic::Models::Beta::BetaDream#type
|
|
126
172
|
module Type
|
|
@@ -5,11 +5,17 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaDreamError < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute message
|
|
8
|
+
# A human-readable explanation of why the dream failed.
|
|
8
9
|
#
|
|
9
10
|
# @return [String]
|
|
10
11
|
required :message, String
|
|
11
12
|
|
|
12
13
|
# @!attribute type
|
|
14
|
+
# A code for why the dream failed, such as `timeout` or `internal_error`.
|
|
15
|
+
#
|
|
16
|
+
# The
|
|
17
|
+
# [Dreams guide](https://platform.claude.com/docs/en/managed-agents/dreams#errors)
|
|
18
|
+
# lists common error codes and when they occur.
|
|
13
19
|
#
|
|
14
20
|
# @return [String]
|
|
15
21
|
required :type, String
|
|
@@ -17,8 +23,12 @@ module Anthropic
|
|
|
17
23
|
# @!method initialize(message:, type:)
|
|
18
24
|
# Failure detail for a Dream whose `status` is `failed`.
|
|
19
25
|
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::BetaDreamError} for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param message [String] A human-readable explanation of why the dream failed.
|
|
30
|
+
#
|
|
31
|
+
# @param type [String] A code for why the dream failed, such as `timeout` or `internal_error`.
|
|
22
32
|
end
|
|
23
33
|
end
|
|
24
34
|
|
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
+
# A source that a dream reads, such as a memory store or a set of sessions.
|
|
6
7
|
module BetaDreamInput
|
|
7
8
|
extend Anthropic::Internal::Type::Union
|
|
8
9
|
|
|
9
10
|
discriminator :type
|
|
10
11
|
|
|
11
|
-
#
|
|
12
|
+
# The memory store that a dream reads, given as an entry in `inputs`.
|
|
13
|
+
#
|
|
14
|
+
# With `output_behavior` set to `update_existing`, the dream writes its result into this memory store. Otherwise the dream doesn't change it.
|
|
12
15
|
variant :memory_store, -> { Anthropic::Beta::BetaDreamMemoryStoreInput }
|
|
13
16
|
|
|
14
|
-
#
|
|
17
|
+
# The sessions that a dream reads, given as an entry in `inputs`.
|
|
15
18
|
variant :sessions, -> { Anthropic::Beta::BetaDreamSessionsInput }
|
|
16
19
|
|
|
17
20
|
module Type
|
|
@@ -30,13 +33,16 @@ module Anthropic
|
|
|
30
33
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
31
34
|
# value, passing the remaining arguments to its constructor.
|
|
32
35
|
#
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {Anthropic::Models::Beta::BetaDreamInput} for more details.
|
|
38
|
+
#
|
|
33
39
|
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamInput::Type, String]
|
|
34
40
|
#
|
|
35
41
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
36
42
|
#
|
|
37
|
-
# @option args [String] :memory_store_id
|
|
43
|
+
# @option args [String] :memory_store_id The ID of the memory store for the dream to read (`memstore_...`).
|
|
38
44
|
#
|
|
39
|
-
# @option args [Array<String>] :session_ids
|
|
45
|
+
# @option args [Array<String>] :session_ids The IDs of the sessions whose transcripts the dream reads (`sesn_...`).
|
|
40
46
|
#
|
|
41
47
|
# @raise [ArgumentError]
|
|
42
48
|
# @return [Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput]
|
|
@@ -5,6 +5,10 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaDreamMemoryStoreInput < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute memory_store_id
|
|
8
|
+
# The ID of the memory store for the dream to read (`memstore_...`).
|
|
9
|
+
#
|
|
10
|
+
# The memory store must be in the same workspace as the dream and must not be
|
|
11
|
+
# archived.
|
|
8
12
|
#
|
|
9
13
|
# @return [String]
|
|
10
14
|
required :memory_store_id, String
|
|
@@ -15,11 +19,16 @@ module Anthropic
|
|
|
15
19
|
required :type, enum: -> { Anthropic::Beta::BetaDreamMemoryStoreInput::Type }
|
|
16
20
|
|
|
17
21
|
# @!method initialize(memory_store_id:, type:)
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
22
|
+
# The memory store that a dream reads, given as an entry in `inputs`.
|
|
23
|
+
#
|
|
24
|
+
# With `output_behavior` set to `update_existing`, the dream writes its result
|
|
25
|
+
# into this memory store. Otherwise the dream doesn't change it.
|
|
26
|
+
#
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::BetaDreamMemoryStoreInput} for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param memory_store_id [String] The ID of the memory store for the dream to read (`memstore_...`).
|
|
21
31
|
#
|
|
22
|
-
# @param memory_store_id [String]
|
|
23
32
|
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreInput::Type]
|
|
24
33
|
|
|
25
34
|
# @see Anthropic::Models::Beta::BetaDreamMemoryStoreInput#type
|
|
@@ -5,6 +5,10 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaDreamMemoryStoreOutput < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute memory_store_id
|
|
8
|
+
# The ID of the memory store that the dream writes its result to (`memstore_...`).
|
|
9
|
+
#
|
|
10
|
+
# With `output_behavior` set to `create_new`, this is a new memory store. With
|
|
11
|
+
# `update_existing`, it is the input memory store.
|
|
8
12
|
#
|
|
9
13
|
# @return [String]
|
|
10
14
|
required :memory_store_id, String
|
|
@@ -15,9 +19,13 @@ module Anthropic
|
|
|
15
19
|
required :type, enum: -> { Anthropic::Beta::BetaDreamMemoryStoreOutput::Type }
|
|
16
20
|
|
|
17
21
|
# @!method initialize(memory_store_id:, type:)
|
|
18
|
-
#
|
|
22
|
+
# The memory store that holds a dream's result, as an entry in `outputs`.
|
|
23
|
+
#
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Anthropic::Models::Beta::BetaDreamMemoryStoreOutput} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param memory_store_id [String] The ID of the memory store that the dream writes its result to (`memstore_...`).
|
|
19
28
|
#
|
|
20
|
-
# @param memory_store_id [String]
|
|
21
29
|
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreOutput::Type]
|
|
22
30
|
|
|
23
31
|
# @see Anthropic::Models::Beta::BetaDreamMemoryStoreOutput#type
|