Class: Anthropic::Models::Beta::BetaToolChoiceAuto

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_tool_choice_auto.rb,
sig/anthropic/models/beta/beta_tool_choice_auto.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

#initializeBetaToolChoiceAuto

Returns a new instance of BetaToolChoiceAuto.

Parameters:

  • disable_parallel_tool_use: (Boolean)
  • type: (:auto)


16
# File 'sig/anthropic/models/beta/beta_tool_choice_auto.rbs', line 16

def initialize: (?disable_parallel_tool_use: bool, ?type: :auto) -> void

Instance Attribute Details

#disable_parallel_tool_useBoolean?

Whether to disable parallel tool use.

Defaults to false. If set to true, the model will output at most one tool use.

Parameters:

Returns:



19
# File 'lib/anthropic/models/beta/beta_tool_choice_auto.rb', line 19

optional :disable_parallel_tool_use, Anthropic::Internal::Type::Boolean

#typeSymbol, :auto

Parameters:

  • value (:auto)

Returns:

  • (Symbol, :auto)


10
# File 'lib/anthropic/models/beta/beta_tool_choice_auto.rb', line 10

required :type, const: :auto

Instance Method Details

#to_hash{ type: :auto, disable_parallel_tool_use: bool }

Returns:

  • ({ type: :auto, disable_parallel_tool_use: bool })


18
# File 'sig/anthropic/models/beta/beta_tool_choice_auto.rbs', line 18

def to_hash: -> { type: :auto, disable_parallel_tool_use: bool }