A function that determines how an agent reacts or adapts based on observations from the collective system.