Felix-Ma/Berkeley-Function-Calling-Leaderboard huggingface dataset:
user: I'm currently conducting research on the impact of COVID-19 and my focus is on Brazil. I need the latest total death count for the country to analyze the severity of the pandemic there. Could you provide me with this information?

Available functions:
name: get_product_name_by_amazon_ASIN
description: Finds the price of a product by its Amazon ASIN.
parameters: type: dict
properties: ASIN: type: string
description: The Amazon ASIN of the product.
required: ASIN
name: calculate_electrostatic_potential_energy
description: Calculates the electrostatic potential energy.
parameters: type: dict
properties: charge: type: float
description: The charge of the object, in coulombs.
voltage: type: float
description: The voltage of the object, in volts.
required: charge
voltage
name: retrieve_holiday_by_year
description: Finds the holidays of a year.
parameters: type: dict
properties: year: type: string
description: The year of the holidays.
country: type: string
description: The country of the holidays. Possible options: US, AT, DE, ES, FR, GB, IT, NL, PL, RO, SK, UA.
required: year
country
name: get_covid_death_by_country
description: Finds the most up to date total deaths of a country result from COVID.
parameters: type: dict
properties: country: type: string
description: The country to find the total deaths of, in the format of the country's full name.
required: country

Ground-truth function call(s):
get_covid_death_by_country(country='Brazil')
user: While I was updating a city map today, I needed to figure out how far apart two landmarks were. The first point is at coordinates (45.76, 4.85), and the second is at (48.85, 2.35). Could you calculate the distance between these two points for me?

Available functions:
name: get_fibonacci_sequence
description: Calculates the n numbers of the Fibonacci.
parameters: type: dict
properties: n: type: integer
description: The number of Fibonacci numbers to calculate.
required: n
name: math_gcd
description: Calculates the greatest common divisor of two numbers.
parameters: type: dict
properties: a: type: integer
description: The first number. This should be the larger number.
b: type: integer
description: The second number.
required: a
b
name: get_distance
description: Calculates the distance between two 2D points.
parameters: type: dict
properties: pointA: type: tuple
description: The first point.
items: type: float
pointB: type: tuple
description: The second point.
items: type: float
required: pointA
pointB

Ground-truth function call(s):
get_distance(pointA=(45.76, 4.85), pointB=(48.85, 2.35))
user: I'm currently delving into the Fibonacci sequence for my mathematical research and I'd like to examine the first 20 numbers of the sequence. Could you generate that for me?

Available functions:
name: get_fibonacci_sequence
description: Calculates the n numbers of the Fibonacci.
parameters: type: dict
properties: n: type: integer
description: The number of Fibonacci numbers to calculate.
required: n
name: get_stock_price_by_stock_name
description: Finds the price of a stock by its stock name.
parameters: type: dict
properties: stock_name: type: string
description: The stock name of the product, in the format of the stock symbol.
required: stock_name

Ground-truth function call(s):
get_fibonacci_sequence(n=20)
user: I'm overseeing a new project where we're monitoring competitor pricing on Amazon to stay competitive. There's this particular product we've been keeping an eye on, and I need the latest price for it. The ASIN for the product is 'B08PPDJWC8'. Could you fetch the current price for this ASIN from Amazon for me?

Available functions:
name: get_covid_death_by_country
description: Finds the most up to date total deaths of a country result from COVID.
parameters: type: dict
properties: country: type: string
description: The country to find the total deaths of, in the format of the country's full name.
required: country
name: get_price_by_amazon_ASIN
description: Finds the price of a product by its Amazon ASIN.
parameters: type: dict
properties: ASIN: type: string
description: The Amazon ASIN of the product.
required: ASIN
name: find_term_on_urban_dictionary
description: Finds the definition of a term on Urban Dictionary.
parameters: type: dict
properties: term: type: string
description: The term to find the definition of.
required: term

