Skip to content

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 `ask_user` question & response formatting

Reinier van der Leerd8f02dc79fa7
diff --git a/autogpt/commands/user_interaction.py b/autogpt/commands/user_interaction.py
index e741859c8d..d5fa38db42 100644
--- a/autogpt/commands/user_interaction.py
+++ b/autogpt/commands/user_interaction.py
@@ -25,4 +25,5 @@ from autogpt.command_decorator import command
},
)
def ask_user(question: str, agent: Agent) -> str:
- return clean_input(agent.config, question)
+ resp = clean_input(agent.config, f"{agent.ai_config.ai_name} asks: '{question}': ")
+ return f"The user's answer: '{resp}'"