langchain.tools.amadeus.flight_search.FlightSearchSchema¶
- class langchain.tools.amadeus.flight_search.FlightSearchSchema(*, originLocationCode: str, destinationLocationCode: str, departureDateTimeEarliest: str, departureDateTimeLatest: str, page_number: int = 1)[source]¶
Bases:
BaseModelSchema 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”, 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”, 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