Module: Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb,
sig/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rbs

Overview

How Claude takes part in a Slack channel. A channel alone stores one. More types can be added.

Defined Under Namespace

Modules: Type

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type

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

Class Method Details

.new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread .new(type:) ⇒ Anthropic::Models::Beta::Organization::beta_claude_tag_reply_mode

Creates a new instance of the variant class whose type matches the given value, passing the remaining arguments to its constructor.

Overloads:

  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic

    Parameters:

    • type: (:automatic, "automatic")

    Returns:

    • (Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic)
  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly

    Parameters:

    • type: (:mention_only, "mention_only")

    Returns:

    • (Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly)
  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake

    Parameters:

    • type: (:always_awake, "always_awake")

    Returns:

    • (Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake)
  • .new(type:) ⇒ Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread

    Parameters:

    • type: (:thread, "thread")

    Returns:

    • (Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread)
  • .new(type:) ⇒ Anthropic::Models::Beta::Organization::beta_claude_tag_reply_mode

    Parameters:

    • type: (Anthropic::Models::Beta::Organization::BetaClaudeTagReplyMode::type_, String)

    Returns:

    • (Anthropic::Models::Beta::Organization::beta_claude_tag_reply_mode)

Parameters:

Returns:

Raises:

  • (ArgumentError)


50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb', line 50

def self.new(type:, **args)
  case type.to_sym
  when :automatic
    Anthropic::Beta::Organization::BetaClaudeTagReplyModeAutomatic.new(**args)
  when :mention_only
    Anthropic::Beta::Organization::BetaClaudeTagReplyModeMentionOnly.new(**args)
  when :always_awake
    Anthropic::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake.new(**args)
  when :thread
    Anthropic::Beta::Organization::BetaClaudeTagReplyModeThread.new(**args)
  else
    raise ArgumentError, "unknown type: #{type}"
  end
end

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb', line 34

.variants ⇒ Array(Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAutomatic, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeMentionOnly, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeAlwaysAwake, Anthropic::Models::Beta::Organization::BetaClaudeTagReplyModeThread)



# File 'lib/anthropic/models/beta/organization/beta_claude_tag_reply_mode.rb', line 38