File size: 958 Bytes
d6269a1
93fc605
45ab3c8
93fc605
45ab3c8
5ffb8f8
b3d6c85
f9bb4a4
 
 
82601b2
f9bb4a4
45ab3c8
b3d6c85
 
45ab3c8
5ffb8f8
b3d6c85
f9bb4a4
 
 
82601b2
f9bb4a4
45ab3c8
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():
    return Task(
        description=(
            "1. Search the web for current content on {topic}.\n"
            "2. Scrape a maximum of 3 web sites for content.\n"
            "3. Attribute credit to the web site."
        ),
        expected_output="Content on topic {topic}.",
        agent=get_researcher_agent(),
    )

def get_author_task():
    return Task(
        description=(
            "1. Use the context to write a LinkedIn social media post on {topic}.\n"
            "2. Ensure the post is structured with an engaging introduction, insightful body, and a summarizing conclusion.\n"
            "3. Proofread for grammatical errors."
        ),
        expected_output="A LinkedIn social media post on topic: {topic}. The post must not exceed 10 sentences and must contain some emojis.",
        agent=get_author_agent(),
    )