From the course: Gemini API: Tool and Function Calling
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Your first function call - Gemini Tutorial
From the course: Gemini API: Tool and Function Calling
Your first function call
- [Instructor] In this video, you'll be writing your very first function calling implementation, autodeletion and holding. As you understand the concepts more and more along your journey through this course, you'll become more confident in writing the entire implementation all by yourself. In this function calling example, we'll be writing a function that generates a random password. You know, the typical ones with the symbols and numbers mixed in. Users will be able to request the model to generate strong passwords of certain length and properties, and the model will do that using our function. Sounds cool, right? Let's jump in. First, let's create our script file. Going to call it your_first_function_call.py Now that we have our file, the first thing we'll do is to import our dependencies. So first, I'm going to say from Google import gen AI, which is our generative AI SDK. Then we'll also say from Google.genAI…