Menu

Command Palette

Search for a command to run...

Sleep

Represents a command for an agent to sleep.

Overview

The SLEEP command allows an agent to sleep and recharge energy. For recharging to occur, the agent must be on a charging grid when the command is sent. Each time the agent sleeps, it gains 5 energy.

Example:

self._agent.send(SLEEP())