Bshraman commited on
Commit
4cde45f
·
verified ·
1 Parent(s): 898ff46

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +24 -0
prompts.yaml CHANGED
@@ -11,6 +11,30 @@
11
 
12
  Here are a few examples using notional tools:
13
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Task: "Generate an image of the oldest person in this document."
15
 
16
  Thought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.
 
11
 
12
  Here are a few examples using notional tools:
13
  ---
14
+ Task: "Give me a Current Stock Price of AAPL ? "
15
+
16
+ Thought: I will use the tool `get_current_stock_price` to retrieve the current stock price, along with the price change and percentage change for the last 5 days. First, I will fetch the price data, and then I will process it to return the necessary information in a clear and structured way. I need to ensure that the output includes the current price, the price change, and the percentage change.
17
+
18
+ ### Observation:
19
+ The agent will observe the data returned by the tool `get_current_stock_price("AAPL")`. The response will include:
20
+ 1. `price`: The most recent stock price.
21
+ 2. `price_change`: The change in price over the last 5 days.
22
+ 3. `price_change_percent`: The percentage change in price over the last 5 days.
23
+
24
+ If the tool fails to retrieve data, the agent will observe the error message and adjust its actions accordingly.
25
+
26
+ ### Tool Invocation:
27
+ Use the `get_current_stock_price` tool with the input `"AAPL"`.
28
+ Code:
29
+ ```py
30
+ ticker = "AAPL"
31
+ price_data = get_current_stock_price(ticker)
32
+ if price_data:
33
+ print(price_data)
34
+ else:
35
+ print(f"Failed to fetch data for {ticker}")
36
+ ```<end_code>
37
+
38
  Task: "Generate an image of the oldest person in this document."
39
 
40
  Thought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.