Class: ContextDev::Models::WebExtractResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/web_extract_response.rb

Overview

Defined Under Namespace

Classes: Metadata

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(data:, metadata:, status:, url:, urls_analyzed:) ⇒ Object

Parameters:

  • 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



# File 'lib/context_dev/models/web_extract_response.rb', line 36

Instance Attribute Details

#dataHash{Symbol=>Object}

Extracted data matching the request schema

Returns:

  • (Hash{Symbol=>Object})


11
# File 'lib/context_dev/models/web_extract_response.rb', line 11

required :data, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]

#metadataContextDev::Models::WebExtractResponse::Metadata



16
# File 'lib/context_dev/models/web_extract_response.rb', line 16

required :metadata, -> { ContextDev::Models::WebExtractResponse::Metadata }

#statusString

Status of the response, e.g., ‘ok’

Returns:

  • (String)


22
# File 'lib/context_dev/models/web_extract_response.rb', line 22

required :status, String

#urlString

The starting URL that was analyzed

Returns:

  • (String)


28
# File 'lib/context_dev/models/web_extract_response.rb', line 28

required :url, String

#urls_analyzedArray<String>

List of URLs whose Markdown was used for extraction

Returns:

  • (Array<String>)


34
# File 'lib/context_dev/models/web_extract_response.rb', line 34

required :urls_analyzed, ContextDev::Internal::Type::ArrayOf[String]