Felix-Ma/Berkeley-Function-Calling-Leaderboard huggingface dataset:
user: I'm currently compiling a report on various key players in the tech industry, and I'm looking into the origins and ownerships of some of the most traded stocks. Apple's stock, 'AAPL', has been on my radar, and it's vital for my analysis to confirm the exact name of the company trading under this stock symbol. Could you provide me with the company name for 'AAPL'?

Available functions:
name: get_company_name_by_stock_name
description: Finds the company name 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_company_name_by_stock_name(stock_name='AAPL')
user: I'm expanding my investment portfolio and I've been closely following a few tech stocks. 'GOOGL' has shown promising trends, and I'm thinking about investing in it. However, I want to be thorough with my research. Could you provide me with the name of the company that 'GOOGL' represents?

Available functions:
name: get_company_name_by_stock_name
description: Finds the company name 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_company_name_by_stock_name(stock_name='GOOGL')
user: We've been tracking potential security breaches and '192.168.1.1' keeps popping up in our logs. I need to pinpoint the geographical origin of this IP. Could you determine the latitude and longitude for this address?

Available functions:
name: get_coordinate_by_ip_address
description: Finds the latitude and longitude 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_coordinate_by_ip_address(ip_address='192.168.1.1')
user: Could you track down the latitude and longitude for this IP address I'm concerned about? It's 172.16.254.1. I've been monitoring the network and this one's been popping up with some strange activity.

Available functions:
name: get_coordinate_by_ip_address
description: Finds the latitude and longitude 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_coordinate_by_ip_address(ip_address='172.16.254.1')
user: I have a client planning a trip to Paris, and they're quite keen on details. They want to know the exact latitude and longitude for the city to plan their itinerary with precision. Could you look up the geographical coordinates for Paris for me?

Available functions:
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_coordinates_from_city(city_name='Paris')
user: I'm currently working on a wildlife research project that involves tracking the migration patterns of a bird species known to pass through various cities. The next phase of my study will focus on their activity around Cairo. To ensure the precision of my tracking equipment, I need the exact latitude and longitude coordinates of Cairo. Could you provide me with these details for Cairo?

Available functions:
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_coordinates_from_city(city_name='Cairo')
user: I'm currently conducting a study on the impact of COVID-19 and I'm focusing on Brazil's situation. I need the latest figures on the total number of deaths attributed to the virus in Brazil. Could you provide me with that information?

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

Ground-truth function call(s):
get_covid_death_by_country(country='Brazil')
user: I'm an epidemiologist tracking the impact of COVID-19, and right now, I'm focused on the situation in India. I need the latest figures on the death toll there. Can you get me the updated total number of deaths from COVID in India?

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

Ground-truth function call(s):
get_covid_death_by_country(country='India')
user: I'm currently working on a detailed city map, and I've got two key locations that I need to measure the distance between. The first location is at coordinates (45.76, 4.85), and the second one is at (48.85, 2.35). Could you help me figure out how far apart these two points are?

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

Ground-truth function call(s):
get_distance(pointA=(45.76, 4.85), pointB=(48.85, 2.35))
user: During my fieldwork in the forest, I've been closely monitoring a certain animal's movement patterns. Just recently, I've noted two specific spots where it's been sighted. The first location is marked by the coordinates (32.71, -117.16), and the second one is at (34.05, -118.25). To better understand its roaming area, I need to calculate the distance it traveled between these two points. Can you help me determine this distance using the coordinates I provided for the two locations?

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

Ground-truth function call(s):
get_distance(pointA=(32.71, -117.16), pointB=(34.05, -118.25))
user: I'm deep into my research on the Fibonacci sequence, and I need to analyze the first 20 numbers of the sequence for my study. 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

Ground-truth function call(s):
get_fibonacci_sequence(n=20)
user: For my computer science project, I need to generate the Fibonacci sequence. Specifically, the assignment requires the first 50 numbers. Could you calculate 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

