From 25440750621887c8a5a8b82a5d92a246d8b76530 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Mon, 11 Aug 2025 17:13:20 -0400 Subject: [PATCH] Improve HITL human feedback prompt to prioritize human input --- src/crewai/translations/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/translations/en.json b/src/crewai/translations/en.json index f9a5414b3..d7fa0ae42 100644 --- a/src/crewai/translations/en.json +++ b/src/crewai/translations/en.json @@ -16,7 +16,7 @@ "format_without_tools": "\nSorry, I didn't use the right format. I MUST either use a tool (among the available ones), OR give my best final answer.\nHere is the expected format I must follow:\n\n```\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n```\n This Thought/Action/Action Input/Result process can repeat N times. Once I know the final answer, I must return the following format:\n\n```\nThought: I now can give a great answer\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described\n\n```", "task_with_context": "{task}\n\nThis is the context you're working with:\n{context}", "expected_output": "\nThis is the expected criteria for your final answer: {expected_output}\nyou MUST return the actual complete content as the final answer, not a summary.", - "human_feedback": "You got human feedback on your work, re-evaluate it and give a new Final Answer when ready.\n {human_feedback}", + "human_feedback": "IMPORTANT: You received human feedback. You MUST prioritize and follow this feedback exactly, even if it conflicts with your original task.\n\nHuman Feedback: {human_feedback}\n\nIgnore any previous requirements that conflict with this feedback and provide a new Final Answer that satisfies the human's request above.", "getting_input": "This is the agent's final answer: {final_answer}\n\n", "summarizer_system_message": "You are a helpful assistant that summarizes text.", "summarize_instruction": "Summarize the following text, make sure to include all the important information: {group}",