4.1 · Lesson

What is an Agent

An agent is an application built around a large language modelA model trained on text to predict the next token, and so to generate language. (LLM) that can use tools. When you ask it a question, it:

  1. Reads the question
  2. Chooses a tool that could help
  3. Calls the tool and reads the result
  4. Decides whether it has enough. If not, it calls another tool
  5. Answers