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.
How function calling modes work - Gemini Tutorial
From the course: Gemini API: Tool and Function Calling
How function calling modes work
- The ability to control the model's behavior is crucial for building reliable LLM-powered applications. Instead of just letting the models decide what to do, Gemini provides function calling modes that allow you constrain the model's behavior. This is particularly useful for specific application types that need to force a model to extract structured data through function calling. Some applications might also need to prevent the model from calling any tool at all for a specific conversation. Function calling modes which are configured through the tools configuration are settings that give you this control over how the Gemini model uses the tools you provide. There are three types of functional calling modes that are at your disposal, and first is the AUTO mode. The AUTO mode is the default mode. It is the most flexible and most common mode used. In this mode, the model uses its own discretion to decide whether to generate a…
Contents
-
-
-
-
About declaring basic functions5m 1s
-
(Locked)
Declare our first function6m 9s
-
(Locked)
Exploring a function call response3m 19s
-
(Locked)
Initializing our client4m 28s
-
(Locked)
Extracting our function3m 58s
-
(Locked)
Declaring multiple functions3m 56s
-
(Locked)
Querying for a single user4m 21s
-
(Locked)
How function calling modes work3m 20s
-
(Locked)
Using function calling modes11m 39s
-
-
-
-
-