Class: RubyLLM::MCP::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_llm/mcp/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Notification

Returns a new instance of Notification.



8
9
10
11
# File 'lib/ruby_llm/mcp/result.rb', line 8

def initialize(response)
  @type = response["method"]
  @params = response["params"]
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/ruby_llm/mcp/result.rb', line 6

def params
  @params
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/ruby_llm/mcp/result.rb', line 6

def type
  @type
end