看影片(在新分頁開啟原站)連到 YouTube・LangChain
摘要
LangChain 產品經理 Nathan Drezner 介紹 Managed Deep Agents 的 Middleware 機制,用於在呼叫工具或 LLM 時加入自訂行為。影片示範如何使用預設的 PIIMiddleware 自動遮蔽客戶電子郵件,並透過 wrap_tool_call 裝飾器建立自訂的日誌記錄 Middleware,確保敏感資料不進入模型。
LangChain PM Nathan Drezner demonstrates how to use middleware in Managed Deep Agents to enforce policies and log tool calls, including prebuilt PII redaction and custom logging via decorators.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- Middleware 可延伸 Agent 生命週期,加入策略執行與錯誤處理。
- 預設 PIIMiddleware 能自動偵測並遮蔽敏感電子郵件。
- 可用 wrap_tool_call 自訂 Middleware 來記錄工具呼叫或執行其他邏輯。
章節
依話題轉折切分,標題由 AI 產生
- 00:00What middleware does for managed deep agents
- 00:36Common middleware use cases
- 00:52Demo setup: redacting a customer email
- 01:03Baseline agent behavior with no middleware
- 01:31Adding PIIMiddleware to the agent definition
- 01:51Re-running the same question with middleware on
- 02:01Watching PIIMiddleware redact the email live
- 02:18Confirming the email never reaches LangSmith
- 02:35When to reach for prebuilt PII middleware
- 02:51Writing custom middleware with wrap_tool_call
- 03:37Adding custom middleware to the agent definition
- 03:44Testing the custom logging middleware live
- 04:12Built in vs custom middleware, and where to go next
提到的工具與公司
適合誰看
適合正在開發或管理 LangChain Managed Deep Agents 的程式工程師。
摘要依據
- 依據
- 人工字幕
為什麼排在這裡
- 人氣
- 0.41
- 新鮮
- 0.75
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
