Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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/
)
@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/
)
Loading