eprllib.Agents.AgentSpec

Contents

eprllib.Agents.AgentSpec#

Defining agents#

This module implements the classes to define agents. Agents are defined by the AgentSpec class. This class contains the observation, filter, action, trigger, and reward specifications. The observation is defined by the ObservationSpec class. The filter is defined by the FilterSpec class. The action is defined by the ActionSpec class. The trigger is defined by the TriggerSpec class. The reward is defined by the RewardSpec class.

The AgentSpec class has a method called build that is used to build the AgentSpec object. This method is used to validate the properties of the object and to return the object as a dictionary. It is used internally when you build the environment to provide it to RLlib.

Classes

ActionSpec([actuators])

ActionSpec is the base class for an action specification to safe configuration of the object.

AgentSpec([observation, filter, action, ...])

AgentSpec is the base class for an agent specification to safe configuration of the object.

FilterSpec([filter_fn, filter_fn_config])

FilterSpec is the base class for a filter specification to safe configuration of the object.

ObservationSpec([variables, ...])

ObservationSpec is the base class for an observation specification to safe configuration of the object.

RewardSpec([reward_fn, reward_fn_config])

RewardSpec is the base class for an reward specification to safe configuration of the object.

TriggerSpec([trigger_fn, trigger_fn_config])

TriggerSpec is the base class for a trigger specification to safe configuration of the object.