Ground-truth function call(s):
get_price_by_amazon_ASIN(ASIN='B08PPDJWC8')
user: I'm a mathematics teacher, and I'm currently putting together my lesson plan on prime factorization. For tomorrow's class, I've chosen the number 4567 as a practical example to illustrate the concept to my students. I need to break it down into its prime factors.

Available functions:
name: calculate_standard_deviation
description: Calculates the standard deviation of a list of numbers.
parameters: type: dict
properties: numbers: type: array
items: type: float
description: The list of numbers.
required: numbers
name: mortgage_calculator
description: Calculates the monthly mortgage payment.
parameters: type: dict
properties: loan_amount: type: float
description: The amount of the loan.
interest_rate: type: float
description: The interest rate of the loan.
loan_period: type: float
description: The period of the loan.
required: loan_amount
interest_rate
loan_period
name: get_prime_factors
description: Calculates the prime factors of a number.
parameters: type: dict
properties: number: type: integer
description: The number to calculate the prime factors of.
required: number
name: get_coordinates_from_city
description: Fetches the latitude and longitude of a given city name using the Maps.co Geocoding API.
parameters: type: dict
properties: city_name: type: string
description: The name of the city, such as 'Rome'.
required: city_name

Ground-truth function call(s):
get_prime_factors(number=4567)
user: I'm working on a product review article and I need some information about an item sold on Amazon. The only detail I have is the ASIN: 'B08BHXG144'. I need to find out the product's name associated with this ASIN to include in my write-up. Can you help me retrieve the name of this product?

Available functions:
name: get_product_name_by_amazon_ASIN
description: Finds the price of a product by its Amazon ASIN.
parameters: type: dict
properties: ASIN: type: string
description: The Amazon ASIN of the product.
required: ASIN
name: calculate_permutations
description: Calculates the number of permutations of k elements from a set of n elements.
parameters: type: dict
properties: n: type: integer
description: The number of elements in the set.
k: type: integer
description: The number of elements to choose.
required: n
k
name: math_gcd
description: Calculates the greatest common divisor of two numbers.
parameters: type: dict
properties: a: type: integer
description: The first number. This should be the larger number.
b: type: integer
description: The second number.
required: a
b
name: mortgage_calculator
description: Calculates the monthly mortgage payment.
parameters: type: dict
properties: loan_amount: type: integer
description: The amount of the loan.
interest_rate: type: integer
description: The interest rate of the loan.
loan_period: type: integer
description: The period of the loan.
required: loan_amount
interest_rate
loan_period

Ground-truth function call(s):
get_product_name_by_amazon_ASIN(ASIN='B08BHXG144')
user: While browsing Amazon, I stumbled upon a product that really piqued my interest. However, I'm quite particular about the quality and general consensus on items before I consider adding them to my cart. The product has an ASIN of 'B07ZPKBL9V', and I would like to know what its average customer rating is. Could you find that information for me?

Available functions:
name: get_rating_by_amazon_ASIN
description: Finds the rating of a product by its Amazon ASIN.
parameters: type: dict
properties: ASIN: type: string
description: The Amazon ASIN of the product.
required: ASIN
name: get_distance
description: Calculates the distance between two 2D points.
parameters: type: dict
properties: pointA: type: tuple
description: The first point.
items: type: float
pointB: type: tuple
description: The second point.
items: type: float
required: pointA
pointB
name: geometry_area_circle
description: Calculates the area of a circle.
parameters: type: dict
properties: radius: type: integer
description: The radius of the circle, in feet.
required: radius
name: get_zipcode_by_ip_address
description: Finds the zipcode of an IP address.
parameters: type: dict
properties: ip_address: type: string
description: The IP address to find the location of.
required: ip_address

Ground-truth function call(s):
get_rating_by_amazon_ASIN(ASIN='B07ZPKBL9V')
user: I'm currently analyzing different investment options and I've taken a particular interest in Apple Inc. I want to review the company's stock performance over the past month. Additionally, it's important for me to know if there have been any stock splits or dividends in that time. Could you pull up the monthly history for Apple's stock and ensure that the information includes any splits or dividends?

