Guidance on the use of artificial intelligence (AI) in Scotland’s schools has been published for the first time.