For the life of me I can't remember the title, author, or most of the details (like the protagonists' names) but when I was much younger I read part of a really trashy science fiction novel.
The plot centered around a space station where the all-male crew has altered the robots to have sex with them. A new guy forces one of the robots to have sex while it's performing routine station maintenance, which the robots have apparently not been programmed to do. The robot, now malfunctioning from having been knocked around, then kills the crew.
Enter a sexy space detective/lawyer and her alien lover to help riddle out the question: is the robot guilty or is the now-dead crewman?
In summary it sounds pretty complex and interesting, dealing with ethical questions of artificial intelligence and responsibility. As I recall, though, what I read had a lot more emphasis on sexy space detective lawyer and her alien lover getting it on than philosophical wrangling.