Class: Legion::CLI::Chat::DaemonChat::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/legion/cli/chat/daemon_chat.rb

Overview

Minimal response-like object returned from ask. Responds to the same interface Session#send_message reads.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



26
27
28
# File 'lib/legion/cli/chat/daemon_chat.rb', line 26

def content
  @content
end

#input_tokensObject

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



26
27
28
# File 'lib/legion/cli/chat/daemon_chat.rb', line 26

def input_tokens
  @input_tokens
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



26
27
28
# File 'lib/legion/cli/chat/daemon_chat.rb', line 26

def model
  @model
end

#output_tokensObject

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



26
27
28
# File 'lib/legion/cli/chat/daemon_chat.rb', line 26

def output_tokens
  @output_tokens
end