Commit 6f1f446
Changed files (1)
lib
elelem
states
lib/elelem/states/working.rb
@@ -42,6 +42,10 @@ module Elelem
end
end
+ agent.transition_to(States::Idle.new)
+ rescue StandardError => e
+ agent.conversation.add(role: :tool, content: e.message)
+ agent.tui.say(e.message, colour: red, newline: true)
agent.transition_to(States::Idle.new)
end
end