Class: Anthropic::Models::Beta::BetaWebFetchURLSourceOnly
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaWebFetchURLSourceOnly
- Defined in:
- lib/anthropic/models/beta/beta_web_fetch_url_source_only.rb,
sig/anthropic/models/beta/beta_web_fetch_url_source_only.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BetaWebFetchURLSourceOnly
constructor
A new instance of BetaWebFetchURLSourceOnly.
- #to_hash ⇒ { tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference], type: :only }
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 ⇒ BetaWebFetchURLSourceOnly
Returns a new instance of BetaWebFetchURLSourceOnly.
17 18 19 20 |
# File 'sig/anthropic/models/beta/beta_web_fetch_url_source_only.rbs', line 17
def initialize: (
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
?type: :only
) -> void
|
Instance Attribute Details
#tools ⇒ Array<Anthropic::Models::Beta::BetaWebFetchURLSourceToolReference>
10 11 |
# File 'lib/anthropic/models/beta/beta_web_fetch_url_source_only.rb', line 10 required :tools, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaWebFetchURLSourceToolReference] } |
#type ⇒ Symbol, :only
16 |
# File 'lib/anthropic/models/beta/beta_web_fetch_url_source_only.rb', line 16 required :type, const: :only |
Instance Method Details
#to_hash ⇒ { tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference], type: :only }
22 23 24 25 |
# File 'sig/anthropic/models/beta/beta_web_fetch_url_source_only.rbs', line 22
def to_hash: -> {
tools: ::Array[Anthropic::Beta::BetaWebFetchURLSourceToolReference],
type: :only
}
|