An LLM is a machine learning model focused on processing and generating language. An AI agent, which may use LLMs, is a broader system that automates tasks, makes decisions, and interacts with external tools and environments.