Skip to content

Commit e5dd690

Browse files
authored
Merge pull request #110 from tcdent/crew-tabs
Convert crew.py from tabs to spaces
2 parents 85a44af + e9352e7 commit e5dd690

File tree

1 file changed

+29
-29
lines changed
  • agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src

1 file changed

+29
-29
lines changed

agentstack/templates/crewai/{{cookiecutter.project_metadata.project_slug}}/src/crew.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44

55
@CrewBase
66
class {{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

Comments
 (0)