Class: Anthropic::Models::WebFetchBlockParam

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/web_fetch_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(content:, url:, retrieved_at: nil, type: :web_fetch_result) ⇒ void

Parameters:

  • content (Anthropic::Models::DocumentBlockParam)
  • url (String)

    Fetched content URL

  • retrieved_at (String, nil) (defaults to: nil)

    ISO 8601 timestamp when the content was retrieved

  • type (Symbol, :web_fetch_result) (defaults to: :web_fetch_result)


# File 'lib/anthropic/models/web_fetch_block_param.rb', line 28


Instance Attribute Details

#contentAnthropic::Models::DocumentBlockParam



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

required :content, -> { Anthropic::DocumentBlockParam }

#retrieved_atString?

ISO 8601 timestamp when the content was retrieved

Returns:

  • (String, nil)


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

optional :retrieved_at, String, nil?: true

#typeSymbol, :web_fetch_result

Returns:

  • (Symbol, :web_fetch_result)


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

required :type, const: :web_fetch_result

#urlString

Fetched content URL

Returns:

  • (String)


20
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 20

required :url, String