THE INDEPENDENT RECORD · AGENTIC AI AS A SERVICE AboutStandardsContact
GAASAGENTIC AI · AS A SERVICE
INDEPENDENT · SINCE 2026
UPDATED DAILY
NO HYPE · NO PAY-TO-PLAY
PER-TASK PRICING NOW STANDARD ● NEW BENCHMARK: 71% TASK COMPLETION ● ENTERPRISE PILOTS UP 4X ● RUNTIME FUNDING ACCELERATES ● "AGENTS ARE THE NEW SEATS" ● MARGINS UNDER PRESSURE ● THE INDEPENDENT RECORD ON GAAS
Infrastructure

The Framework Wars: LangChain, LlamaIndex, and the Challengers Coming for Both

If you're building agents-as-a-service in 2026, the framework you pick quietly decides your cost structure, your debugging ceiling, and how fast you can ship. LangChain (and its agent runtime, LangGraph) still owns mindshare and the broadest integration surface. LlamaIndex remains the cleanest path for retrieval-heavy agents. But a wave of challengers, graph-native runtimes, durable-execution engines, and minimalist SDKs from the model labs themselves, is reframing the whole fight around reliability and orchestration rather than convenience. The right answer is rarely "pick one."

By J. Okafor · Feb 21, 2026 · 12 min read

Table of Contents

Why the Framework Choice Actually Matters for GaaS

There's a comforting myth in agent development that the framework is a thin convenience layer, a thing you swap out later if it doesn't work. It isn't. When you're selling agents as a service, charging per task or per outcome, the framework becomes load-bearing infrastructure. It shapes how you stream tokens, how you retry a failed tool call, how you checkpoint a long-running job so a customer's three-hour research task doesn't vanish when a pod restarts, and how legible your system is at 2 a.m. when an agent has spent $40 looping on the same broken API.

I've watched teams burn a quarter migrating off a framework they chose in a weekend. The migration cost is real because frameworks impose an opinion about control flow. A chain-of-calls abstraction and a state-machine abstraction are not interchangeable; rewriting one as the other touches every node in your system. So the stakes are higher than the casual "just use LangChain" advice suggests.

The market noticed. Agent orchestration is now a recognized infrastructure category with real money behind it, and analysts at firms like Gartner have flagged agentic AI as a top strategic trend, with a meaningful share of enterprise software expected to ship embedded agents by the late 2020s. When the category is that hot, the tooling fragments fast, which is exactly what's happening.

LangChain: The Incumbent That Became a Platform

LangChain arrived as the thing everyone built their first agent with, and that first-mover position still pays dividends. Its single greatest asset is breadth: hundreds of integrations for models, vector stores, document loaders, and tools, all behind a roughly consistent interface. If you need to talk to an obscure vector database or a niche SaaS API, someone has probably already written the LangChain connector. That coverage is genuinely hard for any challenger to replicate.

But LangChain earned a reputation, fairly or not, for abstraction sprawl. The early versions wrapped simple LLM calls in layers of classes that made debugging feel like archaeology. The team clearly heard this. The LangChain Expression Language (LCEL) tightened composition, and more importantly, the company pivoted toward a platform story: LangSmith for tracing and evaluation, LangGraph for stateful orchestration, and LangGraph Platform for deployment. The framework stopped being the product. The observability and orchestration layer became the product.

This matters for GaaS builders specifically. The thing you actually need to run agents profitably isn't a clever prompt-chaining DSL, it's visibility into what your agents did, why, and at what cost. LangSmith's trace view, which lets you replay an agent's full reasoning path, is one of the better answers to that problem on the market, and it's the real reason a lot of teams stay in the ecosystem even when they grumble about the core library. (For more on this layer, see the cluster piece on the observability stack for agent infrastructure.)

The honest critique that remains: LangChain still tempts you toward complexity. For a simple agent, the framework can be more scaffolding than your problem needs.

LlamaIndex: From RAG Library to Agent Framework

LlamaIndex started life with a sharper, narrower thesis: make it trivial to connect LLMs to your data. Indexing, chunking, retrieval, query engines, this was the cleanest toolkit for retrieval-augmented generation, full stop. If your agent's job is fundamentally "answer questions over a corpus," LlamaIndex still gets you there with less ceremony than anything else.

The interesting development is that LlamaIndex refused to stay in its lane. It built out agent abstractions, workflows, function-calling agents, multi-agent patterns, on top of its retrieval foundation. The bet is coherent: most valuable enterprise agents are retrieval-heavy anyway. An agent that processes contracts, triages support tickets, or audits financial documents spends most of its time finding and reasoning over the right context. Starting from a retrieval-first framework and adding agency is arguably more natural than starting from an agent framework and bolting on RAG.

Where LlamaIndex feels thinner is the broader orchestration and ops story. Its event-driven Workflows abstraction is elegant and worth studying, but the surrounding ecosystem, deployment, large-scale evaluation, the picks-and-shovels around running this in production, is less mature than LangChain's platform play. If retrieval quality is your core differentiator, LlamaIndex is a strong default. If orchestration complexity is your core problem, you may outgrow it. (The retrieval question goes deeper than basic RAG, a topic worth its own treatment in the cluster.)

