Class: Tavily::ExtractResponse

Inherits:
Object
  • Object
show all
Includes:
Envelope
Defined in:
lib/tavily/responses.rb

Overview

Response from Client#extract.

Instance Attribute Summary

Attributes inherited from Object

#attributes

Instance Method Summary collapse

Methods included from Envelope

#credits, included, #usage

Methods inherited from Object

#==, #[], attribute, #dig, #hash, #initialize, #inspect, #key?, #to_h

Constructor Details

This class inherits a constructor from Tavily::Object

Instance Method Details

#failed_resultsArray<FailedResult>

Returns URLs that could not be extracted.

Returns:

  • (Array<FailedResult>)

    URLs that could not be extracted.



114
# File 'lib/tavily/responses.rb', line 114

attribute :failed_results, wrap: FailedResult, collection: true

#resultsArray<ExtractResult>

Returns successfully extracted pages.

Returns:



112
# File 'lib/tavily/responses.rb', line 112

attribute :results, wrap: ExtractResult, collection: true