[FEATURE] Construct Agents and Tasks fully from YAML config
Closed this issue · 2 comments
ernestp commented
Feature Area
Core functionality
Is your feature request related to a an existing bug? Please link it here.
It seems it should be possible to avoid boilerplace python code and construct agents and tasks from YAML configuration.
Describe the solution you'd like
Initialization code might look like:
@CrewBase
class CrewaiSampleCrew():
"""CrewaiSample crew"""
@crew
def crew(self) -> Crew:
"""Creates the CrewaiSample crew"""
return Crew(
agents=self.agents_from(self.tasks_config), # Automatically created from YAML config
tasks=self.tasks_from(self.tasks), # Automatically created from YAML config
process=Process.sequential,
verbose=True,
# process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/
)
Describe alternatives you've considered
The next step could be fully load crew from YAML configuration
Additional context
No response
Willingness to Contribute
Yes, I'd be happy to submit a pull request, but I need deeper understanding of how decorations (@agent, @task) are used.
github-actions commented
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
github-actions commented
This issue was closed because it has been stalled for 5 days with no activity.