What is the difference between prompt chaining and an LLM agent?
Prompt Engineering Patterns: Prompt Chaining, Decomposition, and Multi-Step Workflows
Audio flashcard · 0:18Nortren·
What is the difference between prompt chaining and an LLM agent?
0:18
Prompt chaining has a fixed sequence of steps defined by the developer. An LLM agent decides what to do next at each step based on previous results. Chaining is more predictable and cheaper; agents are more flexible but harder to control. Anthropic's research recommends starting with chaining and only adding agent autonomy where it provides clear value.
anthropic.com