OpenAI’s new Agents API gives developers the infrastructure behind Codex and ChatGPT