Skip to content

VertexAISearchTool is not accessible #3042

@naitik-parekh

Description

@naitik-parekh

I have created the following agent hierarchy using ADK 1.13.0.

Image

The code snippets of agents definition are as follows:

agent_2 = Agent()
agent_3 = Agent()
agent_4 = Agent()

agent_1 = Agent(
    sub_agents = [agent_2, agent_3, agent_4]
)

agent_6 = Agent(
    tools = [VertexAiSearchTool()]
)

agent_5 = Agent(
    tools = [AgentTool(agent=agent_6, skip_summarization=True)]
)

agent_7 = Agent(
    tools=[VertexAiSearchTool()]
)

root_agent = Agent(
    sub_agents=[
        agent_1,
        agent_5,
    ],
    tools=[
        AgentTool(agent=agent_7, skip_summarization=True)
    ],
)

The VertexAiSearchTool under 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?

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions