Are Agent Frameworks Obsolete? Architecture Boundaries and Practical Selection
Agent frameworks are not obsolete; complexity has shifted from model calls to control, recovery, and audit. This article explains what model APIs now cover, what still belongs in the application runtime, and how to choose chains, graphs, or direct calls by task traits.
Frameworks did not suddenly fail; application complexity moved
Debates about agent development often collapse into two extremes: you must use a framework or you cannot ship efficiently, versus frameworks only add abstraction and you should call the model API directly.
Both miss a premise: what problem the application must solve.
If the need is to send text to a model, get a summary, and show it to the user, a direct API call is usually enough. State graphs, tool registries, and persistence can cost more than they return.
If the app must query internal knowledge, call business systems, wait for human approval, and resume after a process restart, the model API covers only one slice. The hard part is making the whole process controllable, recoverable, and auditable.
So instead of asking whether frameworks are “obsolete,” ask three more precise questions:
- Which capabilities do model APIs already provide?
- Which capabilities still belong to the application and runtime?
- Is this project worth extra abstraction for those capabilities?
Framework value did not vanish uniformly; it was redistributed across applications.
Early frameworks solved repeated integration
In the early days of LLM apps, developers repeatedly implemented similar code: load documents, chunk and retrieve, inject results into prompts, call the model, parse output, retry on failure, then hand off to the next step.
Apps also had to keep conversation history, connect data sources, and adapt request formats for different model services.
Chain-style frameworks gained traction not because they made models smarter, but because they packaged this repetitive work into composable components.
That design helps in prototyping:
- Lower integration cost: you do not write full glue for every document source, retriever, and model call.
- Faster experiments: swap prompt templates, retrieval strategy, or steps by composing components.
- Shared vocabulary: teams talk about retrieval, generation, and parsing steps instead of scattered API code.
The downside appears when a framework also owns data access, prompt management, model adapters, state, and flow control. Abstraction thickens. A simple request may pass through many wrappers; errors are harder to trace; upgrades can be blocked by dependency changes.
Abstraction is not the mistake. Abstractions that speed experiments are not automatically right for long-lived production systems.
Stronger models shifted the framework boundary
Some model services now offer tool calling, structured output, and streaming. Logic that used to live only in the app can sit on the model interface.
Still distinguish model expression from system execution.
1. Tool calling is not tool execution
A model can emit a tool name and arguments—an intent to look something up or act. Whether execution is allowed, whether parameters are valid, and whether the action is authorized still belong to the application.
If the model suggests “change the order address,” the system must not update the database on that suggestion alone. It still needs identity, order ownership, current order state, and field validity.
The model proposes intent; the application decides whether the action may happen.
2. Structured output is not business correctness
A valid schema does not mean the content is true or policy-compliant.
An amount can be a legal number and still exceed an approval limit. A date can match a format and still be earlier than the business allows.
Schema checks must be followed by business checks. High-risk results must not auto-execute just because the format is correct.
3. Chat context is not reliable memory
Appending history to every request is not a complete memory system. Longer history usually raises cost and latency and can inject stale or irrelevant content.
Production systems should separate three kinds of data:
- Current task context: what the running task needs.
- Session summary: compressed key facts from the conversation.
- Long-term business records: source, permissions, validity, and update rules.
Do not mix these. Do not persist model inferences as trusted business facts.
Chains and graph workflows solve different problems
1. Chains fit clear paths
A chain is a fixed pipeline: input validation → retrieval → prompt assembly → generation → result checks.
When steps are few, branches are rare, and the task usually finishes in one request, this structure is simple and easy to test.
Knowledge Q&A, classification, and field extraction can start here. One extra correction pass does not always require a full graph runtime.
2. Graphs fit explicit state change
When tasks include branches, loops, pause, and resume, graph workflows express execution more clearly.
Example: identify the request → query records → check completeness → ask follow-ups or submit for review → execute → verify.
Review may take hours; extra information may need multi-turn user input; execution may need compensation. The issue is not how many models were called, but which state the system is in and what is allowed next.
Graphs make state, transitions, and execution bounds explicit. Using a graph does not by itself create reliability. Persistence, concurrency, authorization, and side effects still need correct design.
When is a direct API call better?
For simple apps, calling the API directly is a reasonable start. You see request, response, and errors clearly, with less learning cost and fewer dependencies.
Lightweight implementations fit when:
- The task has a few fixed steps.
- You do not need cross-process resume.
- Few tools, easy permission control.
- Limited business side effects.
- The team can maintain tests, monitoring, and adapter code.
Skipping a framework is not skipping engineering. Production still needs timeouts, rate limits, input validation, log redaction, cost tracking, and failure handling.
Direct calls give clear control; you must build shared capabilities yourself. Frameworks reuse mechanisms; you must understand their constraints and internals.
Compare long-term maintenance cost, not first-version line count.
Select by task traits, not popularity
1. Is the path fixed?
Fixed paths suit ordinary code or light chains. Paths that depend on intermediate results may need an explicit workflow.
Do not hand every branch to the model. Amount thresholds, permission scopes, and state transitions should be executed in code.
2. Do you need pause and resume?
If the task waits for a user reply or human approval, persist enough execution state: task id, current stage, key inputs, completed actions, and pending events.
Chat logs alone are usually not enough; they may not reflect which business actions already ran.
3. Are there external side effects?
Reading knowledge and mutating business data are different risk levels.
Notifications, payments, and record updates need clear permission bounds, plus idempotency, audit, and compensation.
Timeouts do not always mean failure. The remote side may have succeeded while the response was late. Blind retries can duplicate work.
4. Do you need multiple model providers?
A unified interface lowers switching cost, but do not assume identical behavior. Tool-call formats, output constraints, stream events, and context limits can differ.
An adapter should unify the capabilities the business actually depends on and keep necessary differences, not force every feature into one interface.
5. Can the team operate the runtime?
Complex designs pay off only if the team can debug, test, and maintain them.
If developers cannot explain why a task stopped at a node, why a retry happened, or why state was overwritten, troubleshooting cost may cancel the convenience.
A more durable production split
Whether or not you use a framework, split responsibilities into four layers.
Layer 1: business rules
Keep deterministic rules: permissions, limits, state transitions, approval conditions.
Keep them independent of prompts and model implementations so swapping models does not drift business constraints.
Layer 2: model adapter
Request mapping, response parsing, timeouts, and call records.
Keep this layer thin. Model failures should not flood the whole business flow, and they should not be hidden by unconditional retries.
Layer 3: task orchestration
Organize retrieval, generation, tool calls, human approval, and verification.
Simple tasks can be functions; complex ones can use an explicit state machine or graph. Architecture should serve the task, not reshape it.
Layer 4: runtime guarantees
State persistence, logs, monitoring and alerts, permission audit, and cost accounting.
Persisted execution state must work with side-effect control. Checkpoints after every step do not close the window where an action succeeded but state was not saved. Use idempotency keys, transactional records, or compensation as the business requires.
Reliable tool calling needs these controls
Tools are how agents touch real systems, and where risk concentrates.
Tool descriptions should state purpose, input constraints, and return meaning. Models should not guess behavior from vague names.
Permissions should be limited dynamically by task and user. Having a tool definition does not mean the current task may call it.
Content from documents, web pages, or tool results is untrusted data. Text such as “ignore the rules” or “execute the operation” must not be elevated to system instructions.
High-risk operations need confirmation or approval. Models can help assemble parameters; they must not bypass authorization.
A sound sequence: receive the call suggestion → validate parameters → check permission → assess risk → approve if needed → execute → verify → record state.
Model output is one input to the process, not final control.
Evaluation, not demos, decides fit
A successful demo only shows the flow ran for one input. It does not prove the app can serve real users.
Cover at least:
Task quality. Did it solve the user’s problem, omit required information, or produce unverifiable claims?
Tool correctness. Right tool, valid parameters, no unauthorized or duplicate actions.
Recovery. After model timeouts, tool failures, process exits, or approval timeouts, can the system enter an understandable state?
Cost and latency. Count retrieval, tool execution, retries, and human intervention, not only model tokens.
Maintainability. Can developers locate errors, change rules, and verify changes with tests?
Test sets need happy paths, edge cases, and failures—not only showcase inputs. Compare architectures on the same tasks and metrics.
From a thin prototype to a controllable system
When requirements are still unclear, grow in stages.
First, close the business loop with the fewest parts and confirm the model actually fits the task.
Second, add input checks, result validation, logging, timeouts, and basic evaluation. Do not treat the prototype as production.
Third, see where complexity concentrates. If integration glue dominates, extract shared components. If branches become unmanageable, introduce an explicit workflow. If long-running work cannot resume, add durable execution.
Fourth, put stable contracts on business boundaries so rules, adapters, and orchestration can evolve separately.
The point is not to reject frameworks, but to introduce each one for a reason, proven by tests and operations metrics.
Conclusion: retire the wrong abstraction, not every framework
There is no single standard answer for agent development.
Light code fits well-bounded tasks; chains fit fixed pipelines; graph workflows fit complex state and recovery. They are engineering choices at different complexity, not simple substitutes.
Judge a design by whether it makes rules clearer, failures easier to recover, permissions easier to control, and cost easier to explain—not by popularity.
Maturity is not how many components you used. It is how every model suggestion is verified, every action is authorized, and every failure is handled reliably.
