-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathtasks.py
More file actions
69 lines (61 loc) · 2.49 KB
/
tasks.py
File metadata and controls
69 lines (61 loc) · 2.49 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from textwrap import dedent
from crewai import Task
class MeetingPreparationTasks():
def research_task(self, agent, participants, context):
return Task(
description=dedent(f"""\
Conduct comprehensive research on each of the individuals and companies
involved in the upcoming meeting. Gather information on recent
news, achievements, professional background, and any relevant
business activities.
Participants: {participants}
Meeting Context: {context}"""),
expected_output=dedent("""\
A detailed report summarizing key findings about each participant
and company, highlighting information that could be relevant for the meeting."""),
async_execution=True,
agent=agent
)
def industry_analysis_task(self, agent, participants, context):
return Task(
description=dedent(f"""\
Analyze the current industry trends, challenges, and opportunities
relevant to the meeting's context. Consider market reports, recent
developments, and expert opinions to provide a comprehensive
overview of the industry landscape.
Participants: {participants}
Meeting Context: {context}"""),
expected_output=dedent("""\
An insightful analysis that identifies major trends, potential
challenges, and strategic opportunities."""),
async_execution=True,
agent=agent
)
def meeting_strategy_task(self, agent, context, objective):
return Task(
description=dedent(f"""\
Develop strategic talking points, questions, and discussion angles
for the meeting based on the research and industry analysis conducted
Meeting Context: {context}
Meeting Objective: {objective}"""),
expected_output=dedent("""\
Complete report with a list of key talking points, strategic questions
to ask to help achieve the meetings objective during the meeting."""),
agent=agent
)
def summary_and_briefing_task(self, agent, context, objective):
return Task(
description=dedent(f"""\
Compile all the research findings, industry analysis, and strategic
talking points into a concise, comprehensive briefing document for
the meeting.
Ensure the briefing is easy to digest and equips the meeting
participants with all necessary information and strategies.
Meeting Context: {context}
Meeting Objective: {objective}"""),
expected_output=dedent("""\
A well-structured briefing document that includes sections for
participant bios, industry overview, talking points, and
strategic recommendations."""),
agent=agent
)