- Type
- Developer software category
- Core primitives
- Agent loop, tools, state, memory, handoffs, tracing
- Leading options
- LangGraph, CrewAI, OpenAI Agents SDK, Google ADK, Mastra, Pydantic AI
- Languages
- Python dominant; TypeScript, Java, Go, .NET
- Emerged
- 2023 (agent tooling wave)
- Related
- Agentic AI, multi-agent systems, MCP, A2A
- Type
- Developer software category
- Core primitives
- Agent loop, tools, state, memory, handoffs, tracing
- Leading options
- LangGraph, CrewAI, OpenAI Agents SDK, Google ADK, Mastra, Pydantic AI
- Languages
- Python dominant; TypeScript, Java, Go, .NET
- Emerged
- 2023 (agent tooling wave)
- Related
- Agentic AI, multi-agent systems, MCP, A2A
Background
Early LLM applications were simple request-response calls; agents that call tools, keep state across steps and delegate to other agents required substantial glue code. LangChain (first released 2022) was the earliest mass-adopted abstraction layer — by 2026 it reported roughly 134,000 GitHub stars and more than 1,000 pre-built integrations.[2] Microsoft Research's AutoGen (2023) pioneered conversation-driven multi-agent patterns such as group chats and human proxies, and CrewAI (2023) popularised role-based crews of agents, growing to around 49,000 GitHub stars under an MIT licence.[2]
From 2025 the field consolidated and split at once. AutoGen was placed in maintenance mode and its ideas were absorbed into the Microsoft Agent Framework (1.0, April 2026), which merges AutoGen with Semantic Kernel for .NET and Azure shops, while AG2 continued as the community fork.[1] Model vendors shipped their own minimal SDKs — the OpenAI Agents SDK (MIT, ~22,000 stars) built around agents, handoffs, guardrails and tracing;[3] Google's Agent Development Kit (Apache 2.0, ~19,000 stars) adding multi-agent hierarchies, a deterministic workflow runtime and deployment to Cloud Run, GKE and Vertex AI;[2][4] and Anthropic's Claude Agent SDK, a pre-built computer-work harness.
Key Concepts
- The agent loop. Think → call tool → observe → repeat, bounded by a stop condition or step limit.
- Orchestration style. Graph/state-machine control (LangGraph, Microsoft Agent Framework, deterministic Google ADK workflows) versus role-based crews (CrewAI) versus minimal handoffs (OpenAI Agents SDK).
- Interoperability protocols. Model Context Protocol (MCP) standardises tool and data connections; the Agent2Agent protocol (A2A) lets agents built on different frameworks discover and call each other — Google ADK supports both natively.[4]
- Cost of multi-agent. Chatty multi-agent designs run an estimated 3–5× the tokens of a single agent, so lightweight single-agent loops with good tools remain a legitimate architecture.[1]
- Observability. Framework pairing (LangSmith, Logfire, OpenTelemetry tracing) is what turns a prototype into a diagnosable production system.[2]
Selection in Practice
A 2026 comparison test of ten frameworks running an identical one-tool agent found: LangGraph best for complex stateful Python workflows; Mastra for TypeScript teams shipping production agents; OpenAI Agents SDK for OpenAI-committed shops (16 lines to a working agent); CrewAI fastest to prototype but with a 856 MB / 143-package install and the highest token overhead; Google ADK strongest inside GCP; and Pydantic AI where typed, validated outputs matter.[1] Several reviewers note a simple hand-written loop over the OpenAI or Anthropic API plus about 100 lines of code is still a valid choice.[1][2]
>Key Takeaways
- Agent frameworks supply the loop, tools, state, memory and tracing that agents need in production.[1]
- The 2026 shortlist is LangGraph for stateful Python workflows, Mastra for TypeScript, OpenAI Agents SDK for OpenAI-native teams, CrewAI for prototypes.[1]
- AutoGen is in maintenance mode; its lineage continues in Microsoft Agent Framework and AG2.[1]
- Multi-agent chatter can triple token bills — measure before you orchestrate.[1]
- MCP and A2A make frameworks interchangeable, so vendor lock-in is now mostly a model choice.
See Also
🇲🇾 Relevance to Malaysia: framework choice is shaped by the country's talent economics — the World Bank puts Malaysia at roughly 3,000 AI professionals against demand for 30,000 by 2030, and 81% of employers reported difficulty hiring AI skills in 2025. That favours well-documented, low-ceremony options (LangGraph, CrewAI-style crews, vendor SDKs) taught through MDEC-accredited and HRD Corp-funded training under the National AI Talent Accelerator. Malaysian product teams building agent features for SMEs — WhatsApp service agents, internal document assistants, e-commerce copilots — overwhelmingly use Python, and cost sensitivity pushes them toward open-source frameworks with a single strong model rather than multi-agent crews. Government-side, the National AI Office's guidance and the Malaysia AI Governance Framework emphasise auditable agent behaviour, which makes tracing and guardrail primitives in the framework a procurement requirement, not a nice-to-have. Because MCP and A2A are open standards, local integrations with Malaysian systems (MyKad verification, DuitNow payment flows, PDPA-governed customer records) can be built once and reused across frameworks.
References
- ↑AgentMail. (2026). The 10 Best AI Agent Frameworks in 2026 (identical-agent benchmark, 100 runs). https://www.agentmail.to/blog/best-ai-agent-frameworks-2026
- ↑LangChain. (6 June 2026). The best AI agent frameworks in 2026. https://www.langchain.com/resources/ai-agent-frameworks
- ↑OpenAI. Agents SDK for Python (open source, MIT). https://github.com/openai/openai-agents-python
- ↑Google. Agent Development Kit documentation. https://google.github.io/adk-docs/