Skip to main content
A multi-turn agent flow that trains a model to navigate procedurally-generated FrozenLake puzzles via the AgentFlow protocol. This is the cookbook to copy if your agent drives a Gym-style environment.

Pattern

Architecture

The cookbook is fully self-contained — there’s no dependency on rllm.environments. The map is regenerated deterministically from (seed, size, p) every time the flow runs, so the dataset stores only those parameters.

Install

Dataset

Procedurally generated — no download. Run once:
Registers frozenlake/{train, test} with DatasetRegistry.

Eval

Training

Or via the CLI with default knobs:

Key code

The flow body is straightforward — drive env.step with whatever the model emits in triple-backticks:

Files

On GitHub

cookbooks/frozenlake

Full source, README, and runnable launch scripts