llamastack/bfcl_v3__old 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': 'restaurant.search', 'description': 'Find a restaurant in a specified location based on the cuisine and ratings. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'location': {'type': 'string', 'description': 'The city and state, e.g. New York, NY'}, 'cuisine': {'type': 'string', 'description': 'The type of cuisine.'}, 'rating': {'type': 'float', 'description': 'The minimum rating. Default 1.0'}}, 'required': ['location', 'cuisine'], 'optional': ['rating']}}, {'name': 'flight.search', 'description': 'Find flights between two cities. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'_from': {'type': 'string', 'description': 'The departure city.'}, 'to': {'type': 'string', 'description': 'The destination city.'}, 'type': {'type': 'string', 'description': 'The type of flight e.g., one-way, round-trip'}}, 'required': ['_from', 'to', 'type']}}]


user: Find a Chinese restaurant near me in New York and suggest a high-rated of 4 Italian restaurant in Los Angeles. Then find a cheapest flight for round-trip from New York to Los Angeles

Available functions:
[{"name": "restaurant.search", "description": "Find a restaurant in a specified location based on the cuisine and ratings.", "parameters": {"type": "dict", "properties": {"location": {"type": "string", "description": "The city and state, e.g. New York, NY"}, "cuisine": {"type": "string", "description": "The type of cuisine."}, "rating": {"type": "float", "description": "The minimum rating. Default 1.0"}}, "required": ["location", "cuisine"], "optional": ["rating"]}}, {"name": "flight.search", "description": "Find flights between two cities.", "parameters": {"type": "dict", "properties": {"_from": {"type": "string", "description": "The departure city."}, "to": {"type": "string", "description": "The destination city."}, "type": {"type": "string", "description": "The type of flight e.g., one-way, round-trip"}}, "required": ["_from", "to", "type"]}}]

Ground truth: [{"restaurant.search": {"location": ["New York, NY"], "cuisine": ["Chinese"], "rating": [1.0, ""]}}, {"restaurant.search": {"location": ["Los Angeles, CA"], "cuisine": ["Italian"], "rating": [4.0]}}, {"flight.search": {"_from": ["New York", "New York, NY"], "to": ["Los Angeles", "Los Angeles, CA"], "type": ["round-trip", "round trip"]}}]
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_fibonacci', 'description': 'Calculate the Fibonacci series up to a specific position. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'position': {'type': 'integer', 'description': 'The position up to which you want to calculate the Fibonacci series.'}}, 'required': ['position']}}, {'name': 'calculate_factorial', 'description': 'Calculate the factorial of a given number. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'number': {'type': 'integer', 'description': 'The number of which you want to calculate the factorial.'}}, 'required': ['number']}}, {'name': 'generate_prime', 'description': 'Generate prime numbers within a given range. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'start': {'type': 'integer', 'description': 'The start of the range from which you want to find the prime numbers.'}, 'end': {'type': 'integer', 'description': 'The end of the range from which you want to find the prime numbers.'}}, 'required': ['start', 'end']}}]


user: Calculate the factorial of 8 and generate the prime numbers from 1 to 50.

Available functions:
[{"name": "calculate_fibonacci", "description": "Calculate the Fibonacci series up to a specific position.", "parameters": {"type": "dict", "properties": {"position": {"type": "integer", "description": "The position up to which you want to calculate the Fibonacci series."}}, "required": ["position"]}}, {"name": "calculate_factorial", "description": "Calculate the factorial of a given number.", "parameters": {"type": "dict", "properties": {"number": {"type": "integer", "description": "The number of which you want to calculate the factorial."}}, "required": ["number"]}}, {"name": "generate_prime", "description": "Generate prime numbers within a given range.", "parameters": {"type": "dict", "properties": {"start": {"type": "integer", "description": "The start of the range from which you want to find the prime numbers."}, "end": {"type": "integer", "description": "The end of the range from which you want to find the prime numbers."}}, "required": ["start", "end"]}}]

