diff --git a/berkeley-function-call-leaderboard/data/BFCL_v3_javascript.json b/berkeley-function-call-leaderboard/data/BFCL_v3_javascript.jsonl similarity index 99% rename from berkeley-function-call-leaderboard/data/BFCL_v3_javascript.json rename to berkeley-function-call-leaderboard/data/BFCL_v3_javascript.jsonl index 1aef9b250..343b2620c 100644 --- a/berkeley-function-call-leaderboard/data/BFCL_v3_javascript.json +++ b/berkeley-function-call-leaderboard/data/BFCL_v3_javascript.jsonl @@ -47,4 +47,4 @@ {"id": "javascript_46", "question": [[{"role": "user", "content": "Help me update the property 'version' of an object named 'packageInfo' to '1.2.3', ensuring the update only occurs if the new value differs from the existing one or if 'version' is not already a property of the object?"}]], "function": [{"name": "vOe", "description": "This function updates a property of an object to a new value, but only if the new value is different from the existing one or if the property does not already exist on the object.", "parameters": {"type": "dict", "properties": {"r": {"type": "any", "description": "The object to update."}, "e": {"type": "String", "description": "The property of the object to update."}, "t": {"type": "any", "description": "The new value to assign to the property."}}, "required": ["r", "e", "t"]}}]} {"id": "javascript_47", "question": [[{"role": "user", "content": "Help me calculate the difference in days between the dates '2023-04-01' and '2023-04-15' using a specific time unit of 'days'?"}]], "function": [{"name": "sTe", "description": "This function calculates the difference between two dates in a specified time unit.", "parameters": {"type": "dict", "properties": {"r": {"type": "String", "description": "The start date for the calculation."}, "e": {"type": "String", "description": "The end date for the calculation."}, "t": {"type": "String", "description": "The unit of time to calculate the difference in. For example, 'days', 'hours', etc."}}, "required": ["r", "e", "t"]}}]} {"id": "javascript_48", "question": [[{"role": "user", "content": "Help me update the DOM event listeners from an old virtual node oldVirtualNode to a new one newVirtualNode, considering the new virtual node has a click event that needs to be normalized and updated?"}]], "function": [{"name": "updateDOMListeners", "description": "This function updates the DOM event listeners from an old virtual node to a new one, ensuring that any changes in event listeners are properly handled and applied to the target element.", "parameters": {"type": "dict", "properties": {"oldVnode": {"type": "any", "description": "The old virtual node, containing data about previous event listeners."}, "vnode": {"type": "any", "description": "The new virtual node, containing data about current event listeners."}}, "required": ["oldVnode", "vnode"]}}]} -{"id": "javascript_49", "question": [[{"role": "user", "content": "Help me determine the appropriate boolean string representation for the 'contenteditable' attribute when the value provided is 'plaintext-only', ensuring it's a valid value for contenteditable?"}]], "function": [{"name": "convertEnumeratedValue", "description": "This function converts a given key-value pair to a 'true' or 'false' string based on specific conditions. It specifically handles falsy values, the string 'false', and validates the 'contenteditable' attribute's value.", "parameters": {"type": "dict", "properties": {"key": {"type": "String", "description": "The attribute key to be evaluated."}, "value": {"type": "String", "description": "The value associated with the key."}}, "required": ["key", "value"]}}]} \ No newline at end of file +{"id": "javascript_49", "question": [[{"role": "user", "content": "Help me determine the appropriate boolean string representation for the 'contenteditable' attribute when the value provided is 'plaintext-only', ensuring it's a valid value for contenteditable?"}]], "function": [{"name": "convertEnumeratedValue", "description": "This function converts a given key-value pair to a 'true' or 'false' string based on specific conditions. It specifically handles falsy values, the string 'false', and validates the 'contenteditable' attribute's value.", "parameters": {"type": "dict", "properties": {"key": {"type": "String", "description": "The attribute key to be evaluated."}, "value": {"type": "String", "description": "The value associated with the key."}}, "required": ["key", "value"]}}]}