JJoeven

Exercises / agents

Stop on finish or max steps

should_stop(name, steps, max_steps=3) returns success on finish, cannot: step budget when steps >= max_steps, else None. Print three calls.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.