should be given in this type {"type": "function", "function": {"name": "my_function"}} getting error