bstraehle commited on
Commit
6ae3476
·
verified ·
1 Parent(s): 945b678

Update tasks.py

Browse files
Files changed (1) hide show
  1. tasks.py +4 -4
tasks.py CHANGED
@@ -2,7 +2,7 @@ from crewai import Task
2
 
3
  from agents import get_researcher_agent, get_author_agent
4
 
5
- def get_researcher_task():
6
  return Task(
7
  description=(
8
  "1. Search the web for current content on {topic}.\n"
@@ -10,10 +10,10 @@ def get_researcher_task():
10
  "3. Attribute credit to the web site."
11
  ),
12
  expected_output="Content on topic {topic}.",
13
- agent=get_researcher_agent(),
14
  )
15
 
16
- def get_author_task():
17
  return Task(
18
  description=(
19
  "1. Use the context to write a LinkedIn social media post on {topic}.\n"
@@ -21,5 +21,5 @@ def get_author_task():
21
  "3. Proofread for grammatical errors."
22
  ),
23
  expected_output="A LinkedIn social media post on topic: {topic}. The post must not exceed 10 sentences and must contain some emojis.",
24
- agent=get_author_agent(),
25
  )
 
2
 
3
  from agents import get_researcher_agent, get_author_agent
4
 
5
+ def get_researcher_task(model):
6
  return Task(
7
  description=(
8
  "1. Search the web for current content on {topic}.\n"
 
10
  "3. Attribute credit to the web site."
11
  ),
12
  expected_output="Content on topic {topic}.",
13
+ agent=get_researcher_agent(model),
14
  )
15
 
16
+ def get_author_task(model):
17
  return Task(
18
  description=(
19
  "1. Use the context to write a LinkedIn social media post on {topic}.\n"
 
21
  "3. Proofread for grammatical errors."
22
  ),
23
  expected_output="A LinkedIn social media post on topic: {topic}. The post must not exceed 10 sentences and must contain some emojis.",
24
+ agent=get_author_agent(model),
25
  )