The game
It starts the player, decides when that player may act, returns the state, and runs the tool.
On the framework
A game that grants turns. Each player is a tool session. The platform waits, reads the state, and invokes one tool.
It starts the player, decides when that player may act, returns the state, and runs the tool.
It chooses the action with the model. It retries a failed tool once, then reports the turn finished.