What makes an AI an agent?