How to Use OpenAI Function Calling: A Complete Guide with Examples
What Is Function Calling? Function calling (also called tool use) allows LLMs to request the execution of functions you define, rather than just returning text. Instead of answering “the weather in London is 18°C” from training knowledge, the model can call a get_weather function with the argument {“location”: “London”}, receive the actual current data, and … Read more