I am surprised as well, as it only takes a few hundred lines of code to implement them. [1]
Agents are an abstraction that creates well defined roles for an LLM or LLMs to act within.
It's like object oriented programming for prompts.