Class: Anthropic::Models::ThreadUnsupportedRequestErrorDetails

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/thread_unsupported_request_error_details.rb,
sig/anthropic/models/thread_unsupported_request_error_details.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • unsupported (Array<Symbol, Anthropic::Models::ThreadUnsupportedFeatureName>, nil) (defaults to: nil) —

    Each entry names a request field or an organization setting that Threads do not

  • error_code (Symbol, :thread_unsupported_request) (defaults to: :thread_unsupported_request)
  • unsupported: (::Array[Anthropic::Models::thread_unsupported_feature_name], nil) (defaults to: nil)
  • error_code: (:thread_unsupported_request) (defaults to: :thread_unsupported_request)


# File 'lib/anthropic/models/thread_unsupported_request_error_details.rb', line 21

Instance Attribute Details

#error_code ⇒ Symbol, :thread_unsupported_request

Parameters:

  • value (:thread_unsupported_request)

Returns:

  • (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.

Parameters:

  • value (::Array[Anthropic::Models::thread_unsupported_feature_name], nil)

Returns:



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]? }

Returns:

  • ({ 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]?
}