CoolFace
Datasetpublic

DCAgent2/bfcl-parity

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes191downloads
instruction.md48 linesDownload Raw Back to bfcl-simple-python-14
1# Task2 3Calculate the derivative of the function 3x^2 + 2x - 1.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": "calculate_derivative",13        "description": "Calculate the derivative of a polynomial function.",14        "parameters": {15            "type": "dict",16            "properties": {17                "function": {18                    "type": "string",19                    "description": "The polynomial function."20                },21                "x_value": {22                    "type": "float",23                    "description": "The x-value at which the derivative is calculated. Optional, default to 0.00."24                }25            },26            "required": [27                "function"28            ]29        }30    }31]32 33## Output34 35Analyze the request and determine the appropriate function call(s). 36Write ONLY a JSON array to `/app/result.json`.37 38Format:39- If a function applies: `[{"function_name": {"param1": "value1"}}]`40- If no function applies: `[]`41 42Example:43```bash44echo '[{"get_weather": {"city": "NYC"}}]' > /app/result.json45```46 47IMPORTANT: You MUST execute the command to write the file.48