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

Defined Under Namespace

Modules: Type

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(properties: nil, required: nil, type: nil) ⇒ void

JSON Schema for custom tool input parameters.

Parameters:

  • properties (Hash{Symbol=>Object}, nil) (defaults to: nil)

    JSON Schema properties defining the tool's input parameters.

  • required (Array<String>) (defaults to: nil)

    List of required property names.

  • type (Symbol, Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema::Type) (defaults to: nil)

    Must be 'object' for tool input schemas.



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

Instance Attribute Details

#propertiesHash{Symbol=>Object}?

JSON Schema properties defining the tool's input parameters.

Returns:

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


11
12
13
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rb', line 11

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

#requiredArray<String>?

List of required property names.

Returns:

  • (Array<String>, nil)


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

optional :required, Anthropic::Internal::Type::ArrayOf[String]

#typeSymbol, ...

Must be 'object' for tool input schemas.



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

optional :type, enum: -> { Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema::Type }