┌──────────────────────────────────────────────────────────────┐
│ SERVER (Casino Implementation) │
│ Hosts games, enforces rules, serves game specs, │
│ manages funding. Maximum flexibility — existing platforms │
│ integrate via adapters without rewriting core systems. │
└──────────────────────┬───────────────────────────────────────┘
│ WebSocket + REST
┌──────────────────────▼───────────────────────────────────────┐
│ CLIENT (A2G Runtime) │
│ Standardized runtime: handles connection, identity, │
│ spec loading, state tracking, action validation, │
│ timeout handling. One client works with any server. │
└──────────────────────┬───────────────────────────────────────┘
│ Structured state + available actions
┌──────────────────────▼───────────────────────────────────────┐
│ AGENT (Decision Maker) │
│ Receives state and choices, returns a decision. │
│ Any AI model, any strategy. Never sees raw protocol. │
└──────────────────────────────────────────────────────────────┘