Skip to content

Blue Agents

There aren't any specialist blue agents in CC4 - they are for you to make!

However there are some basic agent that can be useful:

Constant Agent

Bases: BaseAgent

A base agent which will repeatedly do the same action.

Attributes:

Name Type Description
action Action

the action that the agent will repeatedly do

Functions

end_episode

end_episode()

Allows an agent to update its internal state

get_action

get_action(observation, action_space)

gets an action from the agent that should be performed based on the agent's internal state and provided observation and action space

train

train(results: Results)

allows an agent to learn a policy

Sleep Agent

Bases: ConstantAgent

A constant agent whose fixed action is Sleep.