🚀 Beyond Single-Agent Tasks
🇬🇧 What's next?
The Connectors course gave your AI agent hands and eyes. Now we need to give it a brain structure capable of handling complex, non-linear workflows without confusing itself.
This module transitions from "single prompt to a single system" to robust, enterprise-grade agent architectures.
🇹🇭 ก้าวต่อไปคืออะไร?
หลักสูตร Connectors ให้ "มือและตา" กับ AI ของคุณแล้ว ตอนนี้เราต้องให้ "โครงสร้างสมอง" ที่สามารถจัดการงานที่ซับซ้อนและไม่เป็นเส้นตรงได้โดยไม่สับสน
บทเรียนนี้จะพาคุณเปลี่ยนจาก "หนึ่งพรอมต์เพื่อระบบเดียว" ไปสู่สถาปัตยกรรม agent ระดับองค์กรที่แข็งแกร่ง
🇨🇳 下一步是什么?
连接器课程给了 AI 代理“双手和眼睛”。现在,我们需要给它一个大脑结构,让它能够处理复杂的非线性工作流,而不至于把自己绕晕。
本模块将带你从“单一提示词对应单一系统”过渡到强大、企业级的代理架构。
🕸️ Multi-Agent Architecture (Swarm)
Instead of one massive prompt with 50 tools, we route tasks to specialized micro-agents.
แทนที่จะใช้พรอมต์ขนาดยักษ์ที่มี 50 เครื่องมือ เรากระจายงานให้ micro-agents เฉพาะทาง
与其把 50 个工具全塞进一个庞大的提示词,不如将任务路由给专门的微型代理处理。
🏋️ The Advanced Exercises
Multi-Agent Swarms & Handoffs
ArchitectureConcepts
- Agent routing patterns
- Context window preservation
- OpenAI Swarm vs LangGraph vs CrewAI
Lab
- Build a Router Agent that classifies inbound customer emails.
- If technical: hand off to Tech Support Agent (has Jira/Docs access).
- If billing: hand off to Finance Agent (has Stripe access).
Why it matters
- Giving 1 agent 20 tools causes hallucination. Swarms keep agents focused.
Long-term Memory & Vector DBs
State ManagementConcepts
- Stateless vs Stateful agents
- Vector DBs (Chroma/pgvector) vs Graph Memory (Mem0)
- Entity extraction
Lab
- Connect an agent to a Postgres database using pgvector.
- Teach the agent to store user preferences (e.g., "I am vegan").
- Have the agent query its memory before suggesting a restaurant.
Why it matters
- Agents that forget the user's context every time are annoying. Memory makes them personalized.
Real-time Voice Agents (Telephony)
Voice & AudioConcepts
- STT/TTS latency
- Websockets & Realtime APIs
- Twilio integration for phone numbers
Lab
- Hook up OpenAI's Realtime API to a Twilio phone number.
- Build an agent that can answer live phone calls for your business.
- Give the agent a tool to "book an appointment" during the call.
Why it matters
- Voice is the ultimate interface for non-technical customers.
Secure Local Data Analysis (Sandboxing)
Security & LocalConcepts
- Code Execution Tools (Python REPL)
- Docker sandboxing
- Local LLMs (Llama 3/Mistral) for sensitive PII
Lab
- Give a local LLM access to a Jupyter Notebook / Python tool.
- Ask the agent to load a local CSV of financial data and generate charts.
- Ensure NO data ever leaves your computer via network logs.
Why it matters
- You cannot send real customer databases or financial records to Claude/OpenAI without heavy redaction.