-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtasks.py
More file actions
27 lines (23 loc) · 796 Bytes
/
tasks.py
File metadata and controls
27 lines (23 loc) · 796 Bytes
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
26
27
from crewai import Task
from tools import yt_tool
from agents import blog_writer, blog_researcher
# Research
research_task = Task(
description = (
"Identify the video {topic}."
"Get detailed information about the video from the channel."
),
expected_output = "A comprehensive 3 paragraphs long report based on the {topic} of the video.",
tools = [yt_tool],
agent = blog_researcher
)
write_task = Task(
description = (
"Get detailed information from the youtube channel on the topic {topic}."
),
expected_output = "Summarize the info from the youtube channel video on the topic {topic} and create the content for the blog.",
tools = [yt_tool],
agent = blog_writer,
async_execution = False,
output_file = 'blog_post.md'
)