The Caves of Steel trilogy of books by Isaac Asimov. The second part was The Naked Sun and the third was The Robots of Dawn. This was the classic set of sci-fi gumshoe detective stories featuring Elijah Bailey and his robot partner R. Daneel Olivaw. Lots of stuff about the Three Laws of Robotics and beyond.