mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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:
|
if not is_valid:
|
||||||
raise GuardrailValidationError(
|
raise GuardrailValidationError(
|
||||||
f"Invalid return type annotation. Expected one of: "
|
f"Invalid return type annotation. Expected one of: "
|
||||||
f"{', '.join(VALID_RETURN_TYPES.keys())}",
|
f"{', '.join(VALID_RETURN_TYPES)}",
|
||||||
{"got": annotation_str}
|
{"got": annotation_str}
|
||||||
)
|
)
|
||||||
return v
|
return v
|
||||||
|
|||||||
Reference in New Issue
Block a user