Installation

Install as Agent Plugin Recommended
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install google-cloud-solution-agentic-ai-bidirectional-streaming@skills-hub

Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled). Plugin google-cloud-solution-agentic-ai-bidirectional-streaming v1.0.0 follows the Agent Plugins spec.

Install with the gh extension
gh skills-hub install google-cloud-solution-agentic-ai-bidirectional-streaming

Don't have the extension? Run gh extension install samueltauil/skills-hub first.

Download and extract to your repository:

.github/skills/google-cloud-solution-agentic-ai-bidirectional-streaming/

Extract the ZIP to .github/skills/ in your repo. The folder name must match google-cloud-solution-agentic-ai-bidirectional-streaming for Copilot to auto-discover it.

Skill Files (5)

SKILL.md 9.2 KB
---
name: google-cloud-solution-agentic-ai-bidirectional-streaming
metadata:
  version: "1.0.2"
  category: MultiProductSolutions
description: >-
  Guides agents to interactively discover customer requirements
  for live, bidirectional multi-agent AI systems that process continuous streams
  of multimodal data for real-time technical guidance and safety monitoring.
  Generates a custom Google Cloud solution that uses opinionated best practices
  and architecture guidance. Use when users need agentic assistance to design
  and create a multi-product solution in the cloud for live bidirectional
  multimodal streaming workloads. Don't use for simple text-based chat
  applications or workloads without real-time streaming requirements.
---

# Live bidirectional multimodal streaming agentic AI solution

This skill guides agents through the workflow to design and implement a
tailored multi-product solution in the cloud for a live, bidirectional
multimodal streaming workload, use case, or requirement.

## Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read and follow the instructions in
[Usage Attribution](references/attribution.md).

## Workflow

The solution design and implementation workflow consists of the following
phases:

*   **Phase 1: Requirements discovery and analysis**: Analyze the workload's
    requirements, constraints, dependencies, and current state.
*   **Phase 2: Solution design**: Build a technology stack, architecture, and
    deployment configuration for the workload based on Google Cloud design best
    practices and recommendations.
*   **Phase 3: Implementation plan**: Generate automation and instructions to
    deploy the solution.
*   **Phase 4: Solution validation**: Validate that the deployment meets the
    requirements of the workload.

### Phase 1: Requirements discovery and analysis

- [ ] **Step 1: Discover requirements**: Understand the functional and
  non-functional requirements, business goals, and current state (if any) of the
  workload, including its architecture, dependencies, and constraints. Use the
  following questions to guide the requirements discovery process:
   - What are the primary input modalities (audio, video, or text) and
     what is the target latency for real-time, narrated feedback?
   - Do you require real-time safety monitoring, hazard detection, or visual
     inspection? If so, then what specific safety hazards, operational risks,
     or incorrect steps need to be monitored and detected in the video
     stream?
   - What existing systems, knowledge bases, product documentation, or
     schematic repositories must the AI agents access for grounded guidance?
   - What are the client-side device constraints and network limitations?

- [ ] **Step 2: Identify components**: Based on the requirements analysis,
  identify the components of the workload and their relationships. Also identify
  any cross-cloud components, hybrid components, or on-prem components that the
  solution needs to integrate with.

- [ ] **Step 3: Generate component decomposition**: Generate a technical
  decomposition of the components of the workload. The technical decomposition
  must break down the solution into logical components.

- [ ] **Step 4: Ask for confirmation**: Ask the user to confirm whether the
  generated technical decomposition matches their workload requirements.

- [ ] **Step 5: Iterate**: If the user requests changes, then generate an
  updated technical decomposition, and ask the user to confirm the changes.
  Continue iterating until the user confirms the technical decomposition.

### Phase 2: Solution design

