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

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