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(backend): we're making loops (#10514)
Nicholas Tindle9ce857e29f43
diff --git a/autogpt_platform/backend/backend/blocks/smart_decision_maker.py b/autogpt_platform/backend/backend/blocks/smart_decision_maker.pyindex 5b395cd56e..c53d5c0147 100644--- a/autogpt_platform/backend/backend/blocks/smart_decision_maker.py+++ b/autogpt_platform/backend/backend/blocks/smart_decision_maker.py@@ -529,15 +529,6 @@ class SmartDecisionMakerBlock(Block):))- # Add reasoning to conversation history if available- if response.reasoning:- prompt.append(- {"role": "assistant", "content": f"[Reasoning]: {response.reasoning}"}- )-- prompt.append(response.raw_response)- yield "conversations", prompt-if not response.tool_calls:yield "finished", response.responsereturn@@ -571,3 +562,12 @@ class SmartDecisionMakerBlock(Block):yield f"tools_^_{tool_name}_~_{arg_name}", tool_args[arg_name]else:yield f"tools_^_{tool_name}_~_{arg_name}", None++ # Add reasoning to conversation history if available+ if response.reasoning:+ prompt.append(+ {"role": "assistant", "content": f"[Reasoning]: {response.reasoning}"}+ )++ prompt.append(response.raw_response)+ yield "conversations", prompt