大家都知道 ReAct:想一步、做一步、看結果。史丹佛 CS329Z〈Engineering AI Agents〉第六堂(主講:史丹佛 NLP 博士生、DSPy 核心貢獻者 Michael Ryan)講的是 agent 設計模式之間的取捨。這一集整理這堂課。
五段重點
一、workflow 五種模式:串接 prompt 用延遲換準確度、分流省錢、平行不多等、指揮者自己決定分幾個工人;評審迴圈要兩個條件:好壞說得出來,模型也評得出來。
二、推理與反思:ReAct 的能力今天已經訓練進模型;沒有外部回饋的自我修正,可能把對的答案改錯,檢查的一方要接上工具。
三、CodeAct 與先規劃再執行:行動寫成程式碼,比一次一個 JSON 呼叫成功率更高、回合更少;先規劃再執行今天大多被產生程式碼和平行工具呼叫取代。
四、context 管理:保持聚焦、保留連續性;事件紀錄全部留著、組 context 時再挑;觀察遮蔽跟模型摘要解題率差不多、成本少一半;subagent 與 skill 的逐步揭露。
五、拆解 Pi:只開四個工具、ReAct 加 bash、樹狀紀錄、沒有權限確認;模型越強,harness 越簡單。
課程原片
Stanford Online|AI Agent Design Patterns: ReAct, CodeAct & More | Stanford CS329Z Lecture 6 with Michael Ryan https://www.youtube.com/watch?v=JC_pLC5EX_w
CS329Z 課程網站 https://cs329z.stanford.edu/
相關影片
Tina Huang|AI Agents Fundamentals In 21 Minutes https://www.youtube.com/watch?v=qU3fmidNbJE
KodeKloud|Don't learn AI Agents without Learning these Fundamentals https://www.youtube.com/watch?v=ZaPbP9DwBOE
DeepLearningAI|Learn to build effective Agentic AI systems with Andrew Ng https://www.youtube.com/watch?v=w7vqXL4PWEE
AI Engineer|How We Build Effective Agents: Barry Zhang, Anthropic https://www.youtube.com/watch?v=D7_ipDqhtwk
Google Cloud Tech|AI agent design patterns https://www.youtube.com/watch?v=GDm_uH6VxPY
Aishwarya Srinivasan|Agentic AI System Design Explained in 27 Minutes https://www.youtube.com/watch?v=mwN75EiGfCE
歡迎請我喝杯咖啡,幫助我繼續把節目做得更好唷~!
👉 https://buymeacoffee.com/ailanrenbao
--
Hosting provided by SoundOn
More episodes from "AI懶人報"



Don't miss an episode of “AI懶人報” and subscribe to it in the GetPodcast app.








