在 agent.yaml 中设置 egress_mode。
Synopsis
在 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_allagentengine 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)另请参阅
- 代理engine 代理 egress - 在 agent.yaml 中编辑出口允许列表。