Files
crewAI/tests
Devin AI f76c55ffa7 Fix Union type handling in Pydantic output generation
- Fixed generate_model_description to correctly handle Union types
- Union types without None are now properly formatted as Union[type1, type2]
- Union types with None are correctly wrapped in Optional[Union[...]]
- Added support for Python 3.10+ pipe syntax (int | str | None)
- Added comprehensive tests for Union type support
- Updated existing test expectations to match corrected behavior

This fixes issue #3735 where Union types were incorrectly wrapped in Optional
even when None was not part of the Union.

Co-Authored-By: João <joao@crewai.com>
2025-10-19 21:33:03 +00:00
..
2025-09-20 15:29:25 -03:00
2025-03-14 03:00:30 -03:00
2025-09-10 15:20:21 -07:00
2023-10-29 19:51:59 -03:00