Class: Anthropic::Models::ThreadUnsupportedRequestErrorDetails
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::ThreadUnsupportedRequestErrorDetails
- Defined in:
- lib/anthropic/models/thread_unsupported_request_error_details.rb,
sig/anthropic/models/thread_unsupported_request_error_details.rbs
Instance Attribute Summary collapse
- #error_code ⇒ Symbol, :thread_unsupported_request
-
#unsupported ⇒ Array<Symbol, Anthropic::Models::ThreadUnsupportedFeatureName>?
Each entry names a request field or an organization setting that Threads do not support.
Instance Method Summary collapse
-
#initialize(unsupported: nil, error_code: :thread_unsupported_request) ⇒ ThreadUnsupportedRequestErrorDetails
constructor
The request combines
threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it. - #to_hash ⇒ { error_code: :thread_unsupported_request, unsupported: ::Array[Anthropic::Models::thread_unsupported_feature_name]? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(unsupported: nil, error_code: :thread_unsupported_request) ⇒ ThreadUnsupportedRequestErrorDetails
The request combines thread with a request field or an organization setting
that Threads do not support; unsupported, when present, names it. Send the
full conversation without thread, or change that field.
Some parameter documentations has been truncated, see Anthropic::Models::ThreadUnsupportedRequestErrorDetails for more details.
|
|
# File 'lib/anthropic/models/thread_unsupported_request_error_details.rb', line 21
|
Instance Attribute Details
#error_code ⇒ Symbol, :thread_unsupported_request
9 |
# File 'lib/anthropic/models/thread_unsupported_request_error_details.rb', line 9 required :error_code, const: :thread_unsupported_request |
#unsupported ⇒ Array<Symbol, Anthropic::Models::ThreadUnsupportedFeatureName>?
Each entry names a request field or an organization setting that Threads do not
support. On a value you do not recognize, send the full conversation without
thread.
17 18 19 |
# File 'lib/anthropic/models/thread_unsupported_request_error_details.rb', line 17 optional :unsupported, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::ThreadUnsupportedFeatureName] }, nil?: true |
Instance Method Details
#to_hash ⇒ { error_code: :thread_unsupported_request, unsupported: ::Array[Anthropic::Models::thread_unsupported_feature_name]? }
19 20 21 22 |
# File 'sig/anthropic/models/thread_unsupported_request_error_details.rbs', line 19
def to_hash: -> {
error_code: :thread_unsupported_request,
unsupported: ::Array[Anthropic::Models::thread_unsupported_feature_name]?
}
|