Class Tool.Builder
- Enclosing class:
- Tool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Toolbuild()abstract Tool.BuildercodeExecution(ToolCodeExecution codeExecution) Setter for codeExecution.codeExecution(ToolCodeExecution.Builder codeExecutionBuilder) Setter for codeExecution builder.abstract Tool.BuildercomputerUse(ToolComputerUse computerUse) Setter for computerUse.computerUse(ToolComputerUse.Builder computerUseBuilder) Setter for computerUse builder.abstract Tool.BuilderenterpriseWebSearch(EnterpriseWebSearch enterpriseWebSearch) Setter for enterpriseWebSearch.enterpriseWebSearch(EnterpriseWebSearch.Builder enterpriseWebSearchBuilder) Setter for enterpriseWebSearch builder.functionDeclarations(FunctionDeclaration... functionDeclarations) Setter for functionDeclarations.functionDeclarations(FunctionDeclaration.Builder... functionDeclarationsBuilders) Setter for functionDeclarations builder.abstract Tool.BuilderfunctionDeclarations(List<FunctionDeclaration> functionDeclarations) Setter for functionDeclarations.Setter for functions.abstract Tool.BuilderSetter for functions.abstract Tool.BuildergoogleMaps(GoogleMaps googleMaps) Setter for googleMaps.googleMaps(GoogleMaps.Builder googleMapsBuilder) Setter for googleMaps builder.abstract Tool.BuildergoogleSearch(GoogleSearch googleSearch) Setter for googleSearch.googleSearch(GoogleSearch.Builder googleSearchBuilder) Setter for googleSearch builder.abstract Tool.BuildergoogleSearchRetrieval(GoogleSearchRetrieval googleSearchRetrieval) Setter for googleSearchRetrieval.googleSearchRetrieval(GoogleSearchRetrieval.Builder googleSearchRetrievalBuilder) Setter for googleSearchRetrieval builder.abstract Tool.BuilderSetter for retrieval.retrieval(Retrieval.Builder retrievalBuilder) Setter for retrieval builder.abstract Tool.BuilderurlContext(UrlContext urlContext) Setter for urlContext.urlContext(UrlContext.Builder urlContextBuilder) Setter for urlContext builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionDeclarations
Setter for functionDeclarations.functionDeclarations: List of function declarations that the tool supports.
-
functionDeclarations
Setter for functionDeclarations.functionDeclarations: List of function declarations that the tool supports.
-
functionDeclarations
public Tool.Builder functionDeclarations(FunctionDeclaration.Builder... functionDeclarationsBuilders) Setter for functionDeclarations builder.functionDeclarations: List of function declarations that the tool supports.
-
retrieval
Setter for retrieval.retrieval: Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
-
retrieval
Setter for retrieval builder.retrieval: Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation.
-
googleSearch
Setter for googleSearch.googleSearch: Optional. Google Search tool type. Specialized retrieval tool that is powered by Google Search.
-
googleSearch
Setter for googleSearch builder.googleSearch: Optional. Google Search tool type. Specialized retrieval tool that is powered by Google Search.
-
googleSearchRetrieval
Setter for googleSearchRetrieval.googleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
-
googleSearchRetrieval
public Tool.Builder googleSearchRetrieval(GoogleSearchRetrieval.Builder googleSearchRetrievalBuilder) Setter for googleSearchRetrieval builder.googleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search.
-
enterpriseWebSearch
Setter for enterpriseWebSearch.enterpriseWebSearch: Optional. Enterprise web search tool type. Specialized retrieval tool that is powered by Vertex AI Search and Sec4 compliance.
-
enterpriseWebSearch
Setter for enterpriseWebSearch builder.enterpriseWebSearch: Optional. Enterprise web search tool type. Specialized retrieval tool that is powered by Vertex AI Search and Sec4 compliance.
-
googleMaps
Setter for googleMaps.googleMaps: Optional. Google Maps tool type. Specialized retrieval tool that is powered by Google Maps.
-
googleMaps
Setter for googleMaps builder.googleMaps: Optional. Google Maps tool type. Specialized retrieval tool that is powered by Google Maps.
-
urlContext
Setter for urlContext.urlContext: Optional. Tool to support URL context retrieval.
-
urlContext
Setter for urlContext builder.urlContext: Optional. Tool to support URL context retrieval.
-
functions
Setter for functions.functions: The java.lang.reflect.Method instance. If provided, it will to be parsed into a list of FunctionDeclaration instances, and be assigned to the functionDeclarations field.
-
functions
Setter for functions.functions: The java.lang.reflect.Method instance. If provided, it will to be parsed into a list of FunctionDeclaration instances, and be assigned to the functionDeclarations field.
-
computerUse
Setter for computerUse.computerUse: Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
-
computerUse
Setter for computerUse builder.computerUse: Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
-
codeExecution
Setter for codeExecution.codeExecution: Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
-
codeExecution
Setter for codeExecution builder.codeExecution: Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
-
build
-