Pydantic AI 官方文章·2026-11-10 17:00· 21 天前AI 评分65Pydantic AI 解析 code mode 与 sandbox 的区别及三种沙箱边界AI 导读Pydantic AI 发文澄清 code mode 与 sandbox 并非一回事:code mode 指模型通过 run_code 把工具调用写成 Python 程序以减少模型往返,sandbox 指代码运行位置和可触达范围。来源:Pydantic AI 官方文章 · aihot.newsAgent 智能体AI 编码安全对齐教程实践#教程/实践#Agent#编码#安全/对齐