Class: ContextDev::Models::WebSearchResponse::Result::Markdown

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

Overview

See Also:

Defined Under Namespace

Modules: Code

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(code:, markdown:) ⇒ Object

Some parameter documentations has been truncated, see ContextDev::Models::WebSearchResponse::Result::Markdown for more details.

Markdown scrape status and content for this result.

Parameters:



# File 'lib/context_dev/models/web_search_response.rb', line 81

Instance Attribute Details

#codeSymbol, ContextDev::Models::WebSearchResponse::Result::Markdown::Code

Per-result scrape outcome. Inspect this before reading ‘markdown`.



72
# File 'lib/context_dev/models/web_search_response.rb', line 72

required :code, enum: -> { ContextDev::Models::WebSearchResponse::Result::Markdown::Code }

#markdownString?

GFM Markdown of the page. Null unless markdownOptions.enabled is true and scraping succeeded.

Returns:

  • (String, nil)


79
# File 'lib/context_dev/models/web_search_response.rb', line 79

required :markdown, String, nil?: true