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): Append prompt into the conversations output & Remove unused output pin on SmartDecisionBlock (#9550)
Zamil Majdyd3b83b79f970
diff --git a/autogpt_platform/backend/backend/blocks/smart_decision_maker.py b/autogpt_platform/backend/backend/blocks/smart_decision_maker.pyindex f1c779ac5b..4d91f8e3ca 100644--- a/autogpt_platform/backend/backend/blocks/smart_decision_maker.py+++ b/autogpt_platform/backend/backend/blocks/smart_decision_maker.py@@ -79,12 +79,7 @@ class SmartDecisionMakerBlock(Block):)class Output(BlockSchema):-- prompt: str = SchemaField(description="The prompt sent to the language model.")error: str = SchemaField(description="Error message if the API call failed.")- function_signatures: list[dict[str, Any]] = SchemaField(- description="The function signatures that are sent to the language model."- )tools: Any = SchemaField(description="The tools that are available to use.")finished: str = SchemaField(description="The finished message to display to the user."@@ -331,6 +326,9 @@ class SmartDecisionMakerBlock(Block):for c in response.tool_calls)+ input_data.conversation_history.append(+ llm.Message(role=llm.MessageRole.USER, content=response.prompt)+ )input_data.conversation_history.append(llm.Message(role=llm.MessageRole.ASSISTANT, content=assistant_response))