Intro to Function Calling with Gemini API | Google AI for Developers
ai.google.dev/gemini-api/docs/function-callingustom functions can be defined and provided to Gemini models using the Function
Calling feature. The models do not directly invoke these functions, but instead
generate structured data output that specifies the function name and suggested
arguments. This output lets you write applications that take the structured
output and call external APIs, and the resulting API output can then be
incorporated into a further model prompt, allowing for more comprehensive query
responses. Function calling empowers users to interact with real-time
information and various services, such as databases, customer relationship
management systems, and document repositories, enhancing their ability to
provide relevant and contextual answers.