Skip to content

Add genmedia-for-commerce agent#1438

Merged
eliasecchig merged 1 commit intogoogle:mainfrom
lspataroG:sync-genmedia-20260407-165915
Apr 12, 2026
Merged

Add genmedia-for-commerce agent#1438
eliasecchig merged 1 commit intogoogle:mainfrom
lspataroG:sync-genmedia-20260407-165915

Conversation

@lspataroG
Copy link
Copy Markdown
Contributor

@lspataroG lspataroG commented Apr 7, 2026

Summary

  • Adds the genmedia-for-commerce agent to python/agents/genmedia-for-commerce/
  • AI-powered commerce media generation agent built with Google ADK, providing virtual try-on (clothes & glasses), product spinning videos, background changing, and product enrichment via MCP server + orchestrator architecture
  • Runs on Gemini Enterprise — deploy the agent to Vertex AI Agent Engine and register it with Gemini Enterprise
  • Binary assets (catalogue, model weights, images) are auto-downloaded from GCS at startup — not included in this PR

What's included

  • ADK agent with Gemini-powered orchestration (genmedia4commerce/)
  • MCP server exposing media generation workflows as tools
  • FastAPI backend with chat API and streaming support
  • Deployment configs: Dockerfile, Terraform (Cloud Run, Artifact Registry, Cloud Build)
  • Evaluation framework with evalsets
  • Unit and integration tests

What's excluded

  • Binary assets (images, model weights, catalogue data) — downloaded automatically from GCS via config.py
  • Frontend app (served as static build from backend)

Infrastructure Setup

Before running the agent, GCP infrastructure must be provisioned:

make setup-infra

This creates Artifact Registry repo, Cloud Run service, and IAM bindings via Terraform.

Test plan

See the README for full setup and testing instructions:

  • make install — install dependencies
  • make dev — run backend + frontend locally
  • make playground — ADK agent interactive testing
  • make test — run unit + integration tests
  • make eval — run agent evaluation
  • make deploy-cloudrun — deploy full app to Cloud Run
  • make deploy-agent-engine — deploy agent to Vertex AI Agent Engine
  • make register-gemini-enterprise — register with Gemini Enterprise

@lspataroG lspataroG force-pushed the sync-genmedia-20260407-165915 branch from 9ce6fbd to bb93dbd Compare April 7, 2026 17:01
@eliasecchig
Copy link
Copy Markdown
Collaborator

Will review this!

@lspataroG lspataroG force-pushed the sync-genmedia-20260407-165915 branch 6 times, most recently from d835a1e to 432365d Compare April 10, 2026 10:52
Copy link
Copy Markdown
Collaborator

@eliasecchig eliasecchig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lspataroG lspataroG force-pushed the sync-genmedia-20260407-165915 branch from f1eeecd to 4512ef6 Compare April 12, 2026 16:11
Full-stack AI agent for commerce media generation deployed to
Vertex AI Agent Engine. Provides virtual try-on (image & video),
360° product spinning, background changing, product fitting, and
catalogue search via MCP tools.

Stack: ADK agent, MCP server, FastAPI backend, React frontend,
Terraform infra, tests, and evaluation.
@lspataroG lspataroG force-pushed the sync-genmedia-20260407-165915 branch from 4512ef6 to 0af650a Compare April 12, 2026 16:17
@eliasecchig eliasecchig merged commit eab6740 into google:main Apr 12, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants