Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -19,7 +19,20 @@ def get_author_agent(model, verbose):
|
|
19 |
role="Author",
|
20 |
goal="Write an article on topic: {topic}.",
|
21 |
backstory="You're working on writing an article on topic: {topic}. "
|
22 |
-
"You base your writing on the work of the Researcher, who provides
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
llm=ChatOpenAI(model=model, max_tokens=32768),
|
24 |
tools = [today_tool()],
|
25 |
allow_delegation=False,
|
|
|
19 |
role="Author",
|
20 |
goal="Write an article on topic: {topic}.",
|
21 |
backstory="You're working on writing an article on topic: {topic}. "
|
22 |
+
"You base your writing on the work of the Researcher, who provides content on this topic. "
|
23 |
+
"Your work is the basis for the Editor to edit the article on this topic.",
|
24 |
+
llm=ChatOpenAI(model=model, max_tokens=32768),
|
25 |
+
tools = [today_tool()],
|
26 |
+
allow_delegation=False,
|
27 |
+
verbose=verbose
|
28 |
+
)
|
29 |
+
|
30 |
+
def get_editor_agent(model, verbose):
|
31 |
+
return Agent(
|
32 |
+
role="Editor",
|
33 |
+
goal="Edit an article on topic: {topic}.",
|
34 |
+
backstory="You're working on editing an article on topic: {topic}. "
|
35 |
+
"You base your editing on the work of the Author, who provides an article on this topic.",
|
36 |
llm=ChatOpenAI(model=model, max_tokens=32768),
|
37 |
tools = [today_tool()],
|
38 |
allow_delegation=False,
|