diff --git a/agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src/crew.py b/agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src/crew.py index 63744f0a..94a74a50 100644 --- a/agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src/crew.py +++ b/agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src/crew.py @@ -4,35 +4,35 @@ @CrewBase class {{cookiecutter.project_metadata.project_name|replace('-', '')|replace('_', '')|capitalize}}Crew(): - """{{cookiecutter.project_metadata.project_name}} crew""" + """{{cookiecutter.project_metadata.project_name}} crew""" - # Agent definitions - {%- for agent in cookiecutter.structure.agents %} - @agent - def {{agent.name}}(self) -> Agent: - return Agent( - config=self.agents_config['{{ agent.name }}'], - tools=[], # Pass in what tools this agent should have - verbose=True - ) - {%- endfor %} + # Agent definitions + {%- for agent in cookiecutter.structure.agents %} + @agent + def {{agent.name}}(self) -> Agent: + return Agent( + config=self.agents_config['{{ agent.name }}'], + tools=[], # Pass in what tools this agent should have + verbose=True + ) + {%- endfor %} - # Task definitions - {%- for task in cookiecutter.structure.tasks %} - @task - def {{task.name}}(self) -> Task: - return Task( - config=self.tasks_config['{{task.name}}'], - ) - {%- endfor %} + # Task definitions + {%- for task in cookiecutter.structure.tasks %} + @task + def {{task.name}}(self) -> Task: + return Task( + config=self.tasks_config['{{task.name}}'], + ) + {%- endfor %} - @crew - def crew(self) -> Crew: - """Creates the Test crew""" - return Crew( - agents=self.agents, # Automatically created by the @agent decorator - tasks=self.tasks, # Automatically created by the @task decorator - process=Process.sequential, - verbose=True, - # process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/ - ) \ No newline at end of file + @crew + def crew(self) -> Crew: + """Creates the Test crew""" + return Crew( + agents=self.agents, # Automatically created by the @agent decorator + tasks=self.tasks, # Automatically created by the @task decorator + process=Process.sequential, + verbose=True, + # process=Process.hierarchical, # In case you wanna use that instead https://docs.crewai.com/how-to/Hierarchical/ + ) \ No newline at end of file