Spaces:
Sleeping
Sleeping
Update agents.py
Browse files
agents.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from crewai import Agent
|
| 2 |
from langchain_openai import ChatOpenAI
|
| 3 |
-
from tools import scrape_tool, search_tool
|
| 4 |
|
| 5 |
def get_researcher_agent(model):
|
| 6 |
return Agent(
|
|
@@ -21,6 +21,7 @@ def get_writer_agent(model):
|
|
| 21 |
backstory="You're working on writing a 2000-word 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, temperature=0.7),
|
|
|
|
| 24 |
allow_delegation=False,
|
| 25 |
verbose=False
|
| 26 |
)
|
|
|
|
| 1 |
from crewai import Agent
|
| 2 |
from langchain_openai import ChatOpenAI
|
| 3 |
+
from tools import scrape_tool, search_tool, today_tool
|
| 4 |
|
| 5 |
def get_researcher_agent(model):
|
| 6 |
return Agent(
|
|
|
|
| 21 |
backstory="You're working on writing a 2000-word 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, temperature=0.7),
|
| 24 |
+
tools = [today_tool()],
|
| 25 |
allow_delegation=False,
|
| 26 |
verbose=False
|
| 27 |
)
|