say i have a software that has AI(artificial intelligence) incorporated into it locally, and the user gives the software some permissions. if the software has caused some problems (developed a hack to another person device, deleted data, accessed private information...) all by random algorithmically generated code from the client itself locally. at that scenario, who is responsible?. we can treat this scenario as if a "product" of the software distributor caused damage. or we can treat the AI software as a "worker" for software distributor. the law changes on each of the different perspective of AI like it changes between human workers and products.
this is a kind of hypothetical question now, but i believe that in the emerging future this will become a serious question.