{"slug": "cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse", "title": "Cloud Run and Gemini Enterprise Agent Platform are a powerhouse", "summary": "Google Cloud's Cloud Run and Gemini Enterprise Agent Platform together form a powerful hybrid architecture for deploying LLM agents, according to a developer's account. The setup uses Cloud Run for business logic and MCP servers, while the Agent Platform handles orchestration and inference, enabling model swaps without redeployment. The developer reports deployment from idea to live endpoint in under an hour, with cost savings from serverless scaling and security via Identity-Aware Proxy.", "body_md": "# Cloud Run and Gemini Enterprise Agent Platform are a powerhouse\n\n[Gemini](/en/tags/gemini/)Enterprise Agent Platform for the heavy lifting of orchestration and inference.\n\nThe beauty of this hybrid architecture is the separation of concerns. We treat Cloud Run as the \"brains\" of our business logic—it's where our front-end lives and where we host our Model Context Protocol ([MCP](/en/tags/mcp/)) servers. Meanwhile, the Agent Platform acts as the runtime that handles intent analysis and memory. If we need to swap from a Flash model to a Pro model, we can do it in the platform settings without redeploying a single line of code in our application layer.\n\nFor anyone looking for a practical tutorial on getting this live, here is the workflow we used to get our first agent deployed.\n\n## Setting up the Agent Logic\n\nWe used the Agent Development Kit (ADK) to define the agent's behavior. One thing that tripped us up early on was the docstrings. In this setup, docstrings aren't just for other developers—they are actually functional instructions for the LLM. If your docstring is vague, the agent won't know when to trigger the tool.\n\n``` python\n# agent.py\nfrom google.adk.agents import Agent\n\ndef call_internal_business_system(query: str) -> str:\n \"\"\"Invokes secure business workflows deployed on Cloud Run.\"\"\"\n # Logic to securely call your Cloud Run service URL\n return \"Data retrieved from secure internal backend.\"\n\n# Define an agent that targets a current Gemini model\nroot_agent = Agent(\n name=\"enterprise_inference_agent\",\n model=\"gemini-3.5-flash\", \n tools=[call_internal_business_system]\n)\n```\n\n## Deployment and Scaling\n\nOnce the agent is defined, the deployment to Cloud Run is straightforward. Since Cloud Run is serverless, it scales to zero when we aren't using it, which saved our department a significant chunk of the budget during off-hours.\n\n1. Package the application into a container.\n\n2. Use the `gcloud run deploy`\n\ncommand to push the image to the registry.\n\n3. Connect the service to the Agent Runtime via the GCP console.\n\n## Real-world Performance Takeaways\n\nAfter running this in production for a few months, here is how the performance breaks down:\n\n**Deployment Speed:** We went from \"idea\" to \"live endpoint\" in under an hour because we weren't configuring Kubernetes pods.**Security:** By putting Identity-Aware Proxy (IAP) in front of Cloud Run, we ensured that only authenticated employees could hit the AI endpoints.**Latency:** Using the Flash models for simple routing and the Pro models for complex reasoning kept our response times snappy.\n\nIf you're building a professional AI workflow, don't overcomplicate the stack. Pairing a serverless compute layer with a managed inference platform is the fastest way to get a real-world LLM agent into the hands of your users.\n\n[Next Why is my n8n dashboard showing a green \"Active\" dot while my →](/en/threads/5952/)", "url": "https://wpnews.pro/news/cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse", "canonical_source": "https://promptcube3.com/en/threads/6058/", "published_at": "2026-08-12 16:59:05+00:00", "updated_at": "2026-08-12 17:23:08.874528+00:00", "lang": "en", "topics": ["ai-infrastructure", "ai-agents", "ai-products", "developer-tools"], "entities": ["Google Cloud", "Cloud Run", "Gemini Enterprise Agent Platform", "Gemini", "Agent Development Kit", "Model Context Protocol", "Identity-Aware Proxy"], "alternates": {"html": "https://wpnews.pro/news/cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse", "markdown": "https://wpnews.pro/news/cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse.md", "text": "https://wpnews.pro/news/cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse.txt", "jsonld": "https://wpnews.pro/news/cloud-run-and-gemini-enterprise-agent-platform-are-a-powerhouse.jsonld"}}