← All AI news
GoogleDesign & tech

Google publishes a practical example of training an agent across multiple turns

A Tunix and Gemma 4 tutorial shows how an agent can learn from tool results in a small, measurable environment.

THE UPDATE

What changed

Google’s tutorial trains a Gemma 4 E2B agent with Tunix on a Cloud TPU. The agent plays a grid-based game by calling a tool, reading the result and choosing another move. The article includes code for the environment, tool parser, conversation agent and training loop.

One useful next step

Read the example and sketch a bounded task for your own agent. Specify the allowed tool, observations, stopping condition and held-out cases before considering any model training.

Define the tool, feedback and finish condition ↗

Before you dive in

This is a developer tutorial requiring training infrastructure. Its game results do not establish performance on business workflows, and a stronger prompt or existing model may be sufficient for your task.

GO TO THE ORIGINAL

Source & announcement date

Google ·

Google: Multi-Turn Agentic Reinforcement Learning with Tunix and Gemma 4 ↗ (opens in a new tab)

This brief summarizes the linked announcement. “The AI Superpower take” and the next step are our editorial interpretation, not claims from the source.

KEEP YOUR CURIOSITY GOING

A few more worth knowing.

All AI news ↗