Tất cả bài viết
AI Agent thế hệ mới — Tool-use, planning, multi-step reasoning 🧠
Vì sao agent 2026 khác 2024
Năm 2024 agent ≈ "LLM + tool wrapper". 2026, agent đã có:
- Planning explicit (graph-based, không phải prompt chaining)
- State management giữa nhiều turn (LangGraph checkpointing)
- Human-in-the-loop chuẩn (interrupt + resume)
- Streaming partial state ra UI
4 framework đáng dùng
LangGraph
- Pros: Mature, graph clear, có Studio để debug visual
- Cons: Python-first, steep learning curve
- Dùng cho: complex agent business logic
Vercel AI SDK 4
- Pros: TypeScript native, tích hợp Next.js mượt, streaming UI tốt
- Cons: Còn thiếu advanced planning patterns
- Dùng cho: web app dev có agent UI
AutoGen 2.0 (Microsoft)
- Pros: Multi-agent dễ, conversation orchestration mạnh
- Cons: Verbose, hơi over-engineer cho simple use case
- Dùng cho: research, multi-role simulation
Mastra (mới 2026)
- Pros: TS-first, opinionated, deploy serverless dễ
- Cons: Còn trẻ, community nhỏ
- Dùng cho: prototype nhanh, monolith TypeScript stack
Khi nào KHÔNG cần framework
Nếu agent chỉ:
- 1-2 tools
- Single-turn hoặc loop ngắn
- Không cần resume/checkpoint
→ Viết thẳng với SDK provider (Anthropic SDK, OpenAI SDK) sạch hơn nhiều.