Skip to main content

Agents & Tools

Introduction to Agents

0:00
LearnStep 1/4

What is an Agent?

Agents: LLMs That Take Action

An agent is an LLM that can decide which tools to use and in what order to accomplish a task.

Chains vs Agents

ChainsAgents
Fixed sequence of stepsDynamic, decides at runtime
Predictable flowAdapts to situation
Simpler to debugMore powerful but complex

The Agent Loop

text

Key Components

  • LLM: The "brain" that reasons and decides
  • Tools: Functions the agent can call
  • Agent Executor: The loop that runs the agent