Ground-truth function call(s):
get_fibonacci_sequence(n=50)
user: I'm tasked with monitoring competitor pricing, and I need to keep tabs on a certain item listed on Amazon. Its ASIN is 'B08PPDJWC8'. Could you fetch the latest price for this product for me?

Available functions:
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

Ground-truth function call(s):
get_price_by_amazon_ASIN(ASIN='B08PPDJWC8')
user: I manage inventory for our online store, and it's crucial to keep track of our competitors' pricing, particularly on Amazon. We're currently selling a product that is also listed there, and I want to ensure our prices are competitive. Could you find out the latest price for the product with the Amazon ASIN 'B08PPDJWC8'?

Available functions:
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

Ground-truth function call(s):
get_price_by_amazon_ASIN(ASIN='B08PPDJWC8')
user: I'm prepping for tomorrow's math class on prime factorization and need to come up with some clear examples. Can you break down the number 4567 into its prime factors for me? This will be a great way to demonstrate the concept to the students.

Available functions:
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

Ground-truth function call(s):
get_prime_factors(number=4567)
user: I'm developing a new encryption algorithm and I'm currently focusing on prime factorization as part of the process. To test the algorithm's effectiveness, I need to calculate the prime factors of the number 7891. Can you help me with that?

Available functions:
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

Ground-truth function call(s):
get_prime_factors(number=7891)
user: I'm working on a product review article and there's a particular item on Amazon I'm focusing on. Its ASIN is 'B08BHXG144'. I need to include the current price in my article, so could you help me find out what it's selling for?

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

Ground-truth function call(s):
get_product_name_by_amazon_ASIN(ASIN='B08BHXG144')
user: While browsing Amazon, I came across a product that piqued my interest, but I didn't catch its name. The ASIN is 'B07ZPKBL9V'. Can you help me find out 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

Ground-truth function call(s):
get_product_name_by_amazon_ASIN(ASIN='B07ZPKBL9V')
user: I'm considering purchasing a product from Amazon, and before I make a decision, I'd like to check its rating. The product has an ASIN of 'B08BHXG144'. 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

Ground-truth function call(s):
get_rating_by_amazon_ASIN(ASIN='B08BHXG144')
user: I'm considering purchasing a product I found on Amazon, but I want to make sure it's well-received by others before I commit. It has the ASIN 'B07ZPKBL9V'. Can you tell me what the current average customer rating is for this item?

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

Ground-truth function call(s):
get_rating_by_amazon_ASIN(ASIN='B07ZPKBL9V')
user: I've been tracking the performance of Apple's stock and I'm interested in taking a deeper dive into its history. I want to see the monthly trends and also check if there have been any splits or dividends issued recently. Can you pull up the history of AAPL for me with a monthly interval and include the stock splits and dividends information?

Available functions:
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 as false
required: stock_name
interval

Ground-truth function call(s):
get_stock_history(stock_name='AAPL', interval='1mo', diffandsplits='true')
user: I need to analyze Microsoft's stock performance over the past few months without the noise from dividends or stock splits. Can you pull up the weekly historical data for the stock symbol 'MSFT' making sure to exclude splits and dividends in the data set?

Available functions:
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 as false
required: stock_name
interval

Ground-truth function call(s):
get_stock_history(stock_name='MSFT', interval='1wk', diffandsplits='true')
user: I need to check the latest price for Apple Inc.'s stock. Can you get that information for me?

Available functions:
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_stock_price_by_stock_name(stock_name='AAPL')
user: I need to check the current price of Microsoft Corporation's stock. Could you get me the latest stock price for Microsoft?

Available functions:
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_stock_price_by_stock_name(stock_name='MSFT')
user: I'm currently knee-deep in a geography project where understanding the time zones for different coordinates is crucial. I've got this particular location with longitude 123.45 and latitude -67.89. I need to determine its time zone. Can you help me with this?

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

Ground-truth function call(s):
get_time_zone_by_coord(long='123.45', lat='-67.89')
user: I'm tracking a storm system for my weather report, and I need to provide updates based on the local time where the storm is currently. The storm is right now at latitude 35.22 and longitude -80.75. Can you help me figure out the timezone for this location?

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

