Skip to content

EnvType

EnvType

Abstract class for environment types.

__init__(algo, algo_param, prompt)

Initializes the environment.

Parameters:

Name Type Description Default
algo Algo

The algorithm to use for training.

required
algo_param dict

The parameters for the algorithm.

required
prompt dict | str

The prompt for the environment.

required

__repr__() abstractmethod

String representation of the environment.

Returns:

Name Type Description
str str

String representation of the environment.