v6.2.0

crewAIInc/crewAIv6.2.0Nov 7, 2025by tanchongmin

AI Summary

Improves the robustness of `parse_yaml` by adding support for Pydantic v2.12.4, handling special characters in keys, and introducing image parsing capabilities for compatible models.

Key Highlights

  • Improved `parse_yaml` robustness using regex for special characters and colons
  • Enhanced type checking for lists and dictionaries with stricter format requirements
  • Support for union types (e.g., `int | str`)
  • New `image_parser` decorators for models supporting OpenAI API (like OpenRouter)

New Features

  • Pydantic v2.12.4 compatibility
  • Image parsing functionality
  • Union type support in data typing
  • Robust YAML parsing for complex keys

Full Release Notes

Added support for parse_yaml for pydantic v2.12.4
Made parse_yaml more robust using regex to solve keys with special characters and lines with double colons
Better catching of non-working format for list[] and dict[]. list[] must now contain only one datatype, and dict[] must contain exactly two datatypes
Allows | for datatyping: int | str -> Union[int, str], int | None -> Optional[int]
Created image_parser and image_parser_async decorators to parse images for model providers capable of using OpenAI API interface (such as OpenRouter)