44
55@CrewBase
66class {{cookiecutter .project_metadata .project_name | replace ('-' , '' )| replace ('_' , '' )| capitalize }}Crew ():
7- """{{cookiecutter.project_metadata.project_name}} crew"""
7+ """{{cookiecutter.project_metadata.project_name}} crew"""
88
9- # Agent definitions
10- {% - for agent in cookiecutter .structure .agents % }
11- @agent
12- def {{agent .name }}(self ) - > Agent :
13- return Agent (
14- config = self .agents_config ['{{ agent.name }}' ],
15- tools = [], # Pass in what tools this agent should have
16- verbose = True
17- )
18- {% - endfor % }
9+ # Agent definitions
10+ {% - for agent in cookiecutter .structure .agents % }
11+ @agent
12+ def {{agent .name }}(self ) - > Agent :
13+ return Agent (
14+ config = self .agents_config ['{{ agent.name }}' ],
15+ tools = [], # Pass in what tools this agent should have
16+ verbose = True
17+ )
18+ {% - endfor % }
1919
20- # Task definitions
21- {% - for task in cookiecutter .structure .tasks % }
22- @task
23- def {{task .name }}(self ) - > Task :
24- return Task (
25- config = self .tasks_config ['{{task.name}}' ],
26- )
27- {% - endfor % }
20+ # Task definitions
21+ {% - for task in cookiecutter .structure .tasks % }
22+ @task
23+ def {{task .name }}(self ) - > Task :
24+ return Task (
25+ config = self .tasks_config ['{{task.name}}' ],
26+ )
27+ {% - endfor % }
2828
29- @crew
30- def crew (self ) -> Crew :
31- """Creates the Test crew"""
32- return Crew (
33- agents = self .agents , # Automatically created by the @agent decorator
34- tasks = self .tasks , # Automatically created by the @task decorator
35- process = Process .sequential ,
36- verbose = True ,
37- # process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/
38- )
29+ @crew
30+ def crew (self ) -> Crew :
31+ """Creates the Test crew"""
32+ return Crew (
33+ agents = self .agents , # Automatically created by the @agent decorator
34+ tasks = self .tasks , # Automatically created by the @task decorator
35+ process = Process .sequential ,
36+ verbose = True ,
37+ # process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/
38+ )
0 commit comments