FlightSearchSchema#

class langchain_community.tools.amadeus.flight_search.FlightSearchSchema[source]#

Bases: BaseModel

Schema for the AmadeusFlightSearch tool.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param departureDateTimeEarliest: str [Required]#

The earliest departure datetime from the origin airport for the flight search in the following format: โ€œYYYY-MM-DDTHH:MM:SSโ€, where โ€œTโ€ separates the date and time components. For example: โ€œ2023-06-09T10:30:00โ€ represents June 9th, 2023, at 10:30 AM.

param departureDateTimeLatest: str [Required]#

The latest departure datetime from the origin airport for the flight search in the following format: โ€œYYYY-MM-DDTHH:MM:SSโ€, where โ€œTโ€ separates the date and time components. For example: โ€œ2023-06-09T10:30:00โ€ represents June 9th, 2023, at 10:30 AM.

param destinationLocationCode: str [Required]#

The three letter International Air Transport Association (IATA) Location Identifier for the searchโ€™s destination airport.

param originLocationCode: str [Required]#

The three letter International Air Transport Association (IATA) Location Identifier for the searchโ€™s origin airport.

param page_number: int = 1#

The specific page number of flight results to retrieve