anthropic 2.5.0 → 2.6.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 +27 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +10 -0
- data/lib/anthropic/errors.rb +11 -0
- data/lib/anthropic/internal/tracing.rb +1 -0
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/api_error_object.rb +9 -2
- data/lib/anthropic/models/authentication_error.rb +9 -2
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +1 -1
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +1 -7
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +3 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +1 -3
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rb +24 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rb +21 -0
- data/lib/anthropic/models/beta/organization/user_sign_out_params.rb +38 -0
- data/lib/anthropic/models/beta_api_error.rb +9 -2
- data/lib/anthropic/models/beta_authentication_error.rb +9 -2
- data/lib/anthropic/models/beta_billing_error.rb +9 -2
- data/lib/anthropic/models/beta_error.rb +4 -1
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/beta_invalid_request_error.rb +9 -2
- data/lib/anthropic/models/beta_not_found_error.rb +9 -2
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error.rb +20 -0
- data/lib/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rb +18 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +9 -2
- data/lib/anthropic/models/beta_permission_error.rb +9 -2
- data/lib/anthropic/models/beta_rate_limit_error.rb +9 -2
- data/lib/anthropic/models/billing_error.rb +9 -2
- data/lib/anthropic/models/error_details.rb +69 -2
- data/lib/anthropic/models/error_object.rb +4 -1
- data/lib/anthropic/models/gateway_timeout_error.rb +9 -2
- data/lib/anthropic/models/invalid_request_error.rb +9 -2
- data/lib/anthropic/models/not_found_error.rb +9 -2
- data/lib/anthropic/models/organization/external_key_validation_failed_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_failed_error_details.rb +20 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error.rb +22 -0
- data/lib/anthropic/models/organization/external_key_validation_timed_out_error_details.rb +20 -0
- data/lib/anthropic/models/overloaded_error.rb +9 -2
- data/lib/anthropic/models/permission_error.rb +9 -2
- data/lib/anthropic/models/ramp_limit_exceeded_error.rb +20 -0
- data/lib/anthropic/models/ramp_limit_exceeded_error_details.rb +18 -0
- data/lib/anthropic/models/rate_limit_error.rb +9 -2
- data/lib/anthropic/models.rb +9 -0
- data/lib/anthropic/resources/beta/environments/work.rb +10 -24
- data/lib/anthropic/resources/beta/environments.rb +16 -37
- data/lib/anthropic/resources/beta/files.rb +23 -50
- data/lib/anthropic/resources/beta/messages/batches.rb +15 -35
- data/lib/anthropic/resources/beta/messages.rb +74 -139
- data/lib/anthropic/resources/beta/models.rb +4 -10
- data/lib/anthropic/resources/beta/organization/api_keys.rb +2 -2
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles/targets.rb +16 -24
- data/lib/anthropic/resources/beta/organization/claude_tag/bundles.rb +8 -12
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_channels.rb +28 -46
- data/lib/anthropic/resources/beta/organization/claude_tag/slack_workspaces.rb +15 -24
- data/lib/anthropic/resources/beta/organization/external_keys.rb +3 -7
- data/lib/anthropic/resources/beta/organization/invites.rb +7 -17
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +1 -2
- data/lib/anthropic/resources/beta/organization/plugins/versions.rb +7 -14
- data/lib/anthropic/resources/beta/organization/plugins.rb +12 -24
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +4 -14
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +2 -7
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +6 -12
- data/lib/anthropic/resources/beta/organization/users.rb +65 -4
- data/lib/anthropic/resources/beta/organization/workspaces/members.rb +2 -2
- data/lib/anthropic/resources/beta/organization/workspaces.rb +12 -22
- data/lib/anthropic/resources/beta/skills/versions.rb +11 -26
- data/lib/anthropic/resources/beta/skills.rb +11 -26
- data/lib/anthropic/resources/files.rb +23 -50
- data/lib/anthropic/resources/messages/batches.rb +15 -35
- data/lib/anthropic/resources/messages.rb +74 -139
- data/lib/anthropic/resources/models.rb +4 -10
- data/lib/anthropic/resources/organization/api_keys.rb +2 -2
- data/lib/anthropic/resources/organization/external_keys.rb +3 -7
- data/lib/anthropic/resources/organization/invites.rb +7 -17
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +4 -14
- data/lib/anthropic/resources/organization/rbac_groups.rb +2 -7
- data/lib/anthropic/resources/organization/spend_limits/effective.rb +1 -2
- data/lib/anthropic/resources/organization/users.rb +2 -4
- data/lib/anthropic/resources/organization/workspaces/members.rb +2 -2
- data/lib/anthropic/resources/organization/workspaces.rb +12 -22
- data/lib/anthropic/resources/skills/versions.rb +11 -26
- data/lib/anthropic/resources/skills.rb +11 -26
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +22 -0
- data/manifest.yaml +1 -0
- data/rbi/anthropic/errors.rbi +14 -0
- data/rbi/anthropic/internal/tracing.rbi +1 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/api_error_object.rbi +10 -1
- data/rbi/anthropic/models/authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +1 -8
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +1 -6
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbi +26 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbi +33 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbi +25 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbi +32 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbi +24 -0
- data/rbi/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbi +31 -0
- data/rbi/anthropic/models/beta/organization/user_sign_out_params.rbi +75 -0
- data/rbi/anthropic/models/beta_api_error.rbi +10 -1
- data/rbi/anthropic/models/beta_authentication_error.rbi +10 -1
- data/rbi/anthropic/models/beta_billing_error.rbi +10 -1
- data/rbi/anthropic/models/beta_error.rbi +6 -1
- data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/beta_invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/beta_not_found_error.rbi +10 -1
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbi +17 -0
- data/rbi/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbi +28 -0
- data/rbi/anthropic/models/beta_overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/beta_permission_error.rbi +10 -1
- data/rbi/anthropic/models/beta_rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models/billing_error.rbi +10 -1
- data/rbi/anthropic/models/error_details.rbi +60 -0
- data/rbi/anthropic/models/error_object.rbi +6 -1
- data/rbi/anthropic/models/gateway_timeout_error.rbi +10 -1
- data/rbi/anthropic/models/invalid_request_error.rbi +10 -1
- data/rbi/anthropic/models/not_found_error.rbi +10 -1
- data/rbi/anthropic/models/organization/external_key_validation_failed_error.rbi +23 -0
- data/rbi/anthropic/models/organization/external_key_validation_failed_error_details.rbi +30 -0
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error.rbi +23 -0
- data/rbi/anthropic/models/organization/external_key_validation_timed_out_error_details.rbi +30 -0
- data/rbi/anthropic/models/overloaded_error.rbi +10 -1
- data/rbi/anthropic/models/permission_error.rbi +10 -1
- data/rbi/anthropic/models/ramp_limit_exceeded_error.rbi +17 -0
- data/rbi/anthropic/models/ramp_limit_exceeded_error_details.rbi +28 -0
- data/rbi/anthropic/models/rate_limit_error.rbi +10 -1
- data/rbi/anthropic/models.rbi +11 -0
- data/rbi/anthropic/resources/beta/organization/users.rbi +43 -0
- data/sig/anthropic/errors.rbs +3 -0
- data/sig/anthropic/internal/tracing.rbs +1 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_managed_member_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_membership_admin_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_primary_owner_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_privileged_member_error_details.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error.rbs +13 -0
- data/sig/anthropic/models/beta/organization/beta_cannot_sign_out_self_error_details.rbs +18 -0
- data/sig/anthropic/models/beta/organization/user_sign_out_params.rbs +36 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error.rbs +9 -0
- data/sig/anthropic/models/beta_organization_not_enrolled_in_beta_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +67 -0
- data/sig/anthropic/models/organization/external_key_validation_failed_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_failed_error_details.rbs +16 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error.rbs +11 -0
- data/sig/anthropic/models/organization/external_key_validation_timed_out_error_details.rbs +18 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error.rbs +9 -0
- data/sig/anthropic/models/ramp_limit_exceeded_error_details.rbs +14 -0
- data/sig/anthropic/models.rbs +8 -0
- data/sig/anthropic/resources/beta/organization/users.rbs +6 -0
- metadata +65 -2
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaAPIError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :api_error]
|
|
14
17
|
required :type, const: :api_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :api_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaAPIError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :api_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaAuthenticationError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :authentication_error]
|
|
14
17
|
required :type, const: :authentication_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :authentication_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaAuthenticationError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :authentication_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaBillingError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :billing_error]
|
|
14
17
|
required :type, const: :billing_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :billing_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaBillingError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -48,11 +48,14 @@ module Anthropic
|
|
|
48
48
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
49
|
# value, passing the remaining arguments to its constructor.
|
|
50
50
|
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Anthropic::Models::BetaError} for more details.
|
|
53
|
+
#
|
|
51
54
|
# @param type [Symbol, Anthropic::Models::BetaError::Type, String]
|
|
52
55
|
#
|
|
53
56
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
54
57
|
#
|
|
55
|
-
# @option args [String] :message
|
|
58
|
+
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
56
59
|
#
|
|
57
60
|
# @raise [ArgumentError]
|
|
58
61
|
# @return [Anthropic::Models::BetaInvalidRequestError, Anthropic::Models::BetaAuthenticationError, Anthropic::Models::BetaBillingError, Anthropic::Models::BetaPermissionError, Anthropic::Models::BetaNotFoundError, Anthropic::Models::BetaRateLimitError, Anthropic::Models::BetaGatewayTimeoutError, Anthropic::Models::BetaAPIError, Anthropic::Models::BetaOverloadedError]
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaGatewayTimeoutError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :timeout_error]
|
|
14
17
|
required :type, const: :timeout_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :timeout_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaGatewayTimeoutError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :timeout_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaInvalidRequestError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :invalid_request_error]
|
|
14
17
|
required :type, const: :invalid_request_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :invalid_request_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaInvalidRequestError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :invalid_request_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaNotFoundError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :not_found_error]
|
|
14
17
|
required :type, const: :not_found_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :not_found_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaNotFoundError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :not_found_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
6
|
+
# message names the beta value.
|
|
7
|
+
class BetaOrganizationNotEnrolledInBetaError < Anthropic::Errors::BadRequestError
|
|
8
|
+
# @!method error_code
|
|
9
|
+
# @return [Symbol, :organization_not_enrolled_in_beta]
|
|
10
|
+
|
|
11
|
+
# @return [Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails]
|
|
12
|
+
def details
|
|
13
|
+
Anthropic::Internal::Type::Converter.coerce(
|
|
14
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails,
|
|
15
|
+
Anthropic::Internal::Util.dig(body, [:error, :details])
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaOrganizationNotEnrolledInBetaErrorDetails < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, :organization_not_enrolled_in_beta]
|
|
9
|
+
required :error_code, const: :organization_not_enrolled_in_beta
|
|
10
|
+
|
|
11
|
+
# @!method initialize(error_code: :organization_not_enrolled_in_beta)
|
|
12
|
+
# The beta that the endpoint requires is not enabled for the organization. The
|
|
13
|
+
# message names the beta value.
|
|
14
|
+
#
|
|
15
|
+
# @param error_code [Symbol, :organization_not_enrolled_in_beta]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaOverloadedError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :overloaded_error]
|
|
14
17
|
required :type, const: :overloaded_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :overloaded_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaOverloadedError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :overloaded_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaPermissionError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :permission_error]
|
|
14
17
|
required :type, const: :permission_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :permission_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaPermissionError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :permission_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BetaRateLimitError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :rate_limit_error]
|
|
14
17
|
required :type, const: :rate_limit_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :rate_limit_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaRateLimitError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :rate_limit_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class BillingError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :billing_error]
|
|
14
17
|
required :type, const: :billing_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :billing_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BillingError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :billing_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -87,6 +87,9 @@ module Anthropic
|
|
|
87
87
|
# The organization has crossed the monthly API usage threshold of its API tier.
|
|
88
88
|
variant :enforced_spend_limit_reached, -> { Anthropic::EnforcedSpendLimitReachedErrorDetails }
|
|
89
89
|
|
|
90
|
+
# The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the `retry-after` header.
|
|
91
|
+
variant :ramp_limit_exceeded, -> { Anthropic::RampLimitExceededErrorDetails }
|
|
92
|
+
|
|
90
93
|
# The workspace's customer-managed encryption key could not be reached. Retry the request; if this continues, check that the key is available in your key management service, or contact Anthropic support.
|
|
91
94
|
variant :cmek_key_unreachable, -> { Anthropic::CMEKKeyUnreachableErrorDetails }
|
|
92
95
|
|
|
@@ -149,6 +152,14 @@ module Anthropic
|
|
|
149
152
|
# Another change to the organization's members is in progress. Retry the request once it completes.
|
|
150
153
|
variant :concurrent_membership_change, -> { Anthropic::ConcurrentMembershipChangeErrorDetails }
|
|
151
154
|
|
|
155
|
+
# The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
|
|
156
|
+
variant :external_key_validation_failed,
|
|
157
|
+
-> { Anthropic::Organization::ExternalKeyValidationFailedErrorDetails }
|
|
158
|
+
|
|
159
|
+
# Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
|
|
160
|
+
variant :external_key_validation_timed_out,
|
|
161
|
+
-> { Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails }
|
|
162
|
+
|
|
152
163
|
# The External Key is bound to a user profile, and the Workspace does not have that user profile. A Workspace can use only a key bound to its own user profile or a key that isn't bound to one.
|
|
153
164
|
variant :key_profile_mismatch, -> { Anthropic::Organization::KeyProfileMismatchErrorDetails }
|
|
154
165
|
|
|
@@ -184,6 +195,32 @@ module Anthropic
|
|
|
184
195
|
# `metadata` has too many keys, a key or value that is too long, or a reserved key. The message names each problem.
|
|
185
196
|
variant :invalid_metadata, -> { Anthropic::Beta::BetaInvalidMetadataErrorDetails }
|
|
186
197
|
|
|
198
|
+
# The member is the organization's primary owner, whom no API key or token can sign out.
|
|
199
|
+
variant :cannot_sign_out_primary_owner,
|
|
200
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails }
|
|
201
|
+
|
|
202
|
+
# The member is the user the API key or token belongs to.
|
|
203
|
+
variant :cannot_sign_out_self, -> { Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails }
|
|
204
|
+
|
|
205
|
+
# The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
|
|
206
|
+
variant :organization_not_enrolled_in_beta,
|
|
207
|
+
-> { Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails }
|
|
208
|
+
|
|
209
|
+
# On a public-sector deployment, only an API key or token that belongs to a person with owner permissions can sign out a member with the `managed` role.
|
|
210
|
+
variant :cannot_sign_out_managed_member,
|
|
211
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails }
|
|
212
|
+
|
|
213
|
+
# The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.
|
|
214
|
+
variant :cannot_sign_out_membership_admin,
|
|
215
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails }
|
|
216
|
+
|
|
217
|
+
# The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the `write:members` scope can.
|
|
218
|
+
variant :cannot_sign_out_owner, -> { Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails }
|
|
219
|
+
|
|
220
|
+
# This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.
|
|
221
|
+
variant :cannot_sign_out_privileged_member,
|
|
222
|
+
-> { Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails }
|
|
223
|
+
|
|
187
224
|
# Anthropic has temporarily disabled billing changes for the user account the credential belongs to. Contact support.
|
|
188
225
|
variant :billing_frozen, -> { Anthropic::Beta::BetaBillingFrozenErrorDetails }
|
|
189
226
|
|
|
@@ -268,6 +305,7 @@ module Anthropic
|
|
|
268
305
|
SKILL_READ_BLOCKED_UNDECRYPTABLE = :skill_read_blocked_undecryptable
|
|
269
306
|
REQUEST_BODY_TOO_LARGE_AFTER_DECODING = :request_body_too_large_after_decoding
|
|
270
307
|
ENFORCED_SPEND_LIMIT_REACHED = :enforced_spend_limit_reached
|
|
308
|
+
RAMP_LIMIT_EXCEEDED = :ramp_limit_exceeded
|
|
271
309
|
CMEK_KEY_UNREACHABLE = :cmek_key_unreachable
|
|
272
310
|
COMPACTION_UNAVAILABLE = :compaction_unavailable
|
|
273
311
|
STORAGE_QUOTA_EXCEEDED = :storage_quota_exceeded
|
|
@@ -287,6 +325,8 @@ module Anthropic
|
|
|
287
325
|
RBAC_GROUP_OWNER_ACCESS_UNCONFIRMED = :rbac_group_owner_access_unconfirmed
|
|
288
326
|
CANNOT_REMOVE_LAST_MEMBER = :cannot_remove_last_member
|
|
289
327
|
CONCURRENT_MEMBERSHIP_CHANGE = :concurrent_membership_change
|
|
328
|
+
EXTERNAL_KEY_VALIDATION_FAILED = :external_key_validation_failed
|
|
329
|
+
EXTERNAL_KEY_VALIDATION_TIMED_OUT = :external_key_validation_timed_out
|
|
290
330
|
KEY_PROFILE_MISMATCH = :key_profile_mismatch
|
|
291
331
|
WORKSPACE_POLICY_VIOLATION = :workspace_policy_violation
|
|
292
332
|
EXTERNAL_KEY_CHANGED = :external_key_changed
|
|
@@ -298,6 +338,13 @@ module Anthropic
|
|
|
298
338
|
ENVIRONMENT_UPDATE_DISABLED = :environment_update_disabled
|
|
299
339
|
HEARTBEAT_PRECONDITION_FAILED = :heartbeat_precondition_failed
|
|
300
340
|
INVALID_METADATA = :invalid_metadata
|
|
341
|
+
CANNOT_SIGN_OUT_PRIMARY_OWNER = :cannot_sign_out_primary_owner
|
|
342
|
+
CANNOT_SIGN_OUT_SELF = :cannot_sign_out_self
|
|
343
|
+
ORGANIZATION_NOT_ENROLLED_IN_BETA = :organization_not_enrolled_in_beta
|
|
344
|
+
CANNOT_SIGN_OUT_MANAGED_MEMBER = :cannot_sign_out_managed_member
|
|
345
|
+
CANNOT_SIGN_OUT_MEMBERSHIP_ADMIN = :cannot_sign_out_membership_admin
|
|
346
|
+
CANNOT_SIGN_OUT_OWNER = :cannot_sign_out_owner
|
|
347
|
+
CANNOT_SIGN_OUT_PRIVILEGED_MEMBER = :cannot_sign_out_privileged_member
|
|
301
348
|
BILLING_FROZEN = :billing_frozen
|
|
302
349
|
SPEND_LIMITS_ADMIN_API_WRITES_NOT_ENABLED = :spend_limits_admin_api_writes_not_enabled
|
|
303
350
|
UNSUPPORTED_CHARSET = :unsupported_charset
|
|
@@ -320,7 +367,7 @@ module Anthropic
|
|
|
320
367
|
end
|
|
321
368
|
|
|
322
369
|
# @!method self.variants
|
|
323
|
-
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
|
|
370
|
+
# @return [Array(Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails)]
|
|
324
371
|
|
|
325
372
|
# Creates a new instance of the variant class whose `error_code` matches the given
|
|
326
373
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -349,7 +396,7 @@ module Anthropic
|
|
|
349
396
|
# @option args [String] :slack_channel_id The identifier of the channel the request set up, starting with `slch_`.
|
|
350
397
|
#
|
|
351
398
|
# @raise [ArgumentError]
|
|
352
|
-
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
|
|
399
|
+
# @return [Anthropic::Models::AvailableToolsLimitExceededErrorDetails, Anthropic::Models::ClaudeCodeKeyCreatorNotMemberErrorDetails, Anthropic::Models::ClaudeCodeVersionTooOldErrorDetails, Anthropic::Models::CMEKKeyDisabledErrorDetails, Anthropic::Models::CMEKKeyNetworkBlockedErrorDetails, Anthropic::Models::CompactionBlockAmbiguousErrorDetails, Anthropic::Models::CompactionBlockMisplacedErrorDetails, Anthropic::Models::CompactionContentMismatchErrorDetails, Anthropic::Models::CompactionIncompleteTurnErrorDetails, Anthropic::Models::CompactionNothingToSummarizeErrorDetails, Anthropic::Models::CompactionSignatureInvalidErrorDetails, Anthropic::Models::CompactionTooManyToolReferencesErrorDetails, Anthropic::Models::CompactionToolChangesMismatchErrorDetails, Anthropic::Models::OrganizationOnHoldErrorDetails, Anthropic::Models::RequestBodyEncodingInvalidErrorDetails, Anthropic::Models::RequestBodyEncodingUnsupportedErrorDetails, Anthropic::Models::ThreadAlreadyContinuedErrorDetails, Anthropic::Models::ThreadContinueInFlightErrorDetails, Anthropic::Models::ThreadFingerprintMismatchErrorDetails, Anthropic::Models::ThreadUnsupportedRequestErrorDetails, Anthropic::Models::ToolNameConflictErrorDetails, Anthropic::Models::ToolReferenceUnresolvedErrorDetails, Anthropic::Models::ThreadNotFoundErrorDetails, Anthropic::Models::SkillReadBlockedUndecryptableErrorDetails, Anthropic::Models::RequestBodyTooLargeAfterDecodingErrorDetails, Anthropic::Models::EnforcedSpendLimitReachedErrorDetails, Anthropic::Models::RampLimitExceededErrorDetails, Anthropic::Models::CMEKKeyUnreachableErrorDetails, Anthropic::Models::CompactionUnavailableErrorDetails, Anthropic::Models::StorageQuotaExceededErrorDetails, Anthropic::Models::FileNotDownloadableErrorDetails, Anthropic::Models::FileExpiredErrorDetails, Anthropic::Models::CMEKContextUnavailableErrorDetails, Anthropic::Models::Organization::OrgAPIKeyLimitExceededErrorDetails, Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededErrorDetails, Anthropic::Models::UserProfileNotFoundErrorDetails, Anthropic::Models::Organization::ExternalKeyInWorkspacePolicyErrorDetails, Anthropic::Models::Organization::AlreadyMemberErrorDetails, Anthropic::Models::Organization::CannotInviteEmailsWithUnverifiedDomainsErrorDetails, Anthropic::Models::Organization::EmailDomainNotAllowedErrorDetails, Anthropic::Models::Organization::InviteAlreadyExistsErrorDetails, Anthropic::Models::OrgMemberLimitExceededErrorDetails, Anthropic::Models::Organization::RBACGroupGrantsOwnerAccessErrorDetails, Anthropic::Models::Organization::RBACGroupOwnerAccessUnconfirmedErrorDetails, Anthropic::Models::Organization::CannotRemoveLastMemberErrorDetails, Anthropic::Models::ConcurrentMembershipChangeErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationFailedErrorDetails, Anthropic::Models::Organization::ExternalKeyValidationTimedOutErrorDetails, Anthropic::Models::Organization::KeyProfileMismatchErrorDetails, Anthropic::Models::Organization::WorkspacePolicyViolationErrorDetails, Anthropic::Models::Organization::ExternalKeyChangedErrorDetails, Anthropic::Models::Organization::WorkspaceMemberLimitExceededErrorDetails, Anthropic::Models::OrganizationTypeNotSupportedErrorDetails, Anthropic::Models::Beta::BetaEnvironmentCreateDisabledErrorDetails, Anthropic::Models::Beta::BetaEnvironmentArchivedErrorDetails, Anthropic::Models::Beta::BetaInvalidConfigTypeChangeErrorDetails, Anthropic::Models::Beta::BetaEnvironmentUpdateDisabledErrorDetails, Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails, Anthropic::Models::Beta::BetaInvalidMetadataErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutSelfErrorDetails, Anthropic::Models::BetaOrganizationNotEnrolledInBetaErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutOwnerErrorDetails, Anthropic::Models::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails, Anthropic::Models::Beta::BetaBillingFrozenErrorDetails, Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails, Anthropic::Models::BetaUnsupportedCharsetErrorDetails, Anthropic::Models::Beta::Organization::BetaPluginNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaSkillNameTakenErrorDetails, Anthropic::Models::Beta::Organization::BetaRegistrationPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaScanFailedErrorDetails, Anthropic::Models::Beta::Organization::BetaScanPendingErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsRefusedErrorDetails, Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingErrorDetails, Anthropic::Models::Beta::Organization::BetaClaudeTagWritesNotEnabledErrorDetails, Anthropic::Models::Beta::Organization::BetaComplianceConfigurationRestrictedErrorDetails, Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredErrorDetails, Anthropic::Models::Beta::BetaEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails, Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictErrorDetails]
|
|
353
400
|
def self.new(error_code:, **args)
|
|
354
401
|
case error_code.to_sym
|
|
355
402
|
when :available_tools_limit_exceeded
|
|
@@ -404,6 +451,8 @@ module Anthropic
|
|
|
404
451
|
Anthropic::RequestBodyTooLargeAfterDecodingErrorDetails.new(**args)
|
|
405
452
|
when :enforced_spend_limit_reached
|
|
406
453
|
Anthropic::EnforcedSpendLimitReachedErrorDetails.new(**args)
|
|
454
|
+
when :ramp_limit_exceeded
|
|
455
|
+
Anthropic::RampLimitExceededErrorDetails.new(**args)
|
|
407
456
|
when :cmek_key_unreachable
|
|
408
457
|
Anthropic::CMEKKeyUnreachableErrorDetails.new(**args)
|
|
409
458
|
when :compaction_unavailable
|
|
@@ -442,6 +491,10 @@ module Anthropic
|
|
|
442
491
|
Anthropic::Organization::CannotRemoveLastMemberErrorDetails.new(**args)
|
|
443
492
|
when :concurrent_membership_change
|
|
444
493
|
Anthropic::ConcurrentMembershipChangeErrorDetails.new(**args)
|
|
494
|
+
when :external_key_validation_failed
|
|
495
|
+
Anthropic::Organization::ExternalKeyValidationFailedErrorDetails.new(**args)
|
|
496
|
+
when :external_key_validation_timed_out
|
|
497
|
+
Anthropic::Organization::ExternalKeyValidationTimedOutErrorDetails.new(**args)
|
|
445
498
|
when :key_profile_mismatch
|
|
446
499
|
Anthropic::Organization::KeyProfileMismatchErrorDetails.new(**args)
|
|
447
500
|
when :workspace_policy_violation
|
|
@@ -464,6 +517,20 @@ module Anthropic
|
|
|
464
517
|
Anthropic::Beta::Environments::BetaHeartbeatPreconditionFailedErrorDetails.new(**args)
|
|
465
518
|
when :invalid_metadata
|
|
466
519
|
Anthropic::Beta::BetaInvalidMetadataErrorDetails.new(**args)
|
|
520
|
+
when :cannot_sign_out_primary_owner
|
|
521
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrimaryOwnerErrorDetails.new(**args)
|
|
522
|
+
when :cannot_sign_out_self
|
|
523
|
+
Anthropic::Beta::Organization::BetaCannotSignOutSelfErrorDetails.new(**args)
|
|
524
|
+
when :organization_not_enrolled_in_beta
|
|
525
|
+
Anthropic::BetaOrganizationNotEnrolledInBetaErrorDetails.new(**args)
|
|
526
|
+
when :cannot_sign_out_managed_member
|
|
527
|
+
Anthropic::Beta::Organization::BetaCannotSignOutManagedMemberErrorDetails.new(**args)
|
|
528
|
+
when :cannot_sign_out_membership_admin
|
|
529
|
+
Anthropic::Beta::Organization::BetaCannotSignOutMembershipAdminErrorDetails.new(**args)
|
|
530
|
+
when :cannot_sign_out_owner
|
|
531
|
+
Anthropic::Beta::Organization::BetaCannotSignOutOwnerErrorDetails.new(**args)
|
|
532
|
+
when :cannot_sign_out_privileged_member
|
|
533
|
+
Anthropic::Beta::Organization::BetaCannotSignOutPrivilegedMemberErrorDetails.new(**args)
|
|
467
534
|
when :billing_frozen
|
|
468
535
|
Anthropic::Beta::BetaBillingFrozenErrorDetails.new(**args)
|
|
469
536
|
when :spend_limits_admin_api_writes_not_enabled
|
|
@@ -48,11 +48,14 @@ module Anthropic
|
|
|
48
48
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
49
|
# value, passing the remaining arguments to its constructor.
|
|
50
50
|
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Anthropic::Models::ErrorObject} for more details.
|
|
53
|
+
#
|
|
51
54
|
# @param type [Symbol, Anthropic::Models::ErrorObject::Type, String]
|
|
52
55
|
#
|
|
53
56
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
54
57
|
#
|
|
55
|
-
# @option args [String] :message
|
|
58
|
+
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
56
59
|
#
|
|
57
60
|
# @raise [ArgumentError]
|
|
58
61
|
# @return [Anthropic::Models::InvalidRequestError, Anthropic::Models::AuthenticationError, Anthropic::Models::BillingError, Anthropic::Models::PermissionError, Anthropic::Models::NotFoundError, Anthropic::Models::RateLimitError, Anthropic::Models::GatewayTimeoutError, Anthropic::Models::APIErrorObject, Anthropic::Models::OverloadedError]
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class GatewayTimeoutError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :timeout_error]
|
|
14
17
|
required :type, const: :timeout_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :timeout_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::GatewayTimeoutError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :timeout_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class InvalidRequestError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :invalid_request_error]
|
|
14
17
|
required :type, const: :invalid_request_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :invalid_request_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::InvalidRequestError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :invalid_request_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|
|
@@ -4,18 +4,25 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
class NotFoundError < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
7
9
|
#
|
|
8
10
|
# @return [String]
|
|
9
11
|
required :message, String
|
|
10
12
|
|
|
11
13
|
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
12
15
|
#
|
|
13
16
|
# @return [Symbol, :not_found_error]
|
|
14
17
|
required :type, const: :not_found_error
|
|
15
18
|
|
|
16
19
|
# @!method initialize(message:, type: :not_found_error)
|
|
17
|
-
#
|
|
18
|
-
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::NotFoundError} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :not_found_error] The broad category of the error.
|
|
19
26
|
end
|
|
20
27
|
end
|
|
21
28
|
end
|