Google Gemini Function Calling 🚀 EASILY Integrate your OWN Function!

preview_player
Показать описание
🌟 Welcome to an Exciting Journey with Gemini Large Language Model & Python!
In today's video, we delve into the fascinating world of function calling in the Gemini large language model. 🧠 I'll guide you step-by-step on integrating this cutting-edge technology into your Python applications. 🐍

🔍 What We Cover:
Introduction to Function Calling in Gemini
Setting up the Gemini API with Vertex AI
Writing a get_stock_price Function with Yahoo Finance
Implementing Function Calls in Gemini
Running the Code & Seeing Real-Time Results

🔔 Stay Updated!
Don't miss out on our future content about Artificial Intelligence. Subscribe and hit the bell icon for regular updates! 📺

💡 Takeaways:
Learn how to seamlessly integrate real-time functions, like fetching stock prices, into your Gemini AI applications, enhancing their capabilities and making them more interactive and responsive.

What if you could use function calling in Gemini, the large language model? In this video, we'll show you how to integrate function calling into your Python application. By following these step-by-step instructions, you'll be able to create your own application that retrieves real-time stock prices using the Y Finance library. Watch the video to learn how to integrate your own functions into Gemini and get the stock price of Apple in real-time!

👍 Like, Share, and Subscribe!
If you find this video helpful, please like, share, and subscribe for more content on Artificial Intelligence and Python programming.

Timestamps:
0:00 Introduction to Function Calling in Gemini
0:20 Step-by-Step Integration Guide
0:39 Using Gemini API with Vertex AI
0:51 Running the Python Code
1:09 Integrating Real-Time Stock Price Function
2:00 Defining and Using the get_stock_price Function
3:08 Processing Function Calls in Gemini
4:17 Handling Non-Function Calls
5:00 Final Code Run and Results
5:30 Closing Thoughts and Future Content Preview

#GeminiFunctionCalling #Tutorial #Vertex #GeminiAPI #Tutorial #Python #GeminiAPITutorial #GeminiAPIExamples #GeminiAPIUsage #GeminiAPIGuide #GeminiAPIDemo #GeminiAPIWalkthrough #GeminiAPIImplementation #GeminiAPIIntegration #GeminiIntegration #StepByStepTutorial #PythonIntegration #Gemini #GoogleGemini #GoogleGeminiAI #AI #GoogleAI #GeminiAI #WhatIsGoogleGemini #IntroducingGoogleGemini #GoogleGeminiUltra #GoogleGeminiHandsOn #HowToUseGoogleGemini #GoogleDeepMind #GenerativeAI #Google
Рекомендации по теме
Комментарии
Автор

So, for each function in the dictionary that is called (can be all matching, not just one), a new API request is being sent, or in total one... But how can I calculate the input and output tokens for an action like this? For ages (so we talk about AI, so for about one year), I work on some kind of a „live mixture of experts“ through function calling (before this through true/false prompting), but it is so overwhelming because of the complexity. Any ideas?

MeinDeutschkurs
Автор

Thanks for the video! the process of calling the function and sending back the result to the model is automatically in Open AI Assistants right? I don't like the way Gemini API manages that. Ideally, the model should decide what function(s) to call, ask for parameters if they are not defined in the conversation yet call the function inject the response, and use it to do the right response to the user

yoeldelanoval
Автор

I would like to ask a question that is slightly different from the topic of the video.

I am currently registering several images as knowledge in gpts and creating new images by referring to existing images.

In this case, many images cannot be created due to the limit on the number of chats in gpt.

To solve this, I tried to use the API, but the assistants API did not have its own built-in image creation model.

I would appreciate it if you could give me an opinion from an AI expert on how to solve this problem.

Even if I connect dalle3 to the assistants api tool, will it have the same function as gpts?

xeexoht
Автор

Can you show how to use gemini api with autogen?

igormedeiros
Автор

does this function calling API work with typescript

oyinlolaolasunkanmi
Автор

Thanks for the sharing and I'm inspired by your work. I was wondering if you guys have encountered a response blocked after function calling.

marklin
Автор

In order to use vertexai you must provide project id, credentials etc. How and where do you do it?

toromanow
Автор

it is taking required arguments from itself...but it should ask for it

uliukbu
Автор

How can I call a function in gemini in python without vertex?

toromanow
Автор

would be fun to se some content regarding making agents that can do sql queries to retrieve data

motivational
Автор

Great content, please also share the code.

zahraalebouye