hui107/Berkeley-Function-Calling-Leaderboard huggingface dataset:
Function: authenticate_travel
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Authenticate the user with the travel API

Parameters:
type: dict
properties: client_id: type: string
description: The client applications client_id supplied by App Management
client_secret: type: string
description: The client applications client_secret supplied by App Management
refresh_token: type: string
description: The refresh token obtained from the initial authentication
grant_type: type: string
description: The grant type of the authentication request. Here are the options: read_write, read, write
user_first_name: type: string
description: The first name of the user
user_last_name: type: string
description: The last name of the user
required: client_id, client_secret, refresh_token, grant_type, user_first_name, user_last_name

Response:
type: dict
properties: expires_in: type: integer
description: The number of time it can use until the access token expires
access_token: type: string
description: The access token to be used in the Authorization header of future requests
token_type: type: string
description: The type of token
scope: type: string
description: The scope of the token
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
Function: cancel_booking
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Cancel a booking

Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authenticate
booking_id: type: string
description: The ID of the booking
required: access_token, booking_id

Response:
type: dict
properties: cancel_status: type: boolean
description: The status of the cancellation, True if successful, False if failed
Function: compute_exchange_rate
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Compute the exchange rate between two currencies

Parameters:
type: dict
properties: base_currency: type: string
description: The base currency. [Enum]: USD, RMB, EUR, JPY, GBP, CAD, AUD, INR, RUB, BRL, MXN
target_currency: type: string
description: The target currency. [Enum]: USD, RMB, EUR, JPY, GBP, CAD, AUD, INR, RUB, BRL, MXN
value: type: float
description: The value to convert
required: base_currency, target_currency, value

Response:
type: dict
properties: exchanged_value: type: float
description: The value after the exchange
Function: contact_customer_support
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Contact travel booking customer support, get immediate support on an issue with an online call.

Parameters:
type: dict
properties: booking_id: type: string
description: The ID of the booking
message: type: string
description: The message to send to customer support
required: booking_id, message

Response:
type: dict
properties: customer_support_message: type: string
description: The message from customer support
Function: get_all_credit_cards
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get all registered credit cards

Parameters:
type: dict

Response:
type: dict
properties: credit_card_list: type: dict
description: A dictionary containing all registered credit cards
properties: card_number: type: string
description: The number of the credit card
expiration_date: type: string
description: The expiration date of the credit card in the format YYYY-MM-DD
cardholder_name: type: string
description: The name of the cardholder
card_verification_value: type: integer
description: The verification value of the credit card
balance: type: float
description: The balance of the credit card
Function: get_budget_fiscal_year
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get the budget fiscal year

Parameters:
type: dict
properties: lastModifiedAfter: type: string
description: Use this field if you only want Fiscal Years that were changed after the supplied date. The supplied date will be interpreted in the UTC time zone. If lastModifiedAfter is not supplied, the service will return all Fiscal Years, regardless of modified date. Example: 2016-03-29T16:12:20. Return in the format of YYYY-MM-DDTHH:MM:SS.
default: None
includeRemoved: type: string
description: If true, the service will return all Fiscal Years, including those that were previously removed. If not supplied, this field defaults to false.
default: None

Response:
type: dict
properties: budget_fiscal_year: type: string
description: The budget fiscal year
Function: get_credit_card_balance
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get the balance of a credit card

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
required: access_token, card_id

Response:
type: dict
properties: card_balance: type: float
description: The balance of the credit card
Function: get_flight_cost
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get the list of cost of a flight in USD based on location, date, and class

Parameters:
type: dict
properties: travel_from: type: string
description: The 3 letter code of the departing airport
travel_to: type: string
description: The 3 letter code of the arriving airport
travel_date: type: string
description: The date of the travel in the format 'YYYY-MM-DD'
travel_class: type: string
description: The class of the travel. Options are: economy, business, first.
required: travel_from, travel_to, travel_date, travel_class

Response:
type: dict
properties: travel_cost_list: type: array
description: The list of cost of the travel
items: type: float
Function: get_nearest_airport_by_city
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Get the nearest airport to the given location

Parameters:
type: dict
properties: location: type: string
description: The name of the location. [Enum]: Rivermist, Stonebrook, Maplecrest, Silverpine, Shadowridge, London, Paris, Sunset Valley, Oakendale, Willowbend, Crescent Hollow, Autumnville, Pinehaven, Greenfield, San Francisco, Los Angeles, New York, Chicago, Boston, Beijing, Hong Kong, Rome, Tokyo
required: location

Response:
type: dict
properties: nearest_airport: type: string
description: The nearest airport to the given location
Function: purchase_insurance
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Purchase insurance

Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authenticate
insurance_type: type: string
description: The type of insurance to purchase
insurance_cost: type: float
description: The cost of the insurance
booking_id: type: string
description: The ID of the booking
card_id: type: string
description: The ID of the credit card to use for the
required: access_token, insurance_type, booking_id, insurance_cost, card_id

Response:
type: dict
properties: insurance_id: type: string
description: The ID of the insurance
insurance_status: type: boolean
description: The status of the insurance purchase, True if successful, False if failed
Function: register_credit_card
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Register a credit card

Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authenticate method
card_number: type: string
description: The credit card number
expiration_date: type: string
description: The expiration date of the credit card in the format MM/YYYY
cardholder_name: type: string
description: The name of the cardholder
card_verification_number: type: integer
description: The card verification number
required: access_token, card_number, expiration_date, cardholder_name, card_verification_number

Response:
type: dict
properties: card_id: type: string
description: The ID of the registered credit card
Function: retrieve_invoice
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Retrieve the invoice for a booking

Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authenticate
booking_id: type: string
description: The ID of the booking
default: None
insurance_id: type: string
description: The ID of the insurance
default: None
required: access_token

Response:
type: dict
properties: invoice: type: dict
description: The invoice for the booking
properties: booking_id: type: string
description: The ID of the booking
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
transaction_id: type: string
description: The ID of the transaction
Function: set_budget_limit
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Set the budget limit for the user

Parameters:
type: dict
properties: access_token: type: string
description: The access token obtained from the authentication process or initial configuration.
budget_limit: type: float
description: The budget limit to set in USD
required: access_token, budget_limit

Response:
type: dict
properties: budget_limit: type: float
description: The budget limit set in USD
Function: verify_traveler_information
This tool belongs to the travel system, which allows users to book flights, manage credit cards, and view budget information. Tool description: Verify the traveler information

Parameters:
type: dict
properties: first_name: type: string
description: The first name of the traveler
last_name: type: string
description: The last name of the traveler
date_of_birth: type: string
description: The date of birth of the traveler in the format YYYY-MM-DD
passport_number: type: string
description: The passport number of the traveler
required: first_name, last_name, date_of_birth, passport_number

Response:
type: dict
properties: verification_status: type: boolean
description: The status of the verification, True if successful, False if failed
verification_failure: type: string
description: The reason for the verification failure