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