Class: ContextDev::Models::MonitorUpdateResponse::Target::Extract

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/monitor_update_response.rb,
sig/context_dev/models/monitor_update_response.rbs

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

#initializeObject



318
# File 'sig/context_dev/models/monitor_update_response.rbs', line 318

def initialize: (

Instance Attribute Details

#follow_subdomainsBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


383
# File 'lib/context_dev/models/monitor_update_response.rb', line 383

optional :follow_subdomains, ContextDev::Internal::Type::Boolean

#instructionsString?

Optional natural-language instructions guiding what to extract.

Parameters:

  • (String)

Returns:

  • (String, nil)


389
# File 'lib/context_dev/models/monitor_update_response.rb', line 389

optional :instructions, String

#max_depthInteger?

Optional maximum link depth from the starting URL (0 = only the starting page).

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


395
# File 'lib/context_dev/models/monitor_update_response.rb', line 395

optional :max_depth, Integer

#max_pagesInteger?

Maximum number of pages to analyze during extraction.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


401
# File 'lib/context_dev/models/monitor_update_response.rb', line 401

optional :max_pages, Integer

#schemaHash{Symbol=>Object}?

JSON Schema describing the structured data to extract and watch for changes. If omitted, a default summary + key-points schema is used.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


408
# File 'lib/context_dev/models/monitor_update_response.rb', line 408

optional :schema, ContextDev::Internal::Type::HashOf[ContextDev::Internal::Type::Unknown]

#typeSymbol, :extract

Parameters:

  • value (:extract)

Returns:

  • (Symbol, :extract)


372
# File 'lib/context_dev/models/monitor_update_response.rb', line 372

required :type, const: :extract

#urlString

Root URL to extract structured data from.

Parameters:

  • value (String)

Returns:

  • (String)


378
# File 'lib/context_dev/models/monitor_update_response.rb', line 378

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


328
# File 'sig/context_dev/models/monitor_update_response.rbs', line 328

def to_hash: -> {