Let an LLM decide what to do next, use tools, and keep working toward a goal.
An agent is an AI system that can decide which actions to take instead of simply generating one response and stopping. In LangChain, an agent can use a language model to reason about a task, choose from available tools, call those tools, and use their results to continue working.
This makes agents useful for tasks where the next step depends on what happened in the previous step. The important part is not just connecting an LLM to tools, but designing the agent so it has clear instructions, appropriate tools, controlled execution, and predictable failure behavior.
What you'll walk away knowing