Category · Agents and orchestration
What is LangChain?
LangChain is a free framework for quickly building applications with language models. Every model is called the same way, so you switch providers by changing one line. It also provides a ready-made agent loop, built on LangGraph.
By Laurent Poupet, Claude trainer and artificial intelligence architect · Updated
How it works
- Its common interfaces let you switch model providers by changing one line, because every model is called the same way.
- Since version 1.0, middlewares slot in around the agent loop, to summarise the history, ask for human approval or mask personal data.
- It is used to start quickly with a standard agent loop, moving down to LangGraph when every step has to be controlled precisely.
The trap to avoid
The trap is one abstraction too many; for a very simple need, calling the provider’s kit directly can be easier to read than going through the library.
Related terms
- LangGraphAgents and orchestration
- Agent loopAgents and orchestration
- Human approval (human in the loop)Security and compliance
Where this is taught
This idea comes up throughout the lessons; we work on it with your own examples during a lesson.
Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.