Class: ContextDev::Models::WebExtractResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::WebExtractResponse
- Defined in:
- lib/context_dev/models/web_extract_response.rb
Overview
Defined Under Namespace
Classes: Metadata
Instance Attribute Summary collapse
-
#data ⇒ Hash{Symbol=>Object}
Extracted data matching the request schema.
- #metadata ⇒ ContextDev::Models::WebExtractResponse::Metadata
-
#status ⇒ String
Status of the response, e.g., ‘ok’.
-
#url ⇒ String
The starting URL that was analyzed.
-
#urls_analyzed ⇒ Array<String>
List of URLs whose Markdown was used for extraction.
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(data:, metadata:, status:, url:, urls_analyzed:) ⇒ Object
|
|
# File 'lib/context_dev/models/web_extract_response.rb', line 36
|
Instance Attribute Details
#data ⇒ Hash{Symbol=>Object}
Extracted data matching the request schema
11 |
# File 'lib/context_dev/models/web_extract_response.rb', line 11 required :data, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown] |
#metadata ⇒ ContextDev::Models::WebExtractResponse::Metadata
16 |
# File 'lib/context_dev/models/web_extract_response.rb', line 16 required :metadata, -> { ContextDev::Models::WebExtractResponse::Metadata } |
#status ⇒ String
Status of the response, e.g., ‘ok’
22 |
# File 'lib/context_dev/models/web_extract_response.rb', line 22 required :status, String |
#url ⇒ String
The starting URL that was analyzed
28 |
# File 'lib/context_dev/models/web_extract_response.rb', line 28 required :url, String |
#urls_analyzed ⇒ Array<String>
List of URLs whose Markdown was used for extraction
34 |
# File 'lib/context_dev/models/web_extract_response.rb', line 34 required :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String] |