一龍馬/AI 情報站讀懂消息背後的脈絡
星期四
搜尋
返回 X AI 快報列表

Pydantic 區分程式碼模式與沙盒:前者改變模型呼叫工具的方式,後者決定程式碼在哪裡執行

本期第 23/78 則

中文摘要

依其說明,Pydantic AI 中的程式在 Monty 執行,而工具則在使用者指定的位置執行。

一龍馬判讀

開發者設計工具呼叫時,需要分別確認程式與工具的執行環境;貼文沒有詳述各環境的隔離保障。

原文節錄

Pydantic · @Pydantic

Code mode is not a sandbox.…

取得全文 · 不代表內容已獨立查證

查看原文
完整收錄文字與來源

Code mode is not a sandbox. Code mode changes how the model calls your tools: one Python program instead of a chain of JSON tool calls. A sandbox changes where code runs. In Pydantic AI the program runs in Monty. Your tools run wherever you point them. https://pydantic.dev/articles/code-mode-vs-sandboxes?utm_source=x&utm_medium=social&utm_campaign=code-mode-vs-sandboxes

收錄日期
2026-11-12
來源
Nitter RSS(公開貼文)
抓取時間
2026/11/12 05:18(台北)