Preliminary legislation aims to protect humans from potential risks associated with AI technology.