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.

Parallel function calling

Parallel function calling

- [Instructor] In this video, we'll be looking at another Gemini function calling API feature, known as Parallel Function Calling. Parallel Function Calling allows the Gemini model to return multiple function calling objects in a single response. This is a significant advancement over sequential calls as it allows your application to execute several independent functions simultaneously. It is used when the model identifies that a user's request can be fulfilled by multiple independent tools at once. So instead of returning just one function call object and waiting for its result before suggesting the next function, the model bundles all the next function calls into one single response. Your application can then call all these functions at once. Let's assume a user types in the prompt, "What's the weather like in New York and Tokyo and what is the time in London?" All three parts of this query can be undo independently.…

Contents