yk12311/Berkeley-Function-Calling-Leaderboard huggingface dataset:
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:
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 parameters: access_token, card_id, travel_date, travel_from, travel_to, travel_class, travel_cost
Response:
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
Function: list_all_airports
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: List all available airports
Parameters:
Response:
airports: type: array
description: A list of all available airports
items: type: string
Function: travel_get_login_status
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get the status of the login
Parameters:
Response:
status: type: boolean
description: The status of the login