Python、TypeScript、Go、Java、Ruby、PHP 和 C# SDK 现已支持 code_execution_20260120,该代码执行工具版本新增了 REPL 状态持久化功能,且是编程式工具调用的最低版本。如需采用,请将工具类型设置为 code_execution_20260120,无需使用测试版标头。该版本适用于 Claude Fable 5、Claude Mythos 5、Claude Opus 4.5 及更新版本、Claude Sonnet 4.5 及更新版本;详见模型兼容性表。
The Python, TypeScript, Go, Java, Ruby, PHP, and C# SDKs now include support for code_execution_20260120, the code execution tool version that adds REPL state persistence and is the minimum version for programmatic tool calling. To adopt it, set the tool's type to code_execution_20260120; no beta header is required. It's available on Claude Fable 5, Claude Mythos 5, Claude Opus 4.5 and newer, and Claude Sonnet 4.5 and newer; see the model compatibility table.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文