Mastering OpenAI Function Calling: A Deep Dive