Target architecture
Work in progress, phase 0 of 4. Not yet run against Gemini.
Phase 0 runs the agent against an offline stub model. The Gemini and Google Cloud boxes below are configured or planned, never called.
flowchart LR
user["Bank employee"]
subgraph p0["Phase 0: built now, runs offline"]
root["ADK root agent"]
stub["Stub model<br/>quotes the best passage"]
files[("data/<br/>4 fictional documents")]
end
subgraph later["Phases 1 to 3: planned"]
kc["Keycloak<br/>bank OIDC provider"]
orch["LangGraph orchestrator<br/>phase 3"]
agents["ADK agents<br/>one per domain, phase 1"]
mcp["MCP server<br/>per-user document access"]
store[("Bank document store")]
audit["Audit trail and guardrails<br/>phase 2"]
end
subgraph eu["EU boundary: Google Cloud eu multi-region"]
gemini["gemini-3.8-flash<br/>configured, not called"]
runtime["Agent Runtime and Sessions<br/>europe-west1 instead if CMEK is required"]
end
paris["europe-west9, Paris<br/>no current Gemini model or agent service<br/>phase 2 finding"]
user --> root
root --> stub
root --> files
user -. "sign in, phase 1" .-> kc
kc -. "ID token" .-> orch
orch -. "A2A, phase 3" .-> agents
agents -. "user's token" .-> mcp
mcp -.-> store
agents -.-> audit
agents -. "phase 2" .-> gemini
agents -. "phase 2" .-> runtime
root -. "phase 2" .-> gemini
classDef planned stroke-dasharray: 5 5
classDef gap stroke-dasharray: 2 4,opacity:0.7
class kc,orch,agents,mcp,store,audit,gemini,runtime planned
class paris gap
Solid boxes and arrows are what phase 0 builds and runs on a laptop with no network; dashed ones are planned for the phase on their label, and the Paris box marks where the original brief wanted everything to run.
The parts
| Part | Phase | What it does here |
|---|---|---|
| ADK root agent | 0 | Answers staff questions from the documents in data/. Built with google-adk 2.15.0 (F1). |
| Stub model | 0 | Implements ADK's model interface. It calls the document search tool, then quotes the best-matching passage and its sources instead of writing an answer, so tests need no credentials and cost nothing. Sample output on Run it locally. Listed in What is simulated. |
Gemini on the eu endpoint |
Configured in 0, not called before 2 | gemini-3.8-flash with GOOGLE_CLOUD_LOCATION=eu and GOOGLE_GENAI_USE_ENTERPRISE=true (F2). The SDK sends eu to aiplatform.eu.rep.googleapis.com by itself. |
| Keycloak | 1 | Stands in for the bank's identity provider. Staff sign in once; the agents act with that user's rights. The choice between Keycloak and Google Cloud identity services is ADR 0002. |
| MCP server | 1 | Sits in front of the document store and returns only what the signed-in user may read, following the bank's internal access policy. The alternative, Gemini Enterprise's own connectors, is ADR 0003. |
| ADK agents | 1 | One agent per domain (payments, compliance, HR) with routing from the root agent. |
| Audit trail and guardrails | 2 | Logs every question and answer for the 90 days the bank's retention policy sets, and checks inputs and outputs against policy. |
| LangGraph orchestrator | 3 | Rebuilds the routing layer in LangGraph and calls the ADK agents over A2A, to show ADK agents working under an orchestrator the bank may already run. See ADR 0001. |
| Agent Runtime and Sessions | 2 | Hosting and conversation state on Google Cloud, on the eu multi-region or a single EU region. |
Where it runs, and why not Paris
The brief asked for europe-west9. Four findings rule that out for the parts that matter most, as of 22 November 2026:
- No current Gemini model has a
europe-west9endpoint. Every current GA model is served on theeumulti-region, which keeps ML processing inside EU member states (F3). The SDK acceptslocation="europe-west9"and builds the URL without complaint, so the mistake only shows up on the first call. - The only Gemini model that processed data inside France,
gemini-2.5-flash, retired on 20 October 2026 (F4). - Agent Runtime, Sessions, Memory Bank, Sandboxes and Agent Gateway aren't offered in
europe-west9(F5). - Agent Runtime can't use customer-managed encryption keys on the
eumulti-region (F6). A bank that wants its own keys runs the agent in a single EU region such aseurope-west1and calls the model oneu.
So the target keeps the model on eu and puts Agent Runtime and Sessions either on eu or in europe-west1, depending on whether Banque Ardoise's compliance team ranks the EU processing boundary or its own encryption keys higher. Phase 2 records that choice in ADR 0004, together with anything that can run in Paris, such as the document store.
Official sources: Gemini Enterprise Agent Platform locations, data residency, agent service locations.