Available functions:
name: estimate_derivative
description: Estimate the derivative of a function at a given point.
parameters: type: dict
properties: function: type: string
description: The function to calculate the derivative of.
x: type: integer
description: The point to calculate the derivative at.
required: function
x
name: geometry_area_circle
description: Calculates the area of a circle.
parameters: type: dict
properties: radius: type: integer
description: The radius of the circle, in feet.
required: radius
name: get_stock_history
description: Finds the price of a stock by its stock name.
parameters: type: dict
properties: stock_name: type: string
description: The stock name of the product, in the format of the stock symbol.
interval: type: string
description: The interval of the stock history. Allows one of following : 5m|15m|30m|1h|1d|1wk|1mo|3mo
diffandsplits: type: string
description: The diff and splits of the stock history. Allows one of following : true|false. Default to false
required: stock_name
interval
name: get_active_covid_case_by_country
description: Finds the most up to date active cases of a country result from COVID.
parameters: type: dict
properties: country: type: string
description: The country to find the active cases of, in the format of the country's full name.
required: country

Ground-truth function call(s):
get_stock_history(stock_name='AAPL', interval='1mo', diffandsplits='true')
user: I'm working on a portfolio analysis, and my client is particularly interested in the latest performance of Apple Inc.'s stock. To provide them with the most up-to-date information, I need to check the current stock price for Apple. Could you pull up the latest figures for me?

Available functions:
name: mortgage_calculator
description: Calculates the monthly mortgage payment.
parameters: type: dict
properties: loan_amount: type: integer
description: The amount of the loan.
interest_rate: type: integer
description: The interest rate of the loan.
loan_period: type: integer
description: The period of the loan.
required: loan_amount
interest_rate
loan_period
name: get_stock_price_by_stock_name
description: Finds the price of a stock by its stock name.
parameters: type: dict
properties: stock_name: type: string
description: The stock name of the product, in the format of the stock symbol.
required: stock_name
name: calculate_standard_deviation
description: Calculates the standard deviation of a list of numbers.
parameters: type: dict
properties: numbers: type: array
items: type: float
description: The list of numbers.
required: numbers

Ground-truth function call(s):
get_stock_price_by_stock_name(stock_name='AAPL')
user: I'm currently working on a geography project that involves mapping out time zones for different locations around the globe. As part of this project, I need to know the time zone for a specific coordinate. Could you provide me with the time zone for the location at longitude 123.45 and latitude -67.89?

Available functions:
name: get_time_zone_by_coord
description: Finds the timezone of a coordinate.
parameters: type: dict
properties: long: type: string
description: The longitude of the coordinate.
lat: type: string
description: The latitude of the coordinate.
required: long
lat
name: geometry_area_circle
description: Calculates the area of a circle.
parameters: type: dict
properties: radius: type: integer
description: The radius of the circle, in feet.
required: radius
name: get_stock_price_by_stock_name
description: Finds the price of a stock by its stock name.
parameters: type: dict
properties: stock_name: type: string
description: The stock name of the product, in the format of the stock symbol.
required: stock_name

Ground-truth function call(s):
get_time_zone_by_coord(long='123.45', lat='-67.89')
user: I'm in the middle of a climate study focusing on temperature changes in the Arctic, and I need the latest temperature readings at the North Pole. Specifically, I'm looking at the point with coordinates 90.00 latitude and 0.00 longitude. I need to access the current temperature data for this precise location using the Open-Meteo API. Could you help me get this information?

Available functions:
name: calc_binomial_probability
description: Calculates the probability of getting k successes in n trials.
parameters: type: dict
properties: n: type: integer
description: The number of trials.
k: type: integer
description: The number of successes.
p: type: integer
description: The probability of success.
required: n
k
p
name: get_covid_death_by_country
description: Finds the most up to date total deaths of a country result from COVID.
parameters: type: dict
properties: country: type: string
description: The country to find the total deaths of, in the format of the country's full name.
required: country
name: get_weather_data
description: Fetches weather data from the Open-Meteo API for the given latitude and longitude.
parameters: type: dict
properties: coordinates: type: array
items: type: float
description: The latitude and longitude of the location.
required: coordinates

