Class: Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema

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

Returns a new instance of BetaManagedAgentsCustomToolInputSchema.

Parameters:

  • properties: (::Hash[Symbol, top], nil)
  • required: (::Array[String], nil)
  • type: (:object)


20
21
22
23
24
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rbs', line 20

def initialize: (
  ?properties: ::Hash[Symbol, top]?,
  ?required: ::Array[String]?,
  ?type: :object
) -> void

Instance Attribute Details

#properties ⇒ Hash{Symbol=>Object}?

Parameters:

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

Returns:

  • (Hash{Symbol=>Object}, nil)


15
16
17
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rb', line 15

optional :properties,
Anthropic::Internal::Type::HashOf[Anthropic::Internal::Type::Unknown],
nil?: true

#required ⇒ Array<String>?

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


22
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rb', line 22

optional :required, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#type ⇒ Symbol, :object

Parameters:

  • value (:object)

Returns:

  • (Symbol, :object)


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

required :type, const: :object

Instance Method Details

#to_hash ⇒ { type: :object, properties: ::Hash[Symbol, top]?, required: ::Array[String]? }

Returns:

  • ({ type: :object, properties: ::Hash[Symbol, top]?, required: ::Array[String]? })


26
27
28
29
30
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rbs', line 26

def to_hash: -> {
  type: :object,
  properties: ::Hash[Symbol, top]?,
  required: ::Array[String]?
}