File size: 862 Bytes
d6269a1
93fc605
45ab3c8
93fc605
6ae3476
5ffb8f8
b3d6c85
33215d9
 
82601b2
f9bb4a4
6ae3476
b3d6c85
 
6ae3476
5ffb8f8
b3d6c85
33215d9
0fae81b
 
33215d9
82601b2
33215d9
6ae3476
b3d6c85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from crewai import Task

from agents import get_researcher_agent, get_author_agent

def get_researcher_task(model):
    return Task(
        description=(
            "1. Search the web for content on topic {topic}.\n"
            "2. Scrape the 3 most relevant web sites for content."
        ),
        expected_output="Content on topic {topic}.",
        agent=get_researcher_agent(model),
    )

def get_author_task(model):
    return Task(
        description=(
            "1. Use the context to write a LinkedIn post on topic {topic}.\n"
            "2. Structure the post to include an introduction, a body, and a conclusion.\n"
            "3. In the introduction, use 3 emojis.\n"
            "4. After the conclusion, add 3 hashtags."
        ),
        expected_output="A LinkedIn post on topic {topic}.",
        agent=get_author_agent(model),
    )