Enviar aquest missatge de text: A legal theory for autonomous artificial agents