AI Agent Development Frameworks: A Survey and Selection Guide
This article surveys the current landscape of AI agent development frameworks, categorizes the main framework types, and proposes six evaluation dimensions for comparison. It also explains how to interpret community metrics, provides scenario-based selection recommendations, and outlines practical steps for teams choosing an abstraction level that fits their technology stack, product model, and maintenance capacity.
1. Why a Systematic Survey of Agent Frameworks Matters
Over the past two years, the focus of large language model application development has shifted from single calls to agents capable of planning, tool use, memory, and multi-step execution. The number of frameworks has grown rapidly: there are official frameworks from large cloud providers and model providers, long-standing community-maintained projects, and minimalist solutions led by individual developers. Frameworks differ significantly in design philosophy, abstraction level, and ecosystem support, and choosing the wrong one often leads to substantial rework later. A systematic research method is therefore essential before making a technical selection.
2. Common Forms of Mainstream Agent Frameworks
Setting aside specific brands, today’s agent frameworks can be grouped into four common forms:
1. Official frameworks from model providers
These are released by large model providers and are typically deeply aligned with their own model capabilities. They tend to offer strong support for tool calling, context management, sub-agent orchestration, and related features. They are characterized by a high degree of encapsulation, comprehensive functionality, and reliable documentation, but they may carry some platform lock-in.
2. Enterprise frameworks from cloud providers
Agent development suites released by large cloud providers often emphasize production readiness. They typically include identity and permission management, observability integration, and integration with managed cloud services such as serverless functions, message queues, monitoring, and alerting. They are suitable for teams that already have cloud infrastructure in place.
3. Frontend and full-stack frameworks
These are SDKs aimed at web applications, usually centered on the TypeScript ecosystem. Their advantage lies in their natural fit with frontend streaming rendering and UI componentization, making them suitable for building conversational product interfaces. The learning curve is relatively gentle, but general agent orchestration capabilities tend to be lighter.
4. Minimalist frameworks and mature all-in-one frameworks
- Minimalist frameworks: The core codebase is small and provides only the most essential abstractions, such as the loop, tool registration, and context assembly, leaving the rest to developers. Their advantages are transparency, controllability, and a low learning cost, making them suitable for rapid validation of ideas and for understanding how agents work. Their disadvantage is that production-grade capabilities such as retries, tracing, and state persistence must be built in-house.
- All-in-one frameworks: These are represented by early LLM application frameworks and the workflow or graph orchestration frameworks derived from them. They are feature-complete, have mature ecosystems, and provide rich integrations such as vector stores, loaders, and callback mechanisms. However, they have many abstraction layers and a relatively steep learning curve, and debugging requires understanding the framework’s internal flow.
3. Key Dimensions for Evaluating Frameworks
When making side-by-side comparisons, it is useful to build a capability matrix across the following six dimensions:
| Dimension | Focus |
|---|---|
| Abstraction level | Whether the model is an orchestration graph or an execution loop, and whether multi-agent collaboration is supported |
| Degree of encapsulation | How much is available out of the box, and how much customization space is constrained |
| Learning curve | Number of concepts, documentation quality, and completeness of examples |
| Ecosystem and integrations | Model access, tool ecosystem, observability, and deployment support |
| Language ecosystem | Python or TypeScript, and fit with the team’s technology stack |
| Community activity | Release cadence, issue response speed, and long-term maintenance risk |
For example, a typical execution-loop core is often very simple. A minimalist framework essentially looks like this:
while True:resp = llm.chat(messages, tools=tools)if not resp.tool_calls:breakfor call in resp.tool_calls:result = tools.execute(call)messages.append(tool_result(call.id, result))
Once this skeleton is understood, it becomes clearer what heavier frameworks add: state persistence, checkpoint recovery, human-in-the-loop approval, parallel scheduling, cost and latency monitoring, and similar capabilities.
4. How to Interpret Community Metrics
Two quantitative metrics are commonly used in framework research, and they should be treated differently:
- Star counts reflect attention, but they are heavily influenced by how long a project has existed. Older frameworks started earlier and have accumulated more stars, so being at the top is a natural result; direct comparisons based on stars alone are of limited value.
- Package downloads (weekly npm or PyPI downloads) better reflect actual usage density, but it is important to account for repeated pulls caused by scaffolding and CI environments, as well as differences in how multi-language packages are counted.
Taken together, many mainstream frameworks can now reach a million weekly downloads, indicating that agent development has moved from experimentation into scaled adoption. When selecting a framework, teams should focus more on community cases similar to their own scenarios and on the quality of issue resolution than on a single popularity metric.
5. Scenario-Based Selection Advice
Personal projects and rapid prototyping: Prioritize minimalist frameworks or lightweight SDKs. A few lines of code can run a “model + tools” loop, and the source code is readable, making it easier to understand how the agent works. This has the lowest learning cost and the fastest iteration speed.
Web-based conversational agents: If the product form is mainly based on backend-to-frontend streaming interaction, choose a frontend-friendly framework in the TypeScript ecosystem. This can significantly reduce glue code for streaming protocols and UI state management.
Complex coding or automation agents, or enterprise applications: Choose a framework with a high degree of encapsulation and support for sub-agent orchestration, permission control, and session and memory management, or adopt a feature-complete mature orchestration framework. In these scenarios, the value of engineering support, such as observability, traceability, and canary releases, far exceeds the value of framework agility alone.
Teams with existing cloud infrastructure: First evaluate the framework from the corresponding cloud provider to reduce the effort required to build monitoring, alerting, logging, and managed deployment. At the same time, assess the risk of lock-in.
6. Three Practical Recommendations Beyond Framework Selection
- Write a bare-bones implementation before choosing a framework. Manually writing a tool-calling loop in a few dozen lines of code can help you judge whether the framework’s abstractions actually solve your problem.
- Watch for abstraction leakage. Any framework will encounter situations in complex scenarios where encapsulation must be bypassed and lower-level APIs called directly. Confirm during selection that the escape hatches are available.
- Frameworks will age; patterns will not. The core paradigm of planning, tool invocation, reflection, and memory is relatively stable. Investing effort in prompt engineering, evaluation systems, and tool design will deliver more long-term value than chasing framework versions.
In short, no agent framework is universally better than another. What matters is aligning the team’s technology stack, business form, and maintenance capacity with the appropriate abstraction level, validating in small steps, and upgrading as needed.
