Completely different things with different levels of complexities. The LLM is the one doing the heavy-lifting in the case of an agent. One does not need to build an LLM from scratch, but they do with a web-browser. With the LLM, the work is already 70% done, the rest is figuring out how to create an agent and fine-tune the params.