anthropic 1.78.0 → 1.80.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 +57 -0
- data/LICENSE +8 -0
- data/README.md +42 -1
- data/lib/anthropic/client.rb +32 -0
- data/lib/anthropic/helpers/aws/client.rb +12 -2
- data/lib/anthropic/helpers/aws_auth.rb +8 -1
- data/lib/anthropic/helpers/bedrock/client.rb +19 -2
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +19 -2
- data/lib/anthropic/helpers/google_cloud/client.rb +12 -2
- data/lib/anthropic/helpers/refusal_fallback.rb +52 -21
- data/lib/anthropic/helpers/streaming/message_stream.rb +20 -43
- data/lib/anthropic/helpers/tools/runner.rb +104 -11
- data/lib/anthropic/helpers/tracing/attributes.rb +34 -0
- data/lib/anthropic/helpers/tracing/config.rb +16 -0
- data/lib/anthropic/helpers/tracing/content.rb +346 -0
- data/lib/anthropic/helpers/tracing/recorders.rb +131 -0
- data/lib/anthropic/helpers/tracing/response.rb +29 -0
- data/lib/anthropic/helpers/tracing/streamed_message.rb +189 -0
- data/lib/anthropic/helpers/tracing/tool_spans.rb +138 -0
- data/lib/anthropic/helpers/tracing.rb +13 -0
- data/lib/anthropic/helpers/vertex/client.rb +19 -2
- data/lib/anthropic/internal/tracing.rb +1118 -0
- data/lib/anthropic/internal/transport/base_client.rb +174 -10
- data/lib/anthropic/internal/transport/pooled_net_requester.rb +6 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/agent_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +20 -8
- data/lib/anthropic/models/beta/agent_list_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_update_params.rb +20 -8
- data/lib/anthropic/models/beta/agents/version_list_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_dream_input.rb +2 -2
- data/lib/anthropic/models/beta/beta_fallbacks_param.rb +6 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +15 -6
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +8 -8
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +6 -6
- data/lib/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity_params.rb +34 -0
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +38 -14
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +16 -16
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_execution_identity.rb +57 -0
- data/lib/anthropic/models/beta/beta_managed_agents_execution_identity_params.rb +62 -0
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +0 -2
- data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +5 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_service_account_execution_identity.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_service_account_execution_identity_params.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +16 -6
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +8 -2
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +19 -6
- data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_message_delta_usage.rb +0 -1
- data/lib/anthropic/models/beta/beta_output_behavior.rb +2 -2
- data/lib/anthropic/models/beta/beta_thinking_config_adaptive.rb +6 -4
- data/lib/anthropic/models/beta/beta_thinking_config_enabled.rb +6 -4
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +8 -7
- data/lib/anthropic/models/beta/beta_thinking_types.rb +17 -2
- data/lib/anthropic/models/beta/beta_usage.rb +0 -1
- data/lib/anthropic/models/beta/deployment_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_create_params.rb +6 -5
- data/lib/anthropic/models/beta/deployment_list_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_pause_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_list_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_unpause_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_update_params.rb +6 -5
- data/lib/anthropic/models/beta/dream_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_cancel_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_create_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_list_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_create_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_update_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +6 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +25 -10
- data/lib/anthropic/models/beta/message_create_params.rb +31 -12
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +31 -12
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_cost_users_item.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_users_item.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_deleted_telemetry_destination.rb +30 -0
- data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +16 -6
- data/lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_spend_summary.rb +28 -8
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination.rb +118 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_content_mode.rb +29 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rb +69 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason.rb +73 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_caller.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rb +29 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_redirect.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_sustained_failure.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state.rb +71 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled_params.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled_params.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_state_params.rb +61 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_test_failure.rb +37 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_test_result.rb +61 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_test_success.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_traces.rb +61 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rb +71 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rb +69 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all_params.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_params.rb +70 -0
- data/lib/anthropic/models/beta/organization/invite_create_params.rb +4 -2
- data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +2 -5
- data/lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb +94 -0
- data/lib/anthropic/models/beta/organization/telemetry_destination_delete_params.rb +39 -0
- data/lib/anthropic/models/beta/organization/telemetry_destination_list_params.rb +63 -0
- data/lib/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rb +39 -0
- data/lib/anthropic/models/beta/organization/telemetry_destination_test_params.rb +39 -0
- data/lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb +121 -0
- data/lib/anthropic/models/beta/organization/telemetry_destinations/beta_deleted_telemetry_destination_workspace.rb +40 -0
- data/lib/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rb +52 -0
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rb +58 -0
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rb +49 -0
- data/lib/anthropic/models/beta/organization/user_update_params.rb +4 -2
- data/lib/anthropic/models/beta/session_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/session_create_params.rb +8 -7
- data/lib/anthropic/models/beta/session_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/session_list_params.rb +3 -2
- data/lib/anthropic/models/beta/session_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/session_update_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +3 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +4 -4
- 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_thread_message_received_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +4 -4
- 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_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 +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +14 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.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_inline_agent.rb +14 -6
- 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_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_repository_authentication_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +8 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +14 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +64 -37
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +8 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +66 -39
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +66 -39
- 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 +7 -7
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +7 -7
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +4 -4
- data/lib/anthropic/models/beta/sessions/event_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/event_send_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/event_stream_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_add_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +3 -3
- data/lib/anthropic/models/beta/sessions/resource_update_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +3 -3
- data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/thread_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_create_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_list_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_create_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_list_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_update_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_create_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_list_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_update_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +6 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +3 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +12 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +8 -2
- data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +9 -5
- data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +9 -5
- data/lib/anthropic/models/message_count_tokens_params.rb +47 -11
- data/lib/anthropic/models/message_create_params.rb +47 -11
- data/lib/anthropic/models/messages/batch_create_params.rb +53 -11
- data/lib/anthropic/models/model.rb +0 -2
- data/lib/anthropic/models/organization/invite_create_params.rb +4 -2
- data/lib/anthropic/models/organization/user_update_params.rb +4 -2
- data/lib/anthropic/models/thinking_config_adaptive.rb +6 -4
- data/lib/anthropic/models/thinking_config_enabled.rb +6 -4
- data/lib/anthropic/models/thinking_config_param.rb +8 -7
- data/lib/anthropic/models/thinking_types.rb +17 -2
- data/lib/anthropic/models/usage.rb +22 -1
- data/lib/anthropic/request_options.rb +7 -0
- data/lib/anthropic/resources/beta/agents/versions.rb +5 -1
- data/lib/anthropic/resources/beta/agents.rb +27 -7
- data/lib/anthropic/resources/beta/deployment_runs.rb +18 -2
- data/lib/anthropic/resources/beta/deployments.rb +32 -8
- data/lib/anthropic/resources/beta/dreams.rb +20 -5
- data/lib/anthropic/resources/beta/environments/work.rb +42 -0
- data/lib/anthropic/resources/beta/environments.rb +18 -0
- data/lib/anthropic/resources/beta/files.rb +15 -0
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +36 -5
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +31 -3
- data/lib/anthropic/resources/beta/memory_stores.rb +24 -6
- data/lib/anthropic/resources/beta/messages/batches.rb +19 -1
- data/lib/anthropic/resources/beta/messages.rb +12 -4
- data/lib/anthropic/resources/beta/models.rb +6 -0
- data/lib/anthropic/resources/beta/organization/analytics/apps/chat/projects.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/connectors.rb +4 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +20 -0
- data/lib/anthropic/resources/beta/organization/analytics/plugins.rb +4 -0
- data/lib/anthropic/resources/beta/organization/analytics/skills.rb +4 -0
- data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +3 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +20 -0
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +23 -0
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +23 -0
- data/lib/anthropic/resources/beta/organization/analytics/users.rb +4 -0
- data/lib/anthropic/resources/beta/organization/api_keys.rb +9 -0
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +4 -0
- data/lib/anthropic/resources/beta/organization/external_keys.rb +18 -0
- data/lib/anthropic/resources/beta/organization/federation/issuers.rb +15 -0
- data/lib/anthropic/resources/beta/organization/federation/rules/workspaces.rb +14 -0
- data/lib/anthropic/resources/beta/organization/federation/rules.rb +15 -0
- data/lib/anthropic/resources/beta/organization/invites.rb +12 -0
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +14 -0
- data/lib/anthropic/resources/beta/organization/plugins/installation_settings.rb +16 -0
- data/lib/anthropic/resources/beta/organization/plugins/shares.rb +4 -0
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +22 -0
- data/lib/anthropic/resources/beta/organization/plugins.rb +27 -0
- data/lib/anthropic/resources/beta/organization/rate_limits.rb +3 -0
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +14 -0
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +15 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles/permissions.rb +4 -0
- data/lib/anthropic/resources/beta/organization/rbac_roles.rb +6 -0
- data/lib/anthropic/resources/beta/organization/service_accounts/workspaces.rb +14 -0
- data/lib/anthropic/resources/beta/organization/service_accounts.rb +15 -0
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +5 -2
- data/lib/anthropic/resources/beta/organization/spend_limits/increase_requests.rb +12 -0
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +20 -9
- data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +181 -0
- data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +286 -0
- data/lib/anthropic/resources/beta/organization/users.rb +12 -0
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +26 -0
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +4 -0
- data/lib/anthropic/resources/beta/organization/workspaces/service_accounts.rb +26 -0
- data/lib/anthropic/resources/beta/organization/workspaces.rb +15 -0
- data/lib/anthropic/resources/beta/organization.rb +7 -0
- data/lib/anthropic/resources/beta/sessions/events.rb +24 -4
- data/lib/anthropic/resources/beta/sessions/resources.rb +31 -5
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +17 -3
- data/lib/anthropic/resources/beta/sessions/threads.rb +19 -3
- data/lib/anthropic/resources/beta/sessions.rb +38 -6
- data/lib/anthropic/resources/beta/skills/versions.rb +17 -0
- data/lib/anthropic/resources/beta/skills.rb +12 -0
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +24 -4
- data/lib/anthropic/resources/beta/tunnels.rb +24 -6
- data/lib/anthropic/resources/beta/user_profiles.rb +20 -5
- data/lib/anthropic/resources/beta/vaults/credentials.rb +45 -7
- data/lib/anthropic/resources/beta/vaults.rb +24 -6
- data/lib/anthropic/resources/completions.rb +5 -1
- data/lib/anthropic/resources/files.rb +15 -0
- data/lib/anthropic/resources/messages/batches.rb +19 -1
- data/lib/anthropic/resources/messages.rb +24 -8
- data/lib/anthropic/resources/models.rb +6 -0
- data/lib/anthropic/resources/organization/api_keys.rb +9 -0
- data/lib/anthropic/resources/organization/compliance_settings.rb +4 -0
- data/lib/anthropic/resources/organization/external_keys.rb +18 -0
- data/lib/anthropic/resources/organization/federation/issuers.rb +15 -0
- data/lib/anthropic/resources/organization/federation/rules/workspaces.rb +14 -0
- data/lib/anthropic/resources/organization/federation/rules.rb +15 -0
- data/lib/anthropic/resources/organization/invites.rb +12 -0
- data/lib/anthropic/resources/organization/rate_limits.rb +3 -0
- data/lib/anthropic/resources/organization/service_accounts/workspaces.rb +14 -0
- data/lib/anthropic/resources/organization/service_accounts.rb +15 -0
- data/lib/anthropic/resources/organization/users.rb +12 -0
- data/lib/anthropic/resources/organization/workspaces/members.rb +26 -0
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +4 -0
- data/lib/anthropic/resources/organization/workspaces/service_accounts.rb +26 -0
- data/lib/anthropic/resources/organization/workspaces.rb +15 -0
- data/lib/anthropic/resources/organization.rb +2 -0
- data/lib/anthropic/resources/skills/versions.rb +14 -0
- data/lib/anthropic/resources/skills.rb +12 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +59 -0
- data/rbi/anthropic/client.rbi +28 -0
- data/rbi/anthropic/helpers/aws/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/client.rbi +6 -2
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +6 -2
- data/rbi/anthropic/helpers/google_cloud/client.rbi +6 -2
- data/rbi/anthropic/helpers/streaming/message_stream.rbi +4 -1
- data/rbi/anthropic/helpers/vertex/client.rbi +6 -2
- data/rbi/anthropic/internal/tracing.rbi +847 -0
- data/rbi/anthropic/internal/transport/base_client.rbi +93 -5
- data/rbi/anthropic/internal/type/base_stream.rbi +2 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_create_params.rbi +38 -5
- data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_update_params.rbi +38 -5
- data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +3 -2
- data/rbi/anthropic/models/beta/beta_fallbacks_param.rbi +6 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +17 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity_params.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_execution_identity.rbi +85 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_execution_identity_params.rbi +87 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_service_account_execution_identity.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_service_account_execution_identity_params.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +9 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +19 -0
- data/rbi/anthropic/models/beta/beta_message_delta_usage.rbi +0 -2
- data/rbi/anthropic/models/beta/beta_thinking_config_adaptive.rbi +9 -6
- data/rbi/anthropic/models/beta/beta_thinking_config_enabled.rbi +9 -6
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +11 -9
- data/rbi/anthropic/models/beta/beta_thinking_types.rbi +31 -2
- data/rbi/anthropic/models/beta/beta_usage.rbi +0 -2
- data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +43 -18
- data/rbi/anthropic/models/beta/message_create_params.rbi +55 -22
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +55 -22
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_bucketed_result.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_cost_users_item.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_bucketed_result.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_users_item.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_deleted_telemetry_destination.rbi +39 -0
- data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +13 -6
- data/rbi/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/beta_spend_summary.rbi +18 -4
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination.rbi +191 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_content_mode.rbi +53 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rbi +106 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason.rbi +95 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_caller.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rbi +39 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_redirect.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_sustained_failure.rbi +35 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state.rbi +99 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled.rbi +66 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled_params.rbi +34 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled_params.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_state_params.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_test_failure.rbi +47 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_test_result.rbi +88 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_test_success.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_traces.rbi +97 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rbi +120 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rbi +93 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all_params.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude_params.rbi +80 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rbi +80 -0
- data/rbi/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_params.rbi +107 -0
- data/rbi/anthropic/models/beta/organization/invite_create_params.rbi +6 -3
- data/rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi +2 -8
- data/rbi/anthropic/models/beta/organization/telemetry_destination_create_params.rbi +188 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destination_delete_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destination_list_params.rbi +116 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destination_test_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destination_update_params.rbi +266 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/beta_deleted_telemetry_destination_workspace.rbi +61 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rbi +73 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rbi +102 -0
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/user_update_params.rbi +6 -3
- data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rbi +3 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbi +17 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +9 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +2 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +2 -2
- 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 +4 -4
- data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +4 -2
- data/rbi/anthropic/models/message_count_tokens_params.rbi +85 -18
- data/rbi/anthropic/models/message_create_params.rbi +77 -18
- data/rbi/anthropic/models/messages/batch_create_params.rbi +101 -18
- data/rbi/anthropic/models/model.rbi +0 -2
- data/rbi/anthropic/models/organization/invite_create_params.rbi +6 -3
- data/rbi/anthropic/models/organization/user_update_params.rbi +6 -3
- data/rbi/anthropic/models/thinking_config_adaptive.rbi +9 -6
- data/rbi/anthropic/models/thinking_config_enabled.rbi +9 -6
- data/rbi/anthropic/models/thinking_config_param.rbi +11 -9
- data/rbi/anthropic/models/thinking_types.rbi +27 -2
- data/rbi/anthropic/models/usage.rbi +29 -3
- data/rbi/anthropic/request_options.rbi +5 -0
- data/rbi/anthropic/resources/beta/agents/versions.rbi +2 -1
- data/rbi/anthropic/resources/beta/agents.rbi +32 -7
- data/rbi/anthropic/resources/beta/deployment_runs.rbi +4 -2
- data/rbi/anthropic/resources/beta/deployments.rbi +16 -8
- data/rbi/anthropic/resources/beta/dreams.rbi +10 -5
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +10 -5
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +6 -3
- data/rbi/anthropic/resources/beta/memory_stores.rbi +12 -6
- data/rbi/anthropic/resources/beta/messages/batches.rbi +2 -1
- data/rbi/anthropic/resources/beta/messages.rbi +71 -32
- data/rbi/anthropic/resources/beta/organization/invites.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization/spend_limits/effective.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +8 -12
- data/rbi/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rbi +127 -0
- data/rbi/anthropic/resources/beta/organization/telemetry_destinations.rbi +306 -0
- data/rbi/anthropic/resources/beta/organization/users.rbi +2 -1
- data/rbi/anthropic/resources/beta/organization.rbi +7 -0
- data/rbi/anthropic/resources/beta/sessions/events.rbi +8 -4
- data/rbi/anthropic/resources/beta/sessions/resources.rbi +10 -5
- data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +6 -3
- data/rbi/anthropic/resources/beta/sessions/threads.rbi +6 -3
- data/rbi/anthropic/resources/beta/sessions.rbi +12 -6
- data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +8 -4
- data/rbi/anthropic/resources/beta/tunnels.rbi +12 -6
- data/rbi/anthropic/resources/beta/user_profiles.rbi +13 -5
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +14 -7
- data/rbi/anthropic/resources/beta/vaults.rbi +12 -6
- data/rbi/anthropic/resources/completions.rbi +6 -1
- data/rbi/anthropic/resources/messages/batches.rbi +2 -1
- data/rbi/anthropic/resources/messages.rbi +76 -28
- data/rbi/anthropic/resources/organization/invites.rbi +2 -1
- data/rbi/anthropic/resources/organization/users.rbi +2 -1
- data/sig/anthropic/client.rbs +1 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +2 -1
- data/sig/anthropic/helpers/google_cloud/client.rbs +2 -1
- data/sig/anthropic/helpers/streaming/message_stream.rbs +2 -2
- data/sig/anthropic/helpers/vertex/client.rbs +2 -1
- data/sig/anthropic/internal/tracing.rbs +477 -0
- data/sig/anthropic/internal/transport/base_client.rbs +37 -2
- data/sig/anthropic/internal/type/base_stream.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/agent_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/agent_update_params.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_aws_role_execution_identity_params.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_execution_identity.rbs +42 -0
- data/sig/anthropic/models/beta/beta_managed_agents_execution_identity_params.rbs +42 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +0 -2
- data/sig/anthropic/models/beta/beta_managed_agents_service_account_execution_identity.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_service_account_execution_identity_params.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +5 -0
- data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_deleted_telemetry_destination.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +6 -0
- data/sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_spend_summary.rbs +12 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination.rbs +74 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_content_mode.rbs +23 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_delivery_health.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason.rbs +51 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_caller.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_invalid_address.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_redirect.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_disabled_reason_sustained_failure.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state_disabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state_enabled_params.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_state_params.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_test_failure.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_test_response.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_test_result.rbs +42 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_test_success.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_traces.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_traces_params.rbs +41 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces.rbs +45 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_all_params.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_exclude_params.rbs +25 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_include_params.rbs +25 -0
- data/sig/anthropic/models/beta/organization/beta_telemetry_destination_workspaces_params.rbs +48 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_create_params.rbs +65 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_list_params.rbs +55 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_test_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/telemetry_destination_update_params.rbs +79 -0
- data/sig/anthropic/models/beta/organization/telemetry_destinations/beta_deleted_telemetry_destination_workspace.rbs +36 -0
- data/sig/anthropic/models/beta/organization/telemetry_destinations/beta_telemetry_destination_workspace.rbs +41 -0
- data/sig/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rbs +46 -0
- data/sig/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rbs +55 -0
- data/sig/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rbs +46 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_inline_agent.rbs +5 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +3 -0
- data/sig/anthropic/models/message_count_tokens_params.rbs +16 -0
- data/sig/anthropic/models/message_create_params.rbs +16 -0
- data/sig/anthropic/models/messages/batch_create_params.rbs +16 -0
- data/sig/anthropic/models/model.rbs +0 -2
- data/sig/anthropic/models/thinking_types.rbs +5 -0
- data/sig/anthropic/models/usage.rbs +19 -3
- data/sig/anthropic/request_options.rbs +3 -0
- data/sig/anthropic/resources/beta/agents.rbs +2 -0
- data/sig/anthropic/resources/beta/messages/batches.rbs +1 -1
- data/sig/anthropic/resources/beta/messages.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rbs +35 -0
- data/sig/anthropic/resources/beta/organization/telemetry_destinations.rbs +61 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- data/sig/anthropic/resources/beta/sessions/events.rbs +1 -1
- data/sig/anthropic/resources/beta/sessions/threads/events.rbs +1 -1
- data/sig/anthropic/resources/completions.rbs +1 -1
- data/sig/anthropic/resources/messages/batches.rbs +1 -1
- data/sig/anthropic/resources/messages.rbs +5 -1
- metadata +181 -2
|
@@ -29,7 +29,10 @@ module Anthropic
|
|
|
29
29
|
#
|
|
30
30
|
# If the final message uses the `assistant` role, the response content will
|
|
31
31
|
# continue immediately from the content in that message. This can be used to
|
|
32
|
-
# constrain part of the model's response.
|
|
32
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
33
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
34
|
+
# response returns a 400 error. See
|
|
35
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
33
36
|
#
|
|
34
37
|
# Example with a single `user` message:
|
|
35
38
|
#
|
|
@@ -47,7 +50,8 @@ module Anthropic
|
|
|
47
50
|
# ]
|
|
48
51
|
# ```
|
|
49
52
|
#
|
|
50
|
-
# Example with a partially-filled response from Claude
|
|
53
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
54
|
+
# prefill:
|
|
51
55
|
#
|
|
52
56
|
# ```json
|
|
53
57
|
# [
|
|
@@ -185,6 +189,11 @@ module Anthropic
|
|
|
185
189
|
|
|
186
190
|
# The inference speed mode for this request. `"fast"` enables high
|
|
187
191
|
# output-tokens-per-second inference.
|
|
192
|
+
#
|
|
193
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
194
|
+
# value. See
|
|
195
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
196
|
+
# which models.
|
|
188
197
|
sig do
|
|
189
198
|
returns(
|
|
190
199
|
T.nilable(
|
|
@@ -215,15 +224,16 @@ module Anthropic
|
|
|
215
224
|
end
|
|
216
225
|
attr_writer :system_
|
|
217
226
|
|
|
218
|
-
# Configuration for
|
|
227
|
+
# Configuration for Claude's thinking.
|
|
219
228
|
#
|
|
220
|
-
#
|
|
221
|
-
#
|
|
222
|
-
# tokens
|
|
229
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
230
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
231
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
223
232
|
#
|
|
224
|
-
#
|
|
225
|
-
#
|
|
226
|
-
#
|
|
233
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
234
|
+
# depend on the model. See
|
|
235
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
236
|
+
# for each model's behavior.
|
|
227
237
|
sig do
|
|
228
238
|
returns(
|
|
229
239
|
T.nilable(
|
|
@@ -564,7 +574,10 @@ module Anthropic
|
|
|
564
574
|
#
|
|
565
575
|
# If the final message uses the `assistant` role, the response content will
|
|
566
576
|
# continue immediately from the content in that message. This can be used to
|
|
567
|
-
# constrain part of the model's response.
|
|
577
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
578
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
579
|
+
# response returns a 400 error. See
|
|
580
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
568
581
|
#
|
|
569
582
|
# Example with a single `user` message:
|
|
570
583
|
#
|
|
@@ -582,7 +595,8 @@ module Anthropic
|
|
|
582
595
|
# ]
|
|
583
596
|
# ```
|
|
584
597
|
#
|
|
585
|
-
# Example with a partially-filled response from Claude
|
|
598
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
599
|
+
# prefill:
|
|
586
600
|
#
|
|
587
601
|
# ```json
|
|
588
602
|
# [
|
|
@@ -652,6 +666,11 @@ module Anthropic
|
|
|
652
666
|
output_format: nil,
|
|
653
667
|
# The inference speed mode for this request. `"fast"` enables high
|
|
654
668
|
# output-tokens-per-second inference.
|
|
669
|
+
#
|
|
670
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
671
|
+
# value. See
|
|
672
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
673
|
+
# which models.
|
|
655
674
|
speed: nil,
|
|
656
675
|
# System prompt.
|
|
657
676
|
#
|
|
@@ -659,15 +678,16 @@ module Anthropic
|
|
|
659
678
|
# as specifying a particular goal or role. See our
|
|
660
679
|
# [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
|
|
661
680
|
system_: nil,
|
|
662
|
-
# Configuration for
|
|
681
|
+
# Configuration for Claude's thinking.
|
|
663
682
|
#
|
|
664
|
-
#
|
|
665
|
-
#
|
|
666
|
-
# tokens
|
|
683
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
684
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
685
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
667
686
|
#
|
|
668
|
-
#
|
|
669
|
-
#
|
|
670
|
-
#
|
|
687
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
688
|
+
# depend on the model. See
|
|
689
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
690
|
+
# for each model's behavior.
|
|
671
691
|
thinking: nil,
|
|
672
692
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
673
693
|
# any available tool, decide by itself, or not use tools at all.
|
|
@@ -846,6 +866,11 @@ module Anthropic
|
|
|
846
866
|
|
|
847
867
|
# The inference speed mode for this request. `"fast"` enables high
|
|
848
868
|
# output-tokens-per-second inference.
|
|
869
|
+
#
|
|
870
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
871
|
+
# value. See
|
|
872
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
873
|
+
# which models.
|
|
849
874
|
module Speed
|
|
850
875
|
extend Anthropic::Internal::Type::Enum
|
|
851
876
|
|
|
@@ -44,7 +44,10 @@ module Anthropic
|
|
|
44
44
|
#
|
|
45
45
|
# If the final message uses the `assistant` role, the response content will
|
|
46
46
|
# continue immediately from the content in that message. This can be used to
|
|
47
|
-
# constrain part of the model's response.
|
|
47
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
48
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
49
|
+
# response returns a 400 error. See
|
|
50
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
48
51
|
#
|
|
49
52
|
# Example with a single `user` message:
|
|
50
53
|
#
|
|
@@ -62,7 +65,8 @@ module Anthropic
|
|
|
62
65
|
# ]
|
|
63
66
|
# ```
|
|
64
67
|
#
|
|
65
|
-
# Example with a partially-filled response from Claude
|
|
68
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
69
|
+
# prefill:
|
|
66
70
|
#
|
|
67
71
|
# ```json
|
|
68
72
|
# [
|
|
@@ -205,8 +209,12 @@ module Anthropic
|
|
|
205
209
|
|
|
206
210
|
# Opt-in server-side retry on one or more substitute models when the requested
|
|
207
211
|
# model declines for policy reasons. Tried in order: if the first entry also
|
|
208
|
-
# declines, the second is tried, and so on.
|
|
209
|
-
#
|
|
212
|
+
# declines, the second is tried, and so on. Some models don't support fallbacks;
|
|
213
|
+
# on those models, a list of fallback models returns a 400 error. See
|
|
214
|
+
# [Server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback).
|
|
215
|
+
# The string "default" requests the requested model's server-defined default
|
|
216
|
+
# fallback configuration. On a model that doesn't support fallbacks, the request
|
|
217
|
+
# runs on the requested model alone, so a declined request stays declined.
|
|
210
218
|
sig do
|
|
211
219
|
returns(
|
|
212
220
|
T.nilable(
|
|
@@ -298,6 +306,11 @@ module Anthropic
|
|
|
298
306
|
|
|
299
307
|
# The inference speed mode for this request. `"fast"` enables high
|
|
300
308
|
# output-tokens-per-second inference.
|
|
309
|
+
#
|
|
310
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
311
|
+
# value. See
|
|
312
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
313
|
+
# which models.
|
|
301
314
|
sig do
|
|
302
315
|
returns(
|
|
303
316
|
T.nilable(Anthropic::Beta::MessageCreateParams::Speed::OrSymbol)
|
|
@@ -353,15 +366,16 @@ module Anthropic
|
|
|
353
366
|
sig { params(temperature: Float).void }
|
|
354
367
|
attr_writer :temperature
|
|
355
368
|
|
|
356
|
-
# Configuration for
|
|
369
|
+
# Configuration for Claude's thinking.
|
|
357
370
|
#
|
|
358
|
-
#
|
|
359
|
-
#
|
|
360
|
-
# tokens
|
|
371
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
372
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
373
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
361
374
|
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
375
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
376
|
+
# depend on the model. See
|
|
377
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
378
|
+
# for each model's behavior.
|
|
365
379
|
sig do
|
|
366
380
|
returns(
|
|
367
381
|
T.nilable(
|
|
@@ -766,7 +780,10 @@ module Anthropic
|
|
|
766
780
|
#
|
|
767
781
|
# If the final message uses the `assistant` role, the response content will
|
|
768
782
|
# continue immediately from the content in that message. This can be used to
|
|
769
|
-
# constrain part of the model's response.
|
|
783
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
784
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
785
|
+
# response returns a 400 error. See
|
|
786
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
770
787
|
#
|
|
771
788
|
# Example with a single `user` message:
|
|
772
789
|
#
|
|
@@ -784,7 +801,8 @@ module Anthropic
|
|
|
784
801
|
# ]
|
|
785
802
|
# ```
|
|
786
803
|
#
|
|
787
|
-
# Example with a partially-filled response from Claude
|
|
804
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
805
|
+
# prefill:
|
|
788
806
|
#
|
|
789
807
|
# ```json
|
|
790
808
|
# [
|
|
@@ -870,8 +888,12 @@ module Anthropic
|
|
|
870
888
|
fallback_credit_token: nil,
|
|
871
889
|
# Opt-in server-side retry on one or more substitute models when the requested
|
|
872
890
|
# model declines for policy reasons. Tried in order: if the first entry also
|
|
873
|
-
# declines, the second is tried, and so on.
|
|
874
|
-
#
|
|
891
|
+
# declines, the second is tried, and so on. Some models don't support fallbacks;
|
|
892
|
+
# on those models, a list of fallback models returns a 400 error. See
|
|
893
|
+
# [Server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback).
|
|
894
|
+
# The string "default" requests the requested model's server-defined default
|
|
895
|
+
# fallback configuration. On a model that doesn't support fallbacks, the request
|
|
896
|
+
# runs on the requested model alone, so a declined request stays declined.
|
|
875
897
|
fallbacks: nil,
|
|
876
898
|
# Specifies the geographic region for inference processing. If not specified, the
|
|
877
899
|
# workspace's `default_inference_geo` is used.
|
|
@@ -897,6 +919,11 @@ module Anthropic
|
|
|
897
919
|
service_tier: nil,
|
|
898
920
|
# The inference speed mode for this request. `"fast"` enables high
|
|
899
921
|
# output-tokens-per-second inference.
|
|
922
|
+
#
|
|
923
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
924
|
+
# value. See
|
|
925
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
926
|
+
# which models.
|
|
900
927
|
speed: nil,
|
|
901
928
|
# Custom text sequences that will cause the model to stop generating.
|
|
902
929
|
#
|
|
@@ -923,15 +950,16 @@ module Anthropic
|
|
|
923
950
|
# Note that even with `temperature` of `0.0`, the results will not be fully
|
|
924
951
|
# deterministic.
|
|
925
952
|
temperature: nil,
|
|
926
|
-
# Configuration for
|
|
953
|
+
# Configuration for Claude's thinking.
|
|
927
954
|
#
|
|
928
|
-
#
|
|
929
|
-
#
|
|
930
|
-
# tokens
|
|
955
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
956
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
957
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
931
958
|
#
|
|
932
|
-
#
|
|
933
|
-
#
|
|
934
|
-
#
|
|
959
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
960
|
+
# depend on the model. See
|
|
961
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
962
|
+
# for each model's behavior.
|
|
935
963
|
thinking: nil,
|
|
936
964
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
937
965
|
# any available tool, decide by itself, or not use tools at all.
|
|
@@ -1237,6 +1265,11 @@ module Anthropic
|
|
|
1237
1265
|
|
|
1238
1266
|
# The inference speed mode for this request. `"fast"` enables high
|
|
1239
1267
|
# output-tokens-per-second inference.
|
|
1268
|
+
#
|
|
1269
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
1270
|
+
# value. See
|
|
1271
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
1272
|
+
# which models.
|
|
1240
1273
|
module Speed
|
|
1241
1274
|
extend Anthropic::Internal::Type::Enum
|
|
1242
1275
|
|
|
@@ -225,7 +225,10 @@ module Anthropic
|
|
|
225
225
|
#
|
|
226
226
|
# If the final message uses the `assistant` role, the response content will
|
|
227
227
|
# continue immediately from the content in that message. This can be used to
|
|
228
|
-
# constrain part of the model's response.
|
|
228
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
229
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
230
|
+
# response returns a 400 error. See
|
|
231
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
229
232
|
#
|
|
230
233
|
# Example with a single `user` message:
|
|
231
234
|
#
|
|
@@ -243,7 +246,8 @@ module Anthropic
|
|
|
243
246
|
# ]
|
|
244
247
|
# ```
|
|
245
248
|
#
|
|
246
|
-
# Example with a partially-filled response from Claude
|
|
249
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
250
|
+
# prefill:
|
|
247
251
|
#
|
|
248
252
|
# ```json
|
|
249
253
|
# [
|
|
@@ -395,8 +399,12 @@ module Anthropic
|
|
|
395
399
|
|
|
396
400
|
# Opt-in server-side retry on one or more substitute models when the requested
|
|
397
401
|
# model declines for policy reasons. Tried in order: if the first entry also
|
|
398
|
-
# declines, the second is tried, and so on.
|
|
399
|
-
#
|
|
402
|
+
# declines, the second is tried, and so on. Some models don't support fallbacks;
|
|
403
|
+
# on those models, a list of fallback models returns a 400 error. See
|
|
404
|
+
# [Server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback).
|
|
405
|
+
# The string "default" requests the requested model's server-defined default
|
|
406
|
+
# fallback configuration. On a model that doesn't support fallbacks, the request
|
|
407
|
+
# runs on the requested model alone, so a declined request stays declined.
|
|
400
408
|
sig do
|
|
401
409
|
returns(
|
|
402
410
|
T.nilable(
|
|
@@ -492,6 +500,11 @@ module Anthropic
|
|
|
492
500
|
|
|
493
501
|
# The inference speed mode for this request. `"fast"` enables high
|
|
494
502
|
# output-tokens-per-second inference.
|
|
503
|
+
#
|
|
504
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
505
|
+
# value. See
|
|
506
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
507
|
+
# which models.
|
|
495
508
|
sig do
|
|
496
509
|
returns(
|
|
497
510
|
T.nilable(
|
|
@@ -566,15 +579,16 @@ module Anthropic
|
|
|
566
579
|
sig { params(temperature: Float).void }
|
|
567
580
|
attr_writer :temperature
|
|
568
581
|
|
|
569
|
-
# Configuration for
|
|
582
|
+
# Configuration for Claude's thinking.
|
|
570
583
|
#
|
|
571
|
-
#
|
|
572
|
-
#
|
|
573
|
-
# tokens
|
|
584
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
585
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
586
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
574
587
|
#
|
|
575
|
-
#
|
|
576
|
-
#
|
|
577
|
-
#
|
|
588
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
589
|
+
# depend on the model. See
|
|
590
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
591
|
+
# for each model's behavior.
|
|
578
592
|
sig do
|
|
579
593
|
returns(
|
|
580
594
|
T.nilable(
|
|
@@ -954,7 +968,10 @@ module Anthropic
|
|
|
954
968
|
#
|
|
955
969
|
# If the final message uses the `assistant` role, the response content will
|
|
956
970
|
# continue immediately from the content in that message. This can be used to
|
|
957
|
-
# constrain part of the model's response.
|
|
971
|
+
# constrain part of the model's response. This is called prefill. On models that
|
|
972
|
+
# don't support prefill, creating a message that ends with a partial `assistant`
|
|
973
|
+
# response returns a 400 error. See
|
|
974
|
+
# [Prefill not supported](https://platform.claude.com/docs/en/api/errors#prefill-not-supported).
|
|
958
975
|
#
|
|
959
976
|
# Example with a single `user` message:
|
|
960
977
|
#
|
|
@@ -972,7 +989,8 @@ module Anthropic
|
|
|
972
989
|
# ]
|
|
973
990
|
# ```
|
|
974
991
|
#
|
|
975
|
-
# Example with a partially-filled response from Claude
|
|
992
|
+
# Example with a partially-filled response from Claude, for models that support
|
|
993
|
+
# prefill:
|
|
976
994
|
#
|
|
977
995
|
# ```json
|
|
978
996
|
# [
|
|
@@ -1058,8 +1076,12 @@ module Anthropic
|
|
|
1058
1076
|
fallback_credit_token: nil,
|
|
1059
1077
|
# Opt-in server-side retry on one or more substitute models when the requested
|
|
1060
1078
|
# model declines for policy reasons. Tried in order: if the first entry also
|
|
1061
|
-
# declines, the second is tried, and so on.
|
|
1062
|
-
#
|
|
1079
|
+
# declines, the second is tried, and so on. Some models don't support fallbacks;
|
|
1080
|
+
# on those models, a list of fallback models returns a 400 error. See
|
|
1081
|
+
# [Server-side fallback](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#server-side-fallback).
|
|
1082
|
+
# The string "default" requests the requested model's server-defined default
|
|
1083
|
+
# fallback configuration. On a model that doesn't support fallbacks, the request
|
|
1084
|
+
# runs on the requested model alone, so a declined request stays declined.
|
|
1063
1085
|
fallbacks: nil,
|
|
1064
1086
|
# Specifies the geographic region for inference processing. If not specified, the
|
|
1065
1087
|
# workspace's `default_inference_geo` is used.
|
|
@@ -1085,6 +1107,11 @@ module Anthropic
|
|
|
1085
1107
|
service_tier: nil,
|
|
1086
1108
|
# The inference speed mode for this request. `"fast"` enables high
|
|
1087
1109
|
# output-tokens-per-second inference.
|
|
1110
|
+
#
|
|
1111
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
1112
|
+
# value. See
|
|
1113
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
1114
|
+
# which models.
|
|
1088
1115
|
speed: nil,
|
|
1089
1116
|
# Custom text sequences that will cause the model to stop generating.
|
|
1090
1117
|
#
|
|
@@ -1120,15 +1147,16 @@ module Anthropic
|
|
|
1120
1147
|
# Note that even with `temperature` of `0.0`, the results will not be fully
|
|
1121
1148
|
# deterministic.
|
|
1122
1149
|
temperature: nil,
|
|
1123
|
-
# Configuration for
|
|
1150
|
+
# Configuration for Claude's thinking.
|
|
1124
1151
|
#
|
|
1125
|
-
#
|
|
1126
|
-
#
|
|
1127
|
-
# tokens
|
|
1152
|
+
# With `{"type": "adaptive"}`, Claude decides when and how much to think. With
|
|
1153
|
+
# `{"type": "enabled"}` (manual extended thinking), you set a `budget_tokens` of
|
|
1154
|
+
# at least 1,024. Thinking tokens count toward your `max_tokens` limit.
|
|
1128
1155
|
#
|
|
1129
|
-
#
|
|
1130
|
-
#
|
|
1131
|
-
#
|
|
1156
|
+
# Which `type` values are accepted, and what happens when you omit `thinking`,
|
|
1157
|
+
# depend on the model. See
|
|
1158
|
+
# [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#configuring-thinking)
|
|
1159
|
+
# for each model's behavior.
|
|
1132
1160
|
thinking: nil,
|
|
1133
1161
|
# How the model should use the provided tools. The model can use a specific tool,
|
|
1134
1162
|
# any available tool, decide by itself, or not use tools at all.
|
|
@@ -1436,6 +1464,11 @@ module Anthropic
|
|
|
1436
1464
|
|
|
1437
1465
|
# The inference speed mode for this request. `"fast"` enables high
|
|
1438
1466
|
# output-tokens-per-second inference.
|
|
1467
|
+
#
|
|
1468
|
+
# Some models require the `fast-mode-2026-02-01` beta header for any `speed`
|
|
1469
|
+
# value. See
|
|
1470
|
+
# [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for
|
|
1471
|
+
# which models.
|
|
1439
1472
|
module Speed
|
|
1440
1473
|
extend Anthropic::Internal::Type::Enum
|
|
1441
1474
|
|
|
@@ -88,9 +88,9 @@ module Anthropic
|
|
|
88
88
|
attr_accessor :list_amount
|
|
89
89
|
|
|
90
90
|
# Model that produced the usage or cost, as a model name in the form the
|
|
91
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
92
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
93
|
-
# attributed to a specific model, such as code execution.
|
|
91
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
92
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
93
|
+
# not attributed to a specific model, such as code execution.
|
|
94
94
|
sig { returns(T.nilable(String)) }
|
|
95
95
|
attr_accessor :model
|
|
96
96
|
|
|
@@ -227,9 +227,9 @@ module Anthropic
|
|
|
227
227
|
# List-price amount (pre-discount) in fractional cents.
|
|
228
228
|
list_amount:,
|
|
229
229
|
# Model that produced the usage or cost, as a model name in the form the
|
|
230
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
231
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
232
|
-
# attributed to a specific model, such as code execution.
|
|
230
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
231
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
232
|
+
# not attributed to a specific model, such as code execution.
|
|
233
233
|
model:,
|
|
234
234
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
235
235
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
@@ -104,9 +104,9 @@ module Anthropic
|
|
|
104
104
|
attr_accessor :list_amount
|
|
105
105
|
|
|
106
106
|
# Model that produced the usage or cost, as a model name in the form the
|
|
107
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
108
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
109
|
-
# attributed to a specific model, such as code execution.
|
|
107
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
108
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
109
|
+
# not attributed to a specific model, such as code execution.
|
|
110
110
|
sig { returns(T.nilable(String)) }
|
|
111
111
|
attr_accessor :model
|
|
112
112
|
|
|
@@ -257,9 +257,9 @@ module Anthropic
|
|
|
257
257
|
# List-price amount (pre-discount) in fractional cents.
|
|
258
258
|
list_amount:,
|
|
259
259
|
# Model that produced the usage or cost, as a model name in the form the
|
|
260
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
261
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
262
|
-
# attributed to a specific model, such as code execution.
|
|
260
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
261
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
262
|
+
# not attributed to a specific model, such as code execution.
|
|
263
263
|
model:,
|
|
264
264
|
# Product surface that produced the usage or cost. Null unless product is in
|
|
265
265
|
# `group_by[]`; it can also be null on grouped rows whose usage cannot be
|
|
@@ -80,9 +80,9 @@ module Anthropic
|
|
|
80
80
|
attr_accessor :inference_geo
|
|
81
81
|
|
|
82
82
|
# Model that produced the usage or cost, as a model name in the form the
|
|
83
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
84
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
85
|
-
# attributed to a specific model, such as code execution.
|
|
83
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
84
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
85
|
+
# not attributed to a specific model, such as code execution.
|
|
86
86
|
sig { returns(T.nilable(String)) }
|
|
87
87
|
attr_accessor :model
|
|
88
88
|
|
|
@@ -219,9 +219,9 @@ module Anthropic
|
|
|
219
219
|
# (the rows that `inference_geos[]=not_available` matches).
|
|
220
220
|
inference_geo:,
|
|
221
221
|
# Model that produced the usage or cost, as a model name in the form the
|
|
222
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
223
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
224
|
-
# attributed to a specific model, such as code execution.
|
|
222
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
223
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
224
|
+
# not attributed to a specific model, such as code execution.
|
|
225
225
|
model:,
|
|
226
226
|
# The number of output tokens generated.
|
|
227
227
|
output_tokens:,
|
|
@@ -97,9 +97,9 @@ module Anthropic
|
|
|
97
97
|
attr_accessor :inference_geo
|
|
98
98
|
|
|
99
99
|
# Model that produced the usage or cost, as a model name in the form the
|
|
100
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
101
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
102
|
-
# attributed to a specific model, such as code execution.
|
|
100
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
101
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
102
|
+
# not attributed to a specific model, such as code execution.
|
|
103
103
|
sig { returns(T.nilable(String)) }
|
|
104
104
|
attr_accessor :model
|
|
105
105
|
|
|
@@ -257,9 +257,9 @@ module Anthropic
|
|
|
257
257
|
# (the rows that `inference_geos[]=not_available` matches).
|
|
258
258
|
inference_geo:,
|
|
259
259
|
# Model that produced the usage or cost, as a model name in the form the
|
|
260
|
-
# `models[]` filter accepts (for example, `claude-opus-5`). Null unless `model`
|
|
261
|
-
# in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
262
|
-
# attributed to a specific model, such as code execution.
|
|
260
|
+
# `models[]` filter accepts (for example, `claude-opus-5-5`). Null unless `model`
|
|
261
|
+
# is in `group_by[]`; it can also be null on grouped rows whose usage or cost is
|
|
262
|
+
# not attributed to a specific model, such as code execution.
|
|
263
263
|
model:,
|
|
264
264
|
# The number of output tokens generated.
|
|
265
265
|
output_tokens:,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaDeletedTelemetryDestination < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaDeletedTelemetryDestination,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# ID of the deleted destination (`tdst_...`).
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
sig { returns(Symbol) }
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
# Confirmation that a destination was deleted.
|
|
24
|
+
sig { params(id: String, type: Symbol).returns(T.attached_class) }
|
|
25
|
+
def self.new(
|
|
26
|
+
# ID of the deleted destination (`tdst_...`).
|
|
27
|
+
id:,
|
|
28
|
+
type: :telemetry_destination_deleted
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
sig { override.returns({ id: String, type: Symbol }) }
|
|
33
|
+
def to_hash
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -32,8 +32,8 @@ module Anthropic
|
|
|
32
32
|
attr_accessor :currency
|
|
33
33
|
|
|
34
34
|
# Read-only. `false` when extra usage is switched off for this organization
|
|
35
|
-
# (`organization` limit)
|
|
36
|
-
#
|
|
35
|
+
# (`organization` limit); `amount` is kept and applies again when it's switched
|
|
36
|
+
# back on. Always `true` for other limits.
|
|
37
37
|
sig { returns(T::Boolean) }
|
|
38
38
|
attr_accessor :is_enabled
|
|
39
39
|
|
|
@@ -80,7 +80,8 @@ module Anthropic
|
|
|
80
80
|
Anthropic::Beta::Organization::BetaSpendLimitRBACGroupScope::OrHash,
|
|
81
81
|
Anthropic::Beta::Organization::BetaSpendLimitOrganizationServiceScope::OrHash,
|
|
82
82
|
Anthropic::Beta::Organization::BetaSpendLimitOrganizationScope::OrHash,
|
|
83
|
-
Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope::OrHash
|
|
83
|
+
Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope::OrHash,
|
|
84
|
+
Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope::OrHash
|
|
84
85
|
),
|
|
85
86
|
updated_at: Time,
|
|
86
87
|
type: Symbol
|
|
@@ -98,8 +99,8 @@ module Anthropic
|
|
|
98
99
|
# ISO 4217 code of the organization's billing currency; the unit for `amount`.
|
|
99
100
|
currency:,
|
|
100
101
|
# Read-only. `false` when extra usage is switched off for this organization
|
|
101
|
-
# (`organization` limit)
|
|
102
|
-
#
|
|
102
|
+
# (`organization` limit); `amount` is kept and applies again when it's switched
|
|
103
|
+
# back on. Always `true` for other limits.
|
|
103
104
|
is_enabled:,
|
|
104
105
|
# Length of the window the limit resets over. `amount` caps spend within each
|
|
105
106
|
# period.
|
|
@@ -147,7 +148,8 @@ module Anthropic
|
|
|
147
148
|
Anthropic::Beta::Organization::BetaSpendLimitRBACGroupScope,
|
|
148
149
|
Anthropic::Beta::Organization::BetaSpendLimitOrganizationServiceScope,
|
|
149
150
|
Anthropic::Beta::Organization::BetaSpendLimitOrganizationScope,
|
|
150
|
-
Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope
|
|
151
|
+
Anthropic::Beta::Organization::BetaSpendLimitWorkspaceScope,
|
|
152
|
+
Anthropic::Beta::Organization::BetaSpendLimitUsageTierScope
|
|
151
153
|
)
|
|
152
154
|
end
|
|
153
155
|
|
|
@@ -193,6 +195,11 @@ module Anthropic
|
|
|
193
195
|
:workspace,
|
|
194
196
|
Anthropic::Beta::Organization::BetaSpendLimit::Scope::Type::TaggedSymbol
|
|
195
197
|
)
|
|
198
|
+
USAGE_TIER =
|
|
199
|
+
T.let(
|
|
200
|
+
:usage_tier,
|
|
201
|
+
Anthropic::Beta::Organization::BetaSpendLimit::Scope::Type::TaggedSymbol
|
|
202
|
+
)
|
|
196
203
|
|
|
197
204
|
sig do
|
|
198
205
|
override.returns(
|