Building AI agents with OpenAI models