mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-07 07:08:31 +00:00
fix: correct type error in error message formatting
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user