ferferefer commited on
Commit
455411e
·
verified ·
1 Parent(s): fb90045

Delete tasks.py

Browse files
Files changed (1) hide show
  1. tasks.py +0 -92
tasks.py DELETED
@@ -1,92 +0,0 @@
1
- from crewai import Task
2
-
3
- def get_research_task(agent, topic):
4
- return Task(
5
- description=f"""Research the topic "{topic}" extensively using PMC and Google Scholar.
6
-
7
- Follow these steps:
8
- 1. First search PMC using the pmc_search tool
9
- 2. Then search Google Scholar using the google_scholar_search tool
10
- 3. For each source, carefully extract and analyze:
11
- - Title
12
- - Authors
13
- - Publication year
14
- - Key findings from abstract
15
- - Methodology used
16
- - Outcomes reported
17
- 4. Combine and synthesize the information:
18
- - Identify common themes
19
- - Note conflicting findings
20
- - Highlight strongest evidence
21
- 5. Organize findings by:
22
- - Study type (RCT, cohort, etc.)
23
- - Sample size
24
- - Follow-up duration
25
- - Outcome measures
26
-
27
- If search results are limited:
28
- 1. Try alternative search terms
29
- 2. Broaden the search scope
30
- 3. Include related conditions/treatments
31
-
32
- Output Format:
33
- 1. Summary of search strategy
34
- 2. Overview of findings
35
- 3. Detailed analysis of key studies
36
- 4. Evidence synthesis
37
- 5. Knowledge gaps identified""",
38
- agent=agent,
39
- expected_output="A comprehensive research summary with detailed analysis of findings from both PMC and Google Scholar."
40
- )
41
-
42
- def get_writing_task(agent, topic):
43
- return Task(
44
- description=f"""Write a comprehensive scientific paper about "{topic}" based on the research provided.
45
-
46
- Paper Structure:
47
- 1. Introduction:
48
- - Current state of knowledge
49
- - Clinical significance
50
- - Research gaps
51
- - Clear objectives
52
-
53
- 2. Materials and Methods:
54
- - Search strategy
55
- - Inclusion criteria
56
- - Data extraction process
57
- - Quality assessment
58
-
59
- 3. Results (minimum one page):
60
- - Study characteristics
61
- - Patient demographics
62
- - Primary outcomes
63
- - Secondary outcomes
64
- - Safety data
65
- - Meta-analysis if applicable
66
-
67
- 4. Discussion (minimum one page):
68
- - Summary of main findings
69
- - Comparison with existing literature
70
- - Clinical implications
71
- - Strengths and limitations
72
- - Future research directions
73
-
74
- 5. Conclusion:
75
- - Key takeaways
76
- - Clinical recommendations
77
- - Research priorities
78
-
79
- 6. References:
80
- - APA format
81
- - All cited studies included
82
-
83
- Writing Guidelines:
84
- - Use clear, scientific language
85
- - Support all claims with evidence
86
- - Include relevant statistics
87
- - Maintain objectivity
88
- - Address conflicting findings
89
- - Consider clinical relevance""",
90
- agent=agent,
91
- expected_output="A well-structured scientific paper with comprehensive analysis and proper citations."
92
- )