Add feature to override _ask_human_input function in Task (#2419)

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-03-20 08:44:15 +00:00
parent fe0813e831
commit 0ff73d22d7
6 changed files with 82 additions and 3 deletions

View File

@@ -1205,6 +1205,7 @@ def test_agent_max_retry_limit():
"tool_names": "",
"tools": "",
"ask_for_human_input": True,
"ask_human_input_function": None,
}
),
mock.call(
@@ -1213,6 +1214,7 @@ def test_agent_max_retry_limit():
"tool_names": "",
"tools": "",
"ask_for_human_input": True,
"ask_human_input_function": None,
}
),
]