Understanding the components of an AI agent: a five steps lifecycle