Skip to content

Gemini on Agent Platform vs Agent Runtime demo (Go) - #19

Draft
pollenjp wants to merge 1 commit into
mainfrom
claude/gemini-agent-differences-SqS7N
Draft

Gemini on Agent Platform vs Agent Runtime demo (Go)#19
pollenjp wants to merge 1 commit into
mainfrom
claude/gemini-agent-differences-SqS7N

Conversation

@pollenjp

Copy link
Copy Markdown
Member

Summary

Adds gemini-platform-vs-runtime-2026-05-14/ with two minimal Go clients and a mock server illustrating the difference between the two surfaces of the rebranded Gemini Enterprise Agent Platform (April 22, 2026 Cloud Next '26 rebrand of Vertex AI):

  • Gemini on Agent Platform — stateless model API (POST /v1/models/{model}:generateContent). Client owns history, memory, tool execution. Shown both correctly (with client-side history) and incorrectly (without) to make the statelessness obvious.
  • Agent Runtime (formerly Agent Engine) — managed runtime hosting an ADK agent. Client creates a session and sends one message per turn; the server keeps history, runs tools, and persists Memory Bank state.

Both clients target the same toy task (track running expense totals across 3 turns) so the diff is purely the architectural surface, not the task. A mockserver binary fakes both endpoints deterministically so the demo runs offline with no API key.

Layout

gemini-platform-vs-runtime-2026-05-14/
├── cmd/{mockserver,platform,runtime}/main.go
├── internal/api/api.go    # shared JSON shapes
└── README.md              # Japanese walkthrough + sources

Test plan

  • go build ./... clean
  • go vet ./... clean
  • go run ./cmd/mockserver + go run ./cmd/platform — running totals work with history, break without
  • go run ./cmd/runtime — session-based, server keeps state, no history sent by client

https://claude.ai/code/session_01CaNtg3DE1pcUwHLF7HErZX


Generated by Claude Code

Two minimal Go clients that hit a local mock server to show the difference
between the stateless model surface ("Gemini on Agent Platform",
:generateContent) and the managed runtime ("Agent Runtime", formerly Agent
Engine, renamed in the April 2026 Gemini Enterprise Agent Platform
rebrand) where the server owns the session, memory and tool execution.

https://claude.ai/code/session_01CaNtg3DE1pcUwHLF7HErZX
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