mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 15:52:34 +00:00
Address code review feedback: enhance error messages and tests
- Include model name in error messages for better context - Update all test cases to verify enhanced error messages - Add new test for error message format validation - Addresses suggestions from PR review by joaomdmoura Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -192,7 +192,7 @@ def convert_with_instructions(
|
||||
) -> Union[dict, BaseModel, str]:
|
||||
if agent is None:
|
||||
Printer().print(
|
||||
content="Failed to convert text into a Pydantic model: No agent available for conversion. Using raw output instead.",
|
||||
content=f"Failed to convert text into a Pydantic model: No agent available for conversion. Using raw output instead. Model: {model.__name__}",
|
||||
color="red",
|
||||
)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user