Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
Optional. One or more function declarations to be passed to the model along
with the current user query. Model may decide to call a subset of these
functions by populating FunctionCall in the
response. User should provide a
FunctionResponse for each function call
in the next turn. Based on the function responses, Model will generate the
final response back to the user. Maximum 64 function declarations can be
provided.
Optional. One or more function declarations to be passed to the model along
with the current user query. Model may decide to call a subset of these
functions by populating FunctionCall in the
response. User should provide a
FunctionResponse for each function call
in the next turn. Based on the function responses, Model will generate the
final response back to the user. Maximum 64 function declarations can be
provided.
Optional. One or more function declarations to be passed to the model along
with the current user query. Model may decide to call a subset of these
functions by populating FunctionCall in the
response. User should provide a
FunctionResponse for each function call
in the next turn. Based on the function responses, Model will generate the
final response back to the user. Maximum 64 function declarations can be
provided.
Optional. One or more function declarations to be passed to the model along
with the current user query. Model may decide to call a subset of these
functions by populating FunctionCall in the
response. User should provide a
FunctionResponse for each function call
in the next turn. Based on the function responses, Model will generate the
final response back to the user. Maximum 64 function declarations can be
provided.
Optional. One or more function declarations to be passed to the model along
with the current user query. Model may decide to call a subset of these
functions by populating FunctionCall in the
response. User should provide a
FunctionResponse for each function call
in the next turn. Based on the function responses, Model will generate the
final response back to the user. Maximum 64 function declarations can be
provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface ToolOrBuilder (0.1.0)\n\n public interface ToolOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getFunctionDeclarations(int index)\n\n public abstract FunctionDeclaration getFunctionDeclarations(int index)\n\nOptional. One or more function declarations to be passed to the model along\nwith the current user query. Model may decide to call a subset of these\nfunctions by populating FunctionCall in the\nresponse. User should provide a\nFunctionResponse for each function call\nin the next turn. Based on the function responses, Model will generate the\nfinal response back to the user. Maximum 64 function declarations can be\nprovided.\n\n`\nrepeated .google.cloud.vertexai.v1beta1.FunctionDeclaration function_declarations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getFunctionDeclarationsCount()\n\n public abstract int getFunctionDeclarationsCount()\n\nOptional. One or more function declarations to be passed to the model along\nwith the current user query. Model may decide to call a subset of these\nfunctions by populating FunctionCall in the\nresponse. User should provide a\nFunctionResponse for each function call\nin the next turn. Based on the function responses, Model will generate the\nfinal response back to the user. Maximum 64 function declarations can be\nprovided.\n\n`\nrepeated .google.cloud.vertexai.v1beta1.FunctionDeclaration function_declarations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getFunctionDeclarationsList()\n\n public abstract List\u003cFunctionDeclaration\u003e getFunctionDeclarationsList()\n\nOptional. One or more function declarations to be passed to the model along\nwith the current user query. Model may decide to call a subset of these\nfunctions by populating FunctionCall in the\nresponse. User should provide a\nFunctionResponse for each function call\nin the next turn. Based on the function responses, Model will generate the\nfinal response back to the user. Maximum 64 function declarations can be\nprovided.\n\n`\nrepeated .google.cloud.vertexai.v1beta1.FunctionDeclaration function_declarations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getFunctionDeclarationsOrBuilder(int index)\n\n public abstract FunctionDeclarationOrBuilder getFunctionDeclarationsOrBuilder(int index)\n\nOptional. One or more function declarations to be passed to the model along\nwith the current user query. Model may decide to call a subset of these\nfunctions by populating FunctionCall in the\nresponse. User should provide a\nFunctionResponse for each function call\nin the next turn. Based on the function responses, Model will generate the\nfinal response back to the user. Maximum 64 function declarations can be\nprovided.\n\n`\nrepeated .google.cloud.vertexai.v1beta1.FunctionDeclaration function_declarations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getFunctionDeclarationsOrBuilderList()\n\n public abstract List\u003c? extends FunctionDeclarationOrBuilder\u003e getFunctionDeclarationsOrBuilderList()\n\nOptional. One or more function declarations to be passed to the model along\nwith the current user query. Model may decide to call a subset of these\nfunctions by populating FunctionCall in the\nresponse. User should provide a\nFunctionResponse for each function call\nin the next turn. Based on the function responses, Model will generate the\nfinal response back to the user. Maximum 64 function declarations can be\nprovided.\n\n`\nrepeated .google.cloud.vertexai.v1beta1.FunctionDeclaration function_declarations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`"]]