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.
Compositional function calling - Gemini Tutorial
From the course: Gemini API: Tool and Function Calling
Compositional function calling
- [Instructor] Compositional function calling is a sophisticated form of multi-turn function calling that allows the model to intelligently chain together multiple function calls to solve a single complex request. Unlike parallel function calling where independent functions are executed at the same time, compositional calls are executed in a sequential dependent manner. The output of one function serves as the input for the next function. Let's say for example, a user sends the prompt, "Find the latitude and longitude of London, and then tell me the weather condition at those coordinates." The model receives this prompt, and based on its understanding of the available tools, it breaks down the request into a logical sequence. get_coordinates then use the coordinates to get the weather. So it first generates a FunctionCall to a tool that gets the coordinates using the location parameter, London. Your application gets…
Contents
-
-
-
-
-
Single-turn function call2m 21s
-
(Locked)
Implementing a single-turn function call flow8m 48s
-
(Locked)
Multi-turn function call2m 27s
-
(Locked)
Exploring a transaction processing agent4m 55s
-
(Locked)
Automatic function calling3m 17s
-
(Locked)
Single-turn calls with automatic function calling5m 46s
-
(Locked)
Parallel function calling2m 17s
-
(Locked)
Calling multiple functions in parallel5m 44s
-
(Locked)
Compositional function calling2m 21s
-
(Locked)
Creating sequential workflows5m 22s
-
-
-
-