AI agents are autonomous systems combining three core components: a reasoning engine (powered by LLM), tools for external actions, and…