-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.py
33 lines (25 loc) · 954 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 Agent, Task, Crew
from agents import researcher,writer
task1 = Task(
description="""Research and find 3 promising investment properties in {country}.
Include the name of the property, city, country, location for each property.""",
expected_output="""A detailed list of five properties with the following format:
Property 1:
name : [property name]
City: [City Name]
Country: Australia
Location: [Location Details]
... and so on for 3 properties.""",
agent=researcher
)
task2 = Task(
description="Summarize the property information into a bullet point list for each property in comprehensive.",
expected_output="""A summarized list of each property in comprehensive including :
name : [property name]
City: [City Name]
Country: Australia
Location: [Location Details]
and so on...""",
agent=writer,
output_file="Report.txt",
)