Ground truth: [{"calculate_factorial": {"number": [8]}}, {"generate_prime": {"start": [1], "end": [50]}}]
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': 'banking_service', 'description': 'Make a deposit to a given bank account Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'account_id': {'type': 'string', 'description': 'Target account to make deposit to.'}, 'amount': {'type': 'float', 'description': 'Amount to deposit.'}}, 'required': ['account_id', 'amount']}}, {'name': 'currency_conversion', 'description': 'Convert a specific amount from one currency to another Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'amount': {'type': 'float', 'description': 'Amount to convert.'}, 'from_currency': {'type': 'string', 'description': 'Source currency.'}, 'to_currency': {'type': 'string', 'description': 'Target currency.'}}, 'required': ['amount', 'from_currency', 'to_currency']}}]


user: I need to convert 10 dollars to Euros and make a 10 dollar deposit in my local bank account with account number - 987654.

Available functions:
[{"name": "banking_service", "description": "Make a deposit to a given bank account", "parameters": {"type": "dict", "properties": {"account_id": {"type": "string", "description": "Target account to make deposit to."}, "amount": {"type": "float", "description": "Amount to deposit."}}, "required": ["account_id", "amount"]}}, {"name": "currency_conversion", "description": "Convert a specific amount from one currency to another", "parameters": {"type": "dict", "properties": {"amount": {"type": "float", "description": "Amount to convert."}, "from_currency": {"type": "string", "description": "Source currency."}, "to_currency": {"type": "string", "description": "Target currency."}}, "required": ["amount", "from_currency", "to_currency"]}}]

Ground truth: [{"currency_conversion": {"amount": [10.0], "from_currency": ["USD", "United States Dollar"], "to_currency": ["EUR", "Euro"]}}, {"banking_service": {"account_id": ["987654"], "amount": [10.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': 'statistics.variance', 'description': 'This function calculates the variance of a given set of numbers. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'data': {'type': 'array', 'items': {'type': 'integer'}, 'description': 'The list of data points.'}, 'population': {'type': 'boolean', 'description': 'Determines whether to use population variance formula. Default to True', 'default': True}}, 'required': ['data']}}, {'name': 'statistics.median', 'description': 'This function returns the median of the data set provided. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'data': {'type': 'array', 'items': {'type': 'integer'}, 'description': 'The list of data points.'}}, 'required': ['data']}}, {'name': 'statistics.mode', 'description': 'This function determines the mode of a list of numbers. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'data': {'type': 'array', 'items': {'type': 'integer'}, 'description': 'The list of data points.'}}, 'required': ['data']}}]


user: Determine the median and variance for the following data points 3,4,5,2,8,5. Also determine the mode for these points.

Available functions:
[{"name": "statistics.variance", "description": "This function calculates the variance of a given set of numbers.", "parameters": {"type": "dict", "properties": {"data": {"type": "array", "items": {"type": "integer"}, "description": "The list of data points."}, "population": {"type": "boolean", "description": "Determines whether to use population variance formula. Default to True", "default": true}}, "required": ["data"]}}, {"name": "statistics.median", "description": "This function returns the median of the data set provided.", "parameters": {"type": "dict", "properties": {"data": {"type": "array", "items": {"type": "integer"}, "description": "The list of data points."}}, "required": ["data"]}}, {"name": "statistics.mode", "description": "This function determines the mode of a list of numbers.", "parameters": {"type": "dict", "properties": {"data": {"type": "array", "items": {"type": "integer"}, "description": "The list of data points."}}, "required": ["data"]}}]

