Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: The AttributeError: module 'google.cloud.aiplatform' has no attribute 'Agent' error is likely because you should be using from google.adk.agents import Agent to define your agent, not aip.Agent.


Hi @this-dave,

I reviewed your issue and the ADK documentation. The problem seems to be in how you are trying to access the Agent class. Here's a breakdown and a suggested solution:

The Agent Class in ADK

Based on the ADK documentation, the Agent class for defining agents is part of the google.adk.agents module, not google.cloud.aiplatform. The google.cloud.aiplatform library is used for interacting with Vertex AI se…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by boyangsvl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
2 participants