Skip to content
David Satomi
Go back

How an LLM Becomes an Agent

Edit page

An LLM can generate a response. An agent can pursue a goal.

Follow one restaurant request as it gains history, tools, and control over what happens next.

From one response to goal-directed actionThe same request gains context, then the ability to act and react.
Evolution from a single LLM call to a tool-using agent A continuous three-stage diagram. First, application code sends a restaurant request to an LLM and returns its response. Second, a conversation stores prior messages and sends them again with a follow-up. Third, an agent runtime lets the LLM choose restaurant search, availability, and booking tools, while requiring human approval before booking.GENERATEOne LLM callOne input produces one output. Code owns the path.APPLICATIONYouPromptbuilderLLMResponserequestprompttokensrendered answerNo history survives unless the application stores it.+message historyREMEMBER WITH CONTEXTConversationEach turn is still a call. Earlier messages travel with it.APPLICATIONYouYou: quiet ItalianLLM: try AlbaYou: closer, < €30LLMAppend replyfollow-upall messagesnext replyshow replystoreThe user decides when the next turn begins.+tools and a decision loopACT AND REACTTool-using agentThe model selects actions. The runtime executes and returns evidence.AGENT RUNTIMEstate · limits · permissionsYoubooking goalContextgoal + historyLLMchoose next actionTool runnervalidate + executeYour approvalrequired to bookgoalcontexttool + argumentsobservationbooking requestask before actionLIVE ENVIRONMENTRestaurant search8 matching placesAvailability19:00 availableBook tablechanges the world123The model chooses. The runtime remains responsible.

The important boundary

The defining question is not how many times an LLM is called. It is who chooses what happens next.

Does application code choose the next step, or does the model?

More delegated choice brings flexibility. It also requires stronger limits, validation, and human oversight.

Workflows sit beside this evolution. They connect model calls and ordinary code through a path designed in advance. We will explore them separately.

Use the least agency that solves the problem.


Edit page