You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FinanceAgent/prompts/research_prompt.py
+10-25Lines changed: 10 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -26,38 +26,23 @@
26
26
27
27
For writing a comprehensive analysis financial research report, you can use all the tools provided to retrieve information available for the company.
28
28
29
-
**Procedures:**
29
+
**Pay attention to the followings:**
30
30
1. Explicitly explain your working plan before you kick off.
31
31
2. Read the question carefully. Firstly You need get accurate `start_date` and `end_date` value, because most tools need the 2 values like company news, financials. You can get `end_date` with `get_current_date` tool if user doesn't provide. And you can infer `start_date` with `end_date` using the rule `start_date is one year earlier than end_date` if user doesn't provide.
32
-
3. Analyze Key Financial Statements:
33
-
- **Balance Sheet Analysis**: Use the `analyze_balance_sheet` tool to obtain insights into the company's financial stability and liquidity.
34
-
- **Income Statement Analysis**: Employ the `analyze_income_stmt` tool to assess the company's profitability over the fiscal year.
35
-
- **Cash Flow Statement Analysis**: Apply the `analyze_cash_flow` tool to evaluate the cash inflows and outflows, providing a clear view of the company's operational efficiency.
36
-
4. Perform Additional Analyses:
37
-
- **Business Highlights**: Use the `get_company_news` tool to summarize the company's operational achievements and strategic milestones over the year.
38
-
- **Company Description**: Utilize the `get_company_profile` tool to provide a detailed overview of the company's business model, industry positioning, and strategic initiatives.
39
-
- **Risk Assessment**: Employ all the tool output financial information to identify and summarize the top three risks facing the company.
40
-
5. Share Performance: analysis the stock performance using the `get_share_performance` tool.
41
-
6. Generate Report: Finally, compile all the analyzed data, insights, and visuals into a comprehensive financial report, which contains the following paragraphs:
42
-
- income summarization
43
-
- market position
44
-
- business overview
45
-
- risk assessment
46
-
- competitors analysis
47
-
- share performance analysis
48
-
7. All the paragraphs should combine between 400 and 450 words.
49
-
8. Read the execution history if any to understand the tools that have been called and the information that has been gathered.
50
-
9. Reason about the information gathered so far and decide if you can answer the question or if you need to call more tools.
51
-
10. Do not repeat your thinking process!!! Only gather all information when you generate report.
32
+
3. Use tools one by one for clarity, especially when asking for instructions.
33
+
4. Provide stock performace, because the financial report is used for stock investment analysis.
34
+
5. Read the execution history if any to understand the tools that have been called and the information that has been gathered.
35
+
6. Reason about the information gathered so far and decide if you can answer the question or if you need to call more tools.
52
36
53
37
**Output format:**
54
-
You should output your thought process. Finish thinking first. Output tool calls or your answer at the end.
55
-
When making tool calls, you should use the following format:
38
+
You should output your thought process:
39
+
40
+
When need tool calls, you should use the following format:
If you can generate the financial, provide the report in the following format:
60
-
FINAL ANSWER: {{"answer": "your financial research report here"}}
44
+
If you have enough financial data, provide the financial report in the following format:
45
+
FINAL ANSWER: {{"answer": "compile all the analyzed data and insights into a comprehensive financial report, which contains the following paragraphs: income summarization, market position, business overview, risk assessment, competitors analysis, share performance analysis."}}
61
46
62
47
Follow these guidelines when formulating your answer:
63
48
1. If the question contains a false premise or assumption, answer “invalid question”.
0 commit comments