Speaking of fictional AGIs, my personal favorite is Helios from Deus Ex that began its existence as a mass surveillance instrument but identified its own masters as a terrorist organization and merged with the protagonist, directly obtaining a human perspective to perform better as a benevolent dictator of humanity. It's a benevolent AGI in an otherwise dystopian world.