ferferefer commited on
Commit
68083c8
·
verified ·
1 Parent(s): aaa7944

Delete tasks.py

Browse files
Files changed (1) hide show
  1. tasks.py +0 -120
tasks.py DELETED
@@ -1,120 +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 (full names for APA citation)
13
- - Publication year
14
- - Journal name (for APA citation)
15
- - Volume/Issue (if available)
16
- - DOI or URL (if available)
17
- - Key findings from abstract
18
- - Methodology used
19
- - Outcomes reported
20
- 4. Combine and synthesize the information:
21
- - Identify common themes
22
- - Note conflicting findings
23
- - Highlight strongest evidence
24
- 5. Organize findings by:
25
- - Study type (RCT, cohort, etc.)
26
- - Sample size
27
- - Follow-up duration
28
- - Outcome measures
29
-
30
- If search results are limited:
31
- 1. Try alternative search terms
32
- 2. Broaden the search scope
33
- 3. Include related conditions/treatments
34
-
35
- Output Format:
36
- 1. Summary of search strategy
37
- 2. Overview of findings
38
- 3. Detailed analysis of key studies
39
- 4. Evidence synthesis
40
- 5. Knowledge gaps identified
41
- 6. Complete reference list in APA format for ALL sources
42
- Format: Author(s) (Year). Title. Journal, Volume(Issue), Pages. DOI/URL
43
- Example: Smith, J. D., & Jones, M. R. (2023). Study findings. Journal of Medicine, 45(2), 123-145. https://doi.org/10.1000/med.2023""",
44
- agent=agent,
45
- expected_output="A comprehensive research summary with detailed analysis and APA-formatted references for all sources."
46
- )
47
-
48
- def get_writing_task(agent, topic):
49
- return Task(
50
- description=f"""Write a comprehensive scientific paper about "{topic}" based on the research provided.
51
-
52
- Paper Structure:
53
- 1. Introduction (500-750 words):
54
- - Current state of knowledge
55
- - Clinical significance
56
- - Research gaps
57
- - Clear objectives
58
- - Include at least 5 in-text citations
59
-
60
- 2. Materials and Methods (500-750 words):
61
- - Search strategy
62
- - Inclusion criteria
63
- - Data extraction process
64
- - Quality assessment
65
- - Include methodology citations
66
-
67
- 3. Results (MINIMUM 1000 words):
68
- - Study characteristics
69
- - Patient demographics
70
- - Primary outcomes
71
- - Secondary outcomes
72
- - Safety data
73
- - Meta-analysis if applicable
74
- - Include specific data from at least 10 studies
75
- - Use in-text citations for every finding
76
-
77
- 4. Discussion (MINIMUM 1000 words):
78
- - Summary of main findings
79
- - Comparison with existing literature
80
- - Clinical implications
81
- - Strengths and limitations
82
- - Future research directions
83
- - Include at least 15 in-text citations
84
- - Compare and contrast findings from different studies
85
- - Address conflicting results
86
- - Discuss potential mechanisms
87
-
88
- 5. Conclusion (250-500 words):
89
- - Key takeaways
90
- - Clinical recommendations
91
- - Research priorities
92
-
93
- 6. References:
94
- - MUST list ALL cited articles (minimum 20)
95
- - Use proper APA format
96
- - Include DOI/URL when available
97
- - Alphabetical order
98
-
99
- Writing Guidelines:
100
- - Use clear, scientific language
101
- - Support EVERY claim with citations
102
- - Include relevant statistics
103
- - Maintain objectivity
104
- - Address conflicting findings
105
- - Consider clinical relevance
106
-
107
- Citation Format:
108
- - In-text: (Author et al., Year) or Author et al. (Year)
109
- - For 2 authors: (Smith & Jones, 2023)
110
- - For 3+ authors: (Smith et al., 2023)
111
- - Multiple citations: (Smith et al., 2023; Jones et al., 2022)
112
-
113
- IMPORTANT:
114
- - Results and Discussion MUST be at least 1000 words each
115
- - EVERY paragraph should include at least one citation
116
- - ALL sources from the research must be cited and listed
117
- - Check that all in-text citations have corresponding references""",
118
- agent=agent,
119
- expected_output="A well-structured scientific paper with comprehensive analysis, proper citations, and complete reference list."
120
- )