Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Gemini API: Tool and Function Calling

Gemini API: Tool and Function Calling

2h 26mIntermediate2025-11-20

Authors

Fikayo Adepoju

Fikayo Adepoju

Technical Writer | Software Developer

Course details

Leverage the function calling feature in Gemini API to build integrations between AI models and their environments—turning simple chatbots into powerful agentic assistants. Instructor Fikayo Adepoju begins by discussing what function calling is all about: the benefits, use cases, and its relationship and semblance with tool calling. He then dives deep into the art of defining functions for models to suggest and generate arguments for, and then explores different modes that give you more control over how the function calling operation goes. From there, he shows how to define, generate, and invoke functions. Fikayo wraps up by covering how to use grounding with Google Search to ensure accurate responses, as well as best practices for implementing function calling. Tune in and start taking advantage of function calling in your Gemini API applications.

Learning objectives
Describe the use and importance of function calling on the Gemini API.
Demonstrate how to configure function calling in model requests.
Declare a pool of functions that are available for the model to suggest.
Discuss how to work with single-turn and multiturn function calling strategies.
Use tools to search the web.
Dynamically decide when to ground the model responses with web search.

Concepts

Introduction

  • Function calling with the Gemini API

Understanding Function Calling

  • Function calling in action
  • How function calling works
  • Setting up your project
  • Your first function call

Defining Functions

  • About declaring basic functions
  • Declare our first function
  • Exploring a function call response
  • Initializing our client
  • Extracting our function
  • Declaring multiple functions
  • Querying for a single user
  • How function calling modes work
  • Using function calling modes

Calling Functions

  • Single-turn function call
  • Implementing a single-turn function call flow
  • Multi-turn function call
  • Exploring a transaction processing agent
  • Automatic function calling
  • Single-turn calls with automatic function calling
  • Parallel function calling
  • Calling multiple functions in parallel
  • Compositional function calling
  • Creating sequential workflows

Using Tools

  • Introducing grounding with Google Search
  • Making a grounded request
  • Code execution tool
  • Running code in tool calls
  • URL context tool
  • Comparing information from multiple URLs

Best Practices

  • Best practices for declaring functions
  • Prompting best practices
  • API invocation best practices
  • Grounding best practices

Conclusion

  • Next steps

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal