Source code for langchain.tools.amadeus.base
"""Base class for Amadeus tools."""
from __future__ import annotations
from typing import TYPE_CHECKING
from langchain.pydantic_v1 import Field
from langchain.tools.amadeus.utils import authenticate
from langchain.tools.base import BaseTool
if TYPE_CHECKING:
    from amadeus import Client
[docs]class AmadeusBaseTool(BaseTool):
    """Base Tool for Amadeus."""
    client: Client = Field(default_factory=authenticate)