Agents¶
Agents module.
- class project_name.agents.Agent(env)¶
Bases:
object
Agent that selects actions.
- Parameters:
env (TypedEnvironment) – The environment to use.
- abstractmethod get_action(observation)¶
Get an action from the agent.
- Parameters:
observation (dict[str, Any]) – The observation from the environment.
- Returns:
The action to execute.
- Return type:
list[int]
- class project_name.agents.RandomAgent(env)¶
Bases:
Agent
Agent that selects random actions.
- Parameters:
env (
TypedEnvironment
) – TypedEnvironmentuse. (The environment to)
- get_action(observation)¶
Get an action from the agent.
- Parameters:
observation (dict[str, Any]) – The observation from the environment.
- Returns:
The action to execute.
- Return type:
list[int]