Class: Rixie::Strategy::ReAct
- Inherits:
-
Object
- Object
- Rixie::Strategy::ReAct
- Defined in:
- lib/rixie/strategy/re_act.rb
Instance Method Summary collapse
Instance Method Details
#run(task:, listener:) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rixie/strategy/re_act.rb', line 6 def run(task:, listener:) agent = Agent::ReAct.new(base_agent: task.agent) run = Run.new(user_input: task.user_input, agent: agent, context: task.context) task.runs << run run.execute(listener:) run.output end |