cicboy commited on
Commit
9c32c56
·
1 Parent(s): 36b1790

update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -6
app.py CHANGED
@@ -88,11 +88,17 @@ strategy_agent = Agent(
88
  reporting_agent = Agent(
89
  role="Crypto Reporting Analyst",
90
  goal=(
91
- "Generate a professionally formatted Markdown report synthesizing the full analysis."
 
 
92
  ),
93
- backstory="A financial writer producing institutional-grade research.",
 
 
 
 
 
94
  verbose=False,
95
- llm="gpt-4o-mini"
96
  )
97
 
98
  # ----------------------
@@ -156,10 +162,25 @@ strategy_task = Task(
156
 
157
  reporting_task = Task(
158
  description=(
159
- "Create a well-formatted Markdown report combining all structured outputs: "
160
- "Market, Historical, Sentiment, Analytics, and Strategy."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  ),
162
- expected_output="Markdown-formatted final report.",
163
  agent=reporting_agent,
164
  )
165
 
 
88
  reporting_agent = Agent(
89
  role="Crypto Reporting Analyst",
90
  goal=(
91
+ "Produce a polished, professional, narrative-style market report written in clean Markdown. "
92
+ "The report must use paragraphs, not bullet points, except where absolutely necessary. "
93
+ "Each section must read like human financial analysis, with smooth transitions and explanatory context."
94
  ),
95
+ backstory=(
96
+ "You are a senior market strategist and financial writer for institutional clients. "
97
+ "Your writing style is polished, narrative, and insight-driven — not bullet-point lists. "
98
+ "You blend market data, sentiment, and strategy into clear, flowing paragraphs."
99
+ ),
100
+ llm="gpt-4o-mini",
101
  verbose=False,
 
102
  )
103
 
104
  # ----------------------
 
162
 
163
  reporting_task = Task(
164
  description=(
165
+ "Using the outputs from all previous tasks, write a cohesive, high-quality market report "
166
+ "in Markdown format. Each section must be written as narrative paragraphs, not bullet or numbered lists. "
167
+ "You must synthesize insights, explain context, and avoid repeating raw field names. "
168
+ "Required sections with H2 Markdown headings (##):\n\n"
169
+ "## Market Overview\n"
170
+ "Explain current price, recent movement, and key context in paragraph form.\n\n"
171
+ "## Historical Performance\n"
172
+ "Summarize recent price trajectory, volatility, and trend using smooth narrative sentences.\n\n"
173
+ "## Sentiment Analysis\n"
174
+ "Describe market sentiment, referencing sentiment sources in prose, not lists.\n\n"
175
+ "## Analytical Summary\n"
176
+ "Interpret composite metrics and explain what they mean for traders.\n\n"
177
+ "## Strategy Outlook\n"
178
+ "Provide clear strategy insights in paragraph format — no bullet points.\n\n"
179
+ "## Final Takeaways\n"
180
+ "Conclude with high-level insights in polished prose.\n\n"
181
+ "IMPORTANT: Do NOT output bullet points or lists. Use flowing paragraphs."
182
  ),
183
+ expected_output="A polished, narrative Markdown report with paragraphs only.",
184
  agent=reporting_agent,
185
  )
186