Class: Tavily::SearchResult
Overview
A single web result from Client#search.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#content ⇒ String?
Short relevant snippet.
-
#favicon ⇒ String?
Favicon URL (when include_favicon: true).
-
#published_date ⇒ String?
Publication date (present for topic: “news”).
-
#raw_content ⇒ String?
Full cleaned page content (when raw content requested).
-
#score ⇒ Float?
Relevance score (0.0–1.0).
-
#title ⇒ String?
Page title.
-
#url ⇒ String?
Result URL.
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
#content ⇒ String?
Returns short relevant snippet.
28 |
# File 'lib/tavily/responses.rb', line 28 attribute :content |
#favicon ⇒ String?
Returns favicon URL (when include_favicon: true).
34 |
# File 'lib/tavily/responses.rb', line 34 attribute :favicon |
#published_date ⇒ String?
Returns publication date (present for topic: “news”).
36 |
# File 'lib/tavily/responses.rb', line 36 attribute :published_date |
#raw_content ⇒ String?
Returns full cleaned page content (when raw content requested).
32 |
# File 'lib/tavily/responses.rb', line 32 attribute :raw_content |
#score ⇒ Float?
Returns relevance score (0.0–1.0).
30 |
# File 'lib/tavily/responses.rb', line 30 attribute :score |
#title ⇒ String?
Returns page title.
24 |
# File 'lib/tavily/responses.rb', line 24 attribute :title |
#url ⇒ String?
Returns result URL.
26 |
# File 'lib/tavily/responses.rb', line 26 attribute :url |