What is the difference between a ‘chain’ and an ‘agent’ in LangChain?

AI Automation Specialist Medium

AI Automation Specialist — Medium

What is the difference between a ‘chain’ and an ‘agent’ in LangChain?

Key points

  • Chains have a predetermined sequence; agents adapt to the task
  • Chains are rigid in their process; agents are flexible
  • Chains lack decision-making ability; agents make informed choices

Ready to go further?

Related questions