DawnR0270 commited on
Commit
6e1f0c1
·
verified ·
1 Parent(s): 2262634

Reflected instructions for comparing current stock price to a historical stock price.

Browse files
Files changed (1) hide show
  1. prompts.yaml +15 -0
prompts.yaml CHANGED
@@ -29,6 +29,21 @@
29
  ```<end_code>
30
 
31
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  Task: "What is the result of the following operation: 5 + 3 + 1294.678?"
33
 
34
  Thought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool
 
29
  ```<end_code>
30
 
31
  ---
32
+ Task: "Compare the current stock price to a historical stock price."
33
+
34
+ Thought: I will proceed step by step and use the following tools: `get_stock_price_tool` to find the current stock price for the symbol given, then `get_historical_price_tool` to fetch the historical price for the symbol given.
35
+ Code:
36
+ ```py
37
+ - When the user's query involves comparing a stock's **current price** (fetched using `get_stock_price_tool`) to a **historical price** (fetched using `get_historical_price_tool`), the Final Answer **must** include two specific metrics calculated from the raw prices:
38
+ 1. The **Absolute Dollar Difference**: (Current Price - Historical Price).
39
+ 2. The **Percentage Change**: ((Current Price - Historical Price) / Historical Price) * 100.
40
+
41
+ Ensure both the absolute difference and the percentage change are clearly labeled and formatted (e.g., "$XX.XX" and "YY.Y%").
42
+ print(answer)
43
+ ```<end_code>
44
+
45
+ ---
46
+
47
  Task: "What is the result of the following operation: 5 + 3 + 1294.678?"
48
 
49
  Thought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool