Class: Anthropic::Models::WebSearchResultBlockParam

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/web_search_result_block_param.rb

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(encrypted_content: , title: , url: , page_age: nil, type: :web_search_result) ⇒ void

Parameters:

  • encrypted_content (String) (defaults to: )
  • title (String) (defaults to: )
  • url (String) (defaults to: )
  • page_age (String, nil) (defaults to: nil)
  • type (Symbol, :web_search_result) (defaults to: :web_search_result)


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

Instance Attribute Details

#encrypted_contentString

Returns:

  • (String)


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

required :encrypted_content, String

#page_ageString?

Returns:

  • (String, nil)


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

optional :page_age, String, nil?: true

#titleString

Returns:

  • (String)


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

required :title, String

#typeSymbol, :web_search_result

Returns:

  • (Symbol, :web_search_result)


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

required :type, const: :web_search_result

#urlString

Returns:

  • (String)


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

required :url, String