Tag: agent
All the articles with the tag "agent".
-
Same system prefix, zero cache hits on the branching path: debugging GPT-5.6 prompt caching
Two paths in the same agent send a byte-identical system prefix. The main conversation hits prompt cache; the other one is 0/24. After eliminating seven hypotheses, the answer was prompt_cache_breakpoint, plus an undocumented rule: the cache entry's matchable boundary ends before the last message.
-
共用同一段 system prefix,分支請求卻一次都沒命中:一次 GPT-5.6 prompt cache 排查
同一個 agent 裡兩條路徑送出位元完全相同的 system prefix,主對話吃得到 prompt cache,另一條 0/24 一次都沒中。排掉七個假設之後,答案是 prompt_cache_breakpoint,以及一條官方文件沒寫的規則:cache entry 的邊界落在最後一則訊息之前。
-
Agentic Design Patterns 繁體中文版:21 個 AI Agent 設計模式(全書目錄)
《Agentic Design Patterns》(Antonio Gulli 著)繁體中文翻譯全書目錄:21 個 AI Agent 設計模式,從 Prompt Chaining、Tool Use 到 Multi-Agent 協作、Guardrails 與評估監控。邊翻譯邊學習的完整紀錄。
-
Agentic Design Patterns 第 1 章:Prompt Chaining(提示鏈)
把複雜任務拆成一連串 Prompt,前一步的輸出餵給下一步。《Agentic Design Patterns》第 1 章繁體中文翻譯,含程式碼範例。
-
Agentic Design Patterns 第 2 章:Routing(路由)
讓 Agent 依輸入內容動態決定走哪一條處理路徑。《Agentic Design Patterns》第 2 章繁體中文翻譯,含程式碼範例。
-
Agentic Design Patterns 第 3 章:Parallelization(平行化)
同時執行多個獨立子任務,縮短整體延遲。《Agentic Design Patterns》第 3 章繁體中文翻譯,含程式碼範例。
-
Agentic Design Patterns 第 4 章:Reflection(反思)
讓 Agent 檢視並修正自己的輸出,迭代提升品質。《Agentic Design Patterns》第 4 章繁體中文翻譯,含程式碼範例。
-
Agentic Design Patterns 第 5 章:Tool Use(工具使用,Function Calling)
透過 Function Calling 讓 LLM 呼叫外部工具與 API。《Agentic Design Patterns》第 5 章繁體中文翻譯,含程式碼範例。