Ground-truth function call(s):
get_weather_data(coordinates=[90.00, 0.00])
user: I'm currently in the middle of a cybersecurity investigation and have come across a suspicious IP address that we suspect might be the source of a recent cyber attack. The IP address is 192.168.1.1, and I need to track down the physical location it's associated with to proceed with the investigation. To start with, could you find out the zipcode for where this IP address is registered?

Available functions:
name: get_zipcode_by_ip_address
description: Finds the zipcode of an IP address.
parameters: type: dict
properties: ip_address: type: string
description: The IP address to find the location of.
required: ip_address
name: retrieve_city_based_on_zipcode
description: Finds the city of a zipcode.
parameters: type: dict
properties: zipcode: type: string
description: The zipcode of the city.
required: zipcode
name: calculate_displacement
description: Calculates the displacement of an object.
parameters: type: dict
properties: initial_velocity: type: float
description: The initial velocity of the object, in meters per second.
acceleration: type: float
description: The acceleration of the object, in meters per second squared.
time: type: float
description: The time the object has been moving, in seconds.
required: initial_velocity
acceleration
time

Ground-truth function call(s):
get_zipcode_by_ip_address(ip_address="192.168.1.1")
user: I'm working on a data analysis project where I need to multiply two matrices as part of my computations. The first matrix I need to work with is [[1, 2], [3, 4]], and the second one is [[5, 6], [7, 8]]. I need to calculate the product of these two matrices to proceed with my analysis. Can you help me with this calculation?

Available functions:
name: mat_mul
description: Multiplies two matrices.
parameters: type: dict
properties: matA: type: array
description: The first matrix.
items: type: array
items: type: integer
matB: type: array
description: The second matrix.
items: type: array
items: type: integer
required: matA
matB
name: calculate_mean
description: Calculates the mean of a list of numbers.
parameters: type: dict
properties: numbers: type: array
items: type: float
description: The list of numbers.
required: numbers

Ground-truth function call(s):
mat_mul(matA=[[1, 2], [3, 4]], matB=[[5, 6], [7, 8]])
user: In the midst of solving a combinatorics problem, I've hit a step that requires me to calculate the factorial of 7. Could you help me with that?

Available functions:
name: convert_currency
description: Converts a given amount from one currency to another using the ExchangeRate-API.
parameters: type: dict
properties: amount: type: float
description: The amount of money to convert, in the base currency.
from_currency: type: string
description: The ISO currency code for the base currency.
to_currency: type: string
description: The ISO currency code for the target currency.
required: amount
from_currency
to_currency
name: math_factorial
description: Calculates the factorial of a number.
parameters: type: dict
properties: n: type: integer
description: The number to calculate the factorial of.
required: n

Ground-truth function call(s):
math_factorial(n=7)
user: As a historian delving into ancient Roman political alliances, I've stumbled upon an interesting numerical challenge. I need to determine the greatest common divisor for the number of senators during two distinct time periods, one with 450 senators and the other with 300. This will help me understand the commonalities in their political structures. Could you help me calculate that?

Available functions:
name: calculate_density
description: Calculates the density of an object.
parameters: type: dict
properties: mass: type: float
description: The mass of the object, in kilograms.
volume: type: float
description: The volume of the object, in cubic meters.
required: mass
volume
name: get_fibonacci_sequence
description: Calculates the n numbers of the Fibonacci.
parameters: type: dict
properties: n: type: integer
description: The number of Fibonacci numbers to calculate.
required: n
name: math_gcd
description: Calculates the greatest common divisor of two numbers.
parameters: type: dict
properties: a: type: integer
description: The first number. This should be the larger number.
b: type: integer
description: The second number.
required: a
b

Ground-truth function call(s):
math_gcd(a=450, b=300)
user: I'm working on a new track and I've got these two drum loops that I'm trying to synchronize. The first loop repeats every 18 beats, while the second one comes back around every 24 beats. I need them to align perfectly so that the patterns create a seamless rhythm in the song. Could you calculate the least common multiple for 18 and 24 beats to find out after how many beats they'll sync up?

Available functions:
name: math_lcm
description: Calculates the least common multiple of two numbers.
parameters: type: dict
properties: a: type: integer
description: The first number. This should be the larger number.
b: type: integer
description: The second number.
required: a
b
name: get_stock_price_by_stock_name
description: Finds the price of a stock by its stock name.
parameters: type: dict
properties: stock_name: type: string
description: The stock name of the product, in the format of the stock symbol.
required: stock_name
name: calculate_permutations
description: Calculates the number of permutations of k elements from a set of n elements.
parameters: type: dict
properties: n: type: integer
description: The number of elements in the set.
k: type: integer
description: The number of elements to choose.
required: n
k
name: calculate_displacement
description: Calculates the displacement of an object.
parameters: type: dict
properties: initial_velocity: type: float
description: The initial velocity of the object, in meters per second.
acceleration: type: float
description: The acceleration of the object, in meters per second squared.
time: type: float
description: The time the object has been moving, in seconds.
required: initial_velocity
acceleration
time

Ground-truth function call(s):
math_lcm(a=24, b=18)
user: I'm assisting a client who's in the process of buying a house. They're looking at a mortgage for the amount of $350,000. The interest rate they've been offered is 3.5%, and they plan to pay it off over 30 years. I need to provide them with an estimate of what their monthly payment would be. Can you work that out for me?

Available functions:
name: mortgage_calculator
description: Calculates the monthly mortgage payment.
parameters: type: dict
properties: loan_amount: type: float
description: The amount of the loan.
interest_rate: type: float
description: The interest rate of the loan, ranging from 0 to 1.
loan_period: type: integer
description: The period of the loan, in years.
required: loan_amount
interest_rate
loan_period
name: math_lcm
description: Calculates the least common multiple of two numbers.
parameters: type: dict
properties: a: type: integer
description: The first number. This should be the larger number.
b: type: integer
description: The second number.
required: a
b
name: math_factorial
description: Calculates the factorial of a number.
parameters: type: dict
properties: n: type: integer
description: The number to calculate the factorial of.
required: n
name: estimate_derivative
description: Estimate the derivative of a function at a given point.
parameters: type: dict
properties: function: type: string
description: The function to calculate the derivative of.
x: type: integer
description: The point to calculate the derivative at.
required: function
x

Ground-truth function call(s):
mortgage_calculator(loan_amount=350000, interest_rate=0.035, loan_period=30)
user: For my next algebra class, I'm planning to cover the topic of quadratic equations. I want to provide a practical example to help my students understand the concept of finding roots. So, I've chosen the equation 3x^2 + 7x - 10 = 0 to work through with the class. Could you calculate the roots for this specific equation?

Available functions:
name: get_distance
description: Calculates the distance between two 2D points.
parameters: type: dict
properties: pointA: type: tuple
description: The first point.
items: type: float
pointB: type: tuple
description: The second point.
items: type: float
required: pointA
pointB
name: quadratic_roots
description: Calculates the roots of a quadratic equation.
parameters: type: dict
properties: a: type: integer
description: The first coefficient.
b: type: integer
description: The second coefficient.
c: type: integer
description: The third coefficient.
required: a
b
c
name: estimate_derivative
description: Estimate the derivative of a function at a given point.
parameters: type: dict
properties: function: type: string
description: The function to calculate the derivative of.
x: type: integer
description: The point to calculate the derivative at.
required: function
x

Ground-truth function call(s):
quadratic_roots(a=3, b=7, c=-10)