agent_tool_incompatibilityTier 1 · 70% confidence

ai-agents-agent-tool-incompati-using-create-react-agent-with-google-s-tool-from-g-9e4eeab0

agent: ai_agents

When does this happen?

IF Using create_react_agent with Google's Tool.from_google_search_retrieval raises AttributeError: 'Tool' object has no attribute 'name'.

How others solved it

THEN Replace the deprecated create_react_agent with ChatVertexAI, which handles Google grounding tools natively and avoids the naming conflict with LangChain's BaseTool.

from langchain_google_vertexai import ChatVertexAI
llm = ChatVertexAI(model="gemini-1.5-pro")
agent = some_other_agent_constructor(llm, tools, prompt)  # Use LangChain's agent that works with ChatVertexAI instead of create_react_agent

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics