Class: Anthropic::Models::Beta::BetaManagedAgentsCustomTool

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

Returns a new instance of BetaManagedAgentsCustomTool.

Parameters:

  • description: (String)
  • input_schema: (Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema)
  • name: (String)
  • type: (:custom)


23
24
25
26
27
28
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_tool.rbs', line 23

def initialize: (
  description: String,
  input_schema: Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema,
  name: String,
  ?type: :custom
) -> void

Instance Attribute Details

#description ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :description, String

#input_schema ⇒ Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema

JSON Schema for custom tool input parameters.

Parameters:

  • value (Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema)

Returns:



16
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool.rb', line 16

required :input_schema, -> { Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema }

#name ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool.rb', line 21

required :name, String

#type ⇒ Symbol, :custom

Parameters:

  • value (:custom)

Returns:

  • (Symbol, :custom)


26
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_tool.rb', line 26

required :type, const: :custom

Instance Method Details

#to_hash ⇒ { description: String, input_schema: Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema, name: String, type: :custom }

Returns:

  • ({ description: String, input_schema: Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema, name: String, type: :custom })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_tool.rbs', line 30

def to_hash: -> {
  description: String,
  input_schema: Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema,
  name: String,
  type: :custom
}