Files
crewAI/tests
Devin AI b7cb0186bd Fix LLMGuardrailResult JSON parsing with trailing characters
- Extract robust JSON cleaning logic into shared clean_json_from_text() function
- Update LiteAgent to use clean_json_from_text() before model_validate_json()
- Add comprehensive test cases for JSON with trailing characters, markdown formatting, and prefixes
- Fixes GitHub issue #3191 where valid JSON failed to parse due to trailing text
- Maintains backward compatibility with existing JSON parsing behavior

Co-Authored-By: Jo\u00E3o <joao@crewai.com>
2025-07-19 22:56:22 +00:00
..
2025-03-14 03:00:30 -03:00
2023-10-29 19:51:59 -03:00
2025-07-11 13:52:26 -04:00