File size: 857 Bytes
3670b47
56daaee
1d029cc
5d22cf7
5d83ebb
3670b47
5d83ebb
2bc4a9f
 
 
 
48a17ba
 
3670b47
 
5d83ebb
3670b47
5d83ebb
2bc4a9f
 
7464ef0
48a17ba
 
3670b47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from crewai import Agent

from tools import get_scrape_tool, get_search_tool

def get_researcher_agent():
    return Agent(
        role="Researcher",
        goal="Research content on {topic}",
        backstory="You're working on researching content on topic: {topic}. "
                  "Your work is the basis for the Author to write a LinkedIn post on this topic.",
        tools = [get_search_tool(), get_scrape_tool()],
        allow_delegation=False,
    	verbose=True
    )

def get_author_agent():
    return Agent(
        role="Author",
        goal="Write LinkedIn post on topic: {topic}",
        backstory="You're working on a writing a LinkeIn post on topic: {topic}. "
                  "You base your writing on the work of the Researcher, who provides context about the topic.",
        allow_delegation=False,
        verbose=True
    )