Class: Pikuri::Tool::Search::Result

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



26
# File 'lib/pikuri/tool/search/result.rb', line 26

Result = Data.define(:url, :title, :body)

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



26
# File 'lib/pikuri/tool/search/result.rb', line 26

Result = Data.define(:url, :title, :body)

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



26
# File 'lib/pikuri/tool/search/result.rb', line 26

Result = Data.define(:url, :title, :body)