Class VertexAiSearchTool
java.lang.Object
com.google.adk.tools.BaseTool
com.google.adk.tools.VertexAiSearchTool
A built-in tool using Vertex AI Search.
This tool can be configured with either a dataStoreId (the Vertex AI search data store
resource ID) or a searchEngineId (the Vertex AI search engine resource ID).
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class BaseTool
BaseTool.ToolArgsConfig, BaseTool.ToolConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexAiSearchTool.Builderbuilder()abstract com.google.common.collect.ImmutableList<com.google.genai.types.VertexAISearchDataStoreSpec> filter()location()io.reactivex.rxjava3.core.CompletableprocessLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) Processes the outgoingLlmRequest.Builder.project()Methods inherited from class BaseTool
customMetadata, declaration, description, fromConfig, longRunning, name, runAsync, setCustomMetadata
-
Method Details
-
dataStoreId
-
dataStoreSpecs
public abstract com.google.common.collect.ImmutableList<com.google.genai.types.VertexAISearchDataStoreSpec> dataStoreSpecs() -
searchEngineId
-
filter
-
maxResults
-
project
-
location
-
dataStore
-
builder
-
processLlmRequest
public io.reactivex.rxjava3.core.Completable processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) Description copied from class:BaseToolProcesses the outgoingLlmRequest.Builder.This implementation adds the current tool's
BaseTool.declaration()to theGenerateContentConfigwithin the builder. If a tool with function declarations already exists, the current tool's declaration is merged into it. Otherwise, a new tool definition with the current tool's declaration is created. The current tool itself is also added to the builder's internal list of tools. Override this method for processing the outgoing request.- Overrides:
processLlmRequestin classBaseTool
-