Class: GreetTool
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- GreetTool
- Defined in:
- lib/greet_tool.rb
Overview
Define the greet tool
Class Method Summary collapse
Class Method Details
.call(message:) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/greet_tool.rb', line 21 def call(message:) LOGGER.info "GreetTool called with message: #{}" if defined?(LOGGER) MCP::Tool::Response.new( [ { type: 'text', text: } ] ) end |