Class: ModelContextProtocol::Server::Registry::PromptsData

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

Instance Method Summary collapse

Constructor Details

#initialize(prompts:, next_cursor: nil) ⇒ PromptsData

Returns a new instance of PromptsData.



156
157
158
# File 'lib/model_context_protocol/server/registry.rb', line 156

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

Instance Method Details

#serializedObject



160
161
162
163
164
# File 'lib/model_context_protocol/server/registry.rb', line 160

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