🎯 Mục tiêu bài học
Chào mừng bạn đến với khóa học AI Agents & LangGraph — nơi bạn sẽ học cách build autonomous AI systems có thể suy nghĩ, lên kế hoạch, và hành động.
Sau bài này, bạn sẽ:
✅ Hiểu AI Agents landscape và tại sao agents quan trọng ✅ Phân biệt chatbot, copilot, và agent ✅ Nắm được kiến trúc tổng quan của agent systems ✅ Overview khóa học và lộ trình
🔍 Tại sao AI Agents?
Sự tiến hóa của AI Applications
12022: Chatbot → Input text → Output text (passive)22023: Copilot → Gợi ý trong context (semi-active)32024: AI Agent → Goal → Plan → Execute → Learn (autonomous)42025: Multi-Agent → Nhiều agents collaborationAI đang chuyển từ reactive (chatbot trả lời câu hỏi) sang proactive (agent tự hoàn thành tasks phức tạp).
Ví dụ thực tế
Chatbot:
1User: "Thời tiết Hà Nội hôm nay?"2Bot: "Tôi không có khả năng tra cứu thời tiết. Bạn thử truy cập weather.com nhé!"AI Agent:
1User: "Lên kế hoạch du lịch Đà Nẵng 3 ngày, budget 5 triệu"2Agent:3 → Search flights + hotels4 → Check weather forecast5 → Find restaurants + attractions6 → Calculate budget breakdown7 → Generate itinerary documentCheckpoint
Bạn đã hiểu sự tiến hóa từ chatbot sang AI Agent chưa?
🔍 Agent vs Chatbot vs Copilot
| Đặc điểm | Chatbot | Copilot | AI Agent |
|---|---|---|---|
| Autonomy | Low | Medium | High |
| Planning | Không | Limited | Full |
| Tool Use | Không | Trong IDE | Đa dạng tools |
| Memory | Session | Context window | Long-term |
| Multi-step | Không | Trong 1 task | Nhiều tasks |
| Ví dụ | ChatGPT basic | GitHub Copilot | Research agent |
Checkpoint
Bạn có thể phân biệt rõ chatbot, copilot và AI agent chưa?
📐 Kiến trúc AI Agent
Core Components
- Brain (LLM) — Suy luận, ra quyết định
- Memory — Lưu trữ context và history
- Planning — Lên kế hoạch thực hiện
- Tools — Tương tác với thế giới bên ngoài
Agent Loop
1# Pseudocode for agent loop2def agent_loop(goal):3 plan = llm.plan(goal)4 5 while not plan.is_complete():6 next_step = plan.get_next_step()7 8 # Decide action9 action = llm.decide(next_step, context)10 11 # Execute12 result = execute_tool(action)13 14 # Observe and update15 plan.update(result)16 memory.store(action, result)17 18 return plan.get_final_result()Checkpoint
Bạn đã nắm được 4 thành phần cốt lõi của AI Agent chưa?
🛠️ Popular Agent Frameworks
| Framework | Ưu điểm | Use Case |
|---|---|---|
| LangGraph | Full control, graph-based | Production agents |
| CrewAI | Multi-agent easy setup | Team of agents |
| AutoGen | Microsoft, conversation | Research agents |
| OpenAI Assistants | Simple API | Quick prototyping |
LangGraph cho full control over agent behavior — phù hợp cho production systems. Bạn sẽ hiểu cách agent hoạt động từ bên trong.
Checkpoint
Bạn đã biết tại sao khóa học chọn LangGraph chưa?
📝 Lộ trình khóa học
Module 1: Agent Fundamentals (Bài 1-5)
- AI Agents là gì, ReAct Pattern
- LangGraph cơ bản, Tool Calling
Module 2: Advanced Agents (Bài 6-9)
- Custom tools, Error handling
- Memory systems, State management
Module 3: Production Agents (Bài 10-12)
- Planning, Self-reflection
- Multi-agent systems
- Capstone project
Checkpoint
Bạn đã nắm được lộ trình học của khóa AI Agents chưa?
🎯 Tổng kết
📝 Quiz
-
Điểm khác biệt chính giữa chatbot và AI agent?
- Agent có khả năng planning, tool use, và multi-step execution
- Agent nhanh hơn
- Agent rẻ hơn
- Không khác nhau
-
4 thành phần core của AI Agent?
- Brain (LLM), Memory, Planning, Tools
- Input, Output, Model, Database
- Frontend, Backend, API, Database
- Prompt, Context, Response, History
-
Tại sao khóa này chọn LangGraph?
- Full control over agent behavior, phù hợp production
- Dễ nhất
- Miễn phí hoàn toàn
- Phổ biến nhất
Key Takeaways
- AI Agents — Autonomous systems: perceive, reason, act, learn
- Khác chatbot — Agents chủ động plan và execute multi-step tasks
- 4 components — Brain (LLM), Memory, Planning, Tools
- LangGraph — Framework cho production agent development
Câu hỏi tự kiểm tra
- AI Agent khác gì so với chatbot và copilot truyền thống?
- Bốn thành phần cốt lõi của một AI Agent system là gì?
- Tại sao năm 2024-2025 được coi là thời điểm bùng nổ của AI Agents?
- LangGraph đóng vai trò gì trong việc phát triển AI Agent?
🎉 Tuyệt vời! Bạn đã hoàn thành bài học Giới thiệu AI Agents!
Tiếp theo: Hãy cùng tìm hiểu sâu hơn về AI Agents là gì và kiến trúc của chúng trong bài tiếp theo!
🚀 Bài tiếp theo
AI Agents là gì? — Deep dive vào AI Agent definition và architecture!
