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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

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