Class: ModelContextProtocol::Server::NullCompletion::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hasMoreObject (readonly)

Returns the value of attribute hasMore

Returns:

  • (Object)

    the current value of hasMore



41
42
43
# File 'lib/model_context_protocol/server/completion.rb', line 41

def hasMore
  @hasMore
end

#totalObject (readonly)

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



41
42
43
# File 'lib/model_context_protocol/server/completion.rb', line 41

def total
  @total
end

#valuesObject (readonly)

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



41
42
43
# File 'lib/model_context_protocol/server/completion.rb', line 41

def values
  @values
end

Instance Method Details

#serializedObject



42
43
44
# File 'lib/model_context_protocol/server/completion.rb', line 42

def serialized
  {completion: {values:, total:, hasMore:}}
end