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

agentengine 代理 出口 添加

将目标添加到 代理.yaml,同时不影响现有目标。

将一个或多个出口目标添加到 代理.yaml。

当目标沙盒没有模式或为 deny_all 时,add 会将其设置为 allow_list。allow_all 上的沙盒保持不变:目标不会应用于该沙盒,因此请先运行 agentengine 代理 egress 模式 allow_list。添加已列出但端口不同的托管失败;请先将其删除。

每个参数都是 FQDN:PORT、FQDN:PORT,PORT,... 或完整的 URL。省略端口或使用 FQDN:* 允许所有端口。对于 URL,如果 URL 未指定明确的端口,则会提取托管并使用方案的标准端口(https 443,ssh 22);该推断将作为注释报告。携带凭证且方案没有已知端口的 URL 将被拒绝。

该变更将在下一个部署时生效。agentengine 出口在此之前仍然显示实时工作区。

例子:

agentengine agent egress add api.openai.com:443# Allow MongoDB for the tool sandbox onlyagentengine agent egress add --component tool '*.mongodb.net:443,27017'
agentengine agent egress add FQDN:PORT[,PORT...] [FQDN:PORT...] [flags]
--component string Target a single sandbox: agent or tool. Omit to apply to both.-h, --help help for add --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)
给本页内容打分