Class: ModelContextProtocol::Server::Registry::ToolsData

Inherits:
Data
  • Object
show all
Defined in:
lib/model_context_protocol/server/registry.rb

Instance Method Summary collapse

Constructor Details

#initialize(tools:, next_cursor: nil) ⇒ ToolsData



192
193
194
# File 'lib/model_context_protocol/server/registry.rb', line 192

def initialize(tools:, next_cursor: nil)
  super
end

Instance Method Details

#serializedObject



196
197
198
199
200
# File 'lib/model_context_protocol/server/registry.rb', line 196

def serialized
  result = {tools:}
  result[:nextCursor] = next_cursor if next_cursor
  result
end