entity_gym.runner

Classes

  • CliRunner: Interactively run any entity gym environment in a CLI.

  • Agent: Interface for an agent that receives observations and outputs actions.

class entity_gym.runner.CliRunner(env: entity_gym.env.environment.Environment, agent: Optional[entity_gym.runner.Agent] = None)

Interactively run any entity gym environment in a CLI.

Example:

>>> from entity_gym.runner import CliRunner
>>> from entity_gym.examples import TreasureHunt
>>> CliRunner(TreasureHunt()).run()

Inheritance

Inheritance diagram of CliRunner
class entity_gym.runner.Agent

Interface for an agent that receives observations and outputs actions.

Inheritance

Inheritance diagram of Agent