Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -6,8 +6,7 @@ def get_researcher_agent(model, max_tokens, temperature, verbose):
|
|
6 |
return Agent(
|
7 |
role="Researcher",
|
8 |
goal="Research content on topic: {topic}.",
|
9 |
-
backstory="You
|
10 |
-
"You're working on researching content on topic '{topic}'. "
|
11 |
"Your work is the basis for the Writer to write on this topic.",
|
12 |
llm=ChatOpenAI(model=model, max_tokens=max_tokens, temperature=temperature),
|
13 |
tools = [search_tool(), scrape_tool()],
|
@@ -19,8 +18,7 @@ def get_writer_agent(model, max_tokens, temperature, verbose):
|
|
19 |
return Agent(
|
20 |
role="Writer",
|
21 |
goal="Write an article on topic: {topic}.",
|
22 |
-
backstory="You
|
23 |
-
"You're working on writing a 5000-word detailed article on topic '{topic}'. "
|
24 |
"You base your writing on the work of the Researcher, who provides context on this topic.",
|
25 |
llm=ChatOpenAI(model=model, max_tokens=max_tokens, temperature=temperature),
|
26 |
tools = [today_tool()],
|
|
|
6 |
return Agent(
|
7 |
role="Researcher",
|
8 |
goal="Research content on topic: {topic}.",
|
9 |
+
backstory="You're working on researching content on topic '{topic}'. "
|
|
|
10 |
"Your work is the basis for the Writer to write on this topic.",
|
11 |
llm=ChatOpenAI(model=model, max_tokens=max_tokens, temperature=temperature),
|
12 |
tools = [search_tool(), scrape_tool()],
|
|
|
18 |
return Agent(
|
19 |
role="Writer",
|
20 |
goal="Write an article on topic: {topic}.",
|
21 |
+
backstory="You're working on writing an accurate, concise, and objective article on topic '{topic}'. "
|
|
|
22 |
"You base your writing on the work of the Researcher, who provides context on this topic.",
|
23 |
llm=ChatOpenAI(model=model, max_tokens=max_tokens, temperature=temperature),
|
24 |
tools = [today_tool()],
|