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": "remove_duplicates", "description": "Removes duplicate elements from a list while preserving the order.", "parameters": {"lst": {"description": "The input list.", "type": "List"}}}, {"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"}}}]
I found a list with duplicate elements [1, 2, 2, 3, 4, 4, 5]. How do I remove the duplicates and maintain the original order?
user
assistant
[{"name": "remove_duplicates", "arguments": {"lst": [1, 2, 2, 3, 4, 4, 5]}}]