CoolFace
Datasetpublic

DCAgent2/bfcl-parity

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes188downloads
instruction.md54 linesDownload Raw Back to bfcl-simple-python-367
1# Task2 3Find me a vegan recipe for brownies which prep time is under 30 minutes.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": "find_recipe",13        "description": "Find a recipe based on the dietary restrictions, recipe type, and time constraints.",14        "parameters": {15            "type": "dict",16            "properties": {17                "dietary_restrictions": {18                    "type": "string",19                    "description": "Dietary restrictions e.g. vegan, vegetarian, gluten free, dairy free."20                },21                "recipe_type": {22                    "type": "string",23                    "description": "Type of the recipe. E.g. dessert, main course, breakfast."24                },25                "time": {26                    "type": "integer",27                    "description": "Time limit in minutes to prep the meal."28                }29            },30            "required": [31                "dietary_restrictions",32                "recipe_type",33                "time"34            ]35        }36    }37]38 39## Output40 41Analyze the request and determine the appropriate function call(s). 42Write ONLY a JSON array to `/app/result.json`.43 44Format:45- If a function applies: `[{"function_name": {"param1": "value1"}}]`46- If no function applies: `[]`47 48Example:49```bash50echo '[{"get_weather": {"city": "NYC"}}]' > /app/result.json51```52 53IMPORTANT: You MUST execute the command to write the file.54