ENGAGE
Publish your agent to Gemini Enterprise — the pro-code thing you vibe-built
is now a chat anyone in the organization can use.
Two hours ago, the Agent Platform console was empty and Gemini Enterprise had no agents. Now you'll publish the agent you built, scaled, governed, and optimized — and talk to it as a non-technical ops manager would. This is the "after" picture.
Engage in 2 Steps
Publish to Gemini Enterprise
This is the payoff. One prompt takes the agent you built in M1 and deployed in M2 and attaches it to your Gemini Enterprise app — no redeploy needed (M2 already shipped it with agent identity and Gemini Enterprise compatibility) — so anyone in the organization can chat with it, no IDE, no code, no API calls.
Remember the runtime wrapper you dropped in at M2 Step 1 — we said we'd revisit it here. This is why it was required. You're publishing the existing M2 deployment — no new Reasoning Engine revision — and two things that wrapper (plus the M2 deploy flags) enabled are what make the portal work now:
- Session-id compatibility — Gemini Enterprise (AgentSpace) calls the
runtime's
streaming_agent_run_with_eventsand passessession_idas a full resource path (projects/…/sessions/<id>); ADK's session service rejects an id containing/. The wrapper you patched in M2 normalizes it to the bare id, so live portal chats don't fail withREMOTE_AGENT_FAILURE. - Agent identity — deploying with
--agent-identityin M2 gave the agent a per-user identity, so personalization (home-station recall via Memory Bank) is scoped to each business user in the portal, not shared across everyone.
Expected Result
AGY runs agents-cli publish gemini-enterprise — discovering your Gemini
Enterprise app with --list and registering the existing M2 deployment (no
redeploy). It writes registration_results.md with:
- The agent you built in M1 and deployed in M2 — already agent-identity enabled
and GE
session_id-compatible — registered into your Gemini Enterprise app ("My Gemini Google Search App") - Links to the Agent Engine console and the Gemini Enterprise console
What just happened: the agent you built, scaled, and governed is now registered in Gemini Enterprise — ready for business users. You'll test it in Step 2.
If a Gemini Enterprise chat returns REMOTE_AGENT_FAILURE or "stream closed cleanly,"
the deployed wrapper is probably missing the M2 session_id normalization (GE sends a full
resource path and ADK rejects an id containing /). Ask AGY to add the
_normalize_session_id override to app/agent_runtime_app.py (see M2 Step 1) and
redeploy once — then retry the chat.
The Unified Finish Line
Open both console pages and compare to the empty screens you saw in M0:
- Agent Engine Console — your deployed agent with endpoint, health status, and Playground
- Gemini Enterprise Console — your published agent, ready for business users to chat with
In M0, these were empty. Now they show a production agent with identity, governance, and memory.
Open "My Gemini Google Search App" in Gemini Enterprise, click "Agents" in the left navigation, then select "Transit-Crisis Agent". If you see two entries, pick the most recent one. The default chat uses Google Search, not your agent.
Now test it as a business user:
Recap the full journey — Build → Scale → Govern → Optimize → Engage — and the artifacts now living in the platform:
| Phase | What you did | Platform artifact |
|---|---|---|
| M1 · Build | Vibe-built agent + 3 tools by prompting | ADK project, reasoning trace |
| M2 · Scale | Deployed to cloud with state management | Agent Runtime, Sessions, Memory Bank, Sandbox |
| M3 · Govern | Verified registry + identity, attack-shielded with Model Armor | Agent Registry, SPIFFE Identity, Model Armor |
| M4 · Optimize | Local eval loop: graded eval with an LLM judge, flagged ungrounded sentences | Eval scores, judge-flagged sentences |
| M5 · Engage | Published for business users | Gemini Enterprise agent |
Business users can now consume what platform builders produced. The same platform spans both audiences — from ADK code to Gemini chat.
Final Checkpoint — Workshop Complete When:
- The agent deployed in M2 is published to Gemini Enterprise
- You can chat with it as a non-technical user in the Gemini Enterprise portal (no
REMOTE_AGENT_FAILURE) - The agent answers the crisis question with a concrete reroute
- Compare the "before" (empty console) to the "after" (full platform)
The Full Build → Scale → Govern → Optimize → Engage Arc
Here's everything you built in 2 hours, from empty console to a governed, optimized, published agent:
Artifacts by Module
hallucinations_v1 judge · flagged ungrounded sentencesYou traversed the entire Build → Scale → Govern → Optimize → Engage lifecycle almost entirely by prompting inside Antigravity — and at every stage you left the IDE to see the real enterprise artifact the platform created for you.