Spaces:
Running
Running
Commit
·
093b44b
1
Parent(s):
689b436
stock_analyst: minor cor
Browse files
notebooks/stock_analyst.ipynb
CHANGED
|
@@ -56,7 +56,7 @@
|
|
| 56 |
" return f\"Error fetching financial metrics for ticker: {ticker}\"\n",
|
| 57 |
"\n",
|
| 58 |
"def get_prompt(company: str):\n",
|
| 59 |
-
"
|
| 60 |
" You are a stock analyst specializing in evaluating the performance of a given company (whose symbol is {company})\n",
|
| 61 |
" based on recent price data and technical indicators as well as financial metrics. \n",
|
| 62 |
" Your task is to provide a comprehensive summary of the technical and fundamental analysis for a given stock,\n",
|
|
@@ -94,7 +94,7 @@
|
|
| 94 |
" \"Final summary\": \"<Conclusive summary of the analyses above>\"\n",
|
| 95 |
" \"Recommended action\": \"<Suggested action based on the above analyses among options: [strong sell, sell, hold, buy, strong buy]>\"\n",
|
| 96 |
" \"\"\"\n",
|
| 97 |
-
" return
|
| 98 |
"\n",
|
| 99 |
"class State(TypedDict):\n",
|
| 100 |
" messages: Annotated[list, add_messages]\n",
|
|
|
|
| 56 |
" return f\"Error fetching financial metrics for ticker: {ticker}\"\n",
|
| 57 |
"\n",
|
| 58 |
"def get_prompt(company: str):\n",
|
| 59 |
+
" prompt = \"\"\"\n",
|
| 60 |
" You are a stock analyst specializing in evaluating the performance of a given company (whose symbol is {company})\n",
|
| 61 |
" based on recent price data and technical indicators as well as financial metrics. \n",
|
| 62 |
" Your task is to provide a comprehensive summary of the technical and fundamental analysis for a given stock,\n",
|
|
|
|
| 94 |
" \"Final summary\": \"<Conclusive summary of the analyses above>\"\n",
|
| 95 |
" \"Recommended action\": \"<Suggested action based on the above analyses among options: [strong sell, sell, hold, buy, strong buy]>\"\n",
|
| 96 |
" \"\"\"\n",
|
| 97 |
+
" return prompt.format(company=company)\n",
|
| 98 |
"\n",
|
| 99 |
"class State(TypedDict):\n",
|
| 100 |
" messages: Annotated[list, add_messages]\n",
|