langchain.tools.amadeus.flight_search.FlightSearchSchema¶
class langchain.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”, 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
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.