Class: Pikuri::Tool::Search::Result
- Inherits:
-
Data
- Object
- Data
- Pikuri::Tool::Search::Result
- Defined in:
- lib/pikuri/tool/search/result.rb
Overview
A single search hit produced by a Pikuri::Tool::Search provider (DuckDuckGo, Brave, Exa). Providers return Array<Result> from .parse / .search; Engines.search concatenates the rows into the smolagents-style Markdown the LLM sees.
Splitting structure from rendering keeps the three providers interchangeable — they only have to agree on these three fields (provider-specific extras like relevance scores or published dates are discarded today, which is fine because no caller uses them).
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
26 |
# File 'lib/pikuri/tool/search/result.rb', line 26 Result = Data.define(:url, :title, :body) |
#title ⇒ Object (readonly)
Returns the value of attribute title
26 |
# File 'lib/pikuri/tool/search/result.rb', line 26 Result = Data.define(:url, :title, :body) |
#url ⇒ Object (readonly)
Returns the value of attribute url
26 |
# File 'lib/pikuri/tool/search/result.rb', line 26 Result = Data.define(:url, :title, :body) |