This article shines like gold, it’s quite comprehensive and explains exactly what agents are. The code is precisely 100 lines of code which is surprising to me, was that intentional, or was that a good given luck.
LLM decides for you
The tools are rule-based or just procedural steps to execute
Agents are like graphs, node,s and edges, one pointing to different directions after taking action or deciding what to do next.