Function Calling & Tool Use (2023) › 2023: Function Calling and Tool Use

Michael BrenndoerferAugust 14, 20253 min read
History of Language AIAll chapters
Part 8 of 9Open Models & Alignment
Chapter 92Function Calling & Tool Use (2023) › 2023: Function Calling and Tool Use
Reading section 1 of 7 · 2023: Function Calling and Tool Use · 3 minSection 1 of 7 · 3 min

Book contents

Section 1 of 7 · 3 min read

Function Calling & Tool Use (2023) › 2023: Function Calling and Tool UseOne section · Sections in this chapter1 / 7 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Function calling gave language models a structured, reliable way to interact with external software in 2023. Prior to this development, language models were largely confined to generating text, with their interactions with the outside world limited to what could be conveyed through text prompts and responses. This limitation severely constrained the practical applications of language models, as they could not directly access databases, execute code, call APIs, or manipulate external systems. Function calling removed this constraint, allowing language models to become active agents that could reason about when and how to use tools to accomplish tasks.

OpenAI's release of function calling capabilities in June 2023, integrated into GPT-3.5-turbo and GPT-4, represented a significant advance in making language models practical for real-world applications. The innovation allowed developers to describe functions or tools to the model, and the model could intelligently choose to call these functions when appropriate. This provided structured outputs that could be executed programmatically. This development emerged at a time when the AI community was actively exploring how to build agent systems that could use tools to extend their capabilities beyond pure language generation. The work drew on earlier research in tool-augmented language models and agent frameworks, but brought these capabilities to production-ready systems with reliable structured outputs.

The broader significance of function calling extended beyond just technical capability. This development enabled the creation of AI agents that could truly interact with the world, opening up applications in areas ranging from software development and data analysis to customer service and automation. The ability to reliably extract structured information from natural language and to invoke external functions based on model reasoning represented a step toward more autonomous and capable AI systems. This development also addressed a fundamental limitation of language models: their inability to access real-time information or to perform actions in the world, beyond generating text.

The timing of this development was particularly important. Coming after the initial success of ChatGPT in late 2022, function calling addressed the next critical question for AI deployment: how to make language models truly useful in production systems. While ChatGPT had demonstrated the value of conversational AI, it remained largely a text generation tool. Function calling provided the bridge between language models and the broader ecosystem of software tools and services that power modern applications. This connection allowed practical AI applications to fit into existing workflows and systems.