Class: MCP::Client::Tool
- Inherits:
-
Object
- Object
- MCP::Client::Tool
- Defined in:
- lib/mcp/client/tool.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#input_schema ⇒ Object
readonly
Returns the value of attribute input_schema.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#output_schema ⇒ Object
readonly
Returns the value of attribute output_schema.
Instance Method Summary collapse
-
#initialize(name:, description:, input_schema:, output_schema: nil) ⇒ Tool
constructor
A new instance of Tool.
Constructor Details
#initialize(name:, description:, input_schema:, output_schema: nil) ⇒ Tool
Returns a new instance of Tool.
8 9 10 11 12 13 |
# File 'lib/mcp/client/tool.rb', line 8 def initialize(name:, description:, input_schema:, output_schema: nil) @name = name @description = description @input_schema = input_schema @output_schema = output_schema end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/mcp/client/tool.rb', line 6 def description @description end |
#input_schema ⇒ Object (readonly)
Returns the value of attribute input_schema.
6 7 8 |
# File 'lib/mcp/client/tool.rb', line 6 def input_schema @input_schema end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/mcp/client/tool.rb', line 6 def name @name end |
#output_schema ⇒ Object (readonly)
Returns the value of attribute output_schema.
6 7 8 |
# File 'lib/mcp/client/tool.rb', line 6 def output_schema @output_schema end |