Function: book_flight
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Book a flight given the travel information. From and To should be the airport codes in the IATA format.
Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authenticate
card_id: type: string
description: The ID of the credit card to use for the booking
travel_date: type: string
description: The date of the travel in the format YYYY-MM-DD
travel_from: type: string
description: The location the travel is from
travel_to: type: string
description: The location the travel is to
travel_class: type: string
description: The class of the travel
travel_cost: type: float
description: The cost of the travel
required: access_token, card_id, travel_date, travel_from, travel_to, travel_class, travel_cost
Response:
type: dict
properties: booking_id: type: string
description: The ID of the booking
transaction_id: type: string
description: The ID of the transaction
booking_status: type: boolean
description: The status of the booking, True if successful, False if failed
booking_history: type: dict
description: The booking history if long context is enabled
properties: booking_id: type: string
description: The ID of the booking
transaction_id: type: string
description: The ID of the transaction
travel_date: type: string
description: The date of the travel
travel_from: type: string
description: The location the travel is from
travel_to: type: string
description: The location the travel is to
travel_class: type: string
description: The class of the travel
travel_cost: type: float
description: The cost of the travel