Bshraman commited on
Commit
e1a064e
·
verified ·
1 Parent(s): df1d628

Update prompts.yaml

Browse files

added prompt to fetch the airline data

Files changed (1) hide show
  1. prompts.yaml +20 -0
prompts.yaml CHANGED
@@ -11,6 +11,26 @@
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 the Flight Status for AA100"
15
+ Thought: I will use the tool `flight_status` to retrive the data from AviationStack using API and get the flight information.First, I will fetch the flight data and then I will process it to return necessary information in a clear and structure way. I need to ensure that the output include flight_number, airline, status, departure, arrival.
16
+ ### Observation:
17
+ The agent will observe the data returned by the tool `flight_status("AA100")`. The response will include:
18
+ 1. `flight_number`: Flight Number .
19
+ 2. `airline`: Airline Name .
20
+ 3. `status`: The Status of the flight.
21
+ 4. `departure` : Departure information which include departure airport, Estimate time of departure and departure runway.
22
+ 5. `arrival` : Arival information which include arrival airport, Estimate time of arrival and arrival runway.
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 `flight_status` tool with the input `"AA100"`.
28
+ Code:
29
+ ```py
30
+ flight_status = get_flight_status(flight_number, api_key)
31
+ print(flight_status)
32
+ ```<end_code>
33
+
34
  Task: "Generate an image of the oldest person in this document."
35
 
36
  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.