LLM Powered Autonomous Agents
- Source
- lilianweng.github.io
- Publisher
- Lilian Weng
- Author
- Lilian Weng
- Date

Context
An AI agent can use the result of one action to decide what to do next. In a 2023 survey, Lilian Weng explains how a can work inside a loop that plans steps, calls tools and receives observations. A search result or a program's output becomes information for the next decision.
Memory supplies earlier information that would otherwise fall outside the model's immediate . These components let a system attempt tasks spanning multiple actions, but each handoff introduces possible failure: a plan can become unsuitable, a tool request can be malformed, or relevant history can be missed. The survey describes an architecture for attempting autonomous work, with reliability still dependent on the whole loop.
- Planning is two separate moves, not one. The agent decomposes a large task into manageable subgoals up front, and separately reflects on finished actions, criticizing its own mistakes and refining the next steps.
- maps onto the model itself. Short-term memory is just in-context learning, whatever you fit in the prompt. Long-term memory is an external vector store the agent writes to and retrieves from, so it can hold effectively unlimited history.
- Tool use exists because the weights are frozen after and hard to change. Calling external APIs is how an agent reaches anything the weights lack: current information, code execution, and proprietary data sources.
- Large language model — A model trained on large amounts of data to process and generate language.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
- Agent memory — Information an agent can persist and retrieve beyond the immediate context.
- pretraining — The first, biggest phase of building a model: training it on enormous amounts of text so it learns language, facts, and reasoning in general.
“The potentiality of LLM extends beyond generating well-written copies, stories, essays and programs; it can be framed as a powerful general problem solver.”
“In a LLM-powered autonomous agent system, LLM functions as the agent’s brain, complemented by several key components:”






