Class: RubyLLM::MCP::Completion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argument:, values:, total:, has_more:) ⇒ Completion

Returns a new instance of Completion.



8
9
10
11
12
13
# File 'lib/ruby_llm/mcp/completion.rb', line 8

def initialize(argument:, values:, total:, has_more:)
  @argument = argument
  @values = values
  @total = total
  @has_more = has_more
end

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument.



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

def argument
  @argument
end

#has_moreObject (readonly)

Returns the value of attribute has_more.



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

def has_more
  @has_more
end

#totalObject (readonly)

Returns the value of attribute total.



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

def total
  @total
end

#valuesObject (readonly)

Returns the value of attribute values.



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

def values
  @values
end