I am trying to build an App of type "Agent" in Vertex AI Agent Builder programmatically (through APIs) by the following the samples in Vertex AI Agent Builder documentation (https://cloud.google.com/generative-ai-app-builder/docs/samples/genappbuilder-create-engine?hl=en)
I changed the SOLUTION_TYPE to SOLUTION_TYPE_GENERATIVE_CHAT, but used the rest of the sample pretty much as it is.
engine = discoveryengine.Engine(
display_name="Test Auto Engine",
# Options: GENERIC, MEDIA, HEALTHCARE_FHIR
industry_vertical=discoveryengine.IndustryVertical.GENERIC,
# Options: SOLUTION_TYPE_RECOMMENDATION, SOLUTION_TYPE_SEARCH, SOLUTION_TYPE_CHAT, SOLUTION_TYPE_GENERATIVE_CHAT
solution_type=discoveryengine.SolutionType.SOLUTION_TYPE_GENERATIVE_CHAT,
# For search apps only
search_engine_config=discoveryengine.Engine.SearchEngineConfig(
# Options: SEARCH_TIER_STANDARD, SEARCH_TIER_ENTERPRISE
search_tier=discoveryengine.SearchTier.SEARCH_TIER_STANDARD,
# Options: SEARCH_ADD_ON_LLM, SEARCH_ADD_ON_UNSPECIFIED
search_add_ons=[discoveryengine.SearchAddOn.SEARCH_ADD_ON_LLM],
),
# For generic recommendation apps only
# similar_documents_config=discoveryengine.Engine.SimilarDocumentsEngineConfig,
data_store_ids=data_store_ids,
)
I don't get any errors from the APIs, and I am able to see the Agent listed on the Vertex AI Agent Builder UI.
But, when I click on it, the DialogFlow CX interface opens up and the Agent is not listed.
I also tried directly accessing the Agent Console and DialogFlow CX consoles for the Agent(by using the URLs for a UI created agent as example and changing agent id), but, both of them gave Agent does not exist error.
Any suggestions on how I can create an Agent through the APIs?
Hi @Ramesh_Akidev,
Welcome to Google Cloud Community!
It seems that the agent in your project you're trying to access doesn't exist or that you don't have the necessary permissions to view it. With this, make sure that the account you're using to access the agent has the correct permission mentioned here. This may also happen if you have multiple accounts that are logged in in the same browser.
If the issue persists, I suggest contacting Google Cloud Support for further investigation and confirm if this issue is project-specific only.
Hope this helps.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |