OpenAI published a paper explaining how its AI agents are trained to avoid dangerous links and prompt injection attacks.