-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.py
33 lines (27 loc) · 850 Bytes
/
tasks.py
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
28
29
30
31
32
33
from crewai import Task
from agents import (data_researcher, humanizer_agent, telegram_post_writer,
translator_agent)
from config.core import config
from config.prompts import prompts
find_data = Task(
description=prompts.explorer.prompt,
expected_output=prompts.explorer.expected_output,
agent=data_researcher,
)
post_writing = Task(
description=prompts.writer.prompt,
expected_output=prompts.writer.expected_output,
agent=telegram_post_writer,
)
humanizing_task = Task(
description=prompts.humanizer.prompt,
expected_output=prompts.humanizer.expected_output,
agent=humanizer_agent
)
translation_task = Task(
description=prompts.translator.prompt,
expected_output=prompts.translator.expected_output,
tools=[],
agent=translator_agent,
output_file=config.output_file
)