Spaces:
Sleeping
Sleeping
Update agents.py
Browse files
agents.py
CHANGED
|
@@ -137,67 +137,78 @@ def create_research_crew(topic: str):
|
|
| 137 |
|
| 138 |
report_task = Task(
|
| 139 |
description="""
|
| 140 |
-
Create a comprehensive market research report:
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
-
|
| 154 |
-
-
|
| 155 |
-
|
| 156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
- Case studies
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
-
|
| 161 |
-
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
"future_outlook": "detailed future projections and implications",
|
| 178 |
-
"appendices": "supporting data and sources",
|
| 179 |
-
"sources": ["source1", "source2", "..."],
|
| 180 |
-
"metrics": {
|
| 181 |
-
"market_size": "current and projected size",
|
| 182 |
-
"growth_rate": "historical and projected growth",
|
| 183 |
-
"market_shares": "key player market shares",
|
| 184 |
-
"key_metrics": "other important metrics"
|
| 185 |
-
}
|
| 186 |
-
}
|
| 187 |
|
| 188 |
Requirements:
|
| 189 |
-
-
|
| 190 |
-
-
|
| 191 |
-
-
|
| 192 |
-
-
|
| 193 |
-
-
|
| 194 |
-
-
|
|
|
|
|
|
|
|
|
|
| 195 |
""",
|
| 196 |
agent=writer,
|
| 197 |
-
expected_output="
|
| 198 |
context=[research_task, analysis_task]
|
| 199 |
)
|
| 200 |
-
|
| 201 |
return Crew(
|
| 202 |
agents=[researcher, analyst, writer],
|
| 203 |
tasks=[research_task, analysis_task, report_task],
|
|
|
|
| 137 |
|
| 138 |
report_task = Task(
|
| 139 |
description="""
|
| 140 |
+
Create a comprehensive market research report following this structure:
|
| 141 |
+
|
| 142 |
+
=== EXECUTIVE SUMMARY ===
|
| 143 |
+
Start with a 2-3 page executive summary that includes:
|
| 144 |
+
- Key market findings and insights
|
| 145 |
+
- Critical market metrics and highlights
|
| 146 |
+
- Major strategic implications
|
| 147 |
+
- Core recommendations
|
| 148 |
+
- Investment potential
|
| 149 |
+
|
| 150 |
+
=== MARKET ANALYSIS ===
|
| 151 |
+
Provide detailed market analysis covering:
|
| 152 |
+
1. Market Overview
|
| 153 |
+
- Define market scope and segmentation
|
| 154 |
+
- Current market size and valuation
|
| 155 |
+
- Historical growth analysis
|
| 156 |
+
- Future growth projections
|
| 157 |
+
- Key market segments
|
| 158 |
+
- Geographic distribution
|
| 159 |
+
- Value chain analysis
|
| 160 |
+
|
| 161 |
+
2. Industry Dynamics
|
| 162 |
+
- Growth drivers (with examples)
|
| 163 |
+
- Market challenges
|
| 164 |
+
- Emerging opportunities
|
| 165 |
+
- Current trends
|
| 166 |
+
- Technology impact
|
| 167 |
+
- Regulatory landscape
|
| 168 |
+
|
| 169 |
+
3. Competitive Landscape
|
| 170 |
+
- Market structure
|
| 171 |
+
- Key player profiles
|
| 172 |
+
- Market share analysis
|
| 173 |
+
- Competitive strategies
|
| 174 |
+
- Recent developments
|
| 175 |
+
- SWOT analysis
|
| 176 |
- Case studies
|
| 177 |
+
|
| 178 |
+
4. Strategic Analysis
|
| 179 |
+
- Porter's Five Forces
|
| 180 |
+
- Success factors
|
| 181 |
+
- Entry barriers
|
| 182 |
+
- Risk assessment
|
| 183 |
+
- Growth vectors
|
| 184 |
+
- Strategic recommendations
|
| 185 |
+
|
| 186 |
+
=== FUTURE OUTLOOK ===
|
| 187 |
+
Provide comprehensive future projections:
|
| 188 |
+
- Market forecasts
|
| 189 |
+
- Emerging trends
|
| 190 |
+
- Technology roadmap
|
| 191 |
+
- Future scenarios
|
| 192 |
+
- Strategic implications
|
| 193 |
+
|
| 194 |
+
=== SOURCES AND METHODOLOGY ===
|
| 195 |
+
List all sources used and methodology followed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
Requirements:
|
| 198 |
+
- Write in clear, professional language
|
| 199 |
+
- Use specific numbers and metrics
|
| 200 |
+
- Include recent case studies
|
| 201 |
+
- Cite 5-10 credible sources
|
| 202 |
+
- Provide confidence levels for projections
|
| 203 |
+
- Use contextual examples
|
| 204 |
+
|
| 205 |
+
Structure the content with clear headings (use === for main sections and ## for subsections)
|
| 206 |
+
Make it a narrative document that flows well and tells a story about the market.
|
| 207 |
""",
|
| 208 |
agent=writer,
|
| 209 |
+
expected_output="A comprehensive narrative market research report with detailed analysis",
|
| 210 |
context=[research_task, analysis_task]
|
| 211 |
)
|
|
|
|
| 212 |
return Crew(
|
| 213 |
agents=[researcher, analyst, writer],
|
| 214 |
tasks=[research_task, analysis_task, report_task],
|