AI Frameworks · Comparison

Which AI Framework Should You Use?

⏱ 10 min read🎯 All levels🖼 2 diagrams🧪 1 live demo

There are now many frameworks for LLM apps and agents, and they overlap. The good news: the core ideas (prompts, tools, retrieval, loops, memory, tracing) are the same everywhere. Learn them once with LangChain and LangGraph, and you can pick up any other framework in a day. Here is how they compare, and how to choose.

In this session

  • The same five building blocks in every framework
  • Nine popular frameworks side by side
  • An interactive chooser
  • When to use no framework at all

01The same building blocks everywhere

Modelany LLM APIToolsfunctions it can callKnowledgeRAG over your dataControl flowloops, branches, handoffsMemory + tracingstate and observability
Every framework packages these five things; they differ in style and defaults.
Learn concepts, not just APIs. Framework APIs change every few months; the ideas in GenAI Course Modules 8–9 and these notes do not.

02Nine frameworks side by side

FrameworkCore ideaBest forLanguages
LangChainstandard parts + create_agentLLM apps, RAG, single agentsPython, JS/TS
LangGraphgraph of nodes, edges and saved statecustom workflows, approvals, multi-agentPython, JS/TS
LlamaIndexdata framework: parse, index, querychat with documents, knowledge assistantsPython, TS
CrewAIrole-based “crews” of agents with tasksquick multi-agent prototypes (research, content)Python
Microsoft Agent Frameworksuccessor to AutoGen and Semantic KernelAzure and .NET shops, multi-agent chatPython, .NET
OpenAI Agents SDKagents, handoffs, guardrails, tracinglightweight agents on OpenAI modelsPython, JS/TS
Google ADKAgent Development Kit, agent hierarchies, A2AGoogle Cloud / Gemini, multi-language teamsPython, Java and more
Pydantic AItype-safe agents with validated outputsstructured extraction, typed Python codebasesPython
Claude Agent SDKthe agent loop behind Claude Code: files, shell, subagentscoding and computer-task agents on ClaudePython, TS

Landscape as of late 2026; check each project’s docs for its current version.

03Choose with your requirements

Demo · What are you building?
Question to askWhy it matters
Do I need loops or approvals?if not, a chain or plain SDK call is enough
Which models must I support?single-vendor SDKs lock you to one provider
How will I debug it?tracing (LangSmith, provider dashboards, OpenTelemetry) is essential for agents
Who maintains it?large, active projects get security fixes and new model support quickly
Can I test it?explicit workflows are much easier to unit-test than free-roaming agents

04When to use no framework

Frameworks save time, but every layer adds something to learn and debug. Use plain provider SDKs when the app is a single call, a short fixed chain, or performance-critical. Many production teams start with the SDK, then adopt LangGraph when they need checkpoints and approvals.

Plain SDK• fewest dependencies• full control, easy debugging• you write loops and retries yourselfFramework• ready parts and integrations• memory, tracing, approvals built in• more to learn; APIs change
Choose by how much of the framework you will actually use.

05Summary

06Quick quiz

1. Which framework is the successor to AutoGen and Semantic Kernel?

2. Best fit for strict workflows with human approval?

3. Best fit for a document-heavy knowledge assistant?

4. When should you skip frameworks?

5. What stays the same across frameworks?

07References

Created by Ajeetkumar