mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
Fixes #3801 This commit addresses the issue where agents_config and tasks_config in CrewBase-decorated classes lacked explicit type annotations, making the code un-Pythonic and reducing IDE/type checker support. Changes: - Added AgentsConfigDict and TasksConfigDict type aliases - Updated load_configurations to use cast() for proper typing - Updated CrewInstance Protocol to use typed config dictionaries - Exported type aliases from crewai.project for user convenience - Updated TypedDicts to support both raw YAML and processed values - Added comprehensive tests for config loading and type annotations The type aliases allow users to import and use proper types: from crewai.project import AgentConfig, AgentsConfigDict This provides better IDE autocomplete and static type checking when accessing self.agents_config and self.tasks_config in CrewBase classes. Co-Authored-By: João <joao@crewai.com>
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.