" return \"Not available for requested flight dates\""
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9680afe1-65d8-4094-8a09-6ef37ebdad2b",
"metadata": {},
"outputs": [],
"source": [
"\n",
"availability_function = {\n",
" \"name\": \"get_availability_period\",\n",
" \"description\": \"Check if the requested flight dates are within the availability period of the flight schedule to the destination city. Call this whenever you need to know whether there is a flight to the requested city at the provided travel dates of the user, for example when a customer asks 'I want to book a flight to Tokyo on 5 Nov 2025'. \\\n",
" If the user's date does not include a year, the date will refer to a date after the current date. State in your response whether there will be a flight to the destination city at the requested flight date. \\\n",
" For example, an availability of '01/08/2025-31/10/2025' means that there are flights between 01 Aug 25 and 31 Oct 2025. \\\n",
" Parse the user's flight date as string in the format DD-MM-YYYY or DD-MM if no year is given\",\n",
" \"parameters\": {\n",
" \"type\": \"object\",\n",
" \"properties\": {\n",
" \"destination_city\": {\n",
" \"type\": \"string\",\n",
" \"description\": \"The city that the customer wants to travel to\",\n",
" },\n",
" \"flight_date\": {\n",
" \"type\": \"string\",\n",
" \"description\": \"The date on which the customer wants to travel\",\n",