Class: Anthropic::Models::ServerToolUseBlock

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

Defined Under Namespace

Modules: Caller, Name

Constant Summary collapse

Anthropic =

Returns:

  • (:DirectCaller)

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(id:, caller_:, input:, name:, type: :server_tool_use) ⇒ Object

Parameters:



# File 'lib/anthropic/models/server_tool_use_block.rb', line 31

Instance Attribute Details

#caller_ ⇒ Anthropic::Models::DirectCaller, ...

Parameters:

  • value (Anthropic::Models::ServerToolUseBlock::caller_)

Returns:



14
# File 'lib/anthropic/models/server_tool_use_block.rb', line 14

required :caller_, union: -> { Anthropic::ServerToolUseBlock::Caller }, api_name: :caller

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/anthropic/models/server_tool_use_block.rb', line 9

required :id, String

#input ⇒ Object

Parameters:

  • value (::Hash[Symbol, top])

Returns:

  • (Object)


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

required :input, Anthropic::Internal::Type::Unknown

#name ⇒ Symbol, Anthropic::Models::ServerToolUseBlock::Name

Parameters:

  • value (Anthropic::Models::ServerToolUseBlock::name_)

Returns:



24
# File 'lib/anthropic/models/server_tool_use_block.rb', line 24

required :name, enum: -> { Anthropic::ServerToolUseBlock::Name }

#type ⇒ Symbol, :server_tool_use

Parameters:

  • value (:server_tool_use)

Returns:

  • (Symbol, :server_tool_use)


29
# File 'lib/anthropic/models/server_tool_use_block.rb', line 29

required :type, const: :server_tool_use

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


31
# File 'sig/anthropic/models/server_tool_use_block.rbs', line 31

def to_hash: -> {