You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "binary_search", "description": "Performs binary search on a sorted list to find the index of a target value.", "parameters": {"arr": {"description": "The sorted list of integers.", "type": "List[int]"}, "target": {"description": "The target value to search for.", "type": "int"}}}, {"name": "get_range", "description": "Helper function to format the range string.", "parameters": {"start": {"description": "The start of the range.", "type": "int"}, "end": {"description": "The end of the range.", "type": "int"}}}, {"name": "reverse_string", "description": "Reverses the characters in a string.", "parameters": {"text": {"description": "The input string.", "type": "str"}}}, {"name": "flatten_list", "description": "Flattens a nested list into a single-level list.", "parameters": {"nested_list": {"description": "The nested list to be flattened.", "type": "List"}}}, {"name": "split_list", "description": "Splits a list into chunks of a specified size.", "parameters": {"lst": {"description": "The input list.", "type": "List"}, "chunk_size": {"description": "The size of each chunk.", "type": "int"}}}, {"name": "is_anagram", "description": "Checks if two words are anagrams of each other.", "parameters": {"word1": {"description": "The first word.", "type": "str"}, "word2": {"description": "The second word.", "type": "str"}}}]
Flatten the list [[1, [2, 3]], 4, [5, 6]] and check if 'Astronomers' and 'Moon starer' are anagrams.
user
assistant
[{"name": "flatten_list", "arguments": {"nested_list": [[1, [2, 3]], 4, [5, 6]]}}, {"name": "is_anagram", "arguments": {"word1": "Astronomers", "word2": "Moon starer"}}]