So far, we've thought of LLMs as text-in, text-out machines.
You ask a question, the model writes an answer.
With RAG, the model can be given relevant documents first.
But in both cases, the LLM is fundamentally passive: it generates a response and stops.
That's enormously useful — but it leaves a lot on the table.
Consider what you'd actually want for a task like:
"Find the cheapest direct flight from Portland to Tokyo next month, book it, and add it to my calendar."
A plain LLM can't do this.
It doesn't have access to flight booking systems, your calendar, or any real-world ability to act.
Even with RAG, it could find information about flights, but it can't book one.
To do this, we need an LLM that can:
- Decide what to do. Looking up flights requires searching; booking requires submitting a form; calendaring requires writing to your calendar.
- Use tools to take those actions. The LLM needs hooks into the flight search API, the booking system, and your calendar.
- Iterate. Maybe the first search returns no direct flights, so it tries different dates. Maybe the booking requires credit card details, so it asks you for them.
- Plan and react. Real tasks rarely go exactly as expected. The system needs to adjust as it goes.
A system that does these things is an agent.
💡 The shift from "chatbot" to "agent" is one of the most significant developments in applied AI since 2024. Major AI companies, startups, and enterprise IT teams are all building agentic systems for tasks ranging from customer support to software engineering to scientific research.