As humanity has not yet developed any AGI (Artificial General Intelligence), it is impossible to say for sure if they would indeed become hostile. This is in fact a key consideration in the development of AGI, ensuring the safety of humans and humanity as a whole. As Nick Bostrom and others have stated, there is probably only one opportunity to develop AGI correctly--if the first AGI is developed badly, the consequences could be disastrous.

Hostile AGIs are a common scenario in movies and other fiction. This is largely for dramatic purposes, but there are also positive portrayals of AGI in fiction, such as the movies "Her" and "Bicentennial Man." Such portrayals may be less exciting than hostile machines seeking to dominate or destroy humanity, but that does not make them any less likely in reality.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence