Martin Fowler
Building AI Agents that interact with the external world.
One of the key applications of LLMs is to enable programs (agents) that can interpret user intent, reason about it, and take relevant actions accordingly.
Function calling is a capability that enables LLMs to go beyond simple text generation by interacting with external tools and real-world applications. With function calling, an LLM can analyze a natural language input, extract the user’s intent, and generate a structured output containing the function name and the necessary arguments to invoke that function.
It’s important to emphasize that when using function calling, the LLM itself does not execute the function. Instead, it identifies the appropriate function, gathers all required parameters, and provides the information in a structured JSON format. This JSON output can then be easily deserialized into a function call in Python (or any other programming language) and executed within the program’s runtime environment.
To read the full article click on the 'post' link at the top.