Spaces:
Running
Running
Update tasks.py
Browse files
tasks.py
CHANGED
@@ -5,10 +5,10 @@ from agents import get_researcher_agent, get_writer_agent
|
|
5 |
def get_research_task(model):
|
6 |
return Task(
|
7 |
description=(
|
8 |
-
"1.
|
9 |
"2. Scrape the 10 most relevant web sites for content."
|
10 |
),
|
11 |
-
expected_output="Content on topic {topic}.",
|
12 |
agent=get_researcher_agent(model),
|
13 |
)
|
14 |
|
@@ -17,6 +17,6 @@ def get_writer_task(model):
|
|
17 |
description=(
|
18 |
"Use the context to write a 2000-word article on topic {topic}, including a reference section with research papers."
|
19 |
),
|
20 |
-
expected_output="
|
21 |
agent=get_writer_agent(model),
|
22 |
)
|
|
|
5 |
def get_research_task(model):
|
6 |
return Task(
|
7 |
description=(
|
8 |
+
"1. Prioritizing research papers, search the web for content on topic: {topic}.\n"
|
9 |
"2. Scrape the 10 most relevant web sites for content."
|
10 |
),
|
11 |
+
expected_output="Content on topic: {topic}.",
|
12 |
agent=get_researcher_agent(model),
|
13 |
)
|
14 |
|
|
|
17 |
description=(
|
18 |
"Use the context to write a 2000-word article on topic {topic}, including a reference section with research papers."
|
19 |
),
|
20 |
+
expected_output="An article on topic {topic}.",
|
21 |
agent=get_writer_agent(model),
|
22 |
)
|