Class: RubyLLM::MCP::Notification
- Inherits:
-
Object
- Object
- RubyLLM::MCP::Notification
- Defined in:
- lib/ruby_llm/mcp/result.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(response) ⇒ Notification
constructor
A new instance of Notification.
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
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/ruby_llm/mcp/result.rb', line 6 def params @params end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/ruby_llm/mcp/result.rb', line 6 def type @type end |