functionDeclarations

public abstract Tool.Builder functionDeclarations(List<FunctionDeclaration> functionDeclarations)
@CanIgnoreReturnValue()
public Tool.Builder functionDeclarations(Array<FunctionDeclaration> functionDeclarations)

Setter for functionDeclarations.

functionDeclarations: Optional. Function tool type. 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 512 function declarations can be provided.


@CanIgnoreReturnValue()
public Tool.Builder functionDeclarations(Array<FunctionDeclaration.Builder> functionDeclarationsBuilders)

Setter for functionDeclarations builder.

functionDeclarations: Optional. Function tool type. 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 512 function declarations can be provided.