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
|
@@ -51,9 +51,7 @@ module Anthropic
|
|
|
51
51
|
sig { returns(T.nilable(String)) }
|
|
52
52
|
attr_accessor :inference_geo
|
|
53
53
|
|
|
54
|
-
# Inference speed mode.
|
|
55
|
-
# generation at premium pricing. Not all models support `fast`; invalid
|
|
56
|
-
# combinations are rejected at create time.
|
|
54
|
+
# Inference speed mode. Defaults to `standard`.
|
|
57
55
|
sig do
|
|
58
56
|
returns(
|
|
59
57
|
T.nilable(
|
|
@@ -100,9 +98,7 @@ module Anthropic
|
|
|
100
98
|
# workspace's default_inference_geo. On update, `model` is whole-object
|
|
101
99
|
# replacement — omitting inference_geo clears it.
|
|
102
100
|
inference_geo: nil,
|
|
103
|
-
# Inference speed mode.
|
|
104
|
-
# generation at premium pricing. Not all models support `fast`; invalid
|
|
105
|
-
# combinations are rejected at create time.
|
|
101
|
+
# Inference speed mode. Defaults to `standard`.
|
|
106
102
|
speed: nil
|
|
107
103
|
)
|
|
108
104
|
end
|
|
@@ -227,9 +223,7 @@ module Anthropic
|
|
|
227
223
|
end
|
|
228
224
|
end
|
|
229
225
|
|
|
230
|
-
# Inference speed mode.
|
|
231
|
-
# generation at premium pricing. Not all models support `fast`; invalid
|
|
232
|
-
# combinations are rejected at create time.
|
|
226
|
+
# Inference speed mode. Defaults to `standard`.
|
|
233
227
|
module Speed
|
|
234
228
|
extend Anthropic::Internal::Type::Enum
|
|
235
229
|
|
|
@@ -41,8 +41,8 @@ module Anthropic
|
|
|
41
41
|
end
|
|
42
42
|
attr_accessor :type
|
|
43
43
|
|
|
44
|
-
#
|
|
45
|
-
#
|
|
44
|
+
# Multiagent orchestration configuration. Currently supports the `coordinator`
|
|
45
|
+
# topology.
|
|
46
46
|
sig do
|
|
47
47
|
params(
|
|
48
48
|
agents:
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# When the outcome reached a terminal result. Null while
|
|
19
|
+
# `pending`/`running`/`evaluating`.
|
|
19
20
|
sig { returns(T.nilable(Time)) }
|
|
20
21
|
attr_accessor :completed_at
|
|
21
22
|
|
|
@@ -64,7 +65,8 @@ module Anthropic
|
|
|
64
65
|
).returns(T.attached_class)
|
|
65
66
|
end
|
|
66
67
|
def self.new(
|
|
67
|
-
#
|
|
68
|
+
# When the outcome reached a terminal result. Null while
|
|
69
|
+
# `pending`/`running`/`evaluating`.
|
|
68
70
|
completed_at:,
|
|
69
71
|
# What the agent should produce.
|
|
70
72
|
description:,
|
|
@@ -24,7 +24,8 @@ module Anthropic
|
|
|
24
24
|
sig { returns(T.nilable(T::Boolean)) }
|
|
25
25
|
attr_accessor :enabled
|
|
26
26
|
|
|
27
|
-
# Permission policy for tool
|
|
27
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
28
|
+
# or require confirmation.
|
|
28
29
|
sig do
|
|
29
30
|
returns(
|
|
30
31
|
T.nilable(
|
|
@@ -76,7 +77,8 @@ module Anthropic
|
|
|
76
77
|
# Whether this tool is enabled and available to Claude. Overrides the
|
|
77
78
|
# default_config setting.
|
|
78
79
|
enabled: nil,
|
|
79
|
-
# Permission policy for tool
|
|
80
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
81
|
+
# or require confirmation.
|
|
80
82
|
permission_policy: nil,
|
|
81
83
|
type: nil,
|
|
82
84
|
# Must be "read".
|
|
@@ -105,7 +107,8 @@ module Anthropic
|
|
|
105
107
|
def to_hash
|
|
106
108
|
end
|
|
107
109
|
|
|
108
|
-
# Permission policy for tool
|
|
110
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
111
|
+
# or require confirmation.
|
|
109
112
|
module PermissionPolicy
|
|
110
113
|
extend Anthropic::Internal::Type::Union
|
|
111
114
|
|
|
@@ -33,7 +33,8 @@ module Anthropic
|
|
|
33
33
|
end
|
|
34
34
|
attr_accessor :type
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
# Time the most recent scheduled run actually started. Null until one completes;
|
|
37
|
+
# preserved after the deployment is archived. Manual runs do not update this.
|
|
37
38
|
sig { returns(T.nilable(Time)) }
|
|
38
39
|
attr_accessor :last_run_at
|
|
39
40
|
|
|
@@ -48,7 +49,8 @@ module Anthropic
|
|
|
48
49
|
sig { params(upcoming_runs_at: T::Array[Time]).void }
|
|
49
50
|
attr_writer :upcoming_runs_at
|
|
50
51
|
|
|
51
|
-
#
|
|
52
|
+
# A recurring schedule with computed runtime timestamps. Discriminated union —
|
|
53
|
+
# only cron is supported currently.
|
|
52
54
|
sig do
|
|
53
55
|
params(
|
|
54
56
|
expression: String,
|
|
@@ -68,7 +70,8 @@ module Anthropic
|
|
|
68
70
|
# IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").
|
|
69
71
|
timezone:,
|
|
70
72
|
type:,
|
|
71
|
-
#
|
|
73
|
+
# Time the most recent scheduled run actually started. Null until one completes;
|
|
74
|
+
# preserved after the deployment is archived. Manual runs do not update this.
|
|
72
75
|
last_run_at: nil,
|
|
73
76
|
# Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused
|
|
74
77
|
# deployments (reflects what the schedule would do if unpaused); empty once the
|
|
@@ -34,8 +34,7 @@ module Anthropic
|
|
|
34
34
|
end
|
|
35
35
|
attr_accessor :type
|
|
36
36
|
|
|
37
|
-
#
|
|
38
|
-
# timezone.
|
|
37
|
+
# A recurring schedule. Discriminated union — only cron is supported currently.
|
|
39
38
|
sig do
|
|
40
39
|
params(
|
|
41
40
|
expression: String,
|
|
@@ -15,7 +15,9 @@ module Anthropic
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# The UTC instant at which the cron expression matched in the configured timezone,
|
|
19
|
+
# before jitter is applied. At most one run is recorded per (`deployment_id`,
|
|
20
|
+
# `scheduled_at`) pair.
|
|
19
21
|
sig { returns(Time) }
|
|
20
22
|
attr_accessor :scheduled_at
|
|
21
23
|
|
|
@@ -35,7 +37,9 @@ module Anthropic
|
|
|
35
37
|
).returns(T.attached_class)
|
|
36
38
|
end
|
|
37
39
|
def self.new(
|
|
38
|
-
#
|
|
40
|
+
# The UTC instant at which the cron expression matched in the configured timezone,
|
|
41
|
+
# before jitter is applied. At most one run is recorded per (`deployment_id`,
|
|
42
|
+
# `scheduled_at`) pair.
|
|
39
43
|
scheduled_at:,
|
|
40
44
|
type:
|
|
41
45
|
)
|
|
@@ -29,12 +29,11 @@ module Anthropic
|
|
|
29
29
|
end
|
|
30
30
|
attr_writer :agent
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# When the session was archived. Null if not archived.
|
|
33
33
|
sig { returns(T.nilable(Time)) }
|
|
34
34
|
attr_accessor :archived_at
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
# tracked list cost reaches `max_list_cost`.
|
|
36
|
+
# The session's enforced spend ceiling, or null when no budget is set.
|
|
38
37
|
sig do
|
|
39
38
|
returns(T.nilable(Anthropic::Beta::BetaManagedAgentsBudgetLimit))
|
|
40
39
|
end
|
|
@@ -78,7 +77,7 @@ module Anthropic
|
|
|
78
77
|
end
|
|
79
78
|
attr_accessor :resources
|
|
80
79
|
|
|
81
|
-
# Timing statistics for
|
|
80
|
+
# Timing statistics for the session.
|
|
82
81
|
sig { returns(Anthropic::Beta::BetaManagedAgentsSessionStats) }
|
|
83
82
|
attr_reader :stats
|
|
84
83
|
|
|
@@ -109,7 +108,7 @@ module Anthropic
|
|
|
109
108
|
sig { returns(Time) }
|
|
110
109
|
attr_accessor :updated_at
|
|
111
110
|
|
|
112
|
-
# Cumulative token usage for
|
|
111
|
+
# Cumulative token usage for the session.
|
|
113
112
|
sig { returns(Anthropic::Beta::BetaManagedAgentsSessionUsage) }
|
|
114
113
|
attr_reader :usage
|
|
115
114
|
|
|
@@ -168,10 +167,9 @@ module Anthropic
|
|
|
168
167
|
# Resolved `agent` definition for a `session`. Snapshot of the `agent` at
|
|
169
168
|
# `session` creation time.
|
|
170
169
|
agent:,
|
|
171
|
-
#
|
|
170
|
+
# When the session was archived. Null if not archived.
|
|
172
171
|
archived_at:,
|
|
173
|
-
#
|
|
174
|
-
# tracked list cost reaches `max_list_cost`.
|
|
172
|
+
# The session's enforced spend ceiling, or null when no budget is set.
|
|
175
173
|
budget:,
|
|
176
174
|
# A timestamp in RFC 3339 format
|
|
177
175
|
created_at:,
|
|
@@ -181,7 +179,7 @@ module Anthropic
|
|
|
181
179
|
# session.
|
|
182
180
|
outcome_evaluations:,
|
|
183
181
|
resources:,
|
|
184
|
-
# Timing statistics for
|
|
182
|
+
# Timing statistics for the session.
|
|
185
183
|
stats:,
|
|
186
184
|
# SessionStatus enum
|
|
187
185
|
status:,
|
|
@@ -189,7 +187,7 @@ module Anthropic
|
|
|
189
187
|
type:,
|
|
190
188
|
# A timestamp in RFC 3339 format
|
|
191
189
|
updated_at:,
|
|
192
|
-
# Cumulative token usage for
|
|
190
|
+
# Cumulative token usage for the session.
|
|
193
191
|
usage:,
|
|
194
192
|
# Vault IDs attached to the session at creation. Empty when no vaults were
|
|
195
193
|
# supplied.
|
|
@@ -38,8 +38,8 @@ module Anthropic
|
|
|
38
38
|
end
|
|
39
39
|
attr_writer :model
|
|
40
40
|
|
|
41
|
-
# Resolved
|
|
42
|
-
#
|
|
41
|
+
# Resolved multiagent orchestration configuration. Null when the agent is
|
|
42
|
+
# single-threaded.
|
|
43
43
|
sig do
|
|
44
44
|
returns(
|
|
45
45
|
T.nilable(
|
|
@@ -136,8 +136,8 @@ module Anthropic
|
|
|
136
136
|
mcp_servers:,
|
|
137
137
|
# Model identifier and configuration.
|
|
138
138
|
model:,
|
|
139
|
-
# Resolved
|
|
140
|
-
#
|
|
139
|
+
# Resolved multiagent orchestration configuration. Null when the agent is
|
|
140
|
+
# single-threaded.
|
|
141
141
|
multiagent:,
|
|
142
142
|
name:,
|
|
143
143
|
skills:,
|
|
@@ -223,7 +223,7 @@ module Anthropic
|
|
|
223
223
|
type:,
|
|
224
224
|
# Per-tool configuration overrides.
|
|
225
225
|
configs: nil,
|
|
226
|
-
# Default configuration
|
|
226
|
+
# Default configuration applied to all tools in this set.
|
|
227
227
|
default_config: nil,
|
|
228
228
|
# Name of the MCP server. Must match a server name from the mcp_servers array.
|
|
229
229
|
# 1-255 characters.
|
|
@@ -231,7 +231,7 @@ module Anthropic
|
|
|
231
231
|
# Description of what the tool does, shown to the agent to help it decide when to
|
|
232
232
|
# use the tool.
|
|
233
233
|
description: nil,
|
|
234
|
-
# JSON Schema
|
|
234
|
+
# JSON Schema defining the expected input parameters for the tool.
|
|
235
235
|
input_schema: nil,
|
|
236
236
|
# Unique name for the tool. 1-128 characters; letters, digits, underscores, and
|
|
237
237
|
# hyphens.
|
|
@@ -107,7 +107,8 @@ module Anthropic
|
|
|
107
107
|
# The memory store ID (memstore\_...). Must belong to the caller's organization
|
|
108
108
|
# and workspace.
|
|
109
109
|
memory_store_id: nil,
|
|
110
|
-
# Access mode for
|
|
110
|
+
# Access mode for the mounted store. Defaults to `read_write`. `read_only` mounts
|
|
111
|
+
# the store as a read-only filesystem.
|
|
111
112
|
access: nil,
|
|
112
113
|
# Per-attachment guidance for the agent on how to use this store. Rendered into
|
|
113
114
|
# the memory section of the system prompt. Max 4096 chars.
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
#
|
|
22
|
+
# Timestamp when the update was applied.
|
|
23
23
|
sig { returns(Time) }
|
|
24
24
|
attr_accessor :processed_at
|
|
25
25
|
|
|
@@ -30,8 +30,9 @@ module Anthropic
|
|
|
30
30
|
end
|
|
31
31
|
attr_accessor :type
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
# `
|
|
33
|
+
# The session's effective agent configuration after the update. Present only when
|
|
34
|
+
# the update changed `agent` (tools or mcp_servers); when present it is the full
|
|
35
|
+
# materialised snapshot, not a diff.
|
|
35
36
|
sig do
|
|
36
37
|
returns(T.nilable(Anthropic::Beta::BetaManagedAgentsSessionAgent))
|
|
37
38
|
end
|
|
@@ -45,8 +46,9 @@ module Anthropic
|
|
|
45
46
|
end
|
|
46
47
|
attr_writer :agent
|
|
47
48
|
|
|
48
|
-
#
|
|
49
|
-
#
|
|
49
|
+
# The session's budget after the update: the new budget when set or replaced, or
|
|
50
|
+
# null when the update removed it. Present only when the update changed the
|
|
51
|
+
# budget.
|
|
50
52
|
sig do
|
|
51
53
|
returns(T.nilable(Anthropic::Beta::BetaManagedAgentsBudgetLimit))
|
|
52
54
|
end
|
|
@@ -92,14 +94,16 @@ module Anthropic
|
|
|
92
94
|
def self.new(
|
|
93
95
|
# Unique identifier for this event.
|
|
94
96
|
id:,
|
|
95
|
-
#
|
|
97
|
+
# Timestamp when the update was applied.
|
|
96
98
|
processed_at:,
|
|
97
99
|
type:,
|
|
98
|
-
#
|
|
99
|
-
# `
|
|
100
|
+
# The session's effective agent configuration after the update. Present only when
|
|
101
|
+
# the update changed `agent` (tools or mcp_servers); when present it is the full
|
|
102
|
+
# materialised snapshot, not a diff.
|
|
100
103
|
agent: nil,
|
|
101
|
-
#
|
|
102
|
-
#
|
|
104
|
+
# The session's budget after the update: the new budget when set or replaced, or
|
|
105
|
+
# null when the update removed it. Present only when the update changed the
|
|
106
|
+
# budget.
|
|
103
107
|
budget: nil,
|
|
104
108
|
# The session's full metadata bag after the update. Present when the update set
|
|
105
109
|
# non-empty metadata; absent when metadata was unchanged or cleared to empty.
|
|
@@ -24,7 +24,7 @@ module Anthropic
|
|
|
24
24
|
sig { params(active_seconds: Float).void }
|
|
25
25
|
attr_writer :active_seconds
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Tokens used to create prompt cache entries, broken down by cache TTL.
|
|
28
28
|
sig do
|
|
29
29
|
returns(
|
|
30
30
|
T.nilable(Anthropic::Beta::BetaManagedAgentsCacheCreationUsage)
|
|
@@ -54,7 +54,8 @@ module Anthropic
|
|
|
54
54
|
sig { params(input_tokens: Integer).void }
|
|
55
55
|
attr_writer :input_tokens
|
|
56
56
|
|
|
57
|
-
#
|
|
57
|
+
# Cumulative list cost of the session across all turns, priced at public list
|
|
58
|
+
# rates. Absent until cost tracking is available for the session.
|
|
58
59
|
sig { returns(T.nilable(Anthropic::BetaMonetaryAmount)) }
|
|
59
60
|
attr_reader :list_cost
|
|
60
61
|
|
|
@@ -72,7 +73,8 @@ module Anthropic
|
|
|
72
73
|
sig { params(output_tokens: Integer).void }
|
|
73
74
|
attr_writer :output_tokens
|
|
74
75
|
|
|
75
|
-
# Cumulative
|
|
76
|
+
# Cumulative server-executed tool usage across all turns. Absent until server-tool
|
|
77
|
+
# tracking is available for the session.
|
|
76
78
|
sig do
|
|
77
79
|
returns(T.nilable(Anthropic::Beta::BetaManagedAgentsServerToolUsage))
|
|
78
80
|
end
|
|
@@ -110,17 +112,19 @@ module Anthropic
|
|
|
110
112
|
# unlike `stats.active_seconds`, which sums each thread's own active time. This is
|
|
111
113
|
# the duration the session's runtime cost is priced on.
|
|
112
114
|
active_seconds: nil,
|
|
113
|
-
#
|
|
115
|
+
# Tokens used to create prompt cache entries, broken down by cache TTL.
|
|
114
116
|
cache_creation: nil,
|
|
115
117
|
# Total tokens read from prompt cache.
|
|
116
118
|
cache_read_input_tokens: nil,
|
|
117
119
|
# Total input tokens consumed across all turns.
|
|
118
120
|
input_tokens: nil,
|
|
119
|
-
#
|
|
121
|
+
# Cumulative list cost of the session across all turns, priced at public list
|
|
122
|
+
# rates. Absent until cost tracking is available for the session.
|
|
120
123
|
list_cost: nil,
|
|
121
124
|
# Total output tokens generated across all turns.
|
|
122
125
|
output_tokens: nil,
|
|
123
|
-
# Cumulative
|
|
126
|
+
# Cumulative server-executed tool usage across all turns. Absent until server-tool
|
|
127
|
+
# tracking is available for the session.
|
|
124
128
|
server_tool_use: nil
|
|
125
129
|
)
|
|
126
130
|
end
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
#
|
|
22
|
+
# Timestamp when the snapshot was taken.
|
|
23
23
|
sig { returns(Time) }
|
|
24
24
|
attr_accessor :processed_at
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ module Anthropic
|
|
|
30
30
|
end
|
|
31
31
|
attr_accessor :type
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# The session's cumulative usage at the snapshot time.
|
|
34
34
|
sig do
|
|
35
35
|
returns(
|
|
36
36
|
Anthropic::Beta::Sessions::BetaManagedAgentsSessionUsageSnapshot
|
|
@@ -46,8 +46,8 @@ module Anthropic
|
|
|
46
46
|
end
|
|
47
47
|
attr_writer :usage
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
#
|
|
49
|
+
# The session's configured budget at the snapshot time, or null when the session
|
|
50
|
+
# has no budget.
|
|
51
51
|
sig do
|
|
52
52
|
returns(T.nilable(Anthropic::Beta::BetaManagedAgentsBudgetLimit))
|
|
53
53
|
end
|
|
@@ -77,13 +77,13 @@ module Anthropic
|
|
|
77
77
|
def self.new(
|
|
78
78
|
# Unique identifier for this event.
|
|
79
79
|
id:,
|
|
80
|
-
#
|
|
80
|
+
# Timestamp when the snapshot was taken.
|
|
81
81
|
processed_at:,
|
|
82
82
|
type:,
|
|
83
|
-
#
|
|
83
|
+
# The session's cumulative usage at the snapshot time.
|
|
84
84
|
usage:,
|
|
85
|
-
#
|
|
86
|
-
#
|
|
85
|
+
# The session's configured budget at the snapshot time, or null when the session
|
|
86
|
+
# has no budget.
|
|
87
87
|
budget: nil
|
|
88
88
|
)
|
|
89
89
|
end
|
|
@@ -34,7 +34,7 @@ module Anthropic
|
|
|
34
34
|
end
|
|
35
35
|
attr_accessor :type
|
|
36
36
|
|
|
37
|
-
#
|
|
37
|
+
# Timestamp when this system message was processed.
|
|
38
38
|
sig { returns(T.nilable(Time)) }
|
|
39
39
|
attr_accessor :processed_at
|
|
40
40
|
|
|
@@ -58,7 +58,7 @@ module Anthropic
|
|
|
58
58
|
# System content blocks. Text-only.
|
|
59
59
|
content:,
|
|
60
60
|
type:,
|
|
61
|
-
#
|
|
61
|
+
# Timestamp when this system message was processed.
|
|
62
62
|
processed_at: nil
|
|
63
63
|
)
|
|
64
64
|
end
|
|
@@ -70,7 +70,9 @@ module Anthropic
|
|
|
70
70
|
end
|
|
71
71
|
def self.new(
|
|
72
72
|
type:,
|
|
73
|
-
#
|
|
73
|
+
# The UTC instant at which the cron expression matched in the configured timezone,
|
|
74
|
+
# before jitter is applied. At most one run is recorded per (`deployment_id`,
|
|
75
|
+
# `scheduled_at`) pair.
|
|
74
76
|
scheduled_at: nil
|
|
75
77
|
)
|
|
76
78
|
end
|
|
@@ -64,7 +64,7 @@ module Anthropic
|
|
|
64
64
|
sig { returns(T.nilable(T::Boolean)) }
|
|
65
65
|
attr_accessor :is_error
|
|
66
66
|
|
|
67
|
-
#
|
|
67
|
+
# Timestamp when this result was processed.
|
|
68
68
|
sig { returns(T.nilable(Time)) }
|
|
69
69
|
attr_accessor :processed_at
|
|
70
70
|
|
|
@@ -109,7 +109,7 @@ module Anthropic
|
|
|
109
109
|
content: nil,
|
|
110
110
|
# Whether the tool execution resulted in an error.
|
|
111
111
|
is_error: nil,
|
|
112
|
-
#
|
|
112
|
+
# Timestamp when this result was processed.
|
|
113
113
|
processed_at: nil,
|
|
114
114
|
# Set by the server to the subagent thread this result was routed to. Omitted when
|
|
115
115
|
# it was routed to the primary thread.
|
|
@@ -273,13 +273,13 @@ module Anthropic
|
|
|
273
273
|
type:,
|
|
274
274
|
# The text content.
|
|
275
275
|
text: nil,
|
|
276
|
-
#
|
|
276
|
+
# The source of the image data.
|
|
277
277
|
source: nil,
|
|
278
278
|
# Additional context about the document for the model.
|
|
279
279
|
context: nil,
|
|
280
280
|
# The title of the document.
|
|
281
281
|
title: nil,
|
|
282
|
-
# Citation settings for
|
|
282
|
+
# Citation settings for this search result.
|
|
283
283
|
citations: nil,
|
|
284
284
|
# Array of text content blocks from the search result.
|
|
285
285
|
content: nil
|
|
@@ -18,7 +18,7 @@ module Anthropic
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# When the vault was archived. Null if not archived.
|
|
22
22
|
sig { returns(T.nilable(Time)) }
|
|
23
23
|
attr_accessor :archived_at
|
|
24
24
|
|
|
@@ -58,7 +58,7 @@ module Anthropic
|
|
|
58
58
|
def self.new(
|
|
59
59
|
# Unique identifier for the vault.
|
|
60
60
|
id:,
|
|
61
|
-
#
|
|
61
|
+
# When the vault was archived. Null if not archived.
|
|
62
62
|
archived_at:,
|
|
63
63
|
# A timestamp in RFC 3339 format
|
|
64
64
|
created_at:,
|
|
@@ -49,7 +49,8 @@ module Anthropic
|
|
|
49
49
|
sig { returns(T.nilable(Integer)) }
|
|
50
50
|
attr_accessor :max_content_tokens
|
|
51
51
|
|
|
52
|
-
# Permission policy for tool
|
|
52
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
53
|
+
# or require confirmation.
|
|
53
54
|
sig do
|
|
54
55
|
returns(
|
|
55
56
|
T.nilable(
|
|
@@ -117,7 +118,8 @@ module Anthropic
|
|
|
117
118
|
# Maximum number of tokens of fetched text content to include in context per call.
|
|
118
119
|
# Does not apply to binary content such as PDFs.
|
|
119
120
|
max_content_tokens: nil,
|
|
120
|
-
# Permission policy for tool
|
|
121
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
122
|
+
# or require confirmation.
|
|
121
123
|
permission_policy: nil,
|
|
122
124
|
type: nil,
|
|
123
125
|
# Must be "web_fetch".
|
|
@@ -149,7 +151,8 @@ module Anthropic
|
|
|
149
151
|
def to_hash
|
|
150
152
|
end
|
|
151
153
|
|
|
152
|
-
# Permission policy for tool
|
|
154
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
155
|
+
# or require confirmation.
|
|
153
156
|
module PermissionPolicy
|
|
154
157
|
extend Anthropic::Internal::Type::Union
|
|
155
158
|
|
|
@@ -44,7 +44,8 @@ module Anthropic
|
|
|
44
44
|
sig { returns(T.nilable(T::Boolean)) }
|
|
45
45
|
attr_accessor :enabled
|
|
46
46
|
|
|
47
|
-
# Permission policy for tool
|
|
47
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
48
|
+
# or require confirmation.
|
|
48
49
|
sig do
|
|
49
50
|
returns(
|
|
50
51
|
T.nilable(
|
|
@@ -124,7 +125,8 @@ module Anthropic
|
|
|
124
125
|
# Whether this tool is enabled and available to Claude. Overrides the
|
|
125
126
|
# default_config setting.
|
|
126
127
|
enabled: nil,
|
|
127
|
-
# Permission policy for tool
|
|
128
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
129
|
+
# or require confirmation.
|
|
128
130
|
permission_policy: nil,
|
|
129
131
|
type: nil,
|
|
130
132
|
# Approximate user location for search result localization.
|
|
@@ -159,7 +161,8 @@ module Anthropic
|
|
|
159
161
|
def to_hash
|
|
160
162
|
end
|
|
161
163
|
|
|
162
|
-
# Permission policy for tool
|
|
164
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
165
|
+
# or require confirmation.
|
|
163
166
|
module PermissionPolicy
|
|
164
167
|
extend Anthropic::Internal::Type::Union
|
|
165
168
|
|
|
@@ -24,7 +24,8 @@ module Anthropic
|
|
|
24
24
|
sig { returns(T.nilable(T::Boolean)) }
|
|
25
25
|
attr_accessor :enabled
|
|
26
26
|
|
|
27
|
-
# Permission policy for tool
|
|
27
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
28
|
+
# or require confirmation.
|
|
28
29
|
sig do
|
|
29
30
|
returns(
|
|
30
31
|
T.nilable(
|
|
@@ -76,7 +77,8 @@ module Anthropic
|
|
|
76
77
|
# Whether this tool is enabled and available to Claude. Overrides the
|
|
77
78
|
# default_config setting.
|
|
78
79
|
enabled: nil,
|
|
79
|
-
# Permission policy for tool
|
|
80
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
81
|
+
# or require confirmation.
|
|
80
82
|
permission_policy: nil,
|
|
81
83
|
type: nil,
|
|
82
84
|
# Must be "write".
|
|
@@ -105,7 +107,8 @@ module Anthropic
|
|
|
105
107
|
def to_hash
|
|
106
108
|
end
|
|
107
109
|
|
|
108
|
-
# Permission policy for tool
|
|
110
|
+
# Permission policy for this tool. Controls whether tool calls are auto-approved
|
|
111
|
+
# or require confirmation.
|
|
109
112
|
module PermissionPolicy
|
|
110
113
|
extend Anthropic::Internal::Type::Union
|
|
111
114
|
|