teddyyyy123/bfcl_v3 huggingface dataset:
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'market_performance.get_data', 'description': 'Retrieve the market performance data for specified indexes over a specified time period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'indexes': {'type': 'array', 'items': {'type': 'string'}, 'description': "Array of stock market indexes. Supported indexes are 'S&P 500', 'Dow Jones', 'NASDAQ', 'FTSE 100', 'DAX' etc."}, 'days': {'type': 'integer', 'description': 'Number of days in the past for which the performance data is required.'}, 'detailed': {'type': 'boolean', 'description': 'Whether to return detailed performance data. If set to true, returns high, low, opening, and closing prices. If false, returns only closing prices. Default is false.'}}, 'required': ['indexes', 'days']}}]


user: Find the market performance of the S&P 500 and the Dow Jones over the past 5 days.

Available functions:
[{"name": "market_performance.get_data", "description": "Retrieve the market performance data for specified indexes over a specified time period.", "parameters": {"type": "dict", "properties": {"indexes": {"type": "array", "items": {"type": "string"}, "description": "Array of stock market indexes. Supported indexes are 'S&P 500', 'Dow Jones', 'NASDAQ', 'FTSE 100', 'DAX' etc."}, "days": {"type": "integer", "description": "Number of days in the past for which the performance data is required."}, "detailed": {"type": "boolean", "description": "Whether to return detailed performance data. If set to true, returns high, low, opening, and closing prices. If false, returns only closing prices. Default is false."}}, "required": ["indexes", "days"]}}]

Ground-truth function call:
[{"market_performance.get_data": {"indexes": [["S&P 500", "Dow Jones"]], "days": [5], "detailed": ["", true, false]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_compounded_interest', 'description': 'Calculate the compounded interest for a given principal, interest rate, and period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'principal': {'type': 'integer', 'description': 'The initial principal.'}, 'interest_rate': {'type': 'float', 'description': 'The annual interest rate.'}, 'period': {'type': 'integer', 'description': 'The period in years.'}, 'compounding_frequency': {'type': 'string', 'description': "The frequency of compounding per year. Defaults to 'Annually'.", 'enum': ['Annually', 'Semiannually', 'Quarterly', 'Monthly', 'Daily']}}, 'required': ['principal', 'interest_rate', 'period']}}]


user: Calculate the compounded interest for an initial principal of $5000, annual interest rate of 5%, and compounding period of 10 years.

Available functions:
[{"name": "calculate_compounded_interest", "description": "Calculate the compounded interest for a given principal, interest rate, and period.", "parameters": {"type": "dict", "properties": {"principal": {"type": "integer", "description": "The initial principal."}, "interest_rate": {"type": "float", "description": "The annual interest rate."}, "period": {"type": "integer", "description": "The period in years."}, "compounding_frequency": {"type": "string", "description": "The frequency of compounding per year. Defaults to 'Annually'.", "enum": ["Annually", "Semiannually", "Quarterly", "Monthly", "Daily"]}}, "required": ["principal", "interest_rate", "period"]}}]

Ground-truth function call:
[{"calculate_compounded_interest": {"principal": [5000], "interest_rate": [0.05], "period": [10], "compounding_frequency": ["Annually", ""]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'stock_price', 'description': 'Get stock price data for a given company over a specified number of days. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'company': {'type': 'string', 'description': 'The company name.'}, 'days': {'type': 'integer', 'description': 'The number of previous days to retrieve data for.'}, 'data_type': {'type': 'string', 'description': "The type of price data to retrieve (e.g., 'Open', 'Close', 'High', 'Low'). Default is 'Close'."}}, 'required': ['company', 'days']}}]


user: What's the price of Amazon stock for the last 3 days?

Available functions:
[{"name": "stock_price", "description": "Get stock price data for a given company over a specified number of days.", "parameters": {"type": "dict", "properties": {"company": {"type": "string", "description": "The company name."}, "days": {"type": "integer", "description": "The number of previous days to retrieve data for."}, "data_type": {"type": "string", "description": "The type of price data to retrieve (e.g., 'Open', 'Close', 'High', 'Low'). Default is 'Close'."}}, "required": ["company", "days"]}}]

Ground-truth function call:
[{"stock_price": {"company": ["Amazon", "AMZN"], "days": [3], "data_type": ["Close", ""]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_stock_prices', 'description': 'Retrieves stock prices for specified companies and duration. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'companies': {'type': 'array', 'items': {'type': 'string'}, 'description': 'List of companies to retrieve stock prices for.'}, 'duration': {'type': 'string', 'description': "Time duration to retrieve stock prices for. E.g., '1 week', '2 weeks', '1 month', etc."}}, 'required': ['companies', 'duration']}}]


user: Retrieve stock prices of Microsoft and Google for the last 2 weeks.

Available functions:
[{"name": "get_stock_prices", "description": "Retrieves stock prices for specified companies and duration.", "parameters": {"type": "dict", "properties": {"companies": {"type": "array", "items": {"type": "string"}, "description": "List of companies to retrieve stock prices for."}, "duration": {"type": "string", "description": "Time duration to retrieve stock prices for. E.g., '1 week', '2 weeks', '1 month', etc."}}, "required": ["companies", "duration"]}}]

Ground-truth function call:
[{"get_stock_prices": {"companies": [["Microsoft", "Google"]], "duration": ["2 weeks"]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'finance.calculate_future_value', 'description': 'Calculate the future value of an investment given an initial investment, annual rate of return, and a time frame. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'initial_investment': {'type': 'integer', 'description': 'The initial investment amount.'}, 'rate_of_return': {'type': 'float', 'description': 'The annual rate of return.'}, 'years': {'type': 'integer', 'description': 'The time frame of the investment in years.'}, 'contribution': {'type': 'integer', 'description': 'Optional: Additional regular contributions. Default is 0.'}}, 'required': ['initial_investment', 'rate_of_return', 'years']}}]


user: Calculate the future value of an investment with an annual rate of return of 8%, an initial investment of $20000, and a time frame of 5 years.

Available functions:
[{"name": "finance.calculate_future_value", "description": "Calculate the future value of an investment given an initial investment, annual rate of return, and a time frame.", "parameters": {"type": "dict", "properties": {"initial_investment": {"type": "integer", "description": "The initial investment amount."}, "rate_of_return": {"type": "float", "description": "The annual rate of return."}, "years": {"type": "integer", "description": "The time frame of the investment in years."}, "contribution": {"type": "integer", "description": "Optional: Additional regular contributions. Default is 0."}}, "required": ["initial_investment", "rate_of_return", "years"]}}]

Ground-truth function call:
[{"finance.calculate_future_value": {"initial_investment": [20000], "rate_of_return": [0.08], "years": [5], "contribution": ["", 0]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_stock_price', 'description': 'Retrieves the current stock price of the specified companies Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'company_names': {'type': 'array', 'items': {'type': 'string'}, 'description': 'The list of companies for which to retrieve the stock price.'}}, 'required': ['company_names']}}]


user: What's the current stock price of Apple and Microsoft?

Available functions:
[{"name": "get_stock_price", "description": "Retrieves the current stock price of the specified companies", "parameters": {"type": "dict", "properties": {"company_names": {"type": "array", "items": {"type": "string"}, "description": "The list of companies for which to retrieve the stock price."}}, "required": ["company_names"]}}]

Ground-truth function call:
[{"get_stock_price": {"company_names": [["Apple", "Microsoft"], [["Apple"], ["Microsoft"]], ["AAPL", "MSFT"]]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_roi', 'description': 'Calculate the return on investment for a given deposit amount, annual interest rate, and time frame. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'deposit': {'type': 'integer', 'description': 'The initial deposit amount.'}, 'annual_interest_rate': {'type': 'float', 'description': 'The annual interest rate provided by the bank.'}, 'years': {'type': 'integer', 'description': 'The period for which the money is invested.'}}, 'required': ['deposit', 'annual_interest_rate', 'years']}}]


user: Calculate the return of investment of a bank's savings account with a deposit of $1000, annual interest rate of 3% for 1 year.

Available functions:
[{"name": "calculate_roi", "description": "Calculate the return on investment for a given deposit amount, annual interest rate, and time frame.", "parameters": {"type": "dict", "properties": {"deposit": {"type": "integer", "description": "The initial deposit amount."}, "annual_interest_rate": {"type": "float", "description": "The annual interest rate provided by the bank."}, "years": {"type": "integer", "description": "The period for which the money is invested."}}, "required": ["deposit", "annual_interest_rate", "years"]}}]

Ground-truth function call:
[{"calculate_roi": {"deposit": [1000], "annual_interest_rate": [0.03], "years": [1]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'highest_grossing_banks', 'description': 'Retrieve the highest grossing banks in a specified country and year. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'country': {'type': 'string', 'description': 'The country to get the data from.'}, 'year': {'type': 'integer', 'description': 'The year to get the data from.'}, 'top_n': {'type': 'integer', 'description': 'Top n banks in terms of grossing. Default is 5'}}, 'required': ['country', 'year']}}]


user: Find the highest grossing bank in the U.S for year 2020.

Available functions:
[{"name": "highest_grossing_banks", "description": "Retrieve the highest grossing banks in a specified country and year.", "parameters": {"type": "dict", "properties": {"country": {"type": "string", "description": "The country to get the data from."}, "year": {"type": "integer", "description": "The year to get the data from."}, "top_n": {"type": "integer", "description": "Top n banks in terms of grossing. Default is 5"}}, "required": ["country", "year"]}}]

Ground-truth function call:
[{"highest_grossing_banks": {"country": ["U.S", "United States", "USA", "U.S."], "year": [2020], "top_n": [1]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_mutual_fund_balance', 'description': 'Calculate the final balance of a mutual fund investment based on the total initial investment, annual yield rate and the time period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'investment_amount': {'type': 'integer', 'description': 'The initial total amount invested in the fund.'}, 'annual_yield': {'type': 'float', 'description': 'The annual yield rate of the fund.'}, 'years': {'type': 'integer', 'description': 'The period of time for the fund to mature.'}}, 'required': ['investment_amount', 'annual_yield', 'years']}}]


user: Calculate the balance of a mutual fund given a total investment of $50000 with a 5% annual yield after 3 years.

Available functions:
[{"name": "calculate_mutual_fund_balance", "description": "Calculate the final balance of a mutual fund investment based on the total initial investment, annual yield rate and the time period.", "parameters": {"type": "dict", "properties": {"investment_amount": {"type": "integer", "description": "The initial total amount invested in the fund."}, "annual_yield": {"type": "float", "description": "The annual yield rate of the fund."}, "years": {"type": "integer", "description": "The period of time for the fund to mature."}}, "required": ["investment_amount", "annual_yield", "years"]}}]

Ground-truth function call:
[{"calculate_mutual_fund_balance": {"investment_amount": [50000], "annual_yield": [0.05], "years": [3]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_compounded_interest', 'description': 'Calculate the compounded interest for a given initial deposit, interest rate, time and number of times the interest is compounded per unit time. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'principal': {'type': 'integer', 'description': 'The initial amount of money that is being invested or loaned.'}, 'rate': {'type': 'float', 'description': 'The annual interest rate.'}, 'time': {'type': 'integer', 'description': 'The number of time periods the money is invested or loaned for.'}, 'n': {'type': 'integer', 'description': 'The number of times that interest is compounded per unit time.'}}, 'required': ['principal', 'rate', 'time', 'n']}}]


user: Calculate the compounded interest on an initial deposit of $5000 at an annual interest rate of 3% for 5 years, compounded quarterly.

Available functions:
[{"name": "calculate_compounded_interest", "description": "Calculate the compounded interest for a given initial deposit, interest rate, time and number of times the interest is compounded per unit time.", "parameters": {"type": "dict", "properties": {"principal": {"type": "integer", "description": "The initial amount of money that is being invested or loaned."}, "rate": {"type": "float", "description": "The annual interest rate."}, "time": {"type": "integer", "description": "The number of time periods the money is invested or loaned for."}, "n": {"type": "integer", "description": "The number of times that interest is compounded per unit time."}}, "required": ["principal", "rate", "time", "n"]}}]

Ground-truth function call:
[{"calculate_compounded_interest": {"principal": [5000], "rate": [0.03], "time": [5], "n": [4]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_future_value', 'description': 'Calculates the future value of an investment based on the present value, interest rate, and time period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'present_value': {'type': 'integer', 'description': 'The present value or principal amount.'}, 'annual_interest_rate': {'type': 'float', 'description': 'The annual interest rate in decimal form. Example, 5% is 0.05.'}, 'years': {'type': 'integer', 'description': 'The time period in years for which the investment is made.'}, 'compounds_per_year': {'type': 'integer', 'description': 'The number of times the interest is compounded per year. Default is 1 (annual compounding).'}}, 'required': ['present_value', 'annual_interest_rate', 'years']}}]


user: Calculate the Future Value of a $5000 investment made today for a term of 10 years at an annual interest rate of 5%

Available functions:
[{"name": "calculate_future_value", "description": "Calculates the future value of an investment based on the present value, interest rate, and time period.", "parameters": {"type": "dict", "properties": {"present_value": {"type": "integer", "description": "The present value or principal amount."}, "annual_interest_rate": {"type": "float", "description": "The annual interest rate in decimal form. Example, 5% is 0.05."}, "years": {"type": "integer", "description": "The time period in years for which the investment is made."}, "compounds_per_year": {"type": "integer", "description": "The number of times the interest is compounded per year. Default is 1 (annual compounding)."}}, "required": ["present_value", "annual_interest_rate", "years"]}}]

Ground-truth function call:
[{"calculate_future_value": {"present_value": [5000], "annual_interest_rate": [0.05], "years": [10], "compounds_per_year": ["", 1]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'calculate_future_value', 'description': 'Calculate the future value of an investment given the initial amount, interest rate, and investment duration. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'initial_investment': {'type': 'integer', 'description': 'The initial investment amount.'}, 'interest_rate': {'type': 'float', 'description': 'The annual interest rate in decimal form.'}, 'duration': {'type': 'integer', 'description': 'The investment duration in years.'}, 'compounded': {'type': 'integer', 'description': 'The number of times the interest is compounded per year. Default is 1 (annual compounding).'}}, 'required': ['initial_investment', 'interest_rate', 'duration']}}]


user: Calculate the future value of my investment of $1000 with an annual interest rate of 5% over 2 years.

Available functions:
[{"name": "calculate_future_value", "description": "Calculate the future value of an investment given the initial amount, interest rate, and investment duration.", "parameters": {"type": "dict", "properties": {"initial_investment": {"type": "integer", "description": "The initial investment amount."}, "interest_rate": {"type": "float", "description": "The annual interest rate in decimal form."}, "duration": {"type": "integer", "description": "The investment duration in years."}, "compounded": {"type": "integer", "description": "The number of times the interest is compounded per year. Default is 1 (annual compounding)."}}, "required": ["initial_investment", "interest_rate", "duration"]}}]

Ground-truth function call:
[{"calculate_future_value": {"initial_investment": [1000], "interest_rate": [0.05], "duration": [2], "compounded": ["", 1]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'crime_record.get_record', 'description': 'Retrieve detailed felony crime records using a specific case number and location. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'case_number': {'type': 'string', 'description': 'The case number related to the crime.'}, 'county': {'type': 'string', 'description': 'The county in which the crime occurred.'}, 'details': {'type': 'boolean', 'description': 'To get a detailed report, set as true. Defaults to false.'}}, 'required': ['case_number', 'county']}}]


user: Look up details of a felony crime record for case number CA123456 in San Diego County

Available functions:
[{"name": "crime_record.get_record", "description": "Retrieve detailed felony crime records using a specific case number and location.", "parameters": {"type": "dict", "properties": {"case_number": {"type": "string", "description": "The case number related to the crime."}, "county": {"type": "string", "description": "The county in which the crime occurred."}, "details": {"type": "boolean", "description": "To get a detailed report, set as true. Defaults to false."}}, "required": ["case_number", "county"]}}]

Ground-truth function call:
[{"crime_record.get_record": {"case_number": ["CA123456"], "county": ["San Diego", "San Diego County"], "details": [true]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'criminal_history.check_felonies', 'description': 'This function checks if an individual has any prior felony convictions based on their full name and birth date. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'full_name': {'type': 'string', 'description': 'The full name of the individual.'}, 'birth_date': {'type': 'string', 'description': 'The birth date of the individual. Must be in MM-DD-YYYY format.'}, 'state': {'type': 'string', 'description': "The state to search the criminal record in. Default to 'None', which the function will search across all states."}}, 'required': ['full_name', 'birth_date']}}]


user: Find out if an individual John Doe with a birthday 01-01-1980 has any prior felony convictions in California.

Available functions:
[{"name": "criminal_history.check_felonies", "description": "This function checks if an individual has any prior felony convictions based on their full name and birth date.", "parameters": {"type": "dict", "properties": {"full_name": {"type": "string", "description": "The full name of the individual."}, "birth_date": {"type": "string", "description": "The birth date of the individual. Must be in MM-DD-YYYY format."}, "state": {"type": "string", "description": "The state to search the criminal record in. Default to 'None', which the function will search across all states."}}, "required": ["full_name", "birth_date"]}}]

Ground-truth function call:
[{"criminal_history.check_felonies": {"full_name": ["John Doe"], "birth_date": ["01-01-1980"], "state": ["California", "CA"]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_criminal_records', 'description': 'Retrieve the criminal records of a specific person in a specific area during a certain time period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'name': {'type': 'string', 'description': 'The name of the person.'}, 'location': {'type': 'string', 'description': 'The city and state, e.g. New York, NY'}, 'from_year': {'type': 'integer', 'description': 'The start year of the time frame.'}, 'to_year': {'type': 'integer', 'description': 'The end year of the time frame.'}}, 'required': ['name', 'location', 'from_year', 'to_year']}}]


user: Find the information of criminal cases of Mr. X in New York between 2012 and 2015.

Available functions:
[{"name": "get_criminal_records", "description": "Retrieve the criminal records of a specific person in a specific area during a certain time period.", "parameters": {"type": "dict", "properties": {"name": {"type": "string", "description": "The name of the person."}, "location": {"type": "string", "description": "The city and state, e.g. New York, NY"}, "from_year": {"type": "integer", "description": "The start year of the time frame."}, "to_year": {"type": "integer", "description": "The end year of the time frame."}}, "required": ["name", "location", "from_year", "to_year"]}}]

Ground-truth function call:
[{"get_criminal_records": {"name": ["Mr. X"], "location": ["New York, NY"], "from_year": [2012], "to_year": [2015]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_act_details', 'description': 'Retrieve the details of a particular legal act based on its name and year of amendment if any. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'act_name': {'type': 'string', 'description': 'The name of the act.'}, 'amendment_year': {'type': 'integer', 'description': 'Year of amendment if any. If not provided, the latest amendment year will be considered.'}}, 'required': ['act_name', 'amendment_year']}}]


user: Give me the details of Criminal Law Amendment Act of 2013.

Available functions:
[{"name": "get_act_details", "description": "Retrieve the details of a particular legal act based on its name and year of amendment if any.", "parameters": {"type": "dict", "properties": {"act_name": {"type": "string", "description": "The name of the act."}, "amendment_year": {"type": "integer", "description": "Year of amendment if any. If not provided, the latest amendment year will be considered."}}, "required": ["act_name", "amendment_year"]}}]

Ground-truth function call:
[{"get_act_details": {"act_name": ["Criminal Law Amendment Act", "Criminal Law Amendment"], "amendment_year": [2013]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_case_info', 'description': 'Retrieve case details using a specific case docket number and court location. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'docket': {'type': 'string', 'description': 'Docket number for the specific court case.'}, 'court': {'type': 'string', 'description': 'Court in which the case was heard.'}, 'info_type': {'type': 'string', 'description': 'Specify the information type needed for the case. i.e., victim, accused, verdict etc.'}}, 'required': ['docket', 'court', 'info_type']}}]


user: Who was the victim in the case docket numbered 2022/AL2562 in California?

Available functions:
[{"name": "get_case_info", "description": "Retrieve case details using a specific case docket number and court location.", "parameters": {"type": "dict", "properties": {"docket": {"type": "string", "description": "Docket number for the specific court case."}, "court": {"type": "string", "description": "Court in which the case was heard."}, "info_type": {"type": "string", "description": "Specify the information type needed for the case. i.e., victim, accused, verdict etc."}}, "required": ["docket", "court", "info_type"]}}]

Ground-truth function call:
[{"get_case_info": {"docket": ["2022/AL2562"], "court": ["California", "CA"], "info_type": ["victim"]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'crime_statute_lookup', 'description': 'Look up the criminal statutes in a specific jurisdiction to find possible punishments for a specific crime. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'jurisdiction': {'type': 'string', 'description': 'The jurisdiction to search in, usually a state or country.'}, 'crime': {'type': 'string', 'description': 'The crime to search for.'}, 'detail_level': {'type': 'string', 'enum': ['basic', 'detailed'], 'description': "How detailed of a report to return. Optional, default is 'basic'."}}, 'required': ['jurisdiction', 'crime']}}]


user: Find out the possible punishments for the crime of theft in California in detail.

Available functions:
[{"name": "crime_statute_lookup", "description": "Look up the criminal statutes in a specific jurisdiction to find possible punishments for a specific crime.", "parameters": {"type": "dict", "properties": {"jurisdiction": {"type": "string", "description": "The jurisdiction to search in, usually a state or country."}, "crime": {"type": "string", "description": "The crime to search for."}, "detail_level": {"type": "string", "enum": ["basic", "detailed"], "description": "How detailed of a report to return. Optional, default is 'basic'."}}, "required": ["jurisdiction", "crime"]}}]

Ground-truth function call:
[{"crime_statute_lookup": {"jurisdiction": ["California", "CA"], "crime": ["theft"], "detail_level": ["detailed"]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'generate_law_contract', 'description': 'Generates a customized law contract given involved parties, contract type and location. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'parties': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Parties involved in the contract.'}, 'contract_type': {'type': 'string', 'description': 'Type of the contract.'}, 'location': {'type': 'string', 'description': 'Location where the contract will be in effect.'}}, 'required': ['parties', 'contract_type', 'location']}}]


user: Generate a customized law contract between John and Alice for rental agreement in California.

Available functions:
[{"name": "generate_law_contract", "description": "Generates a customized law contract given involved parties, contract type and location.", "parameters": {"type": "dict", "properties": {"parties": {"type": "array", "items": {"type": "string"}, "description": "Parties involved in the contract."}, "contract_type": {"type": "string", "description": "Type of the contract."}, "location": {"type": "string", "description": "Location where the contract will be in effect."}}, "required": ["parties", "contract_type", "location"]}}]

Ground-truth function call:
[{"generate_law_contract": {"parties": [["John", "Alice"], ["John", "Alice"]], "contract_type": ["Rental Agreement", "rental agreement"], "location": ["California", "CA"]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'property_records.get', 'description': 'Fetch property records based on location, parcel number and county. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'address': {'type': 'string', 'description': 'Address of the property.'}, 'parcel_number': {'type': 'string', 'description': 'Parcel number of the property.'}, 'county': {'type': 'string', 'description': 'County where the property is located.'}, 'include_owner': {'type': 'boolean', 'description': "Include owner's name in the property record. Default is false.", 'default': False}}, 'required': ['address', 'parcel_number', 'county']}}]


user: Provide me with the property records of my house located at 123 main street, with parcel number 1234567890 in Santa Clara county. Include owners information in the response.

Available functions:
[{"name": "property_records.get", "description": "Fetch property records based on location, parcel number and county.", "parameters": {"type": "dict", "properties": {"address": {"type": "string", "description": "Address of the property."}, "parcel_number": {"type": "string", "description": "Parcel number of the property."}, "county": {"type": "string", "description": "County where the property is located."}, "include_owner": {"type": "boolean", "description": "Include owner's name in the property record. Default is false.", "default": false}}, "required": ["address", "parcel_number", "county"]}}]

Ground-truth function call:
[{"property_records.get": {"address": ["123 main street"], "parcel_number": ["1234567890"], "county": ["Santa Clara"], "include_owner": [true]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'get_crime_rate', 'description': 'Retrieve the official crime rate of a city. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'city': {'type': 'string', 'description': 'The name of the city.'}, 'state': {'type': 'string', 'description': 'The state where the city is located.'}, 'type': {'type': 'string', 'description': "Optional. The type of crime. Default is 'violent'"}, 'year': {'type': 'integer', 'description': 'Optional. The year for the crime rate data. Default is year 2001.'}}, 'required': ['city', 'state']}}]


user: Provide me the official crime rate of violent crime in San Francisco in 2020.

Available functions:
[{"name": "get_crime_rate", "description": "Retrieve the official crime rate of a city.", "parameters": {"type": "dict", "properties": {"city": {"type": "string", "description": "The name of the city."}, "state": {"type": "string", "description": "The state where the city is located."}, "type": {"type": "string", "description": "Optional. The type of crime. Default is 'violent'"}, "year": {"type": "integer", "description": "Optional. The year for the crime rate data. Default is year 2001."}}, "required": ["city", "state"]}}]

Ground-truth function call:
[{"get_crime_rate": {"city": ["San Francisco"], "state": ["California", "CA"], "type": ["violent", ""], "year": [2020]}}]
system: 
You are an expert in composing functions. You are given a question and a set of possible functions.
Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
If none of the function can be used, point it out. If the given question lacks the parameters required by the function,
also point it out. You should only return the function call in tools call sections.

If you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]

You SHOULD NOT include any other text in the response.

Here is a list of functions in JSON format that you can invoke.

[{'name': 'civil_cases.retrieve', 'description': 'Retrieve civil cases based on given parameters, including year, crime type, and location. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'year': {'type': 'integer', 'description': 'Year of the cases'}, 'crime_type': {'type': 'string', 'description': 'Type of the crime.'}, 'location': {'type': 'string', 'description': 'Location of the case in the format of city name.'}}, 'required': ['year', 'crime_type', 'location']}}]


user: Retrieve cases from 2020 about theft crimes in Los Angeles, California

Available functions:
[{"name": "civil_cases.retrieve", "description": "Retrieve civil cases based on given parameters, including year, crime type, and location.", "parameters": {"type": "dict", "properties": {"year": {"type": "integer", "description": "Year of the cases"}, "crime_type": {"type": "string", "description": "Type of the crime."}, "location": {"type": "string", "description": "Location of the case in the format of city name."}}, "required": ["year", "crime_type", "location"]}}]

Ground-truth function call:
[{"civil_cases.retrieve": {"year": [2020], "crime_type": ["theft"], "location": ["Los Angeles", "Los Angeles, California"]}}]