Module: Anthropic::Models::Beta::BetaMessageParam::Role

Extended by:
Internal::Type::Enum
Defined in:
lib/anthropic/models/beta/beta_message_param.rb,
sig/anthropic/models/beta/beta_message_param.rbs

Overview

See Also:

  • Anthropic::Models::Beta::BetaMessageParam#role

Constant Summary collapse

USER =

Returns:

  • (:user)
:user
ASSISTANT =

Returns:

  • (:assistant)
:assistant

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#self?.values::Array[Anthropic::Models::Beta::BetaMessageParam::role]

Returns:

  • (::Array[Anthropic::Models::Beta::BetaMessageParam::role])


46
# File 'sig/anthropic/models/beta/beta_message_param.rbs', line 46

def self?.values: -> ::Array[Anthropic::Models::Beta::BetaMessageParam::role]