This implements a structured dictionary representation of Crew objects
for frontend-friendly visualization, as requested in issue #2326.
The method provides a comprehensive view of the Crew's structure including:
- Basic crew information (id, name, process type)
- Agent details
- Task information
- Task relationships
- Manager agent (for hierarchical processes)
Added comprehensive tests to verify functionality across different
Crew configurations and error handling.
Co-Authored-By: Joe Moura <joao@crewai.com>