From 5b833d932ef125a9e67e95c2e0067a6c6e09ddfb Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2025 17:04:35 +0000 Subject: [PATCH] fix: correct type error in error message formatting Co-Authored-By: Joe Moura --- src/crewai/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/task.py b/src/crewai/task.py index ee10805d1..e75d5797e 100644 --- a/src/crewai/task.py +++ b/src/crewai/task.py @@ -239,7 +239,7 @@ class Task(BaseModel): if not is_valid: raise GuardrailValidationError( f"Invalid return type annotation. Expected one of: " - f"{', '.join(VALID_RETURN_TYPES.keys())}", + f"{', '.join(VALID_RETURN_TYPES)}", {"got": annotation_str} ) return v