BasicAgent needs to implement #===.