Fix ask_user question & response formatting

This commit is contained in:
Reinier van der Leer
2023-08-23 01:04:08 +02:00
parent 092afbce62
commit d8f02dc79f

View File

@@ -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}'"