Gym Anything
Framework

Core Overview

What the core library does and when you use it.

The core is the part of Gym Anything you use to load an environment, start it, take actions, and close it.

What You Use

Most code starts with one of these:

  • from_config(...)
  • make(...)

They give you a GymAnythingEnv.

What A Run Looks Like

from gym_anything import from_config

env = from_config(
    "benchmarks/cua_world/environments/moodle_env",
    task_id="enroll_student",
)

obs = env.reset(seed=42)
obs, reward, done, info = env.step([])
env.close()

What The Core Handles

The core library handles the basic run flow for you:

  • loading the environment
  • starting it
  • taking actions
  • capturing observations
  • saving run artifacts
  • closing the run cleanly

When This Section Matters

Read the Core section when you want to use Gym Anything from Python, understand what GymAnythingEnv does, or build your own loop.

On this page