<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Clara Martens Ávila on Medium]]></title>
        <description><![CDATA[Stories by Clara Martens Ávila on Medium]]></description>
        <link>https://medium.com/@canelaguil?source=rss-3364eb8bfd4a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tgBdw5CxBhj65BAZ.</url>
            <title>Stories by Clara Martens Ávila on Medium</title>
            <link>https://medium.com/@canelaguil?source=rss-3364eb8bfd4a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:18:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@canelaguil/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Troubleshooting your ADK -> Agent Engine (-> Agentspace) deployment, with data stores]]></title>
            <link>https://medium.com/@canelaguil/troubleshooting-your-adk-agent-engine-agentspace-deployment-with-data-stores-0237391a7351?source=rss-3364eb8bfd4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0237391a7351</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[agentspace]]></category>
            <category><![CDATA[agent-development-kit]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[reasoning-engine]]></category>
            <dc:creator><![CDATA[Clara Martens Ávila]]></dc:creator>
            <pubDate>Fri, 27 Jun 2025 13:36:12 GMT</pubDate>
            <atom:updated>2025-06-27T13:47:29.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*co4SVI8U96KfvSkOkr5Nyg.jpeg" /><figcaption>The sailing ship is a metaphor!</figcaption></figure><p>The tutorial looked super easy, but now you’re actually deploying your Agent Development Kit agent, mysterious errors are starting to appear! Same thing happened to me, here are some things you could try.</p><h3>General advice</h3><p>First of all: it’s important, for all troubleshooting, to keep in mind there are several components to the whole process. The deployment could go wrong at any link in the chain! The elements are:</p><ul><li>The ADK application code</li><li>The data stores / other services the ADK app connects to</li><li>Reasoning Engine / Agent Engine (the same now, as far as I can see, though some sources use one library or the other)</li><li>The AI models the application relies on (including the LLM model, this too is hosted in a region eg!)</li><li>[if applicable] The Agentspace instance you are deploying to</li></ul><p>Any of these could work fine together, but fall apart when introducing another element to the equation.</p><p>To find out where your deployment went wrong, I advise relying on the cloud logs more than the errors from ADK (more reliable).</p><h3>Documentation</h3><p>There are several documentation sources, each with their own approach and sometimes even different libraries. I recommend sticking to the adk-sample agents.</p><ul><li><a href="https://google.github.io/adk-docs/deploy/agent-engine/#create-your-agent">ADK documentation</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/deploy">Agent / Reasoning engine documentation</a></li><li><a href="https://github.com/google/adk-samples/tree/main/python">ADK sample agents (including deployment files)</a></li></ul><h3>General deployment troubleshooting</h3><h4><strong>Python packages</strong></h4><p>Make sure all your python packages are included in your deployment. <em>The folder of your agent is also a package</em>!! Add it under extra_packages.</p><pre>remote_app = agent_engines.create(<br>    app,<br>    requirements=[<br>        &quot;google-cloud-aiplatform[adk,agent-engines]&quot;,<br>        &quot;google-adk&quot;,<br>        &quot;python-dotenv&quot;,<br>        &quot;cloudpickle&quot;,<br>        &quot;pydantic&quot;,<br>        &quot;google-auth&quot;,<br>        &quot;tqdm&quot;,<br>        &quot;requests&quot;,<br>    ],<br>    extra_packages=[<br>        &quot;./my_agent&quot;,<br>    ],<br>)</pre><h4><strong>Vertex AI env initiation</strong></h4><p>If you faithfully follow a tutorial, you may be inclined to think the vertex AI env has to be declared in the deployment as well. This is not true! That is only necessary for the agent (and is included in the tutorials because those start by making you define an agent).</p><h4><strong>ADK version</strong></h4><p>Make sure you have the latest ADK version. A reasoning engine bug was fixed as recently as 20/6/2025.</p><h3>Deploying agents with data stores</h3><h4><strong>Region issues</strong></h4><p>Make sure ADK, the data stores, AND agent engine / reasoning engine are in the same region. Preferably global, because EU just doesn’t work very well (yet).</p><p><strong>Note: </strong>When running ADK locally having data stores in another region does not need to be an issue, but when deploying it does become one.</p><h4><strong>IAM issues (Agentspace)</strong></h4><p>It seems that in order to have agents deployed to reasoning engine access data stores, the reasoning engine service account needs the IAM roles of AI platform and discovery engine admin. Possibly less than that, but this at least works.</p><p><strong>Note: </strong>I am not sure how accurate this is, but it did solve some errors for me, so do try!</p><h4><strong>Data store names</strong></h4><p>You may think the data store ID is exactly like the url, because it sure looks like that. You are wrong! Spot the difference:</p><p><em>Correct:</em></p><pre>projects/dummyproject/locations/global/collections/default_collection/dataStores/onboarding-documents</pre><p><em>Wrong:</em></p><pre>projects/dummyproject/locations/global/collections/default_collection/data-stores/onboarding-documents</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0237391a7351" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>