Ground-truth function call(s):
get_time_zone_by_coord(long='-80.75', lat='35.22')
user: I'm working on a climate study focusing on temperature fluctuations in the Arctic and need the latest temperature readings for the North Pole. Can you get the current weather data for me, specifically at 90.00 latitude and 0.00 longitude, using the Open-Meteo API?

Available functions:
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 working on a study about climate change in the Sahara Desert, and part of my research requires analyzing real-time temperature data from specific locations. I need to access the current temperature for a point in the desert with a latitude of 25.00 and a longitude of 13.00. Could we use our weather data retrieval system to get this information from the Open-Meteo API for these coordinates?

Available functions:
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=[25.00, 13.00])
user: During my investigation into a recent security breach, I've pinpointed a suspicious IP address that could be the source of the attack. The address is 192.168.1.1. To narrow down the physical location of the potential hacker, I need to find out the zipcode associated with this IP. Can you provide me with that information?

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

Ground-truth function call(s):
get_zipcode_by_ip_address(ip_address="192.168.1.1")
user: I'm tracking some unusual activity on our company's network, and I need to pinpoint the source. The IP in question is 172.16.254.1. Could you find out the associated zipcode for this IP address?

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

Ground-truth function call(s):
get_zipcode_by_ip_address(ip_address='172.16.254.1')
user: I'm working on some data analysis and need to perform a matrix multiplication as part of the process. The matrices I have are: the first one is [[1, 2], [3, 4]] and the second is [[5, 6], [7, 8]]. Could you help me with the multiplication of these two matrices?

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

Ground-truth function call(s):
mat_mul(matA=[[1, 2], [3, 4]], matB=[[5, 6], [7, 8]])
user: I'm currently deep into a complex quantum mechanics simulation, and part of the process involves a bit of linear algebra. I need to multiply two matrices to proceed with my calculations. The first matrix I have is [[2, 3], [4, 5]], and the second one is [[6, 7], [8, 9]]. Could you help me with the result of multiplying these two matrices?

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

Ground-truth function call(s):
mat_mul(matA=[[2, 3], [4, 5]], matB=[[6, 7], [8, 9]])
user: I'm working on a combinatorics problem and I've hit a step where I need to calculate the factorial of 7. Can you help me get that result?

Available functions:
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: While I was delving into some quantum mechanics problems for my physics class, I stumbled upon a particularly challenging equation. It turns out I need to figure out the factorial of the number 12 to proceed with my calculations. Could you help me out by computing the factorial of 12?

Available functions:
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=12)
user: While researching the political alliances of ancient Rome, I discovered that during two separate periods, the Senate was comprised of 450 and then 300 members. To analyze the data further, I need to calculate the greatest common divisor of these two senate sizes. Could you help me find the GCD for these numbers?

Available functions:
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: While working on the urban planning project, I've decided to use a grid layout for the city's design. The grid is based on block numbers with the length spanning 360 blocks and the width covering 240 blocks. To ensure the layout is as efficient as possible, I need to find the largest block size that can be uniformly used across both dimensions. Can you calculate the greatest common divisor for these two numbers, 360 and 240, to help me optimize the city's block design?

Available functions:
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=360, b=240)
user: In the studio working on a new track, I've got these two drum loops that I'm trying to synchronize. One loop repeats every 18 beats and the other every 24 beats. I need to figure out after how many beats they'll both line up perfectly so the rhythm stays consistent throughout the song. Could you calculate the least common multiple for these two numbers for me?

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

Ground-truth function call(s):
math_lcm(a=24, b=18)
user: I'm currently working on a traffic light system for a busy crossroads, and we've got two lights that are on different timers. One cycles every 35 seconds, and the other every 45 seconds. For optimal traffic flow, I need to synchronize these lights so they change at the same time. Could you help me calculate the least common multiple for these two cycle times?

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

Ground-truth function call(s):
math_lcm(a=45, b=35)