Class: Rixie::Strategy::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/rixie/strategy/simple.rb

Instance Method Summary collapse

Instance Method Details

#run(task:, listener:) ⇒ Object



6
7
8
9
10
11
# File 'lib/rixie/strategy/simple.rb', line 6

def run(task:, listener:)
  run = Run.new(user_input: task.user_input, agent: task.agent, context: task.context)
  task.runs << run
  run.execute(listener:)
  run.output
end