AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(agent/tty): Fix `finish` command in TTY mode
Reinier van der Leer0e94c7b5fcd8
diff --git a/autogpts/autogpt/autogpt/agents/agent.py b/autogpts/autogpt/autogpt/agents/agent.pyindex 2b4dcd5ab8..88e6a46ed5 100644--- a/autogpts/autogpt/autogpt/agents/agent.py+++ b/autogpts/autogpt/autogpt/agents/agent.py@@ -250,6 +250,8 @@ class Agent(self.context.add(context_item)result = ActionSuccessResult(outputs=return_value)+ except AgentTerminated:+ raiseexcept AgentException as e:result = ActionErrorResult.from_exception(e)