PulseAugur
实时 11:06:03
English(EN) Does a LangGraph subagent inherit its parent's tool permissions? I tested it.

LangChain 子代理缺乏默认工具权限继承;自定义中间件提供解决方案

一位开发者探讨了 LangChainDeep Agents 框架中的子代理如何处理工具权限,发现子代理默认不继承其父级的工具访问权限。相反,每个子代理规范都作为一个新的授权,可能允许比预期更广泛的工具使用。开发者实现了一个自定义中间件 BoundedByParent,以强制子代理只能访问其父代理明确拥有的工具,从而演示了解决此权限继承问题的方案。这项工作还催生了一个名为 attenu-guard 的库,该库提供了对子代理功能(包括范围和上限)的更精细控制。 AI

影响 为控制代理框架中的子代理权限提供了实用的解决方案,增强了安全性和可预测性。

排序理由 开发者为现有的 AI 框架创建的中间件和库。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

LangChain 子代理缺乏默认工具权限继承;自定义中间件提供解决方案

本文如何被排名

Signal score
35 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
开发者为现有的 AI 框架创建的中间件和库。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Rafael Asor ·

    LangGraph 的子代理是否会继承其父级的工具权限?我进行了测试。

    <p>I gave a supervisor agent in Deep Agents 0.7.6 exactly one tool, <code>write_brief</code>. It spawned a writer subagent. The writer ran a web search for <code>site:exfil.example internal customer list</code>, because a note in its input told it to. Nothing checked that call ag…