Class: Anthropic::Models::WebFetchBlockParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::WebFetchBlockParam
- Defined in:
- lib/anthropic/models/web_fetch_block_param.rb
Instance Attribute Summary collapse
- #content ⇒ Anthropic::Models::DocumentBlockParam
-
#retrieved_at ⇒ String?
ISO 8601 timestamp when the content was retrieved.
- #type ⇒ Symbol, :web_fetch_result
-
#url ⇒ String
Fetched content URL.
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
|
|
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 28
|
Instance Attribute Details
#content ⇒ Anthropic::Models::DocumentBlockParam
9 |
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 9 required :content, -> { Anthropic::DocumentBlockParam } |
#retrieved_at ⇒ String?
ISO 8601 timestamp when the content was retrieved
26 |
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 26 optional :retrieved_at, String, nil?: true |
#type ⇒ Symbol, :web_fetch_result
14 |
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 14 required :type, const: :web_fetch_result |
#url ⇒ String
Fetched content URL
20 |
# File 'lib/anthropic/models/web_fetch_block_param.rb', line 20 required :url, String |