September 2026
Intermediate to advanced
450 pages
7h 8m
English
As we saw in Chapter 1, the large language model powers agents to go from observations to actions. In Figure 2-1, we can see this general workflow. Here, we color code the areas where the agent interacts with the user (on the left), and where the agent interacts with the environment (on the right).
Let’s take a simple example to unroll the loop we see in the Figure. The example is a simple information seeking agent trying to answer a question for a user using a web search tool. In Figure 2-2, we can see that interaction:
The user asks the agent a question
The agent uses web search tool, effectively pulling in information from the environment ...
Read now
Unlock full access