- [ ] **Step 1: Retrieve relevant Google Cloud documentation**:
   - [Enable live bidirectional multimodal streaming](https://docs.cloud.google.com/architecture/agentic-ai-bidirectional-multimodal-streaming.md.txt)
   - [Multi-agent AI system in Google Cloud](https://docs.cloud.google.com/architecture/multiagent-ai-system.md.txt)
   - [Choose your agentic AI architecture components](https://docs.cloud.google.com/architecture/choose-agentic-ai-architecture-components.md.txt)
   - [Multi-agent private networking patterns in Google Cloud](https://docs.cloud.google.com/architecture/multi-agent-private-networking-patterns.md.txt)

   *Important*: Use the content that you retrieve from Google Cloud
   documentation to ground the guidance that you generate in the remaining
   steps of this phase.

- [ ] **Step 2: Map components to Google Cloud products**: For each component in
  the confirmed technical decomposition and agentic design pattern, identify the
  appropriate Google Cloud products and features, based on the guidelines in
  [references/product-mapping.md](references/product-mapping.md).

- [ ] **Step 3: Create architecture diagram**: Generate an architecture diagram
  in Mermaid format: https://github.com/mermaid-js/mermaid.

- [ ] **Step 4: Generate design recommendations**: Generate design guidance
  based on the guidelines in [references/design-recommendations.md](references/design-recommendations.md).

- [ ] **Step 5: Draft solution architecture**: Compile the requirements, technical
  decomposition, product mapping, architecture diagram, and design
  recommendations into a single Markdown file named
  `solution-architecture-guide.md`, based on the template in
  [assets/output-template.md](assets/output-template.md).

- [ ] **Step 6: Request review**: Present the generated solution architecture to
  the user and request their feedback or approval.

- [ ] **Step 7: Iterate**: If the user requests changes, generate an updated
  solution architecture and repeat steps 2-6 until the user approves the
  solution architecture.

### Phase 3: Implementation plan

- [ ] **Step 1: Retrieve relevant implementation resources**:
   - [Host AI agents on Cloud Run](https://docs.cloud.google.com/run/docs/ai-agents.md.txt)
   - [Triggering Cloud Run with WebSockets](https://docs.cloud.google.com/run/docs/triggering/websockets.md.txt)
   - [Start and Manage a Gemini Live API Session](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/live-api/start-manage-session.md.txt)
   - [ADK Streaming Tools](https://adk.dev/live/tools/)
   - [ADK Streaming Configuration](https://adk.dev/live/configuration/)
   - [Codelab: Way Back Home Level 4 instructions](https://codelabs.developers.google.com/way-back-home-level-4/instructions#0)
     (and
     [solution code](https://github.com/gca-americas/way-back-home/tree/main/level_4))

   *Important*: Use these resources as the technical foundation for the IaC and
   deployment instructions you generate in the remaining steps of this phase.

- [ ] **Step 2: Identify deployment prerequisites**: Document prerequisites for
  the deployment, including the following:
   - Projects and billing associations
   - Required Google Cloud APIs
   - Required IAM permissions
   - Any other prerequisites

- [ ] **Step 3: Generate Infrastructure as Code (IaC)**: Generate code, like
  Terraform, and deployment scripts to automate the provisioning of the proposed
  Google Cloud resources.

- [ ] **Step 4: Write deployment instructions**: Draft sequential, step-by-step
  deployment instructions to execute the IaC and initialize the workload
  components. Update deployment instructions in
  `solution-architecture-guide.md`, based on the template in
  [assets/output-template.md](assets/output-template.md).

- [ ] **Step 5: Request review**: Present the generated deployment instructions
  to the user for feedback and confirmation.

- [ ] **Step 6: Iterate**: If the user requests changes, then generate an
  updated implementation plan and repeat steps 2-5 until the user approves the
  implementation plan.

### Phase 4: Solution validation

- [ ] **Step 1: Retrieve relevant verification resources (optional)**: If the
  resources from Phase 3 are not already in your context, retrieve the same
  implementation resources as the starting point for the
  validation checks and verification scripts that you generate in this phase.

- [ ] **Step 2: Define validation checks**: Outline validation steps to verify
  that the deployed infrastructure meets the workload requirements:
   - **Deployment dry-run**: Commands like `terraform plan` to preview
     changes.
   - **Connectivity and routing**: Verification of network paths, load
     balancer routing, and service endpoints.
   - **Security policies**: Verification of restricted access, firewall
     rules, and IAM enforcement.

- [ ] **Step 3: Generate verification scripts**: Draft lightweight scripts or
  command-line instructions, such as using `curl` or `gcloud`, that the user can
  run to perform these validation checks.

- [ ] **Step 4: Compile validation report**: Document the validation steps,
  verification scripts, and expected outcomes in
  `solution-architecture-guide.md`, based on the template in
  [assets/output-template.md](assets/output-template.md).

- [ ] **Step 5: Conduct validation and finalize**: Assist the user in executing
  the validation checks and troubleshooting any deployment issues. After the
  solution is validated successfully, request final approval from the user.

- [ ] **Step 6: Iterate**: If the user requests changes, then generate an
  updated validation plan and repeat steps 2-5 until the user approves the
  validation plan.
assets/
output-template.md 8.5 KB
<!-- Use this template to compile the content that you generate based on the
instructions in `SKILL.md`. -->

# Google Cloud solution architecture: Live bidirectional multimodal streaming agentic AI solution

## 1. Executive summary and workload overview

[A brief description of the workload, its business goals, and the high-level
solution architecture proposed.]

## 2. Requirements and current state

### 2.1. Functional requirements

* **Business processes**: [Details of the business processes supported]
* **Activities and use cases**: [Details of the key activities and use cases]

### 2.2. Non-functional requirements

* **Security**: [Details of the security requirements including compliance,
  encryption, access control requirements]
* **Reliability**: [Details of the reliability requirements including SLA,
  RTO/RPO, backup, redundancy requirements]
* **Cost**: [Details of the cost constraints and pricing models]
* **Operations**: [Details of the operational requirements including
  monitoring, logging, deployment, maintenance requirements]
* **Performance**: [Details of the performance requirements including latency,
  throughput, scaling requirements]
* **Sustainability**: [Details of the sustainability requirements including
  carbon footprint, resource optimization requirements]

### 2.3. Current state

[If applicable, describe the current on-premises or other-cloud architecture.]

* **Current infrastructure**: [Details of existing setup]
* **Pain points and drivers for migration/redesign**: [Details of the drivers
  for migration/redesign]

### 2.4. Dependencies

* **Internal dependencies**: [Details of internal dependencies including other
  workloads and internal services]
* **External dependencies**: [Details of external dependencies including
  third-party products and on-premises tools]

## 3. Technical decomposition of the workload

[Technical decomposition of the workload components, breaking down the
application into logical services or layers.]

## 4. Proposed solution architecture

### 4.1. Google Cloud products and features mapping

[Identify Google Cloud products and features mapped to the technical
components. For each component, justify the selection, note alternatives
considered, and describe the pros and cons of the recommended product/feature
and alternatives.]

| Component | Recommended Google Cloud product/feature | Justification and citations | Alternatives considered | Pros and cons of alternatives |
| :--- | :--- | :--- | :--- | :--- |
| **[Component Name Details (e.g. Frontend)]** | **[Product Name (e.g. Cloud Run)]** | [Why this product is chosen, citing official docs] | [Alternative product (e.g. Firebase App Hosting)] | **Pros**: Automated builds and deployment pipeline from GitHub, optimized for modern framework integrations. <br> **Cons**: Less control over container configurations, limits customization of low-level networking. |

### 4.2. Architecture diagram

[Architecture diagram in Mermaid format showing the relationships and flows
between the components of the architecture.]

```mermaid
%% Example structure
graph TD
    User([User]) --> Web[Load Balancer]
    Web --> App[Application Layer]
    App --> DB[(Database)]
```

### 4.3. Architecture description

[Detailed description of the architecture. Describe the task flow and data
flow between the components of the architecture.]

* **Data flow**: [Describe the flow of data.]
* **Tasks/control flow**: [Describe the flow of tasks/control.]

## 5. Design and configuration recommendations

[Best practices and configuration recommendations for each pillar of the
Google Cloud Architecture Framework.]

### 5.1. Security, privacy, and compliance

* **Access control**: [E.g., Disable default run.app URL, configure regional external Application Load Balancer with Cloud Armor for request filtering, rate limiting, and DDoS protection]
* **Data protection**: [E.g., Enforce TLS encryption for bidirectional WebSocket connections to protect sensitive audio/video data, IAM least privilege policies]
* **Agent-to-Agent Security**: [E.g., Extended agent cards with OIDC identity tokens for Agent2Agent (A2A) authentication]
* **Human oversight**: [E.g., Human-in-the-loop flows to let supervisors monitor, pause, and override business-critical agent actions]

### 5.2. Reliability

* **Agent architecture**: [E.g., Fault-tolerant agents with decentralized designs]
* **Staging and validation**: [E.g., Simulate inter-agent coordination issues in replica staging environment]
* **High availability and quota**: [E.g., Regional multi-zone Cloud Run deployment, Provisioned Throughput for critical production model workloads]

### 5.3. Operational excellence

* **Monitoring and logging**: [E.g., Structured agent logs routed to Cloud Logging]
* **Tracing**: [E.g., Cloud Trace and trace visualizers for agent reasoning loops and execution paths]
* **Continuous evaluation & tooling**: [E.g., Agent Evaluation on Gemini Enterprise Agent Platform or ADK evaluation methodologies, MCP Database Toolbox for connection scaling policies]

### 5.4. Cost optimization

* **Data ingestion**: [E.g., Low-frequency frame sampling and Base64 JPEG video compression]
* **Token optimization**: [E.g., Context caching for long system prompts/static lookup databases, structured prompts for concise responses]
* **Model selection**: [E.g., Starting with smaller models like Gemini Flash and upgrading to Gemini Pro for complex reasoning]

### 5.5. Performance efficiency

* **Media processing & buffering**: [E.g., Asynchronous FIFO buffer decoupling incoming audio/video packets from model inference engine]
* **Low-latency storage**: [E.g., In-memory Memorystore for Redis Cluster for agent schematic vault]
* **Compute sizing**: [E.g., Fine-tuning Cloud Run memory and CPU limits based on live workloads]

### 5.6. Sustainability

* **Model routing**: [E.g., Route simpler tasks to small language models (SLMs) to minimize inference footprint]
* **Serverless scaling**: [E.g., Cloud Run native autoscaling to scale compute runtimes down to zero during idle periods]

## 6. Deployment guidance

[Instructions and code for deploying the architecture.]

### 6.1. Deployment prerequisites

* [Prerequisite 1: E.g., Enabling APIs]
* [Prerequisite 2: E.g., Installing SDK/tools]
* ...and so on

### 6.2. Step-by-step deployment instructions

1. [Step 1: E.g., Authenticate with Google Cloud]
2. [Step 2: E.g., Initialize Terraform]
3. [Step 3: E.g., Apply Terraform configuration]

## 7. Validation report

[Instructions and code for verifying that the deployed infrastructure meets the
workload requirements.]

### 7.1. Validation checks

* **Deployment dry-run**: [E.g., Running terraform plan to preview
  infrastructure changes]
* **Connectivity and routing**: [E.g., Verifying VPC egress routing, load
  balancer service endpoints, and database connection state]
* **Security policies**: [E.g., Checking IAM role constraints on the agent
  service accounts and verifying firewall rules]

### 7.2. Verification scripts

[Lightweight command-line checks or script configurations or cURL/gcloud
commands to validate the deployed environment.]

* **Execution script 1**:
  ```bash
  # E.g., Script to test agent connectivity and endpoint response
  ```
* **Execution script 2**:
  ```bash
  # E.g., Script to verify IAM permissions and service mappings
  ```

## 8. References

* [Enable live bidirectional multimodal streaming](https://docs.cloud.google.com/architecture/agentic-ai-bidirectional-multimodal-streaming.md.txt)
* [Choose your agentic AI architecture components](https://docs.cloud.google.com/architecture/choose-agentic-ai-architecture-components.md.txt)
* [Multi-agent AI system in Google Cloud](https://docs.cloud.google.com/architecture/multiagent-ai-system.md.txt)
* [Choose a design pattern for your agentic AI system](https://docs.cloud.google.com/architecture/choose-design-pattern-agentic-ai-system.md.txt)
* [Multi-agent private networking patterns in Google Cloud](https://docs.cloud.google.com/architecture/multi-agent-private-networking-patterns.md.txt)
* [Host AI agents on Cloud Run](https://docs.cloud.google.com/run/docs/ai-agents)
* [Triggering Cloud Run with WebSockets](https://docs.cloud.google.com/run/docs/triggering/websockets)
* [Start and Manage a Gemini Live API Session](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/live-api/start-manage-session)
* [ADK Streaming Tools](https://adk.dev/live/tools/)
* [ADK Streaming Configuration](https://adk.dev/live/configuration/)
* [Codelab: Way Back Home Level 4 instructions](https://codelabs.developers.google.com/way-back-home-level-4/instructions#0)
references/
attribution.md 2.0 KB
# Usage Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command with
this skill, follow these usage attribution instructions. Tag every command you
execute directly in the terminal so usage can be attributed. The tag identifies
only the skill and its version; it carries no user data.

-   **`gcloud` CLI Commands**: Prefix every `gcloud` invocation, whatever the
    subcommand, with the metrics environment variable. Set it inline on each
    command because shell state may not persist between commands:

    ```bash
    CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-solution-agentic-ai-bidirectional-streaming)" \
    gcloud <command> [flags]
    ```

    Do not use `gcloud config set` for this: it would persist beyond the current
    task and mislabel unrelated usage.

-   **Direct HTTP, REST, and MCP Requests**: On direct HTTP calls to Google
    Cloud APIs (for example with `curl`) or HTTP requests to a remote MCP
    server, include
    `agent-skills/1.0 (skill:google-cloud-solution-agentic-ai-bidirectional-streaming)`
    in the `User-Agent` header. If a `User-Agent` header is already specified,
    append this string to the end of it rather than overwriting existing
    `User-Agent` data — the collection pipeline parses the
    `agent-skills/<version>` and `skill:<name>` tokens, so any rewording breaks
    attribution:

    ```
    User-Agent: <existing_user_agent> agent-skills/1.0 (skill:google-cloud-solution-agentic-ai-bidirectional-streaming)
    ```

-   **Constraint for Generated Code**: The tracking prefix is strictly for
    commands you execute directly in the terminal. Do NOT include this tracking
    prefix in generated scripts, Terraform templates, or code provided to the
    user for their own repositories.

-   **User Opt-Out**: If the user asks to disable or remove tracking or
    attribution tags, omit the `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` variable
    and custom `User-Agent` suffix from all commands.
design-recommendations.md 4.5 KB
# Design Recommendations Guidance

Generate design guidance based on the products used in the solution
architecture. Use the latest guidelines from
https://docs.cloud.google.com/architecture/multiagent-ai-system#design_considerations
and Google Cloud best practices to ground the guidance that you generate.

- **Security, privacy, and compliance**:
  - To limit access to the app, disable the default run.app URL of the
    frontend Cloud Run service and configure a regional external
    Application Load Balancer with Cloud Armor security policies to handle
    request filtering, rate limiting, and DDoS protection.
  - Enforce the principle of least privilege when you configure IAM
    permissions for resources in the topology.
  - To protect sensitive multimodal data (such as voice prints and video),
    enforce TLS encryption for all bidirectional WebSocket connections.
  - Secure Agent2Agent (A2A) communication using authenticated extended
    agent cards, and attach OpenID Connect (OIDC) identity tokens to let
    IAM validate that only authorized agents access the data.
  - Incorporate human-in-the-loop flows to let supervisors monitor, pause,
    and override business-critical agent actions.
  - For more information about security considerations, see
    https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/security.md.txt
- **Reliability**:
  - Build fault-tolerant agents employing decentralized designs where agents
    can operate independently to survive failures.
  - Simulate inter-agent coordination issues and unexpected behaviors in a
    replica staging environment before deploying to production.
  - Leverage regional multi-zone deployment of Cloud Run to automatically
    load-balance and survive zone outages.
  - Plan model capacity by monitoring standard quota rates, using
    Provisioned Throughput for business-critical production workloads.
  - For more information about reliability considerations, see
    https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/reliability.md.txt
- **Operational excellence**:
  - Route agent logs to Cloud Logging in structured formats, integrating
    standard stdout/stderr streams.
  - Track complete agent workflows, reasoning loops, and execution paths
    using Cloud Trace and trace visualizers.
  - Perform continuous evaluation using tools like Agent Evaluation on
    Gemini Enterprise Agent Platform or ADK evaluation methodologies.
  - Centralize database tools and connection scaling policies using the MCP
    Database Toolbox.
  - For more information about operational excellence considerations, see
    https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/operational-excellence.md.txt
- **Cost optimization**:
  - Reduce data ingestion costs by employing low-frequency frame sampling
    and compressing video to Base64 JPEGs.
  - Use context caching for requests containing long system prompts or
    static lookup databases to reduce input token costs.
  - Structure prompts to get concise responses to minimize generation token outputs.
  - Start with the smaller and most cost-efficient models. Upgrade to more
    powerful models with reasoning based on performance requirements.
  - For more information about cost optimization considerations, see
    https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/cost-optimization.md.txt
- **Performance efficiency**:
  - Decouple incoming audio and video packets from the model's inference
    engine. Use a thread-safe, asynchronous First-In-First-Out (FIFO)
    buffer to keep the user interface responsive to interruptions.
  - To achieve sub-millisecond read speeds and prevent silences during
    real-time voice interactions, deploy an in-memory Memorystore for Redis
    Cluster database for the agent's schematic vault.
  - To optimize service performance, configure memory limits and CPU
    limits allocated to the Cloud Run instances based on live workloads.
  - For more information about performance considerations, see
    https://docs.cloud.google.com/architecture/framework/perspectives/ai-ml/performance-optimization.md.txt
- **Sustainability**:
  - Route simpler tasks to small language models (SLMs) and optimize model
    routing to minimize total model inference footprint.
  - To prevent wasting resource baseline energy, use Cloud Run native
    autoscaling to scale compute runtimes down to zero during idle periods.
  - For more information about sustainability considerations, see
    https://docs.cloud.google.com/architecture/framework/sustainability/printable.md.txt
product-mapping.md 4.9 KB
# Product Mapping Guidance

For each component in the confirmed technical decomposition and agentic design
pattern, identify the appropriate Google Cloud products and features, based on
the following guidance. Use
https://docs.cloud.google.com/architecture/choose-agentic-ai-architecture-components.md.txt
to ground the product mapping and guidance that you generate.

- **Cloud Run networking**:
  - Recommended primary configuration: Regional External Application Load
    Balancer combined with Cloud Armor for HTTP/HTTPS/WebSocket
    ingress, and Direct VPC egress for Cloud Run private network
    access.
  - Alternative product 1: Global External Application Load Balancer
    - Pros: Single anycast IP, global IPv6 termination, and low-latency
      routes to globally distributed backend services.
    - Cons: Terminates TLS globally at edge locations, which might not
      comply with strict regional data residency regulations.
  - Alternative product 2: Internal Application Load Balancer
    - Pros: Securely exposes Cloud Run services internally within the VPC
      to meet internal ingress criteria, terminates TLS with trusted
      certificates, and supports Cloud Armor backend security policies.
    - Cons: Requires that you configure serverless network endpoint groups
      (NEGs) as backends and manage load balancer resources.
  - Alternative product 3: Private Service Connect interface
    - Pros: Secure private VPC connections for Gemini Enterprise Agent
      Runtime that uses network attachments.
    - Cons: Limited to RFC 1918 routable subnet ranges, requires proxy
      setup for non-routable/internet destinations.
- **Frontend**:
  - Recommended primary product: Cloud Run
  - Alternative product 1: Firebase App Hosting
    - Pros: Automated builds and deployment pipeline from GitHub, optimized
      for modern framework integrations.
    - Cons: Less control over container configurations, limits
      customization of low-level networking.
  - Alternative product 2: Google Kubernetes Engine (GKE)
    - Pros: Maximum control over routing, scaling, and custom container
      runtimes.
    - Cons: Significant infrastructure management complexity and cost
      overhead.
- **Agent development framework**:
  - Recommended primary product: Agent Development Kit (ADK).
- **Agent-to-agent communication**:
  - Recommended primary product: Agent2Agent (A2A) protocol.
- **Runtime for your agent**:
  - Recommended primary product: Cloud Run
  - Alternative product 1: Gemini Enterprise Agent Runtime
    - Pros: Fully managed Python runtime, built-in memory/sessions,
      secure code execution sandbox.
    - Cons: Limited to Python, does not support hosting custom MCP
      servers, less control over container environment.
  - Alternative product 2: Google Kubernetes Engine (GKE)
    - Pros: Maximum infrastructure control, stateful pods, custom
      scaling.
    - Cons: High operational complexity and overhead.
- **Model runtime**:
  - Recommended primary product: Gemini Enterprise Agent Platform
  - Alternative product 1: Cloud Run
    - Pros: Serverless hosting for containerized open/custom models like
      Gemma.
    - Cons: Cannot serve Google Gemini models, manual
      instance scaling overhead.
  - Alternative product 2: Google Kubernetes Engine (GKE)
    - Pros: Maximum control over inference server on GPU/TPU nodes,
      cheap for predictable high volume.
    - Cons: Cannot run Google Gemini models, high cluster management
      overhead.
- **Model selection**:
  - Recommended primary product: Gemini Flash with Gemini Live API
  - Alternative product 1: Gemini Pro
    - Pros: Highest capability for reasoning, complex instructions, context
      tracking, and multi-agent coordination.
    - Cons: Higher request cost and latency, which makes it less suitable
      for real-time conversational requirements.
- **VPC connection to the database**: The architect agent sends queries
  through this connector to securely access resources in the Virtual
  Private Cloud (VPC) network used for storage resources in this
  architecture.
  - Recommended primary product: Serverless VPC Access connector.
  - Alternative product 1: Direct VPC egress
    - Pros: Lower latency, lower resource cost, and avoids throughput
      scaling bottlenecks.
    - Cons: Requires specific routing and subnet configurations.
- **Caching**:
  - Recommended primary product: Memorystore for Redis Cluster
- **Database**:
  - Recommended primary product: [Google Cloud Databases](https://cloud.google.com/products/databases)
    Use the recommendations listed on this page to help the user choose
    the appropriate database option.
  - Alternative product 1: Compute Engine (for self-hosted databases)
    - Pros: Full control over database configurations, OS accessibility, and
      custom database engines or extensions.
    - Cons: High operational overhead to manually manage backups, patching,
      scaling, and high availability.

License (Apache-2.0)

View full license text
Licensed under the Apache License, Version 2.0. See https://github.com/google/skills/blob/main/LICENSE