跳到主要內容
AI 武林
影片進階EN3,987 次觀看

Middleware for Managed Deep Agents

來源 LangChain

看影片(在新分頁開啟原站)連到 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 產生

  1. 00:00What middleware does for managed deep agents
  2. 00:36Common middleware use cases
  3. 00:52Demo setup: redacting a customer email
  4. 01:03Baseline agent behavior with no middleware
  5. 01:31Adding PIIMiddleware to the agent definition
  6. 01:51Re-running the same question with middleware on
  7. 02:01Watching PIIMiddleware redact the email live
  8. 02:18Confirming the email never reaches LangSmith
  9. 02:35When to reach for prebuilt PII middleware
  10. 02:51Writing custom middleware with wrap_tool_call
  11. 03:37Adding custom middleware to the agent definition
  12. 03:44Testing the custom logging middleware live
  13. 04:12Built in vs custom middleware, and where to go next

提到的工具與公司

適合誰看

適合正在開發或管理 LangChain Managed Deep Agents 的程式工程師。

摘要依據

依據
人工字幕

為什麼排在這裡

人氣
0.41
新鮮
0.75

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

這個來源最近的內容

LangChain 的所有內容

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)