anthropic 1.80.0 → 1.81.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 +31 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +4 -0
- data/lib/anthropic/helpers/aws/client.rb +20 -3
- data/lib/anthropic/helpers/bedrock/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +41 -2
- data/lib/anthropic/helpers/google_cloud/client.rb +113 -31
- data/lib/anthropic/helpers/vertex/client.rb +7 -0
- data/lib/anthropic/internal/report_page_cursor.rb +98 -0
- data/lib/anthropic/internal/stream.rb +6 -13
- data/lib/anthropic/internal/tracing.rb +7 -4
- data/lib/anthropic/models/beta/beta_cache_miss_messages_changed.rb +8 -0
- data/lib/anthropic/models/beta/beta_cache_miss_model_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rb +9 -0
- data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +22 -0
- data/lib/anthropic/models/beta/beta_cache_miss_system_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_tools_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_unavailable.rb +11 -0
- data/lib/anthropic/models/beta/beta_deleted_user_profile.rb +29 -0
- data/lib/anthropic/models/beta/beta_fallback_param.rb +74 -10
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +28 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
- data/lib/anthropic/models/beta/beta_user_profile.rb +31 -28
- data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +1 -1
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +5 -4
- data/lib/anthropic/models/beta/memory_store_create_params.rb +20 -11
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +5 -4
- data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -9
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -3
- data/lib/anthropic/models/beta/memory_store_update_params.rb +19 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +6 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +13 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +1 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +38 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +17 -10
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +7 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +40 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +4 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +5 -5
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +18 -15
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +27 -19
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +6 -6
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +19 -18
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +13 -10
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +6 -6
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +1 -1
- data/lib/anthropic/models/beta/message_create_params.rb +1 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_plugin.rb +34 -9
- data/lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb +9 -4
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb +13 -7
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +1 -1
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +29 -0
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +35 -0
- data/lib/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rb +45 -0
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_create_params.rb +12 -11
- data/lib/anthropic/models/beta/user_profile_delete_params.rb +48 -0
- data/lib/anthropic/models/beta/user_profile_list_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_update_params.rb +11 -11
- data/lib/anthropic/models/beta/user_profiles/action_url_create_params.rb +58 -0
- data/lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb +44 -0
- data/lib/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rb +21 -0
- data/lib/anthropic/models/beta/vault_list_params.rb +6 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +7 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +3 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +4 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rb +8 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +7 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +6 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +10 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +15 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +14 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +14 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +4 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +10 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +10 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +8 -4
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +6 -4
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +14 -10
- data/lib/anthropic/models/cache_miss_messages_changed.rb +8 -0
- data/lib/anthropic/models/cache_miss_model_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +9 -0
- data/lib/anthropic/models/cache_miss_reason.rb +22 -0
- data/lib/anthropic/models/cache_miss_system_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_tools_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_unavailable.rb +11 -0
- data/lib/anthropic/models/deleted_user_profile.rb +25 -0
- data/lib/anthropic/models/message_count_tokens_params.rb +1 -1
- data/lib/anthropic/models/message_create_params.rb +1 -1
- data/lib/anthropic/models/messages/batch_create_params.rb +3 -3
- data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/organization/workspaces/rate_limit_update_params.rb +43 -0
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +1 -1
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +29 -0
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +35 -0
- data/lib/anthropic/models/user_profile.rb +108 -0
- data/lib/anthropic/models/user_profile_access_type.rb +23 -0
- data/lib/anthropic/models/user_profile_create_params.rb +74 -0
- data/lib/anthropic/models/user_profile_cyber_program.rb +52 -0
- data/lib/anthropic/models/user_profile_cyber_requirements.rb +35 -0
- data/lib/anthropic/models/user_profile_cyber_tier.rb +38 -0
- data/lib/anthropic/models/user_profile_delete_params.rb +38 -0
- data/lib/anthropic/models/user_profile_efs_feature.rb +38 -0
- data/lib/anthropic/models/user_profile_efs_program.rb +40 -0
- data/lib/anthropic/models/user_profile_external_user_account_status.rb +27 -0
- data/lib/anthropic/models/user_profile_external_user_details.rb +78 -0
- data/lib/anthropic/models/user_profile_external_user_details_params.rb +79 -0
- data/lib/anthropic/models/user_profile_external_user_entity_type.rb +19 -0
- data/lib/anthropic/models/user_profile_list_order.rb +19 -0
- data/lib/anthropic/models/user_profile_list_order_by.rb +20 -0
- data/lib/anthropic/models/user_profile_list_params.rb +67 -0
- data/lib/anthropic/models/user_profile_program_status.rb +23 -0
- data/lib/anthropic/models/user_profile_programs.rb +41 -0
- data/lib/anthropic/models/user_profile_retrieve_params.rb +38 -0
- data/lib/anthropic/models/user_profile_update_params.rb +78 -0
- data/lib/anthropic/models/user_profiles/action_url_create_params.rb +48 -0
- data/lib/anthropic/models/user_profiles/user_profile_action_url.rb +43 -0
- data/lib/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rb +21 -0
- data/lib/anthropic/models.rb +44 -0
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +17 -17
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -6
- data/lib/anthropic/resources/beta/memory_stores.rb +19 -19
- data/lib/anthropic/resources/beta/messages.rb +63 -111
- data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +53 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +54 -0
- data/lib/anthropic/resources/beta/user_profiles.rb +41 -5
- data/lib/anthropic/resources/beta/vaults/credentials.rb +9 -9
- data/lib/anthropic/resources/beta/vaults.rb +7 -7
- data/lib/anthropic/resources/messages.rb +58 -92
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +49 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +50 -0
- data/lib/anthropic/resources/user_profiles.rb +196 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +39 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/helpers/aws/client.rbi +13 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +4 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +9 -0
- data/rbi/anthropic/helpers/google_cloud/client.rbi +19 -2
- data/rbi/anthropic/helpers/vertex/client.rbi +4 -0
- data/rbi/anthropic/internal/report_page_cursor.rbi +28 -0
- data/rbi/anthropic/internal/tracing.rbi +9 -4
- data/rbi/anthropic/models/beta/beta_cache_miss_messages_changed.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_model_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rbi +8 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_system_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_tools_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_unavailable.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_deleted_user_profile.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +116 -9
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +44 -26
- data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +50 -43
- data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +1 -1
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +8 -6
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +34 -16
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +8 -6
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +8 -12
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +2 -4
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +30 -20
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +6 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +13 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +54 -36
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +25 -18
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +7 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +60 -38
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +5 -5
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +30 -24
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +44 -28
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +10 -10
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +32 -30
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +22 -16
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +10 -10
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +2 -2
- data/rbi/anthropic/models/beta/message_create_params.rbi +2 -2
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +49 -11
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rbi +18 -8
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_version.rbi +20 -8
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbi +80 -0
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +22 -20
- data/rbi/anthropic/models/beta/user_profile_delete_params.rbi +91 -0
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +20 -20
- data/rbi/anthropic/models/beta/user_profiles/action_url_create_params.rbi +116 -0
- data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbi +55 -0
- data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbi +31 -0
- data/rbi/anthropic/models/beta/vault_list_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +4 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +6 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +5 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rbi +8 -1
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +12 -8
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +10 -6
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +10 -5
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +11 -5
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +16 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +6 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +10 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +10 -2
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +17 -11
- data/rbi/anthropic/models/cache_miss_messages_changed.rbi +7 -0
- data/rbi/anthropic/models/cache_miss_model_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +8 -0
- data/rbi/anthropic/models/cache_miss_system_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_tools_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_unavailable.rbi +10 -0
- data/rbi/anthropic/models/deleted_user_profile.rbi +33 -0
- data/rbi/anthropic/models/message_count_tokens_params.rbi +2 -2
- data/rbi/anthropic/models/message_create_params.rbi +2 -2
- data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -6
- data/rbi/anthropic/models/organization/organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/organization/workspaces/rate_limit_update_params.rbi +78 -0
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +81 -0
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +62 -0
- data/rbi/anthropic/models/user_profile.rbi +152 -0
- data/rbi/anthropic/models/user_profile_access_type.rbi +34 -0
- data/rbi/anthropic/models/user_profile_create_params.rbi +135 -0
- data/rbi/anthropic/models/user_profile_cyber_program.rbi +95 -0
- data/rbi/anthropic/models/user_profile_cyber_requirements.rbi +52 -0
- data/rbi/anthropic/models/user_profile_cyber_tier.rbi +69 -0
- data/rbi/anthropic/models/user_profile_delete_params.rbi +67 -0
- data/rbi/anthropic/models/user_profile_efs_feature.rbi +69 -0
- data/rbi/anthropic/models/user_profile_efs_program.rbi +66 -0
- data/rbi/anthropic/models/user_profile_external_user_account_status.rbi +52 -0
- data/rbi/anthropic/models/user_profile_external_user_details.rbi +125 -0
- data/rbi/anthropic/models/user_profile_external_user_details_params.rbi +131 -0
- data/rbi/anthropic/models/user_profile_external_user_entity_type.rbi +46 -0
- data/rbi/anthropic/models/user_profile_list_order.rbi +28 -0
- data/rbi/anthropic/models/user_profile_list_order_by.rbi +30 -0
- data/rbi/anthropic/models/user_profile_list_params.rbi +110 -0
- data/rbi/anthropic/models/user_profile_program_status.rbi +34 -0
- data/rbi/anthropic/models/user_profile_programs.rbi +77 -0
- data/rbi/anthropic/models/user_profile_retrieve_params.rbi +67 -0
- data/rbi/anthropic/models/user_profile_update_params.rbi +130 -0
- data/rbi/anthropic/models/user_profiles/action_url_create_params.rbi +86 -0
- data/rbi/anthropic/models/user_profiles/user_profile_action_url.rbi +55 -0
- data/rbi/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbi +32 -0
- data/rbi/anthropic/models.rbi +48 -0
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +65 -51
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +19 -16
- data/rbi/anthropic/resources/beta/memory_stores.rbi +53 -38
- data/rbi/anthropic/resources/beta/messages/batches.rbi +3 -4
- data/rbi/anthropic/resources/beta/messages.rbi +192 -198
- data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +9 -4
- data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +35 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +46 -0
- data/rbi/anthropic/resources/beta/user_profiles.rbi +51 -28
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +13 -11
- data/rbi/anthropic/resources/beta/vaults.rbi +10 -7
- data/rbi/anthropic/resources/messages/batches.rbi +3 -4
- data/rbi/anthropic/resources/messages.rbi +122 -132
- data/rbi/anthropic/resources/organization/workspaces/rate_limits.rbi +33 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +40 -0
- data/rbi/anthropic/resources/user_profiles.rbi +184 -0
- data/sig/anthropic/client.rbs +2 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +2 -0
- data/sig/anthropic/helpers/google_cloud/client.rbs +10 -1
- data/sig/anthropic/helpers/vertex/client.rbs +2 -0
- data/sig/anthropic/internal/report_page_cursor.rbs +17 -0
- data/sig/anthropic/internal/tracing.rbs +7 -4
- data/sig/anthropic/models/beta/beta_deleted_user_profile.rbs +20 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +8 -8
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbs +36 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbs +31 -0
- data/sig/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbs +42 -0
- data/sig/anthropic/models/beta/user_profile_delete_params.rbs +44 -0
- data/sig/anthropic/models/beta/user_profiles/action_url_create_params.rbs +51 -0
- data/sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs +30 -0
- data/sig/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbs +18 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +2 -2
- data/sig/anthropic/models/deleted_user_profile.rbs +15 -0
- data/sig/anthropic/models/organization/workspaces/rate_limit_update_params.rbs +40 -0
- data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbs +36 -0
- data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs +31 -0
- data/sig/anthropic/models/user_profile.rbs +60 -0
- data/sig/anthropic/models/user_profile_access_type.rbs +17 -0
- data/sig/anthropic/models/user_profile_create_params.rbs +58 -0
- data/sig/anthropic/models/user_profile_cyber_program.rbs +30 -0
- data/sig/anthropic/models/user_profile_cyber_requirements.rbs +16 -0
- data/sig/anthropic/models/user_profile_cyber_tier.rbs +29 -0
- data/sig/anthropic/models/user_profile_delete_params.rbs +30 -0
- data/sig/anthropic/models/user_profile_efs_feature.rbs +29 -0
- data/sig/anthropic/models/user_profile_efs_program.rbs +25 -0
- data/sig/anthropic/models/user_profile_external_user_account_status.rbs +21 -0
- data/sig/anthropic/models/user_profile_external_user_details.rbs +50 -0
- data/sig/anthropic/models/user_profile_external_user_details_params.rbs +52 -0
- data/sig/anthropic/models/user_profile_external_user_entity_type.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_order.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_order_by.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_params.rbs +60 -0
- data/sig/anthropic/models/user_profile_program_status.rbs +20 -0
- data/sig/anthropic/models/user_profile_programs.rbs +25 -0
- data/sig/anthropic/models/user_profile_retrieve_params.rbs +30 -0
- data/sig/anthropic/models/user_profile_update_params.rbs +59 -0
- data/sig/anthropic/models/user_profiles/action_url_create_params.rbs +40 -0
- data/sig/anthropic/models/user_profiles/user_profile_action_url.rbs +30 -0
- data/sig/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbs +17 -0
- data/sig/anthropic/models.rbs +44 -0
- data/sig/anthropic/resources/beta/messages.rbs +24 -24
- data/sig/anthropic/resources/beta/organization/analytics/cost_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/usage_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/user_cost_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/user_usage_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +7 -0
- data/sig/anthropic/resources/beta/user_profiles/action_urls.rbs +19 -0
- data/sig/anthropic/resources/beta/user_profiles.rbs +9 -0
- data/sig/anthropic/resources/messages.rbs +19 -19
- data/sig/anthropic/resources/organization/workspaces/rate_limits.rbs +7 -0
- data/sig/anthropic/resources/user_profiles/action_urls.rbs +16 -0
- data/sig/anthropic/resources/user_profiles.rbs +49 -0
- metadata +119 -2
|
@@ -8,16 +8,38 @@ module Anthropic
|
|
|
8
8
|
|
|
9
9
|
discriminator :type
|
|
10
10
|
|
|
11
|
+
# A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
|
|
12
|
+
#
|
|
13
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
11
14
|
variant :model_changed, -> { Anthropic::Beta::BetaCacheMissModelChanged }
|
|
12
15
|
|
|
16
|
+
# A `cache_miss_reason` for a request whose `system` differs from the previous request's.
|
|
17
|
+
#
|
|
18
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
13
19
|
variant :system_changed, -> { Anthropic::Beta::BetaCacheMissSystemChanged }
|
|
14
20
|
|
|
21
|
+
# A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
|
|
22
|
+
#
|
|
23
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
15
24
|
variant :tools_changed, -> { Anthropic::Beta::BetaCacheMissToolsChanged }
|
|
16
25
|
|
|
26
|
+
# A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
|
|
27
|
+
#
|
|
28
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
17
29
|
variant :messages_changed, -> { Anthropic::Beta::BetaCacheMissMessagesChanged }
|
|
18
30
|
|
|
31
|
+
# A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
|
|
32
|
+
#
|
|
33
|
+
# This doesn't mean that this request changed.
|
|
34
|
+
#
|
|
35
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
19
36
|
variant :previous_message_not_found, -> { Anthropic::Beta::BetaCacheMissPreviousMessageNotFound }
|
|
20
37
|
|
|
38
|
+
# A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
|
|
39
|
+
#
|
|
40
|
+
# This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
|
|
41
|
+
#
|
|
42
|
+
# See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
|
|
21
43
|
variant :unavailable, -> { Anthropic::Beta::BetaCacheMissUnavailable }
|
|
22
44
|
|
|
23
45
|
module Type
|
|
@@ -17,6 +17,13 @@ module Anthropic
|
|
|
17
17
|
required :type, const: :system_changed
|
|
18
18
|
|
|
19
19
|
# @!method initialize(cache_missed_input_tokens:, type: :system_changed)
|
|
20
|
+
# A `cache_miss_reason` for a request whose `system` differs from the previous
|
|
21
|
+
# request's.
|
|
22
|
+
#
|
|
23
|
+
# See the
|
|
24
|
+
# [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
|
|
25
|
+
# to learn what to change for each reason.
|
|
26
|
+
#
|
|
20
27
|
# Some parameter documentations has been truncated, see
|
|
21
28
|
# {Anthropic::Models::Beta::BetaCacheMissSystemChanged} for more details.
|
|
22
29
|
#
|
|
@@ -17,6 +17,13 @@ module Anthropic
|
|
|
17
17
|
required :type, const: :tools_changed
|
|
18
18
|
|
|
19
19
|
# @!method initialize(cache_missed_input_tokens:, type: :tools_changed)
|
|
20
|
+
# A `cache_miss_reason` for a request whose `tools` differ from the previous
|
|
21
|
+
# request's, for example because tools were added, removed, or reordered.
|
|
22
|
+
#
|
|
23
|
+
# See the
|
|
24
|
+
# [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
|
|
25
|
+
# to learn what to change for each reason.
|
|
26
|
+
#
|
|
20
27
|
# Some parameter documentations has been truncated, see
|
|
21
28
|
# {Anthropic::Models::Beta::BetaCacheMissToolsChanged} for more details.
|
|
22
29
|
#
|
|
@@ -10,6 +10,17 @@ module Anthropic
|
|
|
10
10
|
required :type, const: :unavailable
|
|
11
11
|
|
|
12
12
|
# @!method initialize(type: :unavailable)
|
|
13
|
+
# A `cache_miss_reason` for when the API can't give a diagnosis. The request
|
|
14
|
+
# itself was processed normally.
|
|
15
|
+
#
|
|
16
|
+
# This includes a request whose `model`, `system`, and `tools` match the previous
|
|
17
|
+
# request's but whose other prompt-affecting parameters, such as `thinking` or
|
|
18
|
+
# `tool_choice`, differ.
|
|
19
|
+
#
|
|
20
|
+
# See the
|
|
21
|
+
# [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types)
|
|
22
|
+
# to learn what to change for each reason.
|
|
23
|
+
#
|
|
13
24
|
# @param type [Symbol, :unavailable]
|
|
14
25
|
end
|
|
15
26
|
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::UserProfiles#delete
|
|
7
|
+
class BetaDeletedUserProfile < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Identifier of the deleted user profile, prefixed `uprof_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
# Object type. Always `user_profile_deleted`.
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, :user_profile_deleted]
|
|
18
|
+
required :type, const: :user_profile_deleted
|
|
19
|
+
|
|
20
|
+
# @!method initialize(id:, type: :user_profile_deleted)
|
|
21
|
+
# @param id [String] Identifier of the deleted user profile, prefixed `uprof_`.
|
|
22
|
+
#
|
|
23
|
+
# @param type [Symbol, :user_profile_deleted] Object type. Always `user_profile_deleted`.
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
BetaDeletedUserProfile = Beta::BetaDeletedUserProfile
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -14,24 +14,68 @@ module Anthropic
|
|
|
14
14
|
required :model, union: -> { Anthropic::Model }
|
|
15
15
|
|
|
16
16
|
# @!attribute max_tokens
|
|
17
|
+
# The `max_tokens` for the fallback attempt that uses this `fallbacks` entry's
|
|
18
|
+
# `model`, in place of the request's `max_tokens`. If you leave it out or set it
|
|
19
|
+
# to `null`, the attempt uses the request's `max_tokens`.
|
|
20
|
+
#
|
|
21
|
+
# See the
|
|
22
|
+
# [refusals and fallback guide](https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#naming-your-own-fallback-models)
|
|
23
|
+
# to learn more about fallback entries.
|
|
17
24
|
#
|
|
18
25
|
# @return [Integer, nil]
|
|
19
26
|
optional :max_tokens, Integer, nil?: true
|
|
20
27
|
|
|
21
28
|
# @!attribute output_config
|
|
29
|
+
# Output parameters for the fallback attempt that uses this `fallbacks` entry's
|
|
30
|
+
# `model`, combined with the request's `output_config` one field at a time.
|
|
31
|
+
#
|
|
32
|
+
# - `format`: If you leave it out, the attempt uses the request's `format`. If you
|
|
33
|
+
# set it to `null`, the attempt runs without a format.
|
|
34
|
+
# - `effort`: If you leave it out, the attempt uses the request's `effort` when
|
|
35
|
+
# `model` supports that level with the attempt's `thinking`. If the request
|
|
36
|
+
# doesn't set `effort`, if `model` doesn't support the level, or if you set
|
|
37
|
+
# `effort` to `null`, the attempt runs at the default effort of `model`.
|
|
38
|
+
# - `task_budget`: If you leave it out, the attempt uses the request's
|
|
39
|
+
# `task_budget` when `model` accepts a task budget of that size. If the request
|
|
40
|
+
# doesn't set `task_budget`, if `model` doesn't accept it, or if you set
|
|
41
|
+
# `task_budget` to `null`, the attempt runs without a task budget.
|
|
42
|
+
#
|
|
43
|
+
# Set `output_config` to `null` to run the attempt without a format or a task
|
|
44
|
+
# budget, at the default effort of `model`.
|
|
45
|
+
#
|
|
46
|
+
# These rules apply with the `server-side-fallback-2026-07-01` beta header.
|
|
22
47
|
#
|
|
23
48
|
# @return [Anthropic::Models::Beta::BetaOutputConfig, nil]
|
|
24
49
|
optional :output_config, -> { Anthropic::Beta::BetaOutputConfig }, nil?: true
|
|
25
50
|
|
|
26
51
|
# @!attribute speed
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
52
|
+
# The inference speed mode for the fallback attempt that uses this `fallbacks`
|
|
53
|
+
# entry's `model`. If you leave it out, the attempt runs at `fast` speed only when
|
|
54
|
+
# the request sets `speed` to `fast` and your organization can use fast mode on
|
|
55
|
+
# `model`.
|
|
56
|
+
#
|
|
57
|
+
# Otherwise, or when you set this field to `null`, the attempt runs at `standard`
|
|
58
|
+
# speed.
|
|
59
|
+
#
|
|
60
|
+
# These rules apply with the `server-side-fallback-2026-07-01` beta header.
|
|
30
61
|
#
|
|
31
62
|
# @return [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil]
|
|
32
63
|
optional :speed, enum: -> { Anthropic::Beta::BetaFallbackParam::Speed }, nil?: true
|
|
33
64
|
|
|
34
65
|
# @!attribute thinking
|
|
66
|
+
# The thinking configuration for the fallback attempt that uses this `fallbacks`
|
|
67
|
+
# entry's `model`. If you leave it out, the attempt uses the request's `thinking`
|
|
68
|
+
# when `model` supports that thinking `type`.
|
|
69
|
+
#
|
|
70
|
+
# If you leave it out and the request's thinking `type` is `between_tools` but
|
|
71
|
+
# `model` doesn't support `between_tools`, the attempt uses `disabled` if `model`
|
|
72
|
+
# supports it. Otherwise, if `model` doesn't support the request's thinking
|
|
73
|
+
# `type`, if the request doesn't set `thinking`, or if you set this field to
|
|
74
|
+
# `null`, the attempt uses the thinking `type` that `model` uses when a request
|
|
75
|
+
# leaves out `thinking`. The request's `thinking.display` still applies where
|
|
76
|
+
# `model` allows it.
|
|
77
|
+
#
|
|
78
|
+
# These rules apply with the `server-side-fallback-2026-07-01` beta header.
|
|
35
79
|
#
|
|
36
80
|
# @return [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil]
|
|
37
81
|
optional :thinking, union: -> { Anthropic::Beta::BetaFallbackParam::Thinking }, nil?: true
|
|
@@ -49,17 +93,23 @@ module Anthropic
|
|
|
49
93
|
#
|
|
50
94
|
# @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
|
|
51
95
|
#
|
|
52
|
-
# @param max_tokens [Integer, nil]
|
|
96
|
+
# @param max_tokens [Integer, nil] The `max_tokens` for the fallback attempt that uses this `fallbacks` entry's `mo
|
|
53
97
|
#
|
|
54
|
-
# @param output_config [Anthropic::Models::Beta::BetaOutputConfig, nil]
|
|
98
|
+
# @param output_config [Anthropic::Models::Beta::BetaOutputConfig, nil] Output parameters for the fallback attempt that uses this `fallbacks` entry's `m
|
|
55
99
|
#
|
|
56
|
-
# @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil]
|
|
100
|
+
# @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil] The inference speed mode for the fallback attempt that uses this `fallbacks` ent
|
|
57
101
|
#
|
|
58
|
-
# @param thinking [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil]
|
|
102
|
+
# @param thinking [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigBetweenTools, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil] The thinking configuration for the fallback attempt that uses this `fallbacks` e
|
|
59
103
|
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
104
|
+
# The inference speed mode for the fallback attempt that uses this `fallbacks`
|
|
105
|
+
# entry's `model`. If you leave it out, the attempt runs at `fast` speed only when
|
|
106
|
+
# the request sets `speed` to `fast` and your organization can use fast mode on
|
|
107
|
+
# `model`.
|
|
108
|
+
#
|
|
109
|
+
# Otherwise, or when you set this field to `null`, the attempt runs at `standard`
|
|
110
|
+
# speed.
|
|
111
|
+
#
|
|
112
|
+
# These rules apply with the `server-side-fallback-2026-07-01` beta header.
|
|
63
113
|
#
|
|
64
114
|
# @see Anthropic::Models::Beta::BetaFallbackParam#speed
|
|
65
115
|
module Speed
|
|
@@ -72,6 +122,20 @@ module Anthropic
|
|
|
72
122
|
# @return [Array<Symbol>]
|
|
73
123
|
end
|
|
74
124
|
|
|
125
|
+
# The thinking configuration for the fallback attempt that uses this `fallbacks`
|
|
126
|
+
# entry's `model`. If you leave it out, the attempt uses the request's `thinking`
|
|
127
|
+
# when `model` supports that thinking `type`.
|
|
128
|
+
#
|
|
129
|
+
# If you leave it out and the request's thinking `type` is `between_tools` but
|
|
130
|
+
# `model` doesn't support `between_tools`, the attempt uses `disabled` if `model`
|
|
131
|
+
# supports it. Otherwise, if `model` doesn't support the request's thinking
|
|
132
|
+
# `type`, if the request doesn't set `thinking`, or if you set this field to
|
|
133
|
+
# `null`, the attempt uses the thinking `type` that `model` uses when a request
|
|
134
|
+
# leaves out `thinking`. The request's `thinking.display` still applies where
|
|
135
|
+
# `model` allows it.
|
|
136
|
+
#
|
|
137
|
+
# These rules apply with the `server-side-fallback-2026-07-01` beta header.
|
|
138
|
+
#
|
|
75
139
|
# @see Anthropic::Models::Beta::BetaFallbackParam#thinking
|
|
76
140
|
module Thinking
|
|
77
141
|
extend Anthropic::Internal::Type::Union
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
# @see Anthropic::Resources::Beta::Vaults#delete
|
|
7
7
|
class BetaManagedAgentsDeletedVault < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute id
|
|
9
|
-
#
|
|
9
|
+
# The unique ID of the deleted vault (`vlt_...`).
|
|
10
10
|
#
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :id, String
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
# @!method initialize(id:, type:)
|
|
20
20
|
# Confirmation of a deleted vault.
|
|
21
21
|
#
|
|
22
|
-
# @param id [String]
|
|
22
|
+
# @param id [String] The unique ID of the deleted vault (`vlt_...`).
|
|
23
23
|
#
|
|
24
24
|
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeletedVault::Type]
|
|
25
25
|
|
|
@@ -6,29 +6,34 @@ module Anthropic
|
|
|
6
6
|
# @see Anthropic::Resources::Beta::MemoryStores#create
|
|
7
7
|
class BetaManagedAgentsMemoryStore < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute id
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
# parameter of subsequent calls.
|
|
9
|
+
# The unique ID of the memory store (`memstore_...`). Use it to attach the store
|
|
10
|
+
# to a session.
|
|
12
11
|
#
|
|
13
12
|
# @return [String]
|
|
14
13
|
required :id, String
|
|
15
14
|
|
|
16
15
|
# @!attribute archived_at
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
# attached to new sessions.
|
|
16
|
+
# When the memory store was archived, in RFC 3339, or `null` if it hasn't been.
|
|
17
|
+
#
|
|
18
|
+
# Archiving can't be undone. An archived store can't be attached to new sessions.
|
|
19
|
+
# You can't create or update its memories or update the store. You can still read
|
|
20
|
+
# and delete its memories, redact their versions, and delete the store.
|
|
21
|
+
#
|
|
22
|
+
# See the
|
|
23
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#archive-a-store)
|
|
24
|
+
# to learn more about archiving.
|
|
20
25
|
#
|
|
21
26
|
# @return [Time, nil]
|
|
22
27
|
required :archived_at, Time, nil?: true
|
|
23
28
|
|
|
24
29
|
# @!attribute created_at
|
|
25
|
-
#
|
|
30
|
+
# When the memory store was created, in RFC 3339.
|
|
26
31
|
#
|
|
27
32
|
# @return [Time]
|
|
28
33
|
required :created_at, Time
|
|
29
34
|
|
|
30
35
|
# @!attribute description
|
|
31
|
-
# Free-text description of what the store contains, up to
|
|
36
|
+
# Free-text description of what the store contains, up to 1,024 characters.
|
|
32
37
|
# Included in the agent's system prompt when the store is attached, so word it to
|
|
33
38
|
# be useful to the agent. Empty string when unset.
|
|
34
39
|
#
|
|
@@ -36,9 +41,11 @@ module Anthropic
|
|
|
36
41
|
required :description, String
|
|
37
42
|
|
|
38
43
|
# @!attribute metadata
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
44
|
+
# Key-value pairs for your own use, such as the end user that the store belongs
|
|
45
|
+
# to.
|
|
46
|
+
#
|
|
47
|
+
# A store has at most 16 pairs. Keys are 1 to 64 characters long and values at
|
|
48
|
+
# most 512 characters. You can't filter lists by metadata.
|
|
42
49
|
#
|
|
43
50
|
# @return [Hash{Symbol=>String}]
|
|
44
51
|
required :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
@@ -56,8 +63,10 @@ module Anthropic
|
|
|
56
63
|
required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStore::Type }
|
|
57
64
|
|
|
58
65
|
# @!attribute updated_at
|
|
59
|
-
#
|
|
60
|
-
#
|
|
66
|
+
# When the memory store was last changed, in RFC 3339.
|
|
67
|
+
#
|
|
68
|
+
# Changing its `name`, `description`, or `metadata` updates it. Archiving the
|
|
69
|
+
# store does too. Changes to the store's memories don't.
|
|
61
70
|
#
|
|
62
71
|
# @return [Time]
|
|
63
72
|
required :updated_at, Time
|
|
@@ -70,21 +79,21 @@ module Anthropic
|
|
|
70
79
|
# Some parameter documentations has been truncated, see
|
|
71
80
|
# {Anthropic::Models::Beta::BetaManagedAgentsMemoryStore} for more details.
|
|
72
81
|
#
|
|
73
|
-
# @param id [String]
|
|
82
|
+
# @param id [String] The unique ID of the memory store (`memstore_...`). Use it to attach the store t
|
|
74
83
|
#
|
|
75
|
-
# @param archived_at [Time, nil]
|
|
84
|
+
# @param archived_at [Time, nil] When the memory store was archived, in RFC 3339, or `null` if it hasn't been.
|
|
76
85
|
#
|
|
77
|
-
# @param created_at [Time]
|
|
86
|
+
# @param created_at [Time] When the memory store was created, in RFC 3339.
|
|
78
87
|
#
|
|
79
|
-
# @param description [String] Free-text description of what the store contains, up to
|
|
88
|
+
# @param description [String] Free-text description of what the store contains, up to 1,024 characters. Includ
|
|
80
89
|
#
|
|
81
|
-
# @param metadata [Hash{Symbol=>String}]
|
|
90
|
+
# @param metadata [Hash{Symbol=>String}] Key-value pairs for your own use, such as the end user that the store belongs to
|
|
82
91
|
#
|
|
83
92
|
# @param name [String] Human-readable name for the store. 1–255 characters. The store's mount-path slug
|
|
84
93
|
#
|
|
85
94
|
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type]
|
|
86
95
|
#
|
|
87
|
-
# @param updated_at [Time]
|
|
96
|
+
# @param updated_at [Time] When the memory store was last changed, in RFC 3339.
|
|
88
97
|
|
|
89
98
|
# @see Anthropic::Models::Beta::BetaManagedAgentsMemoryStore#type
|
|
90
99
|
module Type
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
# @see Anthropic::Resources::Beta::Vaults#create
|
|
7
7
|
class BetaManagedAgentsVault < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute id
|
|
9
|
-
#
|
|
9
|
+
# The unique ID of the vault (`vlt_...`).
|
|
10
10
|
#
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :id, String
|
|
@@ -49,7 +49,7 @@ module Anthropic
|
|
|
49
49
|
# @!method initialize(id:, archived_at:, created_at:, display_name:, metadata:, type:, updated_at:)
|
|
50
50
|
# A vault that stores credentials for use by agents during sessions.
|
|
51
51
|
#
|
|
52
|
-
# @param id [String]
|
|
52
|
+
# @param id [String] The unique ID of the vault (`vlt_...`).
|
|
53
53
|
#
|
|
54
54
|
# @param archived_at [Time, nil] When the vault was archived. Null if not archived.
|
|
55
55
|
#
|
|
@@ -24,6 +24,15 @@ module Anthropic
|
|
|
24
24
|
# @return [Hash{Symbol=>String}]
|
|
25
25
|
required :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
26
26
|
|
|
27
|
+
# @!attribute name
|
|
28
|
+
# Real-world name of the entity this profile represents (company or individual).
|
|
29
|
+
# For a company the platform resells Claude access to (`access_type`
|
|
30
|
+
# `passthrough`) this is that company's name. `null` until the platform supplies
|
|
31
|
+
# one.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
required :name, String, nil?: true
|
|
35
|
+
|
|
27
36
|
# @!attribute trust_grants
|
|
28
37
|
# Trust grants for this profile, keyed by grant name. Key omitted when no grant is
|
|
29
38
|
# active or in flight.
|
|
@@ -39,34 +48,36 @@ module Anthropic
|
|
|
39
48
|
required :type, enum: -> { Anthropic::Beta::BetaUserProfile::Type }
|
|
40
49
|
|
|
41
50
|
# @!attribute updated_at
|
|
42
|
-
# When this user profile was last modified, in RFC 3339 format.
|
|
43
|
-
#
|
|
51
|
+
# When this user profile was last modified, in RFC 3339 format. It normally also
|
|
52
|
+
# updates shortly after Anthropic gives the profile an approval or withdraws one.
|
|
53
|
+
# Other changes to the statuses that Anthropic reports do not always update it, so
|
|
54
|
+
# read the status itself rather than watching this timestamp.
|
|
44
55
|
#
|
|
45
56
|
# @return [Time]
|
|
46
57
|
required :updated_at, Time
|
|
47
58
|
|
|
48
59
|
# @!attribute access_type
|
|
49
60
|
# How the platform uses the API for this entity: `application` (default) or
|
|
50
|
-
# `passthrough`.
|
|
51
|
-
# headers.
|
|
61
|
+
# `passthrough`. Absent under the legacy `user-profiles-2026-03-24` beta header.
|
|
52
62
|
#
|
|
53
63
|
# @return [Symbol, Anthropic::Models::Beta::BetaUserProfile::AccessType, nil]
|
|
54
64
|
optional :access_type, enum: -> { Anthropic::Beta::BetaUserProfile::AccessType }
|
|
55
65
|
|
|
56
66
|
# @!attribute external_id
|
|
57
|
-
# Platform's own identifier for this user. Not enforced unique.
|
|
58
|
-
# `user-profiles-2026-03-24` and `user-profiles-2026-08-18`
|
|
59
|
-
#
|
|
67
|
+
# Platform's own identifier for this user. Not enforced unique. Legacy field,
|
|
68
|
+
# present only under the `user-profiles-2026-03-24` and `user-profiles-2026-08-18`
|
|
69
|
+
# beta headers; without one of them, the value is
|
|
70
|
+
# `external_user_details.reference_id`.
|
|
60
71
|
#
|
|
61
72
|
# @return [String, nil]
|
|
62
73
|
optional :external_id, String, nil?: true
|
|
63
74
|
|
|
64
75
|
# @!attribute external_user_details
|
|
65
76
|
# Details about the entity this profile represents, as the platform states them;
|
|
66
|
-
# not verified by Anthropic.
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
# and `user-profiles-2026-08-18
|
|
77
|
+
# not verified by Anthropic. Every field is present, `null` until the platform
|
|
78
|
+
# supplies a value. Absent under the legacy `user-profiles-2026-03-24` and
|
|
79
|
+
# `user-profiles-2026-08-18` beta headers, which serve `reference_id` as the
|
|
80
|
+
# top-level `external_id` and, under `user-profiles-2026-08-18`, `onboarded_at` as
|
|
70
81
|
# `external_user_onboarded_at`.
|
|
71
82
|
#
|
|
72
83
|
# @return [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails, nil]
|
|
@@ -75,21 +86,14 @@ module Anthropic
|
|
|
75
86
|
# @!attribute external_user_onboarded_at
|
|
76
87
|
# When the entity this profile represents opened its account with the platform, as
|
|
77
88
|
# stated by the platform, in RFC 3339 format (UTC). `null` until the platform
|
|
78
|
-
# supplies one.
|
|
79
|
-
#
|
|
89
|
+
# supplies one. Legacy field, present only under the `user-profiles-2026-08-18`
|
|
90
|
+
# beta header; without a legacy header, the value is
|
|
91
|
+
# `external_user_details.onboarded_at`.
|
|
80
92
|
#
|
|
81
93
|
# @return [Time, nil]
|
|
82
94
|
optional :external_user_onboarded_at, Time, nil?: true
|
|
83
95
|
|
|
84
|
-
# @!
|
|
85
|
-
# Real-world name of the entity this profile represents (company or individual).
|
|
86
|
-
# For a company the platform resells Claude access to (`access_type`
|
|
87
|
-
# `passthrough`) this is that company's name.
|
|
88
|
-
#
|
|
89
|
-
# @return [String, nil]
|
|
90
|
-
optional :name, String, nil?: true
|
|
91
|
-
|
|
92
|
-
# @!method initialize(id:, created_at:, metadata:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil, name: nil)
|
|
96
|
+
# @!method initialize(id:, created_at:, metadata:, name:, trust_grants:, type:, updated_at:, access_type: nil, external_id: nil, external_user_details: nil, external_user_onboarded_at: nil)
|
|
93
97
|
# A record of an entity that the platform serves through the API, such as an
|
|
94
98
|
# end-user of the platform's product or a company that the platform resells Claude
|
|
95
99
|
# access to.
|
|
@@ -107,21 +111,21 @@ module Anthropic
|
|
|
107
111
|
#
|
|
108
112
|
# @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up t
|
|
109
113
|
#
|
|
114
|
+
# @param name [String, nil] Real-world name of the entity this profile represents (company or individual). F
|
|
115
|
+
#
|
|
110
116
|
# @param trust_grants [Hash{Symbol=>Anthropic::Models::Beta::BetaUserProfileTrustGrant}] Trust grants for this profile, keyed by grant name. Key omitted when no grant is
|
|
111
117
|
#
|
|
112
118
|
# @param type [Symbol, Anthropic::Models::Beta::BetaUserProfile::Type] Object type. Always `user_profile`.
|
|
113
119
|
#
|
|
114
|
-
# @param updated_at [Time] When this user profile was last modified, in RFC 3339 format.
|
|
120
|
+
# @param updated_at [Time] When this user profile was last modified, in RFC 3339 format. It normally also u
|
|
115
121
|
#
|
|
116
122
|
# @param access_type [Symbol, Anthropic::Models::Beta::BetaUserProfile::AccessType] How the platform uses the API for this entity: `application` (default) or `passt
|
|
117
123
|
#
|
|
118
|
-
# @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique.
|
|
124
|
+
# @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique. Legacy field, pres
|
|
119
125
|
#
|
|
120
126
|
# @param external_user_details [Anthropic::Models::Beta::BetaUserProfileExternalUserDetails] Details about the entity this profile represents, as the platform states them; n
|
|
121
127
|
#
|
|
122
128
|
# @param external_user_onboarded_at [Time, nil] When the entity this profile represents opened its account with the platform, as
|
|
123
|
-
#
|
|
124
|
-
# @param name [String, nil] Real-world name of the entity this profile represents (company or individual). F
|
|
125
129
|
|
|
126
130
|
# Object type. Always `user_profile`.
|
|
127
131
|
#
|
|
@@ -136,8 +140,7 @@ module Anthropic
|
|
|
136
140
|
end
|
|
137
141
|
|
|
138
142
|
# How the platform uses the API for this entity: `application` (default) or
|
|
139
|
-
# `passthrough`.
|
|
140
|
-
# headers.
|
|
143
|
+
# `passthrough`. Absent under the legacy `user-profiles-2026-03-24` beta header.
|
|
141
144
|
#
|
|
142
145
|
# @see Anthropic::Models::Beta::BetaUserProfile#access_type
|
|
143
146
|
module AccessType
|
|
@@ -25,7 +25,7 @@ module Anthropic
|
|
|
25
25
|
|
|
26
26
|
# @!method initialize(expires_at:, type:, url:)
|
|
27
27
|
# A URL to give to the entity that a user profile represents, so that the entity
|
|
28
|
-
# can enroll
|
|
28
|
+
# can enroll in a program.
|
|
29
29
|
#
|
|
30
30
|
# @param expires_at [Time] When this enrollment URL expires, in RFC 3339 format.
|
|
31
31
|
#
|
|
@@ -9,9 +9,10 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to archive (
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# The ID of the memory store to archive (`memstore_...`).
|
|
13
|
+
#
|
|
14
|
+
# Archiving can't be undone. Archiving a store that is already archived returns it
|
|
15
|
+
# unchanged.
|
|
15
16
|
#
|
|
16
17
|
# @return [String]
|
|
17
18
|
required :memory_store_id, String
|
|
@@ -38,7 +39,7 @@ module Anthropic
|
|
|
38
39
|
# Some parameter documentations has been truncated, see
|
|
39
40
|
# {Anthropic::Models::Beta::MemoryStoreArchiveParams} for more details.
|
|
40
41
|
#
|
|
41
|
-
# @param memory_store_id [String] ID of the memory store to archive (
|
|
42
|
+
# @param memory_store_id [String] The ID of the memory store to archive (`memstore_...`).
|
|
42
43
|
#
|
|
43
44
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
44
45
|
#
|
|
@@ -9,16 +9,23 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute name
|
|
12
|
-
#
|
|
13
|
-
# characters.
|
|
14
|
-
#
|
|
15
|
-
#
|
|
12
|
+
# The name of the memory store, 1 to 255 characters long, without control
|
|
13
|
+
# characters. Names don't have to be unique in a workspace.
|
|
14
|
+
#
|
|
15
|
+
# In a session, the store's directory under `/mnt/memory/` is based on this name.
|
|
16
|
+
# The name is lowercased and every run of characters other than ASCII letters and
|
|
17
|
+
# digits becomes one hyphen. The session's memory store resource gives the exact
|
|
18
|
+
# path in `mount_path`.
|
|
19
|
+
#
|
|
20
|
+
# See the
|
|
21
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#how-the-agent-accesses-memory)
|
|
22
|
+
# to learn more about how agents access memory stores.
|
|
16
23
|
#
|
|
17
24
|
# @return [String]
|
|
18
25
|
required :name, String
|
|
19
26
|
|
|
20
27
|
# @!attribute description
|
|
21
|
-
# Free-text description of what the store contains, up to
|
|
28
|
+
# Free-text description of what the store contains, up to 1,024 characters.
|
|
22
29
|
# Included in the agent's system prompt when the store is attached, so word it to
|
|
23
30
|
# be useful to the agent.
|
|
24
31
|
#
|
|
@@ -26,9 +33,11 @@ module Anthropic
|
|
|
26
33
|
optional :description, String
|
|
27
34
|
|
|
28
35
|
# @!attribute metadata
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
36
|
+
# Key-value pairs for your own use, such as the end user that the store belongs
|
|
37
|
+
# to. The agent doesn't see them.
|
|
38
|
+
#
|
|
39
|
+
# A store has at most 16 pairs. Keys are 1 to 64 characters long and values at
|
|
40
|
+
# most 512 characters.
|
|
32
41
|
#
|
|
33
42
|
# @return [Hash{Symbol=>String}, nil]
|
|
34
43
|
optional :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
@@ -55,11 +64,11 @@ module Anthropic
|
|
|
55
64
|
# Some parameter documentations has been truncated, see
|
|
56
65
|
# {Anthropic::Models::Beta::MemoryStoreCreateParams} for more details.
|
|
57
66
|
#
|
|
58
|
-
# @param name [String]
|
|
67
|
+
# @param name [String] The name of the memory store, 1 to 255 characters long, without control characte
|
|
59
68
|
#
|
|
60
|
-
# @param description [String] Free-text description of what the store contains, up to
|
|
69
|
+
# @param description [String] Free-text description of what the store contains, up to 1,024 characters. Includ
|
|
61
70
|
#
|
|
62
|
-
# @param metadata [Hash{Symbol=>String}]
|
|
71
|
+
# @param metadata [Hash{Symbol=>String}] Key-value pairs for your own use, such as the end user that the store belongs to
|
|
63
72
|
#
|
|
64
73
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
65
74
|
#
|
|
@@ -9,9 +9,10 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# The ID of the memory store to delete (`memstore_...`).
|
|
13
|
+
#
|
|
14
|
+
# Deleting a store also deletes all its memories and memory versions. It can't be
|
|
15
|
+
# undone.
|
|
15
16
|
#
|
|
16
17
|
# @return [String]
|
|
17
18
|
required :memory_store_id, String
|
|
@@ -38,7 +39,7 @@ module Anthropic
|
|
|
38
39
|
# Some parameter documentations has been truncated, see
|
|
39
40
|
# {Anthropic::Models::Beta::MemoryStoreDeleteParams} for more details.
|
|
40
41
|
#
|
|
41
|
-
# @param memory_store_id [String] ID of the memory store to
|
|
42
|
+
# @param memory_store_id [String] The ID of the memory store to delete (`memstore_...`).
|
|
42
43
|
#
|
|
43
44
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
44
45
|
#
|