OpenAI Function Calling | LLM Tools Essentials

Code with Irtiza · Intermediate ·🧠 Large Language Models ·6mo ago

Key Takeaways

This video teaches the essentials of OpenAI function calling using LLM tools

Original Description

📍 Get notes and diagrams: https://irtizahafiz.com/newsletter?utm_source=yt ▶️ Get the code: https://github.com/irtiza07/public_api/tree/main/projects/openai-simple-tool-function-calling In this video, we explore how to leverage function calling with the OpenAI API, enabling your code to interact seamlessly with OpenAI by executing local functions and returning results. 0:00 Introduction to Function Calling with OpenAI API 0:41 Demo: Weather Query Example 1:40 Understanding Function Calls with OpenAI 2:32 Diagram Explanation: Server and OpenAI Interaction 3:33 Passing Function Schemas to OpenAI 4:38 How the Model Decides to Call a Function 6:01 Executing and Returning Function Results 7:02 API Call and Response Handling 8:02 Demo: High Priority Tasks Query 9:02 Grounding Model Parameters with Function Schema 10:41 Example: Travel and Family Tasks Queries 11:41 Recap of Diagram and System Workflow 12:14 Code Walkthrough: Initial API Call and Function Schema 13:34 Handling Function Call Responses in Code 14:35 Conclusion and Additional Resources
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

Chapters (15)

Introduction to Function Calling with OpenAI API
0:41 Demo: Weather Query Example
1:40 Understanding Function Calls with OpenAI
2:32 Diagram Explanation: Server and OpenAI Interaction
3:33 Passing Function Schemas to OpenAI
4:38 How the Model Decides to Call a Function
6:01 Executing and Returning Function Results
7:02 API Call and Response Handling
8:02 Demo: High Priority Tasks Query
9:02 Grounding Model Parameters with Function Schema
10:41 Example: Travel and Family Tasks Queries
11:41 Recap of Diagram and System Workflow
12:14 Code Walkthrough: Initial API Call and Function Schema
13:34 Handling Function Call Responses in Code
14:35 Conclusion and Additional Resources
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →