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?
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |