In the modern era, are there people who were secret agents before they started to play politics and get elected as the primary executive power holder such, as but not limited to, the position of president/prime minister? Or is Mr. Putin the only ex-secret agent ever do so in modern history?
By modern era I mean starting from 1800 until today.
By real secret agents I mean someone like Mr. Putin. He was a real secret agent because he joined the KGB and was on a mission as a KGB agent.
People who just got assigned head of the intelligence department without serving as a spy prior to this don't count.
As for diplomats, I'm sure plenty if not all of diplomats do spy on the country they are assigned to, at least to a certain degree. If he was known to be a secret agent disguised as a diplomat then he can be counted.