CoolFace
Datasetpublic

DCAgent2/bfcl-parity

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes188downloads
instruction.md47 linesDownload Raw Back to bfcl-simple-python-149
1# Task2 3What's the current stock price of Apple and Microsoft?4 5## Available Functions6 7Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, do not invoke any function. If the given question lacks the parameters required by the function, do not invoke the function.8 9Here is a list of functions in JSON format that you can invoke.10[11    {12        "name": "get_stock_price",13        "description": "Retrieves the current stock price of the specified companies",14        "parameters": {15            "type": "dict",16            "properties": {17                "company_names": {18                    "type": "array",19                    "items": {20                        "type": "string"21                    },22                    "description": "The list of companies for which to retrieve the stock price."23                }24            },25            "required": [26                "company_names"27            ]28        }29    }30]31 32## Output33 34Analyze the request and determine the appropriate function call(s). 35Write ONLY a JSON array to `/app/result.json`.36 37Format:38- If a function applies: `[{"function_name": {"param1": "value1"}}]`39- If no function applies: `[]`40 41Example:42```bash43echo '[{"get_weather": {"city": "NYC"}}]' > /app/result.json44```45 46IMPORTANT: You MUST execute the command to write the file.47