Logo
Functions

mapBaseToolToGeminiLiveFunctionDeclaration

mapBaseToolToGeminiLiveFunctionDeclaration(tool): FunctionDeclaration

Defined in: packages/providers/google/src/utils.ts:196

Maps a BaseTool to a Gemini Live Function Declaration format Used for converting LlamaIndex tools to be compatible with Gemini's live API function calling

Parameters

tool

BaseTool

The BaseTool to convert

Returns

FunctionDeclaration

A LiveFunctionDeclaration object that can be used with Gemini's live API

On this page