SearchResult
This class represents a single search result, containing its title, link, and a snippet of content. It also optionally stores the raw content. The class provides methods to generate string representations of the search result, either including or excluding the raw content.
Attributes
-
title: string
- The title of the search result.
-
link: string
- The URL of the search result.
-
content: string
- A snippet or summary of the search result content.
-
raw_content: Optional[string] = None
- The full raw content of the search result, if available.
Methods
def short_str()
-
Returns a short string representation of the SearchResult object, excluding raw content.
-
Return Value: string
- A short string representation of the SearchResult object.