Framework
The structure and rules of an application that developers fill with their code. Unlike a library, a framework manages the flow: it calls your code.
Examples in AI
- LangChain, LangGraph — frameworks for LLM applications;
- Django, FastAPI — web frameworks;
- CrewAI — for multi-agent systems.
Library vs Framework
You call a library, but a framework calls your code. A library is a tool, a framework is a structure.