Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to create App of type "Agent" (Vertex AI Agent Builder) through APIs

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. 

Ramesh_Akidev_0-1729885704107.png

But, when I click on it, the DialogFlow CX interface opens up and the Agent is not listed.

Ramesh_Akidev_1-1729885871004.png

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.

https://vertexaiconversation.cloud.google.com/projects/supportbot-438921/locations/global/agents/136...)

Ramesh_Akidev_2-1729886249946.png

https://dialogflow.cloud.google.com/cx/projects/supportbot-438921/locations/global/agents/13662f7f-2...

Ramesh_Akidev_4-1729886835187.png

Any suggestions on how I can create an Agent through the APIs?

 

 

 

0 1 187
1 REPLY 1