Ground truth: [{"statistics.median": {"data": [[3, 4, 5, 2, 8, 5]]}}, {"statistics.variance": {"data": [[3, 4, 5, 2, 8, 5]], "population": [true, false, ""]}}, {"statistics.mode": {"data": [[3, 4, 5, 2, 8, 5]]}}]
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': 'linear_regression_fit', 'description': 'Fit a linear regression model to data. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'x': {'type': 'array', 'items': {'type': 'float'}, 'description': 'Array of the predictor variable.'}, 'y': {'type': 'array', 'items': {'type': 'float'}, 'description': 'Array of the dependent variable.'}, 'return_residuals': {'type': 'boolean', 'description': 'Flag indicating whether to return the residuals (the difference between the observed and predicted values). Optional.', 'default': 'false'}}, 'required': ['x', 'y']}}, {'name': 'data_loading', 'description': 'Load data from a csv file into a data structure. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'file_path': {'type': 'string', 'description': 'The path to the file to load.'}, 'delimiter': {'type': 'string', 'description': 'The character used to separate values in the file. Optional.', 'default': ','}}, 'required': ['file_path']}}]


user: Use the data from dataset.csv file and fit a linear regression model to predict future sales by setting x=data['sales'] and y=data['future_sales']. Additionally, calculate and return the residuals.

Available functions:
[{"name": "linear_regression_fit", "description": "Fit a linear regression model to data.", "parameters": {"type": "dict", "properties": {"x": {"type": "array", "items": {"type": "float"}, "description": "Array of the predictor variable."}, "y": {"type": "array", "items": {"type": "float"}, "description": "Array of the dependent variable."}, "return_residuals": {"type": "boolean", "description": "Flag indicating whether to return the residuals (the difference between the observed and predicted values). Optional.", "default": "false"}}, "required": ["x", "y"]}}, {"name": "data_loading", "description": "Load data from a csv file into a data structure.", "parameters": {"type": "dict", "properties": {"file_path": {"type": "string", "description": "The path to the file to load."}, "delimiter": {"type": "string", "description": "The character used to separate values in the file. Optional.", "default": ","}}, "required": ["file_path"]}}]

Ground truth: [{"data_loading": {"file_path": ["dataset.csv"], "delimiter": [",", ""]}}, {"linear_regression_fit": {"x": ["data['sales']"], "y": ["data['future_sales']"], "return_residuals": [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': 'financial_ratio.net_profit_margin', 'description': 'Calculate net profit margin of a company given the net income and total revenue Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'net_income': {'type': 'integer', 'description': 'The net income of the company.'}, 'total_revenue': {'type': 'integer', 'description': 'The total revenue of the company.'}}, 'required': ['net_income', 'total_revenue']}}, {'name': 'financial_ratio.debt_ratio', 'description': 'Calculate the debt ratio of a company given the total liabilities and total assets. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'total_liabilities': {'type': 'integer', 'description': 'The total liabilities of the company.'}, 'total_assets': {'type': 'integer', 'description': 'The total assets of the company.'}}, 'required': ['total_liabilities', 'total_assets']}}]


user: Calculate the net profit margin of Company XYZ given that the net income is $20,000 and total revenue is $100,000. Also calculate the debt ratio of the same company if the total liabilities are $10,000 and total assets are $30,000.

Available functions:
[{"name": "financial_ratio.net_profit_margin", "description": "Calculate net profit margin of a company given the net income and total revenue", "parameters": {"type": "dict", "properties": {"net_income": {"type": "integer", "description": "The net income of the company."}, "total_revenue": {"type": "integer", "description": "The total revenue of the company."}}, "required": ["net_income", "total_revenue"]}}, {"name": "financial_ratio.debt_ratio", "description": "Calculate the debt ratio of a company given the total liabilities and total assets.", "parameters": {"type": "dict", "properties": {"total_liabilities": {"type": "integer", "description": "The total liabilities of the company."}, "total_assets": {"type": "integer", "description": "The total assets of the company."}}, "required": ["total_liabilities", "total_assets"]}}]

Ground truth: [{"financial_ratio.net_profit_margin": {"net_income": [20000], "total_revenue": [100000]}}, {"financial_ratio.debt_ratio": {"total_liabilities": [10000], "total_assets": [30000]}}]
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': 'investment.withdraw', 'description': "Withdraw a specific amount from a company's stock. Note that the provided function is in Python 3 syntax.", 'parameters': {'type': 'dict', 'properties': {'company': {'type': 'string', 'description': 'The company you want to withdraw from.'}, 'amount': {'type': 'float', 'description': 'The amount you want to withdraw.'}}, 'required': ['company', 'amount']}}, {'name': 'investment.invest', 'description': "Invest a specific amount in a company's stock. Note that the provided function is in Python 3 syntax.", 'parameters': {'type': 'dict', 'properties': {'company': {'type': 'string', 'description': 'The company you want to invest in.'}, 'amount': {'type': 'float', 'description': 'The amount you want to invest.'}}, 'required': ['company', 'amount']}}]


user: Invest $2000 in Google and withdraw $1000 from Apple.

Available functions:
[{"name": "investment.withdraw", "description": "Withdraw a specific amount from a company's stock.", "parameters": {"type": "dict", "properties": {"company": {"type": "string", "description": "The company you want to withdraw from."}, "amount": {"type": "float", "description": "The amount you want to withdraw."}}, "required": ["company", "amount"]}}, {"name": "investment.invest", "description": "Invest a specific amount in a company's stock.", "parameters": {"type": "dict", "properties": {"company": {"type": "string", "description": "The company you want to invest in."}, "amount": {"type": "float", "description": "The amount you want to invest."}}, "required": ["company", "amount"]}}]

Ground truth: [{"investment.invest": {"company": ["Google", "GOOG"], "amount": [2000.0]}}, {"investment.withdraw": {"company": ["Apple", "AAPL"], "amount": [1000.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': 'stock_invest.calculate_investment_cost', 'description': 'Calculate the cost of investing in a specific number of shares from a given company. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'company': {'type': 'string', 'description': 'The company that you want to invest in.'}, 'shares': {'type': 'integer', 'description': 'Number of shares to invest.'}}, 'required': ['company', 'shares']}}, {'name': 'stock_invest.calculate_dividend_payout', 'description': 'Calculate the total dividend payout for a specific number of shares with known dividend per share. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'shares': {'type': 'integer', 'description': 'Number of shares to calculate dividends.'}, 'dividend_per_share': {'type': 'float', 'description': 'Known dividend per share.'}}, 'required': ['shares', 'dividend_per_share']}}]


user: How much would it cost me to invest in 50 shares of Apple's stock right now? Also calculate the total dividend payout if each share returns $1.30 as dividend.

Available functions:
[{"name": "stock_invest.calculate_investment_cost", "description": "Calculate the cost of investing in a specific number of shares from a given company.", "parameters": {"type": "dict", "properties": {"company": {"type": "string", "description": "The company that you want to invest in."}, "shares": {"type": "integer", "description": "Number of shares to invest."}}, "required": ["company", "shares"]}}, {"name": "stock_invest.calculate_dividend_payout", "description": "Calculate the total dividend payout for a specific number of shares with known dividend per share.", "parameters": {"type": "dict", "properties": {"shares": {"type": "integer", "description": "Number of shares to calculate dividends."}, "dividend_per_share": {"type": "float", "description": "Known dividend per share."}}, "required": ["shares", "dividend_per_share"]}}]

Ground truth: [{"stock_invest.calculate_investment_cost": {"company": ["Apple", "AAPL"], "shares": [50]}}, {"stock_invest.calculate_dividend_payout": {"shares": [50], "dividend_per_share": [1.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': 'bank_account.transfer', 'description': 'Transfer a given amount from one account to another. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'from_account': {'type': 'string', 'description': 'The account to transfer from.'}, 'to_account': {'type': 'string', 'description': 'The account to transfer to.'}, 'amount': {'type': 'float', 'description': 'The amount to be transferred.'}}, 'required': ['from_account', 'to_account', 'amount']}}, {'name': 'bank_account.calculate_interest', 'description': 'Calculate the amount of interest accrued over a given time period. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'principal': {'type': 'float', 'description': 'The initial amount of money.'}, 'rate': {'type': 'float', 'description': 'The annual interest rate as a decimal.'}, 'time': {'type': 'integer', 'description': 'The number of years the money is invested for.'}}, 'required': ['principal', 'rate', 'time']}}]


user: Transfer $5000 from my checking to saving account. And calculate my potential interests after 5 years if the annual interest rate is 3%.

Available functions:
[{"name": "bank_account.transfer", "description": "Transfer a given amount from one account to another.", "parameters": {"type": "dict", "properties": {"from_account": {"type": "string", "description": "The account to transfer from."}, "to_account": {"type": "string", "description": "The account to transfer to."}, "amount": {"type": "float", "description": "The amount to be transferred."}}, "required": ["from_account", "to_account", "amount"]}}, {"name": "bank_account.calculate_interest", "description": "Calculate the amount of interest accrued over a given time period.", "parameters": {"type": "dict", "properties": {"principal": {"type": "float", "description": "The initial amount of money."}, "rate": {"type": "float", "description": "The annual interest rate as a decimal."}, "time": {"type": "integer", "description": "The number of years the money is invested for."}}, "required": ["principal", "rate", "time"]}}]

Ground truth: [{"bank_account.transfer": {"from_account": ["checking"], "to_account": ["saving"], "amount": [5000.0]}}, {"bank_account.calculate_interest": {"principal": [5000.0], "rate": [0.03], "time": [5]}}]
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_record.get_offense_nature', 'description': 'Get details about the nature of offenses committed by a criminal. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'criminal_name': {'type': 'string', 'description': 'Name of the criminal.'}, 'optional_param': {'type': 'boolean', 'description': 'Optionally retrieve additional details, by default this is set to false.'}}, 'required': ['criminal_name']}}, {'name': 'criminal_record.get_status', 'description': 'Find the conviction status of a criminal in a specified region. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'criminal_name': {'type': 'string', 'description': 'Name of the criminal.'}, 'region': {'type': 'string', 'description': 'Region where criminal record is to be searched.'}}, 'required': ['criminal_name', 'region']}}]


user: Find the conviction status of a criminal with name John Doe in New York, also find the nature of the criminal offenses he committed.

Available functions:
[{"name": "criminal_record.get_offense_nature", "description": "Get details about the nature of offenses committed by a criminal.", "parameters": {"type": "dict", "properties": {"criminal_name": {"type": "string", "description": "Name of the criminal."}, "optional_param": {"type": "boolean", "description": "Optionally retrieve additional details, by default this is set to false."}}, "required": ["criminal_name"]}}, {"name": "criminal_record.get_status", "description": "Find the conviction status of a criminal in a specified region.", "parameters": {"type": "dict", "properties": {"criminal_name": {"type": "string", "description": "Name of the criminal."}, "region": {"type": "string", "description": "Region where criminal record is to be searched."}}, "required": ["criminal_name", "region"]}}]

Ground truth: [{"criminal_record.get_status": {"criminal_name": ["John Doe"], "region": ["New York", "NY"]}}, {"criminal_record.get_offense_nature": {"criminal_name": ["John Doe"], "optional_param": ["", 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': 'briefs.display_cases', 'description': 'Display briefs of the cases Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'case_id': {'type': 'array', 'items': {'type': 'string'}, 'description': 'A list of unique identifiers for cases.'}}, 'required': ['case_id']}}, {'name': 'court_records.search_cases', 'description': 'Search for court cases based on specific criteria. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'location': {'type': 'string', 'description': 'The city where the court is located'}, 'query': {'type': 'string', 'description': 'Search string to look for specific cases'}, 'year': {'type': 'integer', 'description': 'Year the case was filed'}, 'limit': {'type': 'integer', 'description': 'Limits the number of results returned', 'default': 5}}, 'required': ['location', 'query', 'year']}}]


user: Find cases that pertain to 'Theft' from court record in 'New York' and from 'San Francisco', filed in year 2021, and display briefs of top 5 relevant cases.

Available functions:
[{"name": "briefs.display_cases", "description": "Display briefs of the cases", "parameters": {"type": "dict", "properties": {"case_id": {"type": "array", "items": {"type": "string"}, "description": "A list of unique identifiers for cases."}}, "required": ["case_id"]}}, {"name": "court_records.search_cases", "description": "Search for court cases based on specific criteria.", "parameters": {"type": "dict", "properties": {"location": {"type": "string", "description": "The city where the court is located"}, "query": {"type": "string", "description": "Search string to look for specific cases"}, "year": {"type": "integer", "description": "Year the case was filed"}, "limit": {"type": "integer", "description": "Limits the number of results returned", "default": 5}}, "required": ["location", "query", "year"]}}]

Ground truth: [{"court_records.search_cases": {"location": ["New York"], "query": ["Theft"], "year": [2021], "limit": [5, ""]}}, {"court_records.search_cases": {"location": ["San Francisco"], "query": ["Theft"], "year": [2021], "limit": [5, ""]}}]
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': 'lawsuit.fetch_details', 'description': 'Fetch the details of a lawsuit for a specific company. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'company_name': {'type': 'string', 'description': 'The company involved in the lawsuit.'}}, 'required': ['company_name']}}, {'name': 'lawsuit.judge', 'description': 'Fetch the judge handling a lawsuit for a specific company. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'company_name': {'type': 'string', 'description': 'The company involved in the lawsuit.'}, 'lawsuit_id': {'type': 'integer', 'description': 'The ID number of the lawsuit. Default to 123', 'default': 123}}, 'required': ['company_name']}}]


user: Find how many cases and the judge handling a specific lawsuit for Pacific Gas and Electric and Tesla Inc.

Available functions:
[{"name": "lawsuit.fetch_details", "description": "Fetch the details of a lawsuit for a specific company.", "parameters": {"type": "dict", "properties": {"company_name": {"type": "string", "description": "The company involved in the lawsuit."}}, "required": ["company_name"]}}, {"name": "lawsuit.judge", "description": "Fetch the judge handling a lawsuit for a specific company.", "parameters": {"type": "dict", "properties": {"company_name": {"type": "string", "description": "The company involved in the lawsuit."}, "lawsuit_id": {"type": "integer", "description": "The ID number of the lawsuit. Default to 123", "default": 123}}, "required": ["company_name"]}}]

Ground truth: [{"lawsuit.fetch_details": {"company_name": ["Pacific Gas and Electric", "PG&E"]}}, {"lawsuit.judge": {"company_name": ["Pacific Gas and Electric", "PG&E"], "lawsuit_id": [123, ""]}}, {"lawsuit.fetch_details": {"company_name": ["Tesla Inc.", "Tesla"]}}, {"lawsuit.judge": {"company_name": ["Tesla Inc.", "Tesla"], "lawsuit_id": [123, ""]}}]
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': 'supermarket.find_in_city', 'description': 'Find all supermarkets in a given city. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'city': {'type': 'string', 'description': 'The city to locate supermarkets in.'}, 'state': {'type': 'string', 'description': 'The state to further narrow down the search.'}, 'openNow': {'type': 'boolean', 'description': 'If true, returns only supermarkets that are currently open. Default to true'}}, 'required': ['city', 'state']}}, {'name': 'sightseeing.popular_in_city', 'description': 'Find the most popular sightseeing place in a given city. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'city': {'type': 'string', 'description': 'The city to find sightseeing in.'}, 'state': {'type': 'string', 'description': 'The state to further narrow down the search.'}, 'kidsFriendly': {'type': 'boolean', 'description': 'If true, returns only kids friendly sightseeing places.Default to true'}}, 'required': ['city', 'state']}}]


user: Locate all supermarkets in Los Angeles and find the most popular site seeing place in Miami.

Available functions:
[{"name": "supermarket.find_in_city", "description": "Find all supermarkets in a given city.", "parameters": {"type": "dict", "properties": {"city": {"type": "string", "description": "The city to locate supermarkets in."}, "state": {"type": "string", "description": "The state to further narrow down the search."}, "openNow": {"type": "boolean", "description": "If true, returns only supermarkets that are currently open. Default to true"}}, "required": ["city", "state"]}}, {"name": "sightseeing.popular_in_city", "description": "Find the most popular sightseeing place in a given city.", "parameters": {"type": "dict", "properties": {"city": {"type": "string", "description": "The city to find sightseeing in."}, "state": {"type": "string", "description": "The state to further narrow down the search."}, "kidsFriendly": {"type": "boolean", "description": "If true, returns only kids friendly sightseeing places.Default to true"}}, "required": ["city", "state"]}}]

Ground truth: [{"supermarket.find_in_city": {"city": ["Los Angeles", "LA"], "state": ["California", "CA"], "openNow": ["", true]}}, {"sightseeing.popular_in_city": {"city": ["Miami"], "state": ["Florida", "FL"], "kidsFriendly": ["", 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_current_time', 'description': 'Fetches current time for a given location Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'location': {'type': 'string', 'description': 'The location for which to fetch current time'}}, 'required': ['location']}}, {'name': 'translate_text', 'description': 'Translates a given text from one language to another Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'text': {'type': 'string', 'description': 'The text that needs to be translated'}, 'from_lang': {'type': 'string', 'description': 'The source language from which to translate'}, 'to_lang': {'type': 'string', 'description': 'The target language to which to translate'}}, 'required': ['text', 'from_lang', 'to_lang']}}]


user: Translate the phrase 'Hello World' from English to Spanish and translate 'Goodbye' from French to English. In addition to that get current time in 'Los Angeles' and 'London'.

Available functions:
[{"name": "get_current_time", "description": "Fetches current time for a given location", "parameters": {"type": "dict", "properties": {"location": {"type": "string", "description": "The location for which to fetch current time"}}, "required": ["location"]}}, {"name": "translate_text", "description": "Translates a given text from one language to another", "parameters": {"type": "dict", "properties": {"text": {"type": "string", "description": "The text that needs to be translated"}, "from_lang": {"type": "string", "description": "The source language from which to translate"}, "to_lang": {"type": "string", "description": "The target language to which to translate"}}, "required": ["text", "from_lang", "to_lang"]}}]

Ground truth: [{"translate_text": {"text": ["Hello World"], "from_lang": ["English", "EN"], "to_lang": ["Spanish", "ES"]}}, {"translate_text": {"text": ["Goodbye"], "from_lang": ["French", "FR"], "to_lang": ["English", "EN"]}}, {"get_current_time": {"location": ["Los Angeles"]}}, {"get_current_time": {"location": ["London"]}}]
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': 'image_processing.object_identification', 'description': 'Identify objects in a given image. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'image_url': {'type': 'string', 'description': 'The URL of the image.'}}, 'required': ['image_url']}}, {'name': 'text_analysis.sentiment_analysis', 'description': 'Analyze the sentiment of a given text. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'text': {'type': 'string', 'description': 'The text to be analyzed.'}}, 'required': ['text']}}]


user: Identify objects in my backyard image my_backyard_image_url and analyze the sentiment of today's journal entry my_journal_entry_text.

Available functions:
[{"name": "image_processing.object_identification", "description": "Identify objects in a given image.", "parameters": {"type": "dict", "properties": {"image_url": {"type": "string", "description": "The URL of the image."}}, "required": ["image_url"]}}, {"name": "text_analysis.sentiment_analysis", "description": "Analyze the sentiment of a given text.", "parameters": {"type": "dict", "properties": {"text": {"type": "string", "description": "The text to be analyzed."}}, "required": ["text"]}}]

Ground truth: [{"image_processing.object_identification": {"image_url": ["my_backyard_image_url"]}}, {"text_analysis.sentiment_analysis": {"text": ["my_journal_entry_text"]}}]
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': 'history.get_timeline', 'description': 'Retrieve the timeline for a specific historical event Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'event': {'type': 'string', 'description': 'The historical event you want the timeline for.'}, 'region': {'type': 'string', 'description': 'Region of the event.', 'default': 'Europe'}}, 'required': ['event']}}, {'name': 'history.get_important_figures', 'description': 'Retrieve array of important figures involved during a specific historical event. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'event': {'type': 'string', 'description': 'The historical event for which you want the array of important figures.'}, 'number': {'type': 'integer', 'description': 'Number of top figures you want. Default to 1', 'default': 1}}, 'required': ['event']}}]


user: Get me the timeline of World War 2 in Europe and then get me an array of important leaders involved during the war.

Available functions:
[{"name": "history.get_timeline", "description": "Retrieve the timeline for a specific historical event", "parameters": {"type": "dict", "properties": {"event": {"type": "string", "description": "The historical event you want the timeline for."}, "region": {"type": "string", "description": "Region of the event.", "default": "Europe"}}, "required": ["event"]}}, {"name": "history.get_important_figures", "description": "Retrieve array of important figures involved during a specific historical event.", "parameters": {"type": "dict", "properties": {"event": {"type": "string", "description": "The historical event for which you want the array of important figures."}, "number": {"type": "integer", "description": "Number of top figures you want. Default to 1", "default": 1}}, "required": ["event"]}}]

Ground truth: [{"history.get_timeline": {"event": ["World War 2", "WW2", "World War 2 in Europe"], "region": ["Europe", ""]}}, {"history.get_important_figures": {"event": ["World War 2", "WW2", "World War 2 in Europe"], "number": [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': 'us_history.gdp', 'description': 'Retrieves the Gross Domestic Product of the USA for a specific year. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'year': {'type': 'integer', 'description': 'The year for which to retrieve GDP data.'}}, 'required': ['year']}}, {'name': 'us_history.life_expectancy', 'description': 'Retrieves the average life expectancy of the USA for a specific year. Note that the provided function is in Python 3 syntax.', 'parameters': {'type': 'dict', 'properties': {'year': {'type': 'integer', 'description': 'The year for which to retrieve life expectancy.'}}, 'required': ['year']}}]


user: What was the average life expectancy in the USA in the year 1900 and 1950? Additionally, what was the Gross Domestic Product (GDP) of the USA in these years?

Available functions:
[{"name": "us_history.gdp", "description": "Retrieves the Gross Domestic Product of the USA for a specific year.", "parameters": {"type": "dict", "properties": {"year": {"type": "integer", "description": "The year for which to retrieve GDP data."}}, "required": ["year"]}}, {"name": "us_history.life_expectancy", "description": "Retrieves the average life expectancy of the USA for a specific year.", "parameters": {"type": "dict", "properties": {"year": {"type": "integer", "description": "The year for which to retrieve life expectancy."}}, "required": ["year"]}}]

Ground truth: [{"us_history.life_expectancy": {"year": [1900]}}, {"us_history.life_expectancy": {"year": [1950]}}, {"us_history.gdp": {"year": [1900]}}, {"us_history.gdp": {"year": [1950]}}]