Pregunta de entrevista de Apple

How would you build an agent?