bstraehle commited on
Commit
4d658da
·
verified ·
1 Parent(s): e189057

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +4 -4
agents.py CHANGED
@@ -2,25 +2,25 @@ from crewai import Agent
2
 
3
  from tools import get_scrape_tool, get_search_tool
4
 
5
- def get_researcher_agent():
6
  return Agent(
7
  role="Researcher",
8
  goal="Research content on {topic}",
9
  backstory="You're working on researching content on topic: {topic}. "
10
  "Your work is the basis for the Author to write a LinkedIn social media post on this topic.",
11
- llm=ChatOpenAI(model="gpt-4o", temperature=0.7),
12
  tools = [get_search_tool(), get_scrape_tool()],
13
  allow_delegation=False,
14
  verbose=True
15
  )
16
 
17
- def get_author_agent():
18
  return Agent(
19
  role="Author",
20
  goal="Write a LinkedIn social media post on topic: {topic}",
21
  backstory="You're working on a writing a LinkedIn social media post on topic: {topic}. "
22
  "You base your writing on the work of the Researcher, who provides context on this topic.",
23
- llm=ChatOpenAI(model="gpt-4o", temperature=0.7),
24
  allow_delegation=False,
25
  verbose=True
26
  )
 
2
 
3
  from tools import get_scrape_tool, get_search_tool
4
 
5
+ def get_researcher_agent(model):
6
  return Agent(
7
  role="Researcher",
8
  goal="Research content on {topic}",
9
  backstory="You're working on researching content on topic: {topic}. "
10
  "Your work is the basis for the Author to write a LinkedIn social media post on this topic.",
11
+ llm=ChatOpenAI(model=model, temperature=0.7),
12
  tools = [get_search_tool(), get_scrape_tool()],
13
  allow_delegation=False,
14
  verbose=True
15
  )
16
 
17
+ def get_author_agent(model):
18
  return Agent(
19
  role="Author",
20
  goal="Write a LinkedIn social media post on topic: {topic}",
21
  backstory="You're working on a writing a LinkedIn social media post 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=True
26
  )