An AI Agent, if autonomous, is a while loop that calls LLMs with some input and reacts to those scenarios by calling LLMs again with the processed output from the previous calls.