# Another question messages.append(ChatMessage.from_user("Where's the coffee shop?")) # Invoke the chat generator, and passing the tools list response = chat_generator.run(messages=messages, generation_kwargs= {"tools": tools}) function_call = json.loads(response["replies"][0].content)[0] function_name = function_call["function"]["name"] function_args = json.loads(function_call["function"]["arguments"]) print("Function Name:", function_name) print("Function Arguments:", function_args)