Class: Tavily::CrawlResponse

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

Overview

Response from Tavily::Client#crawl.

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

#base_urlString?

Returns the root URL that was crawled.

Returns:

  • (String, nil)

    the root URL that was crawled.



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

attribute :base_url

#resultsArray<CrawlResult>

Returns crawled pages.

Returns:



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

attribute :results, wrap: CrawlResult, collection: true