An LLM that can act is an agent. The mechanism behind every agent framework is the same primitive — tool use. Here is how it works.