Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse files- prompts.yaml +12 -12
prompts.yaml
CHANGED
|
@@ -11,18 +11,18 @@
|
|
| 11 |
|
| 12 |
Here are a few examples using notional tools:
|
| 13 |
---
|
| 14 |
-
Task: "What is the Current Stock Price of APPL ticker ?"
|
| 15 |
-
|
| 16 |
-
Thought: I will approach the task step by step to ensure accuracy. First, I will use the `get_current_stock_price` tool to fetch the latest stock data for Apple (AAPL) from Yahoo Finance. This tool is designed to retrieve the most current stock data, including the current price, the price change over the last 5 days, and the percentage change. Once the data is retrieved, I will extract and return these values to provide the user with the latest stock price, price changes, and percentage change for AAPL.
|
| 17 |
-
Code:
|
| 18 |
-
```py
|
| 19 |
-
ticker = "AAPL"
|
| 20 |
-
price_data = get_current_stock_price(ticker)
|
| 21 |
-
if price_data:
|
| 22 |
-
|
| 23 |
-
else:
|
| 24 |
-
|
| 25 |
-
```<end_code>
|
| 26 |
|
| 27 |
Task: "Generate an image of the oldest person in this document."
|
| 28 |
|
|
|
|
| 11 |
|
| 12 |
Here are a few examples using notional tools:
|
| 13 |
---
|
| 14 |
+
# Task: "What is the Current Stock Price of APPL ticker ?"
|
| 15 |
+
|
| 16 |
+
# Thought: I will approach the task step by step to ensure accuracy. First, I will use the `get_current_stock_price` tool to fetch the latest stock data for Apple (AAPL) from Yahoo Finance. This tool is designed to retrieve the most current stock data, including the current price, the price change over the last 5 days, and the percentage change. Once the data is retrieved, I will extract and return these values to provide the user with the latest stock price, price changes, and percentage change for AAPL.
|
| 17 |
+
# Code:
|
| 18 |
+
# ```py
|
| 19 |
+
# ticker = "AAPL"
|
| 20 |
+
# price_data = get_current_stock_price(ticker)
|
| 21 |
+
# if price_data:
|
| 22 |
+
# print(price_data)
|
| 23 |
+
# else:
|
| 24 |
+
# print(f"Failed to fetch data for {ticker}")
|
| 25 |
+
# ```<end_code>
|
| 26 |
|
| 27 |
Task: "Generate an image of the oldest person in this document."
|
| 28 |
|