VertexAISearchTool is not accessible #3118
Replies: 5 comments 1 reply
-
|
I have initialized Apparently, after creating a new search app in the AI Applications Console and linking it to the data store used by Is there a need to have the data store connected to any search app for it to be used in When the LLM response says that tool is not working, I do not see any errors/failures in the ADK debug logs. Is this expected behaviour? What can be checked further to find the issue? |
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Your analysis is correct. The Hello! Thanks for your detailed question. Your understanding is spot on. The problem you're encountering with Let's break down your agent hierarchy:
Because Your implementation of To resolve this, you would need to restructure your hierarchy so that the agent using |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for clarification. Your explanation does not match my observation. As mentioned in my previous comment, the vertexAiSearchTool (with agent_6) is working intermittently after connecting the corresponding data store with a search app. In my initial attempts, the vertexAiSearchTool (with agent_6) was not working at all. After some debugging I have found out that the data store I had created with structured data was not indexed implicitly after creation. On connecting the data store to a search app, the documents are indexed. After that, the vertexAISearchTool (with agent_6) is working intermittently. To me it appears to be some issue around using a data store with structured data. PS. |
Beta Was this translation helpful? Give feedback.
-
|
I am encountering the same issue using ADK v1.19. I am running a sequential agent that triggers a parallel step. This parallel step calls two different LLM agents, each using a VertexAiSearchTool connected to a specific datastore. Current implementation graph TD
%% Entry Point
User([User Query]) --> Root[root_agent<br>SequentialAgent]
%% Main Flow
subgraph "Sequential Execution"
Root --> Parallel[parallel_search<br>ParallelAgent]
Parallel --> Synthesis[synthesis_agent<br>LlmAgent]
end
%% Parallel Execution Details
subgraph "Parallel Execution"
Parallel --> InternalAgent[internal_search_agent<br>LlmAgent]
Parallel --> ElearningAgent[elearning_search_agent<br>LlmAgent]
end
%% Tools and Datastores
subgraph "Tools & Data Sources"
InternalAgent --> |Uses| Tool1[VertexAiSearchTool<br>Internal Datastore]
ElearningAgent --> |Uses| Tool2[VertexAiSearchTool<br>E-learning Datastore]
end
%% Data Flow / Context Sharing
InternalAgent -.-> |Output: internal_search_results| Synthesis
ElearningAgent -.-> |Output: elearning_search_results| Synthesis
%% Final Output
Synthesis --> Final([Final Response])
When these search agents are called in parallel, it appears that only one Vertex AI Datastore is reachable/accessed. The other one fails to retrieve data. I am unable to use the standard DiscoveryEngine tool because my datastores are located in EU endpoints. Has anyone found a workaround or a fix for this parallel execution issue? |
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: You are running into the "built-in tools cannot be used within a sub-agent" limitation. However, there's a specific workaround for Hello! You've correctly identified the core limitation that "Built-in tools cannot be used within a sub-agent". In your hierarchy, Fortunately, the ADK provides a specific exception for To fix this, you should modify the definition of agent_6 = Agent(
tools = [VertexAiSearchTool()],
bypass_multi_tools_limit=True
)By adding |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created the following agent hierarchy using ADK 1.13.0.
The code snippets of agents definition are as follows:
The
VertexAiSearchToolunder agent_6 is not working. The agent_6 replies that tool is not found or not accessible.I am familiar with the limitation that "Built-in tools cannot be used within a sub-agent". In the agent hierarchy I have created, is the VertexAiSearchTool under agent_6 not working due to this limitation? I have used AgentTool for agent_6 to mitigate the limitation. But is it the case that as agent_5 is a sub-agent, any configuration under it cannot use built-in tools?
Beta Was this translation helpful? Give feedback.
All reactions