对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

agentengine 代理出口模式

在 agent.yaml 中设置 egress_mode。

在 agent.yaml 中设置 network.egress_mode。

模式可以是 deny_all、allow_list 或 allow_all。allow_all 需要 --confirm-allow-all,如果该沙盒仍列出目标,则会被拒绝:请先删除它们,或使用 allow_list。--confirm-allow-all 仅在 allow_all 下有效。

这会编辑本地文件,而不会更改正在运行的工作区。重新部署以应用新模式。

例子:

agentengine agent egress mode allow_all --confirm-allow-allagentengine agent egress mode deny_all
agentengine agent egress mode MODE [flags]
--component string Target a single sandbox: agent or tool. Omit to apply to both. --confirm-allow-all Required acknowledgement when MODE is allow_all.-h, --help help for mode --workspace string Monorepo: select a specific workspace by name (from root agent.yaml)
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
给本页内容打分