模型行为官方发布自动监测

Anthropic Python SDK v2.9.0

Anthropic Python SDK v2.9.0 adds RBAC role details and bundle update APIs, while delivering extensive security and sandboxing hardening across file, grep, and session runner tools, alongside beta header deprecations.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Anthropic Python SDK release v2.9.0 introduces updates to the API and significant hardening across agent tool integrations. New features include source and error codes on RBAC Role read endpoints, and an 'Update Bundle' endpoint allowing developers to set and inspect instructions on Tag Bundles. A substantial suite of bug fixes addresses agent tool security and stability: file tool path resolution now safely resolves dangling symlinks, memory tools exclude external symlinks and read files strictly via validated paths, and grep tools enforce safety controls (rejecting relative/empty PATH lookups, avoiding writable directory paths, preventing execution of untrusted Windows scripts, stripping ANTHROPIC environment variables, and skipping special files like FIFOs/devices). In addition, session runners now correctly halt tool dispatch for terminated sessions and threads. Finally, older beta headers (such as prompt-caching-2024-07-31, pdfs-2024-09-25, and message-batches-2024-09-24) have been deprecated or dropped from automatic batch requests.

Agent 解析

可执行摘要

Anthropic Python SDK v2.9.0 introduces RBAC source/error codes, Tag Bundle update instructions, and major agent tool execution hardening. Crucial fixes include restricting ripgrep invocation to absolute PATH binaries outside writable directories, filtering out FIFOs/devices during search, symlink confinement in /memories and file tools, and preventing terminated sessions from executing queued tool calls. Several…

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Remove deprecated beta headers from client requests (e.g., prompt-caching-2024-07-31, pdfs-2024-09-25, token-counting-2024-11-01, token-efficient-tools-2025-02-19, message-batches-2024-09-24).
  • Review migrations for Files API and Skills if using 'files-api-2025-04-14' or 'skills-2025-10-02' beta response shapes before removal in future SDK releases.
  • Verify environments relying on agent tool execution to ensure ripgrep is placed in an absolute, non-writable PATH entry to prevent fallbacks to built-in search.
  • Recompile any C-based integrations utilizing AnthropicBeta enum due to renumbered enum members.
分类

标签与路由

anthropicsdkpython
相关信号

继续阅读