The Challengers Worth Watching

The framing of "LangChain vs. LlamaIndex" is already a little dated. The more interesting movement is happening at the edges, where new entrants are attacking specific weaknesses of the incumbents.

LangGraph and the Graph-Native Turn

It's slightly cheeky to list LangGraph as a challenger when it comes from LangChain's own team, but it represents a genuinely different model of computation, and it competes directly with how everyone else does orchestration. Instead of chaining calls, you define agents as a graph: nodes are steps, edges are transitions, and a shared state object flows through. This makes cycles, branching, human-in-the-loop pauses, and explicit checkpointing first-class.

For long-running and multi-agent work, this is the right abstraction, and the broader industry has clearly agreed, graph-and-state thinking now shows up across the orchestration landscape. The tradeoff is conceptual overhead. A graph is more to reason about than a linear chain, and for a five-line agent it's overkill. But the moment your agent needs to loop, recover, or wait for a human approval, the graph model stops feeling heavy and starts feeling necessary. (The supervisor-agent architecture, covered elsewhere in this beat, is essentially a graph pattern.)

The Model Labs' Own SDKs

The most strategically significant challengers are the model providers themselves. When the people who make the model also ship the agent SDK, the framework can expose capabilities the third-party wrappers can't, and it stays current with model features on day one rather than after a community PR.

OpenAI's Agents SDK and the broader move toward standardized tool definitions are the obvious examples, and Anthropic has pushed hard on the protocol layer, its Model Context Protocol (MCP) documentation has become a de facto standard for how agents connect to tools and data, adopted well beyond Anthropic's own stack. This is a quiet threat to the "we have the most integrations" moat: if tool connectivity standardizes around an open protocol, LangChain's integration breadth matters less, because everyone speaks the same wire format. (The MCP standard gets a dedicated explainer in this beat, and it's worth reading for any operator.)

The labs' SDKs tend to be deliberately minimal. That's a feature. They give you primitives and get out of the way, which appeals to teams burned by heavyweight abstractions.

Durable-Execution Frameworks

This is the camp I think GaaS builders underrate most. Frameworks built on durable-execution engines, the Temporal lineage, and newer agent-native takes on the same idea, treat the agent's run as a workflow that can survive crashes, restarts, and multi-day pauses without losing state. For agents that do real work over real time, this solves the single hardest production problem: how do you not lose a customer's job when infrastructure hiccups?

These aren't always marketed as "agent frameworks," which is exactly why they fly under the radar. But durable execution is becoming a defining axis of the framework wars, and it's covered as its own infrastructure category in the cluster. If your agents are short and stateless, you don't need this. If they're long, expensive, and customer-facing, you will eventually wish you'd started here.

The Minimalists

Finally, there's a reactionary movement that's almost anti-framework: thin libraries, or no framework at all, just direct API calls with a small amount of glue. The argument is that modern models are good enough at tool-calling that you don't need a heavyweight orchestrator, you need a clean loop, good logging, and the discipline to keep it simple. For a focused vertical agent doing one job well, this is frequently the correct call, and it's the approach a lot of experienced teams quietly converge on after their framework honeymoon ends.

How to Actually Choose

Stop asking "which framework is best" and start asking what your agent actually does.

If your agent is retrieval-centric, answering over documents, knowledge bases, or structured data, start with LlamaIndex and add agency as needed. If it's orchestration-centric, multi-step, multi-agent, looping, with human checkpoints, go graph-native with LangGraph or a comparable state-machine runtime. If it's long-running and money's on the line, build on durable execution from day one, even if it feels like premature infrastructure. If it's simple and vertical, resist the urge to adopt anything heavy; a thin loop plus solid observability beats a framework you'll spend weeks fighting.

And whatever you pick for control flow, treat observability as non-negotiable and somewhat separable. You can run LangSmith or an OpenTelemetry-based tracing stack regardless of your orchestration choice. The teams that succeed at GaaS economics are the ones who can see their token spend per task, because that visibility is what lets them price per outcome without bleeding margin. McKinsey's work on scaling generative AI in the enterprise keeps landing on the same point: the gap between a demo and a deployed system is operational, not algorithmic. Frameworks live in that gap.

Where the Wars Are Heading

My read: the "framework" as a monolithic thing is dissolving into layers. Orchestration (graph runtimes, durable execution) separates from tool connectivity (MCP and its successors) separates from observability (tracing and eval platforms). Once those layers standardize their interfaces, you'll mix and match, graph runtime from one vendor, tool protocol from another, tracing from a third. The all-in-one framework becomes one option among many rather than the default.

That's good news for builders. Vendor lock-in at the framework level has been a real risk, and a layered, protocol-driven stack lets you swap components without the quarter-long migrations. The losers will be frameworks that bet everything on owning the whole stack and refuse to interoperate. The winners will be the ones that pick a layer, win it decisively, and play nicely with everyone else's.

The framework wars, in other words, are turning into framework peace treaties, enforced by open protocols. Watch the protocol fights, not the library popularity contests. That's where the real territory gets decided.

Insights Most People Overlook

References

More in Infrastructure