Spaces:
Running
Running
Update tasks.py
Browse files
tasks.py
CHANGED
@@ -5,9 +5,8 @@ from agents import get_researcher_agent, get_author_agent
|
|
5 |
def get_researcher_task(model):
|
6 |
return Task(
|
7 |
description=(
|
8 |
-
"1. Search the web for
|
9 |
-
"2. Scrape
|
10 |
-
"3. Attribute credit to the web site."
|
11 |
),
|
12 |
expected_output="Content on topic {topic}.",
|
13 |
agent=get_researcher_agent(model),
|
@@ -16,10 +15,11 @@ def get_researcher_task(model):
|
|
16 |
def get_author_task(model):
|
17 |
return Task(
|
18 |
description=(
|
19 |
-
"1. Use the context to write a LinkedIn
|
20 |
-
"2.
|
21 |
-
"3.
|
|
|
22 |
),
|
23 |
-
expected_output="A LinkedIn
|
24 |
agent=get_author_agent(model),
|
25 |
)
|
|
|
5 |
def get_researcher_task(model):
|
6 |
return Task(
|
7 |
description=(
|
8 |
+
"1. Search the web for content on topic {topic}.\n"
|
9 |
+
"2. Scrape the 3 most relevant web sites for content."
|
|
|
10 |
),
|
11 |
expected_output="Content on topic {topic}.",
|
12 |
agent=get_researcher_agent(model),
|
|
|
15 |
def get_author_task(model):
|
16 |
return Task(
|
17 |
description=(
|
18 |
+
"1. Use the context to write a LinkedIn post on topic {topic}.\n"
|
19 |
+
"2. Structure the post to include an introduction, a body, and a conclusion.\n
|
20 |
+
"3. In the introduction, use 3 emojis.\n
|
21 |
+
"4. After the conclusion, add 3 hashtags."
|
22 |
),
|
23 |
+
expected_output="A LinkedIn post on topic {topic}.",
|
24 |
agent=get_author_agent(model),
|
25 |
)
|