-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.py
More file actions
24 lines (23 loc) · 690 Bytes
/
tasks.py
File metadata and controls
24 lines (23 loc) · 690 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
from crewai import Task
from tools import yt_tool
from agents import blog_researcher,blog_writer
research_task=Task(
description=(
"identify the video {topic}"
"get detailed info"
),
expected_output='a comprehensive 2 paragraph long report within 200 words based on the {topic}',
tools=[yt_tool],
agent=blog_researcher,
)
write_task=Task(
description=(
"identify the video {topic}"
"get detailed info"
),
expected_output=' summarize the info within 100 words based on the {topic} and create the content for the blog',
tools=[yt_tool],
agent=blog_writer,
async_execution=False,
output_file='new-blog-post.md'
)