In the modern era, are there people who were a secret agent 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 who ever do so in the 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 KGB and then placed on a mission as a KGB agent.
People who just got assigned head of the intelligence department without serving as a spy prior to it doesn't count
As for diplomats, I'm sure plenty if not all of diplomats do spy 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.