简报·YT
← 返回 GitHub 动态
anthropics/anthropic-sdk-python · 📌 手动指定 已完成

anthropics/anthropic-sdk-python v1.15.0

2026-10-15 19:45 · ⭐ 3974 · GitHub Release 原文 ↗
#SDK更新 #API变更 #版本发布

anthropics/anthropic-sdk-python v1.15.0

一句话:本次版本聚焦 API 能力扩展,为 Messages 新增 speed 参数与 usage.speed 字段,补充 thinking 类型中的 between_tools,并将 Console 组织的 spend cap 以只读 spend limit 形式开放,同时包含 CI、文档和测试方面的维护性改进。

▸ Release Notes 英文原文(590 字符)
### Features * **api:** add between_tools to thinking types in model capabilities * **api:** add the speed parameter and usage.speed to Messages * **api:** return a Console organization's usage-tier spend cap as a read-only spend limit ### Chores * **ci:** speed up breaking change detection * **docs:** describe headers on Managed Agents and telemetry endpoints * **internal:** simplify the script that formats code blocks in docs * **tests:** cover OpenTelemetry options and method default timeouts ### Documentation * **api:** note that some models need a beta header to use speed
▸ 主项目介绍 · anthropics/anthropic-sdk-python
▸ README 原文(同步于 2026-07-19 13:24)
# Claude SDK for Python [![PyPI version](https://img.shields.io/pypi/v/anthropic.svg)](https://pypi.org/project/anthropic/) The Claude SDK for Python provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Python applications. ## Documentation Full documentation is available at **[platform.claude.com/docs/en/api/sdks/python](https://platform.claude.com/docs/en/api/sdks/python)**. ## Installation ```sh pip install anthropic ``` ## Getting started ```python import os from anthropic import Anthropic client = Anthropic( api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted ) message = client.messages.create( max_tokens=1024, messages=[ { "role": "user", "content": "Hello, Claude", } ], model="claude-opus-4-6", ) print(message.content) ``` ## Requirements Python 3.9+ ## Contributing See [CONTRIBUTING.md](./CONTRIBUTING.md). ## License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.