Class: Riffer::Mcp::SearchTool::Result

Inherits:
Tools::Response show all
Defined in:
lib/riffer/mcp/search_tool.rb

Overview

Successful search response carrying the matched tool classes.

Constant Summary

Constants inherited from Tools::Response

Tools::Response::VALID_FORMATS

Instance Attribute Summary collapse

Attributes inherited from Tools::Response

#content, #error_message, #error_type

Instance Method Summary collapse

Methods inherited from Tools::Response

error, #error?, json, success, #success?, text, #to_h

Constructor Details

#initialize(content, discovered_tools) ⇒ Result

– : (String, Array) -> void



15
16
17
18
# File 'lib/riffer/mcp/search_tool.rb', line 15

def initialize(content, discovered_tools)
  super(content: content, success: true)
  @discovered_tools = discovered_tools
end

Instance Attribute Details

#discovered_toolsObject (readonly)

Tool classes that matched the search query.



11
12
13
# File 'lib/riffer/mcp/search_tool.rb', line 11

def discovered_tools
  @discovered_tools
end