Class: ReactAi::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/react_ai/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Cli

Returns a new instance of Cli.



3
4
5
# File 'lib/react_ai/cli.rb', line 3

def initialize(argv)
  @argv = argv
end

Instance Method Details

#runObject



7
8
9
10
# File 'lib/react_ai/cli.rb', line 7

def run
  input = @argv.join(" ")
  puts ReactAi::Agent.new.query(input, 5)
end