Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created July 20, 2023 19:46
Show Gist options
  • Save john-adeojo/7876af170bbe90222a330dbe8eafcc82 to your computer and use it in GitHub Desktop.
Save john-adeojo/7876af170bbe90222a330dbe8eafcc82 to your computer and use it in GitHub Desktop.
query = f'''Find me the {TypeofflightReuqest} journey from {originLocationCode} to {destinationLocationCode}.
Departing from {originLocationCode} on {departureDate} and returning from {destinationLocationCode} on {returnDate}.
respond with following structure delimited by quotation marks as an example for a journey with 4 legs, 2 for Outbound and 2 for Inbound flights:
## Journey ID: 1, Total (currency):
### travel_direction: Outbound, Journey Start: , Journey End: , total_duration(hrs):
**leg_id:1**
- Departure Time:
- Arrival Time:
- Intermediate Departure:
- Intermediate Arrival:
- Airline:
- flight_duration (hrs):
**leg_id:2**
- Departure Time:######
- Arrival Time: #####
- Intermediate Departure:
- Intermediate Arrival:
- Airline:
- flight_duration (hrs):
### travel_direction: Inbound, Journey Start: , Journey End: , total_duration(hrs):
**leg_id:3**
- Departure Time:
- Arrival Time:
- Intermediate Departure:
- Intermediate Arrival:
- Airline:
- flight_duration (hrs):
**leg_id:4**
- Departure Time
- Arrival Time:
- Intermediate Departure:
- Intermediate Arrival:
- Airline:
- flight_duration (hrs):
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment