Skip to content

Commit

Permalink
python_interpreter correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jayceftg committed Nov 1, 2024
1 parent 5ca5949 commit 1b2c784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeneralAgent/interpreter/python_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run_code(self, code):
stop = True
# 出现了自我调用,则判断一下层级,如果层级为1,则停止
if self.agent is not None:
stop = self.agent.run_level != 1
stop = self.agent.run_level == 1
self.agent.python_run_result = result
if result is None:
result = output.getvalue()
Expand Down

0 comments on commit 1b2c784

Please sign in to comment.