tools
list
conversation
list
[ { "type": "function", "func_name": "calc_log", "func_desc": "Calculates the base 2 logarithm of a positive integer.", "func_params": "{\"type\": \"object\", \"properties\": {\"n\": {\"type\": \"integer\", \"description\": \"The positive integer to calculate the logarithm for.\"}}, \"required\": [\"n...
[ { "role": "user", "content": "Hey, can you pick a random selection of numbers for me? Let's say I want to pick 5 numbers from the range of -5 to 5.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To fulfill the user's request for ...
[ { "type": "function", "func_name": "remove_list_dups_from_list", "func_desc": "Removes duplicates from a given list while preserving the order of the elements.", "func_params": "{\"type\": \"object\", \"properties\": {\"l\": {\"type\": \"array\", \"items\": {\"type\": \"integer\"}, \"description\": ...
[ { "role": "user", "content": "Hey, can you help me calculate the critical success index and sensitivity? I've got 10 true positives, 3 false positives, 2 false negatives, and 5 true negatives.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "to...
[ { "type": "function", "func_name": "format_to_style", "func_desc": "Formats a string to a specific style.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The string to be formatted.\"}, \"style\": {\"type\": \"string\", \"description\": \"Th...
[ { "role": "user", "content": "Hey, can you help me figure out the closest point to me? I'm at (3, 4) and I have these points to check: (1, 2), (5, 6), and (2, 3).", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the closest...
[ { "type": "function", "func_name": "find_exponent", "func_desc": "Finds the exponent of the closest power of n that is less than or equal to k.", "func_params": "{\"type\": \"object\", \"properties\": {\"n\": {\"type\": \"integer\", \"description\": \"The base number.\"}, \"k\": {\"type\": \"integer...
[ { "role": "user", "content": "Hey, can you help me convert this RGB color (100, 150, 200) to GRB format?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To convert the RGB color (100, 150, 200) to GRB format, I will use the availa...
[ { "type": "function", "func_name": "group_words_by_first_character", "func_desc": "Groups words by their first character.", "func_params": "{\"type\": \"object\", \"properties\": {\"words\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"A list of strings to be grouped.\...
[ { "role": "user", "content": "Hey, can you help me out with this list of words: [\"apple\", \"banana\", \"avocado\", \"berry\", \"cherry\"]? I want to see how they group by their first letter!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "to...
[ { "type": "function", "func_name": "calculate_focal_length", "func_desc": "Calculates the focal length of the camera to focus on an object at a given distance.", "func_params": "{\"type\": \"object\", \"properties\": {\"distance\": {\"type\": \"number\", \"description\": \"The distance from the obje...
[ { "role": "user", "content": "Hey, can you help me create a Dockerfile? I want to use \"ubuntu:latest\" as the base image, need to install \"curl\" and \"git\" as dependencies, set the entrypoint to \"/usr/bin/start.sh\", and run the command \"npm start\" by default.", "tool_plan": null, "tool_calls...
[ { "type": "function", "func_name": "replace_multiple_whitespaces", "func_desc": "Replaces all multiple white spaces in a given string with a single white space.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The input string to process.\"}}...
[ { "role": "user", "content": "Hey, I’ve got this sentence and I wanna get a list of adjacent word pairs from it. The sentence is \"The quick brown fox jumps over the lazy dog.\" Can you help me with that?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": n...
[ { "type": "function", "func_name": "create_table", "func_desc": "Creates a dictionary from the given data that maps each person's name to their age, height, and weight.", "func_params": "{\"type\": \"object\", \"properties\": {\"data\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"prefix...
[ { "role": "user", "content": "Hey, can you help me with something? I want to reverse the first 3 characters for every 6 characters in this string: \"Hello, how are you today?\" Can you do that?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "t...
[ { "type": "function", "func_name": "extract_past_events", "func_desc": "Extracts past events from an input string and returns them as a list of dictionaries.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_string\": {\"type\": \"string\", \"description\": \"The input string contain...
[ { "role": "user", "content": "Hey, can you help me pull out all the past events from this text: \"I went to a concert on March 5th, attended a wedding on April 12th, and celebrated my birthday on June 21st\"?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content...
[ { "type": "function", "func_name": "dump_to_json", "func_desc": "Dumps a dictionary to a JSON file.", "func_params": "{\"type\": \"object\", \"properties\": {\"dictionary\": {\"type\": \"object\", \"description\": \"The dictionary to be dumped.\"}, \"file_path\": {\"type\": \"string\", \"description...
[ { "role": "user", "content": "Hey, can you check if the number 7 is even, odd, or neither for these lists: [[1, 2, 3], [4, 5, 6]]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine if the number 7 is even, odd, or neith...
[ { "type": "function", "func_name": "non_mutual_exclusion_matching", "func_desc": "Returns a list of tags that are not in the user's interests or all tags if user's interests are None.", "func_params": "{\"type\": \"object\", \"properties\": {\"user_interests\": {\"type\": \"array\", \"items\": {\"ty...
[ { "role": "user", "content": "Hey, I need to find some tags that I might not be into. My interests are [\"sports\", \"music\", \"travel\"] and I have a bunch of tags: [\"food\", \"music\", \"travel\", \"technology\", \"sports\", \"fashion\"]. Can you help me out with that?", "tool_plan": null, "tool...
[ { "type": "function", "func_name": "rank_by_length", "func_desc": "Ranks words by their length and returns a dictionary mapping each length to a list of words of that length.", "func_params": "{\"type\": \"object\", \"properties\": {\"words\": {\"type\": \"array\", \"items\": {\"type\": \"string\"},...
[ { "role": "user", "content": "Hey, can you help me out by ranking these words based on their length? Here’s the list I want to use: [\"apple\", \"banana\", \"kiwi\", \"strawberry\", \"grape\"].", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "t...
[ { "type": "function", "func_name": "vector_difference", "func_desc": "Returns the difference of two vectors.", "func_params": "{\"type\": \"object\", \"properties\": {\"vector1\": {\"type\": \"array\", \"items\": {\"type\": \"number\"}, \"description\": \"A two-dimensional vector.\"}, \"vector2\": {...
[ { "role": "user", "content": "Hey, can you help me out with calculating the mean of these numbers: [1.5, 2.5, 3.5, 4.5]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calculate the mean of the provided numbers [1.5, 2.5, 3.5,...
[ { "type": "function", "func_name": "group_by_length", "func_desc": "Groups words by their length into a dictionary.", "func_params": "{\"type\": \"object\", \"properties\": {\"words\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"A list of strings to be grouped.\"}}, \...
[ { "role": "user", "content": "Hey, can you help me out? I have a bunch of words: \"apple\", \"banana\", \"kiwi\", \"grape\", and I want to group them by their length.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To group the wo...
[ { "type": "function", "func_name": "ip_str_to_int", "func_desc": "Converts a string-based IPv4 address into an integer representation.", "func_params": "{\"type\": \"object\", \"properties\": {\"ip_str\": {\"type\": \"string\", \"description\": \"A string representing a valid IPv4 address.\"}}, \"re...
[ { "role": "user", "content": "Can you help me sort this list of FTP files based on when they were last modified? Here’s the list: \n\n- { \"filename\": \"file1.txt\", \"filesize\": 200, \"timestamp\": \"2023-10-01T12:00:00Z\", \"attributes\": \"rw\" }\n- { \"filename\": \"file2.txt\", \"filesize\": 150, \"t...
[ { "type": "function", "func_name": "strings_to_dict", "func_desc": "Maps each string in the input list to its first letter in uppercase.", "func_params": "{\"type\": \"object\", \"properties\": {\"strings\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"A list of string...
[ { "role": "user", "content": "Hey, can you help me out? I have this multiline text that I want to parse, but I need to ignore any empty lines and comments. Here’s the text I want to work with: \n\n```\nLine 1\n# This is a comment\nLine 2\n\nLine 3\n```\n\nCan you parse that for me?", "tool_plan": null, ...
[ { "type": "function", "func_name": "replace_shortcode", "func_desc": "Replaces any word prefixed with the specified shortcode in the input string with that word wrapped in HTML <div> tags.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_string\": {\"type\": \"string\", \"descriptio...
[ { "role": "user", "content": "Hey, can you help me out? I’ve got a bunch of file paths, and I only want to keep the ones that end with .jpg and .png. Here’s the list of files: [\"/images/photo1.jpg\", \"/documents/file.txt\", \"/images/photo2.png\", \"/videos/movie.mp4\"]. Can you filter those for me?", ...
[ { "type": "function", "func_name": "get_media_type", "func_desc": "Determines the media type of a file from its filename extension.", "func_params": "{\"type\": \"object\", \"properties\": {\"filename\": {\"type\": \"string\", \"description\": \"The filename (with or without extension) of the file.\...
[ { "role": "user", "content": "Hey, can you help me figure out the distance from a point to a line? The point's coordinates are (3, 4) and the line is represented by the equation 2x + 3y - 6 = 0.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "...
[ { "type": "function", "func_name": "find_all_indices", "func_desc": "Returns a list of indices at which the target value occurs in the given list.", "func_params": "{\"type\": \"object\", \"properties\": {\"lst\": {\"type\": \"array\", \"items\": {}, \"description\": \"The list to search.\"}, \"targ...
[ { "role": "user", "content": "Hey, can you help me out with splitting this list of numbers into groups of consecutive numbers? The list I have is [1, 2, 3, 5, 6, 7, 10].", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To split the...
[ { "type": "function", "func_name": "create_stack", "func_desc": "Creates an empty stack.", "func_params": "{\"type\": \"object\", \"properties\": {}}" }, { "type": "function", "func_name": "join_list_with_recursion", "func_desc": "Joins a list of strings with a zero-width non-breakin...
[ { "role": "user", "content": "Hey, can you help me out? I need to join a few strings together. I've got a list that includes \"apple\", \"banana\", and \"cherry\". Can you do that for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_pl...
[ { "type": "function", "func_name": "hash_with_md5", "func_desc": "Generates the MD5 hash of a given string.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_string\": {\"type\": \"string\", \"description\": \"The string to be hashed.\"}}, \"required\": [\"input_string\"]}" }, { ...
[ { "role": "user", "content": "Hey, can you help me out by figuring out the language of this text: \"Bonjour, comment ça va?\" I really need to know!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine the language of the ...
[ { "type": "function", "func_name": "get_rectangle_center", "func_desc": "Calculates the center point of a rectangle given its bottom left and top right coordinates.", "func_params": "{\"type\": \"object\", \"properties\": {\"bottom_left\": {\"type\": \"array\", \"prefixItems\": [{\"type\": \"integer...
[ { "role": "user", "content": "Hey, can you help me find the center point of a rectangle? The bottom left corner is at (2, 3) and the top right corner is at (8, 6).", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the center...
[ { "type": "function", "func_name": "transform_to_tag_case", "func_desc": "Transform a string to a format with tags.", "func_params": "{\"type\": \"object\", \"properties\": {\"string\": {\"type\": \"string\", \"description\": \"The string to be transformed.\"}}, \"required\": [\"string\"]}" }, {...
[ { "role": "user", "content": "Hey, I’ve got this list of numbers and I need to split them into training and testing sets. Here’s the list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]. Can you help me with that?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, ...
[ { "type": "function", "func_name": "calculate_optimal_aspect_ratio", "func_desc": "Calculates the optimal aspect ratio for a given window size.", "func_params": "{\"type\": \"object\", \"properties\": {\"window_width\": {\"type\": \"integer\", \"description\": \"The width of the window in pixels.\"}...
[ { "role": "user", "content": "Hey, can you help me figure out the best aspect ratio for my window? It’s 1920 pixels wide and 1080 pixels tall.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine the best aspect ratio for ...
[ { "type": "function", "func_name": "calculate_aspect_ratio", "func_desc": "Calculates the aspect ratio of an image given its height and width.", "func_params": "{\"type\": \"object\", \"properties\": {\"height\": {\"type\": \"integer\", \"description\": \"The height of the image in pixels.\"}, \"wid...
[ { "role": "user", "content": "Hey, can you help me find the aspect ratio of an image that's 1080 pixels tall and 1920 pixels wide?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the aspect ratio of the image, I will use t...
[ { "type": "function", "func_name": "convert_string_ascii", "func_desc": "Converts a string of lowercase English letters to a string of their ASCII values separated by hyphens.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"A string of lower...
[ { "role": "user", "content": "Hey, can you help me out with organizing some images? I need to split all the pictures in my folder into five different subfolders. The folder is located at \"/Users/username/Pictures/MyImages\".", "tool_plan": null, "tool_calls_json": null }, { "role": "assista...
[ { "type": "function", "func_name": "convert_to_int_if_possible", "func_desc": "Attempts to convert a string to an integer. If the conversion is successful, return the converted integer. If not, return the string.", "func_params": "{\"type\": \"object\", \"properties\": {\"input\": {\"type\": \"strin...
[ { "role": "user", "content": "Hey, can you help me with something? I need to parse some command line arguments. Here are the arguments I want to pass: `[\"--input\", \"file.txt\", \"--output\", \"result.txt\"]`, and I’ve got an empty options dictionary ready to store them. Can you do that?", "tool_plan"...
[ { "type": "function", "func_name": "reverse_first_k_chars", "func_desc": "Reverses the first k characters for every 2k characters in the string.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The input string.\"}, \"k\": {\"type\": \"intege...
[ { "role": "user", "content": "Hey! Can you help me count how many mutations there are between these two sets of codon sequences: \"ATG, CGT, TTA\" and \"ATG, TGC, TTA\"?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To count the...
[ { "type": "function", "func_name": "transpose_matrix_row_wise", "func_desc": "Transposes a matrix in row-wise order.", "func_params": "{\"type\": \"object\", \"properties\": {\"matrix\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"items\": {\"type\": \"integer\"}}, \"description\": \"A ...
[ { "role": "user", "content": "Hey! Can you give me a list of colors that blend from red to blue? I want 5 different shades in between, so make sure to include those colors too!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To ge...
[ { "type": "function", "func_name": "get_largest_items", "func_desc": "Returns a list of database objects containing the largest value of a specified field.", "func_params": "{\"type\": \"object\", \"properties\": {\"database_objects\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"additi...
[ { "role": "user", "content": "Hey, can you tell me about the integer 12345? I want to know how many characters it has, how many digits, the sum of its digits, and what the maximum digit is.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_...
[ { "type": "function", "func_name": "minimum", "func_desc": "Finds the minimum value in a list of integers. Returns 0 if the list is empty.", "func_params": "{\"type\": \"object\", \"properties\": {\"lst\": {\"type\": \"array\", \"items\": {\"type\": \"integer\"}, \"description\": \"A list of integer...
[ { "role": "user", "content": "Hey! Can you help me out by pulling all the 5-digit zip codes from this list of strings? Here's the list: [\"12345 Main St\", \"Somewhere 54321\", \"Not a zip 999\", \"Another zip 98765\"]. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assis...
[ { "type": "function", "func_name": "filter_rates", "func_desc": "Filters the rate list to only include rates between the minimum and maximum, inclusive.", "func_params": "{\"type\": \"object\", \"properties\": {\"rates\": {\"type\": \"array\", \"items\": {\"type\": [\"integer\", \"number\"]}, \"desc...
[ { "role": "user", "content": "Hey, can you help me out with some rates? I have this list of rates: [50, 75, 100, 125, 150], and I want to filter it down to just those that are between 70 and 130, inclusive. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "c...
[ { "type": "function", "func_name": "flatten_and_remove_zeros", "func_desc": "Returns a flattened list of all the unique items from the input list, excluding zero values.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_list\": {\"type\": \"array\", \"items\": {}, \"description\": \"...
[ { "role": "user", "content": "Hey, can you help me out by cleaning up this list of URLs? Here are the ones I need you to work with: [\"https://example.com/page1\", \"https://example.com/page2/\", \"https://example.com/page3\"].", "tool_plan": null, "tool_calls_json": null }, { "role": "assis...
[ { "type": "function", "func_name": "remove_nonalnum", "func_desc": "Removes any non-alphanumeric characters from the input string and trims leading and trailing whitespace.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The input string fro...
[ { "role": "user", "content": "Hey, can you help me figure out the center and size of a bounding box? I’ve got the minimum x at 5, minimum y at 10, maximum x at 15, and maximum y at 20.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan"...
[ { "type": "function", "func_name": "generate_edges", "func_desc": "Generates edges that connect nodes in a circular topology.", "func_params": "{\"type\": \"object\", \"properties\": {\"nodes\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"A list of nodes to be connect...
[ { "role": "user", "content": "Hey, can you help me find some sentences that have words not in my vocabulary list? Here are the sentences: [\"The cat chased the mouse.\", \"The quick brown fox jumps over the lazy dog.\", \"I love programming in Python!\"]. My vocabulary list includes: [\"cat\", \"chased\", \...
[ { "type": "function", "func_name": "public_private_lists", "func_desc": "Separates dictionary keys into public and private names, returning them in two lists.", "func_params": "{\"type\": \"object\", \"properties\": {\"dictionary\": {\"type\": \"object\", \"additionalProperties\": {\"type\": \"strin...
[ { "role": "user", "content": "Hey, can you help me out by giving me a list of the top 5 skeleton joints? Here's the data I have: [\"1,2,3,0.9\", \"4,5,6,0.8\", \"7,8,9,0.95\", \"10,11,12,0.7\", \"13,14,15,0.85\"]. I need to extract 5 joints from that! Thanks!", "tool_plan": null, "tool_calls_json": ...
[ { "type": "function", "func_name": "extract_xml_content", "func_desc": "Extracts the content between the matching opening and closing tags of the input tag.", "func_params": "{\"type\": \"object\", \"properties\": {\"xml_string\": {\"type\": \"string\", \"description\": \"The XML string to search wi...
[ { "role": "user", "content": "Hey, I need some help with my list of strings. Can you take this list and replace all the instances of \"apple\" with \"orange\"? Here’s the list I’m working with: [\"apple pie\", \"banana smoothie\", \"apple tart\"]. Thanks!", "tool_plan": null, "tool_calls_json": null...
[ { "type": "function", "func_name": "parse_and_join_csv", "func_desc": "Parses a CSV string and joins each row by a comma.", "func_params": "{\"type\": \"object\", \"properties\": {\"csv_string\": {\"type\": \"string\", \"description\": \"A string containing CSV data.\"}}, \"required\": [\"csv_string...
[ { "role": "user", "content": "Can you help me format the description for this book? It's got the title \"The Great Gatsby,\" written by \"F. Scott Fitzgerald,\" published in \"1925\" by \"Scribner,\" in the \"1st\" edition, with \"3\" available copies out of \"10\" total copies.", "tool_plan": null, ...
[ { "type": "function", "func_name": "get_word_length_dict", "func_desc": "Transforms a list of strings into a dictionary where each key is a word from the list and its value is the length of that word.", "func_params": "{\"type\": \"object\", \"properties\": {\"words\": {\"type\": \"array\", \"items\...
[ { "role": "user", "content": "Hey! Can you help me filter through this list of fonts and just show me the ones that start with \"Arial\"? Here’s the list: [\"Arial Black\", \"Times New Roman\", \"Arial Narrow\", \"Courier New\"].", "tool_plan": null, "tool_calls_json": null }, { "role": "ass...
[ { "type": "function", "func_name": "extract_ids_from_json_file", "func_desc": "Extract a list of IDs from a JSON file.", "func_params": "{\"type\": \"object\", \"properties\": {\"json_file\": {\"type\": \"string\", \"description\": \"The path to the JSON file.\"}, \"key\": {\"type\": \"string\", \"d...
[ { "role": "user", "content": "Hey, can you help me out? I need to grab all the CSV files from a specific folder. The folder path is `/home/user/documents`.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To assist the user in retr...
[ { "type": "function", "func_name": "group_by_key_and_sort_values", "func_desc": "Groups the tuples by their keys and sorts the values in each list in ascending order.", "func_params": "{\"type\": \"object\", \"properties\": {\"data\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"prefixIt...
[ { "role": "user", "content": "Hey, can you help me out? I have a list of integers and I just want to get the squares of the positive ones. Here’s the list: [3, -1, 2, 0, 4, -5]. Can you do that?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "...
[ { "type": "function", "func_name": "get_attributes_with_prefix", "func_desc": "Retrieves the names of all attributes of an object that start with a specific prefix.", "func_params": "{\"type\": \"object\", \"properties\": {\"obj\": {\"description\": \"The object to inspect.\"}, \"prefix\": {\"type\"...
[ { "role": "user", "content": "Hey, can you help me out by converting this list of numbers and strings to floats? Here’s what I’ve got: [1, '2', 'three', 4.0, '5.5']. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To conve...
[ { "type": "function", "func_name": "get_most_common_char", "func_desc": "Returns the most common character in the input string.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_string\": {\"type\": \"string\", \"description\": \"A non-empty string from which the most common characte...
[ { "role": "user", "content": "Hey, can you help me find the middle point of these coordinates: [[1, 2], [3, 4], [5, 6]]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the middle point of the given coordinates, I will use...
[ { "type": "function", "func_name": "create_authorization_header", "func_desc": "Creates an HTTP Authorization header for basic authentication.", "func_params": "{\"type\": \"object\", \"properties\": {\"username\": {\"type\": \"string\", \"description\": \"The username for authentication.\"}, \"pass...
[ { "role": "user", "content": "Hey! Can you help me out? I need to find the largest number in this list: [3, 5, 7, 2, 8] starting from index 0. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the largest number in t...
[ { "type": "function", "func_name": "reverse_english_words", "func_desc": "Reverses the order of words in a given English text.", "func_params": "{\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"A string of English words separated by spaces.\"}}, \"required\...
[ { "role": "user", "content": "Hey, can you help me split this string into parts? I’ve got \"apple, banana, cherry\" and I want to use a comma as the delimiter.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To split the string \"...
[ { "type": "function", "func_name": "random_number_from_string", "func_desc": "Generates a random number between 0 and 1 using the `hash` function of a given string.", "func_params": "{\"type\": \"object\", \"properties\": {\"string\": {\"type\": \"string\", \"description\": \"The string to use as th...
[ { "role": "user", "content": "Hey, can you help me with this dictionary? I need to renumber the values in it and also get a count of how many times each unique value shows up. Here's the dictionary I'm working with: {'a': 1, 'b': 2, 'c': 1}. Thanks!", "tool_plan": null, "tool_calls_json": null }, ...
[ { "type": "function", "func_name": "from_base", "func_desc": "Converts a string representation of an integer from a given base to a decimal number.", "func_params": "{\"type\": \"object\", \"properties\": {\"num_str\": {\"type\": \"string\", \"description\": \"The string representation of the intege...
[ { "role": "user", "content": "Hey! Can you help me figure out the total number of seconds for this time list: [1, 30, 15]? That's 1 hour, 30 minutes, and 15 seconds. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calcu...
[ { "type": "function", "func_name": "stringify_state", "func_desc": "Converts a state in the form of a dictionary to a string representation using JSON serialization.", "func_params": "{\"type\": \"object\", \"properties\": {\"state\": {\"type\": \"object\", \"description\": \"The state dictionary to...
[ { "role": "user", "content": "Hey, can you help me out? I’ve got this multiline text that I need to analyze, and I want to map each character offset to the line number and line offset. Here’s the text I’m working with: \n\n```\nLine one of text.\nLine two of text.\nLine three of text.\n```\n\nCan you proces...
[ { "type": "function", "func_name": "period_rate", "func_desc": "Calculates the rate (percentage) for the given period compared to the previous period.", "func_params": "{\"type\": \"object\", \"properties\": {\"current_period\": {\"type\": \"number\", \"description\": \"The value of the current peri...
[ { "role": "user", "content": "Hey, can you help me out with this? I have a string that goes like \"I love apples and oranges\", and I want to replace \"apples\" with \"bananas\" and \"oranges\" with \"grapes\". So, the string is \"I love apples and oranges\", the expressions are [\"apples\", \"oranges\"], a...
[ { "type": "function", "func_name": "calculate_fraction_ratio", "func_desc": "Calculate the ratio of a fraction.", "func_params": "{\"type\": \"object\", \"properties\": {\"numerator\": {\"type\": \"number\", \"description\": \"The numerator of the fraction.\"}, \"denominator\": {\"type\": \"number\"...
[ { "role": "user", "content": "Hey, can you help me figure out the ratio of 3 over 4?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calculate the ratio of the fraction 3 over 4, I will use the available tool called \"calculate...
[ { "type": "function", "func_name": "convert_filename_to_animal_name", "func_desc": "Converts a file path into a file name with a new name that is converted from the directory name to snake case.", "func_params": "{\"type\": \"object\", \"properties\": {\"file_path\": {\"type\": \"string\", \"descrip...
[ { "role": "user", "content": "Hey, can you help me out with this string that has some digits and parentheses? I want to know the total sum of all valid subsequences in it. The string I have is \"3+(2-1)+(4+5)\".", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "cont...
[ { "type": "function", "func_name": "sort_by_value", "func_desc": "Returns a list of the dictionary's keys sorted by their values.", "func_params": "{\"type\": \"object\", \"properties\": {\"d\": {\"type\": \"object\", \"description\": \"The dictionary to sort.\"}, \"reverse\": {\"type\": \"boolean\"...
[ { "role": "user", "content": "Hey! Can you help me find the closest pair of numbers to 10 in this list: [1, 2, 5, 8, 12, 15]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the closest pair of numbers to the target value ...
[ { "type": "function", "func_name": "format_status_url", "func_desc": "Formats a URL string containing the status information of a specific transaction.", "func_params": "{\"type\": \"object\", \"properties\": {\"transaction_id\": {\"type\": \"integer\", \"description\": \"The ID of the transaction.\...
[ { "role": "user", "content": "Hey, can you help me calculate the weighted average of these numbers: 10, 20, and 30 with weights of 1, 2, and 3?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calculate the weighted average of t...
[ { "type": "function", "func_name": "group_by_shape", "func_desc": "Groups values by shape from a list of dictionaries.", "func_params": "{\"type\": \"object\", \"properties\": {\"data\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"additionalProperties\": {\"type\": \"string\"}}, \"desc...
[ { "role": "user", "content": "Hey, can you help me out with a list of ASCII codes? I want to see their corresponding characters. Here are the codes: 65, 66, 67, 68.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To assist the use...
[ { "type": "function", "func_name": "nest_dict_keys", "func_desc": "Converts the keys of each innermost level in a nested dictionary to a string representation.", "func_params": "{\"type\": \"object\", \"properties\": {\"nested_dict\": {\"type\": \"object\", \"additionalProperties\": {}, \"descriptio...
[ { "role": "user", "content": "Hey, can you help me out? I have a list of dictionaries and I want to turn it into a single dictionary. I need to use the \"id\" from each dictionary as the new keys. Here’s what I have: \n\n- The list of dictionaries is like this: `[{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2...
[ { "type": "function", "func_name": "midi_to_freq", "func_desc": "Converts a given MIDI note number into the corresponding frequency in Hertz (Hz).", "func_params": "{\"type\": \"object\", \"properties\": {\"note\": {\"type\": \"integer\", \"description\": \"The MIDI note number to convert.\"}}, \"re...
[ { "role": "user", "content": "Hey, can you help me find the most similar node? I have one node that looks like this: {\"id\": 1, \"name\": \"Node A\"} and another one like this: {\"id\": 2, \"name\": \"Node B\"}. Also, I have a list of nodes to compare against: [{\"id\": 3, \"name\": \"Node C\"}, {\"id\": 4...
[ { "type": "function", "func_name": "hsv2rgb", "func_desc": "Converts a HSV color model value (h, s, v) to its corresponding RGB value (r, g, b).", "func_params": "{\"type\": \"object\", \"properties\": {\"h\": {\"type\": \"number\", \"description\": \"The hue component of the HSV color model, rangin...
[ { "role": "user", "content": "Hey! Can you convert a color for me? I want to change the hue to 180, saturation to 0.5, and brightness to 0.7.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To convert the specified HSV color value...
[ { "type": "function", "func_name": "invoke_function", "func_desc": "Invokes a function from a specified module with given arguments.", "func_params": "{\"type\": \"object\", \"properties\": {\"module_name\": {\"type\": \"string\", \"description\": \"The name of the module to import.\"}, \"function_n...
[ { "role": "user", "content": "Hey! Can you help me format some names? I've got a list of people with their names and genders. Here’s what I have: \n\n1. John, male\n2. Mary, female\n3. Alex, male\n\nCan you format that for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assist...
[ { "type": "function", "func_name": "process_query_results", "func_desc": "Processes a set of query results and returns a list of tuples containing the `name` and `address` of each result.", "func_params": "{\"type\": \"object\", \"properties\": {\"query_results\": {\"type\": \"array\", \"items\": {\...
[ { "role": "user", "content": "Hey! Can you sort this list of names: [\"Alice\", \"Charlie\", \"Bob\"] and make \"Zoe\" the smallest?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To sort the list of names while treating \"Zoe\" ...
[ { "type": "function", "func_name": "compare_error", "func_desc": "Computes the error of a numerical result and checks if it is within the specified tolerance.", "func_params": "{\"type\": \"object\", \"properties\": {\"exact\": {\"type\": [\"integer\", \"number\"], \"description\": \"The exact value...
[ { "role": "user", "content": "Hey, can you help me check if my approximate value of 95.5 is close enough to the exact value of 100? I want to know if the error is within a tolerance of 5, and I'm interested in the relative error.", "tool_plan": null, "tool_calls_json": null }, { "role": "ass...
[ { "type": "function", "func_name": "remove_annotations", "func_desc": "Removes type annotations from each element in the list.", "func_params": "{\"type\": \"object\", \"properties\": {\"xs\": {\"type\": \"array\", \"items\": {}, \"description\": \"A list of type-annotated values.\"}}, \"required\":...
[ { "role": "user", "content": "Hey, can you help me out? I've got this list of items and I want to remove an item from it. The list is [\"apple\", \"banana\", \"cherry\"] and I want to delete the item at index 1.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "cont...
[ { "type": "function", "func_name": "partition_range", "func_desc": "Partitions a range of integers into smaller ranges, where each range contains a maximum number of integers.", "func_params": "{\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"integer\", \"description\": \"The starting...
[ { "role": "user", "content": "Hey! Can you help me with something? I need to split a range of numbers from 1 to 50 into smaller groups, and I want each group to have a maximum of 10 numbers. Can you do that for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "c...
[ { "type": "function", "func_name": "generate_assignment", "func_desc": "Generates the code that assigns a value to a variable.", "func_params": "{\"type\": \"object\", \"properties\": {\"var_name\": {\"type\": \"string\", \"description\": \"The name of the variable to be assigned.\"}, \"var_value\":...
[ { "role": "user", "content": "Hey, can you help me convert a UNIX timestamp to a readable date? I’ve got the time as 1633046400 and I want to adjust it to UTC, so can you set that to true?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_p...
[ { "type": "function", "func_name": "shuffle_and_split", "func_desc": "Shuffles a dataset and splits it into training, validation, and test sets with a 80/10/10 ratio.", "func_params": "{\"type\": \"object\", \"properties\": {\"samples\": {\"type\": \"array\", \"description\": \"A list of samples.\"}...
[ { "role": "user", "content": "Hey, can you help me find the indices in this sorted list [1, 3, 5, 7, 9, 11] for values between 4 and 10? I need to know where the first element is greater than or equal to 4 and the last one is less than or equal to 10.", "tool_plan": null, "tool_calls_json": null }...
[ { "type": "function", "func_name": "days_since_epoch", "func_desc": "Converts a date string in the format 'YYYY/MM/DD' to the corresponding number of days since the Unix Epoch (1970-01-01) in UTC time.", "func_params": "{\"type\": \"object\", \"properties\": {\"date_string\": {\"type\": \"string\", ...
[ { "role": "user", "content": "Hey, can you tell me how many days have passed since January 1st, 2020? I want to know the days since the Unix Epoch for that date!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine how man...
[ { "type": "function", "func_name": "largest_k_values_by_key", "func_desc": "Finds the k largest values for each key in a list of (key, value) tuples.", "func_params": "{\"type\": \"object\", \"properties\": {\"data\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"prefixItems\": [{\"type\"...
[ { "role": "user", "content": "Hey, can you help me find the top 3 largest values for each key from this list: [[\"apple\", 10], [\"banana\", 5], [\"apple\", 20], [\"banana\", 15], [\"orange\", 30]]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, ...
[ { "type": "function", "func_name": "is_ancestor", "func_desc": "Determines whether a given node is an ancestor of another node in a tree.", "func_params": "{\"type\": \"object\", \"properties\": {\"tree\": {\"type\": \"object\", \"additionalProperties\": {\"type\": \"array\", \"items\": {\"type\": \...
[ { "role": "user", "content": "Hey, can you help me check if a node called \"parentNode\" is an ancestor of \"childNode\" in this tree: {\"root\": [\"parentNode\"], \"parentNode\": [\"childNode\"]}?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, ...
[ { "type": "function", "func_name": "roll_array", "func_desc": "Rolls the elements of an array by a specified number of positions.", "func_params": "{\"type\": \"object\", \"properties\": {\"arr\": {\"type\": \"array\", \"items\": {\"type\": \"integer\"}, \"description\": \"The input array to be roll...
[ { "role": "user", "content": "Hey, can you help me out with rolling this array [1, 2, 3, 4, 5] to the right by 2 positions?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To roll the array [1, 2, 3, 4, 5] to the right by 2 positi...
[ { "type": "function", "func_name": "compute_progress", "func_desc": "Computes the progress of a given task as a percentage.", "func_params": "{\"type\": \"object\", \"properties\": {\"start\": {\"type\": \"integer\", \"description\": \"The start value of the task.\"}, \"end\": {\"type\": \"integer\"...
[ { "role": "user", "content": "Hey, can you help me figure out how far along I am with my project? The starting point was at 20, the finish line is 100, and I'm currently at 45.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To de...
[ { "type": "function", "func_name": "bool_to_string", "func_desc": "Converts a boolean value to its string representation.", "func_params": "{\"type\": \"object\", \"properties\": {\"bool_val\": {\"type\": \"boolean\", \"description\": \"The boolean value to convert.\"}}, \"required\": [\"bool_val\"]...
[ { "role": "user", "content": "Hey, can you help me clean up this tweet by getting rid of the usernames in it? Here's the tweet: \"Had a great time hanging out with @john and @jane at the park!\"", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "...
[ { "type": "function", "func_name": "lower_dict_keys", "func_desc": "Converts all keys in the given dictionary to lowercase.", "func_params": "{\"type\": \"object\", \"properties\": {\"dictionary\": {\"type\": \"object\", \"additionalProperties\": {}, \"description\": \"The dictionary whose keys are ...
[ { "role": "user", "content": "Hey, can you help me out by reading the lines from a file named \"my_notes.txt\"?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To assist the user with reading the lines from the specified file \"my...
[ { "type": "function", "func_name": "process_rectangle_tuples", "func_desc": "Processes a list of tuples representing the coordinates of rectangles, such that each rectangle is resized with a new width that is the average of the original width and height.", "func_params": "{\"type\": \"object\", \"pr...
[ { "role": "user", "content": "Hey! Can you give me all the Sundays for March 2023?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To provide the user with all the Sundays for March 2023, I will use the available tool `get_all_sun...
[ { "type": "function", "func_name": "sort_strings_by_first_letter", "func_desc": "Takes a list of strings as input and returns a list of strings sorted by their first letter.", "func_params": "{\"type\": \"object\", \"properties\": {\"strings\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}...
[ { "role": "user", "content": "Hey, can you help me calculate the F-measure score? I've got the true labels as [1, 0, 1, 1] and the predictions as [1, 1, 0, 1].", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calculate the F-mea...
[ { "type": "function", "func_name": "compare_complex_objects", "func_desc": "Performs a deep comparison of two complex objects, ignoring specified fields.", "func_params": "{\"type\": \"object\", \"properties\": {\"obj1\": {\"description\": \"The first object to compare.\"}, \"obj2\": {\"description\...
[ { "role": "user", "content": "Hey! Can you help me compare two objects? I have the first object, and I also have the second one, but I want to ignore some fields in the comparison. The first object looks like this: { \"name\": \"Alice\", \"age\": 30, \"email\": \"alice@example.com\" }, and the second one is...
[ { "type": "function", "func_name": "get_missing_tasks", "func_desc": "Finds and returns a list of task dictionaries that are in suites but not in tasks.", "func_params": "{\"type\": \"object\", \"properties\": {\"suites\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"additionalPropertie...
[ { "role": "user", "content": "Hey, can you help me find the tasks that are in my suites but not in my tasks? I’ve got these suites: [{\"suite_id\": 1}, {\"suite_id\": 2}] and these tasks: [{\"suite_id\": 1}, {\"suite_id\": 3}]. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role"...
[ { "type": "function", "func_name": "all_unique_characters", "func_desc": "Determines if all characters in a given string are unique, ignoring non-alphabetic characters.", "func_params": "{\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The input string to c...
[ { "role": "user", "content": "Can you help me turn this dictionary into HTML attributes: {\"class\": \"button\", \"id\": \"submit\", \"disabled\": \"true\"}?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To convert the provided ...
[ { "type": "function", "func_name": "process_binary_segments", "func_desc": "Analyzes a list of binary code segments and computes the length of each segment.", "func_params": "{\"type\": \"object\", \"properties\": {\"segments\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"additionalPro...
[ { "role": "user", "content": "Hey, can you help me out with the power summation? I need to calculate it for the number 5 with 3 terms.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To calculate the power summation for the number...
[ { "type": "function", "func_name": "calculate_average_accuracy", "func_desc": "Calculates the average accuracy of a classifier model based on the sub-list equality check of two lists.", "func_params": "{\"type\": \"object\", \"properties\": {\"y_true\": {\"type\": \"array\", \"items\": {\"type\": \"...
[ { "role": "user", "content": "Hey, can you help me count how many points are inside a specific window? I've got all my points ready, and I know which points form the window. Here’s what I’ve got:\n\nAll points: [[1, 2], [3, 4], [5, 6], [7, 8]]\nWindow points: [[2, 3], [4, 5], [6, 7]]\n\nCan you tell me how ...
[ { "type": "function", "func_name": "matrix_multiplication", "func_desc": "Performs matrix multiplication on two matrices and returns the resulting matrix.", "func_params": "{\"type\": \"object\", \"properties\": {\"matrix_a\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"items\": {\"type...
[ { "role": "user", "content": "Hey, can you help me out by multiplying these two matrices for me? Here's the first one: [[1, 2], [3, 4]] and the second one: [[5, 6], [7, 8]]. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "...
[ { "type": "function", "func_name": "get_top_change", "func_desc": "Returns a list of key-value pairs from `input_dict` whose values have changed from `target_dict`.", "func_params": "{\"type\": \"object\", \"properties\": {\"input_dict\": {\"type\": \"object\", \"additionalProperties\": {\"type\": \...
[ { "role": "user", "content": "Hey, can you help me find out how much space my files are taking up? I've got this list of objects with their paths and sizes, and I need to know the total size. Here's the info: \n\n```json\n[\n {\"path\": \"/folder/file1.txt\", \"size\": 1500, \"is_dir\": false},\n {\"p...
[ { "type": "function", "func_name": "replace_dash_space", "func_desc": "Replaces the dash and space characters with the underscore character in a given string.", "func_params": "{\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The string to be processed.\"}}...
[ { "role": "user", "content": "Hey, can you take this dictionary of data and multiply its values by these factors? The data looks like this: `{\"column1\": 2, \"column2\": 3, \"column3\": 5}` and the factors are `[2, 3]`. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "assi...
[ { "type": "function", "func_name": "latest_version", "func_desc": "Finds the latest version string from a list of version strings.", "func_params": "{\"type\": \"object\", \"properties\": {\"version_strings\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"A list of vers...
[ { "role": "user", "content": "Hey, can you help me out? I have a list of new entries and old entries, and I want to know which names are in the new entries that aren't in the old ones. Here are the old entries: [{\"name\": \"Alice\"}, {\"name\": \"Bob\"}] and the new entries: [{\"name\": \"Bob\"}, {\"name\"...
[ { "type": "function", "func_name": "create_bitfields", "func_desc": "Creates a list of bitfields with all possible combinations of a list of enumerated values.", "func_params": "{\"type\": \"object\", \"properties\": {\"enumerated_values\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"...
[ { "role": "user", "content": "Hey, can you help me figure out if moving from 5 to 10 will actually make things better for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine if moving from 5 to 10 will result in a pos...
[ { "type": "function", "func_name": "are_parentheses_balanced", "func_desc": "Checks if the parentheses in the given string are balanced.", "func_params": "{\"type\": \"object\", \"properties\": {\"string\": {\"type\": \"string\", \"description\": \"A string containing parentheses to be checked.\"}},...
[ { "role": "user", "content": "Hey, can you help me figure out the value of a polynomial? I have the coefficients as [2, -3, 4] and I want to evaluate it at x = 5.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To compute the valu...
[ { "type": "function", "func_name": "calculate_fractions", "func_desc": "Calculates the fraction of positive, negative, and zero numbers in a list.", "func_params": "{\"type\": \"object\", \"properties\": {\"numbers\": {\"type\": \"array\", \"items\": {\"type\": [\"integer\", \"number\"]}, \"descript...
[ { "role": "user", "content": "Hey, can you help me out? I have this list of numbers: [2, -3, 0, 5, -1]. Can you tell me the fraction of positive, negative, and zero numbers in it?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To...
[ { "type": "function", "func_name": "dedup_list", "func_desc": "Deduplicates a list while preserving the original order of elements.", "func_params": "{\"type\": \"object\", \"properties\": {\"lst\": {\"type\": \"array\", \"description\": \"The list to be deduplicated.\"}}, \"required\": [\"lst\"]}" ...
[ { "role": "user", "content": "Hey, can you help me out by turning this string \"Hello, World!\" into ASCII codes? I really need it for a project!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To convert the string \"Hello, World...
[ { "type": "function", "func_name": "is_sparse", "func_desc": "Checks whether an array is sparse or dense.", "func_params": "{\"type\": \"object\", \"properties\": {\"array\": {\"type\": \"array\", \"items\": {\"type\": \"integer\"}, \"description\": \"A list of integers representing the array to be ...
[ { "role": "user", "content": "Hey, can you check if this list of numbers is sparse or dense? Here’s the array I want you to look at: [0, 0, 1, 0, 0, 0].", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine whether the prov...
[ { "type": "function", "func_name": "search_user", "func_desc": "Searches for a given user name in a list of tuples, each containing a user's name and age.", "func_params": "{\"type\": \"object\", \"properties\": {\"user_list\": {\"type\": \"array\", \"items\": {\"type\": \"array\", \"prefixItems\": ...
[ { "role": "user", "content": "Hey! Can you help me find a user named \"Alice\" in this list: [(\"Bob\", 25), (\"Alice\", 30), (\"Charlie\", 22)]?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To find the user named \"Alice\" in ...
[ { "type": "function", "func_name": "find_all_indices", "func_desc": "Returns a list of indices at which the target value occurs in the given list.", "func_params": "{\"type\": \"object\", \"properties\": {\"lst\": {\"type\": \"array\", \"items\": {}, \"description\": \"The list to search.\"}, \"targ...
[ { "role": "user", "content": "Hey, can you help me with a string? I want to replace certain characters in \"hello world\" using this mapping: {'h': 'H', 'e': '3', 'o': '0', 'l': '1', 'w': 'W', 'r': '®', 'd': 'D'}?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "co...
[ { "type": "function", "func_name": "process_data_types", "func_desc": "Processes the data types of two arguments.", "func_params": "{\"type\": \"object\", \"properties\": {\"data1\": {\"type\": [\"integer\", \"number\"], \"nullable\": true, \"description\": \"The first data point, which can be None,...
[ { "role": "user", "content": "Hey, can you help me out with creating a dictionary from this list of tuples: [(\"name\", \"Alice\"), (\"age\", 30), (\"city\", \"Wonderland\")]? I just need to pass that list to make it work. Thanks!", "tool_plan": null, "tool_calls_json": null }, { "role": "as...
[ { "type": "function", "func_name": "extract_meter_readings", "func_desc": "Extracts meter readings from a string of meter reading data.", "func_params": "{\"type\": \"object\", \"properties\": {\"meter_data\": {\"type\": \"string\", \"nullable\": true, \"description\": \"A string containing one or m...
[ { "role": "user", "content": "Hey, I have this list of meter readings I need to pull data from. It's formatted like this: \"meter1: 10, meter2: 20, meter3: 30\". Can you help me out with that?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "to...
[ { "type": "function", "func_name": "return_argument", "func_desc": "Returns the argument as-is.", "func_params": "{\"type\": \"object\", \"properties\": {\"arg\": {\"description\": \"The argument to be returned.\"}}, \"required\": [\"arg\"]}" }, { "type": "function", "func_name": "format...
[ { "role": "user", "content": "Hey, can you help me with this? I just want to send a message and have it formatted nicely. The message I want is \"Hello team, let's get this project rolling!\" Can you do that for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "...
[ { "type": "function", "func_name": "length_without_spaces", "func_desc": "Calculates the length of a string excluding any leading or trailing white spaces.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The input string from which to calcul...
[ { "role": "user", "content": "Hey, can you check if the ratios of these numbers are within a certain limit? I've got the numerators as [10, 20, 30], the denominators as [2, 4, 6], and I want to see if they’re all under a threshold of 5.", "tool_plan": null, "tool_calls_json": null }, { "role...
[ { "type": "function", "func_name": "search_keywords", "func_desc": "Searches for keywords in a given text and returns a dictionary containing the keyword counts.", "func_params": "{\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to search in.\"}, \...
[ { "role": "user", "content": "Hey, can you help me out? I’ve got this text and I want to find how many times certain keywords show up in it. Here’s the text: “The quick brown fox jumps over the lazy dog” and the keywords I’m interested in are “quick”, “fox”, and “dog”. Can you get me the counts for those ke...
[ { "type": "function", "func_name": "remove_leading_trailing_whitespaces", "func_desc": "Removes all leading and trailing whitespaces from a string.", "func_params": "{\"type\": \"object\", \"properties\": {\"s\": {\"type\": \"string\", \"description\": \"The input string from which to remove leading...
[ { "role": "user", "content": "Hey, can you help me with something? I have a list of items: ['apple', 'banana', 'apple', 'orange', 'banana', 'banana'], and I want to get a count of how many times each item appears. Can you encode that for me?", "tool_plan": null, "tool_calls_json": null }, { ...
[ { "type": "function", "func_name": "get_system_info_win", "func_desc": "Returns a list of system information specific to Windows.", "func_params": "{\"type\": \"object\", \"properties\": {}}" }, { "type": "function", "func_name": "reverse_concat", "func_desc": "A function that takes ...
[ { "role": "user", "content": "Hey, can you help me out by reversing the strings \"hello\" and \"world\"? I want to see what that looks like!", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To reverse the strings \"hello\" and \"wo...
[ { "type": "function", "func_name": "parse_float_temperature", "func_desc": "Parses a temperature string and returns the temperature value in degrees Celsius.", "func_params": "{\"type\": \"object\", \"properties\": {\"temperature_string\": {\"type\": \"string\", \"description\": \"A string represent...
[ { "role": "user", "content": "Hey, can you help me out by fixing this file path for me? Here it is: \"C:/Users/JohnDoe/Documents/My-File.txt\".", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To fix the file path provided by the u...
[ { "type": "function", "func_name": "contains_exactly_one_a_b_or_c", "func_desc": "Checks if the input string contains exactly one of the characters 'a', 'b', or 'c'.", "func_params": "{\"type\": \"object\", \"properties\": {\"string\": {\"type\": \"string\", \"description\": \"The input string to ch...
[ { "role": "user", "content": "Hey, can you help me check if this string has just one of these characters: 'a', 'b', or 'c'? The string I'm looking at is \"hello world\".", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To determine...
[ { "type": "function", "func_name": "arg_to_dict", "func_desc": "Converts an argument to a dictionary based on its type.", "func_params": "{\"type\": \"object\", \"properties\": {\"arg\": {\"description\": \"The input argument which can be a list, dictionary, or string.\"}}, \"required\": [\"arg\"]}"...
[ { "role": "user", "content": "Hey, can you help me out with dividing two lists of numbers? I’ve got one list with these numbers: [10, 20, 30] and another one with [2, 4, 5]. Can you perform the element-wise division for me?", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant...
[ { "type": "function", "func_name": "update_or_add", "func_desc": "Updates the values of the first dictionary if the key exists in both dictionaries, otherwise adds the new key-value pair to the first dictionary.", "func_params": "{\"type\": \"object\", \"properties\": {\"dict1\": {\"type\": \"object...
[ { "role": "user", "content": "Hey, can you help me split this string for me? I have \"apple,banana\\\\,cherry,grape\" and I want to use a comma as the separator.", "tool_plan": null, "tool_calls_json": null }, { "role": "assistant", "content": null, "tool_plan": "To split the string ...