class Rubydex::MCPServer::Tool::Response
Attributes
Public Class Methods
(Array[Hash], ?bool) → void
Source
# File lib/rubydex/mcp_server/protocol.rb, line 52 def initialize(content, error: false) @content = content @error = error end
Public Instance Methods
→ Hash
Source
# File lib/rubydex/mcp_server/protocol.rb, line 65 def to_h { content: content, isError: error?, } end