- invertedai.api.light(location: str, recurrent_states: Optional[str] = None, random_seed: Optional[int] = None) LightResponse #
location – Location name in IAI format. If recurrent_state is provided which is obtained from previous calls to light, next state is returned. Otherwise, a random state is generated which can be reproduced by setting the random_seed.
recurrent_states – Recurrent states for traffic lights, obtained from the previous call to
random_seed – Controls the stochastic aspects of agent behavior for reproducibility.