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

anthropics/anthropic-sdk-python v1.14.0

2026-10-14 17:13 · ⭐ 3968 · GitHub Release 原文 ↗
#OpenTelemetry #遥测接口 #流式处理

anthropics/anthropic-sdk-python v1.14.0

本版本主要为客户端引入 OpenTelemetry 链路追踪,并扩展 Admin API 的遥测目标(telemetry destinations)能力,同时修复了流式处理中的若干边界问题。

核心要点

新增能力

问题修复

文档与内部维护

Breaking Change

▸ Release Notes 英文原文(1042 字符)
### Features * **api:** add execution_identity to Managed Agents agents * **api:** add organization_type_not_supported error to spend limit lists * **api:** add telemetry destination test endpoint * **api:** add telemetry destinations to the Admin API * **client:** add OpenTelemetry tracing for API calls, streaming and tool runs ### Bug Fixes * **api:** rename telemetry destination test response model * **client:** close dropped streams without waiting for the collector * **streaming:** pass unknown event types through the message stream helpers * **streaming:** stop raising "Unexpected event order" for an event before message_start ### Chores * **docs:** correct prefill, thinking, fallback and model descriptions * **docs:** document the scope required to assign the managed role * **docs:** update model examples * **internal:** narrow the tripwire test rule in the contributor guides ### Documentation * **api:** clarify when custom tool results can be sent * **api:** say is_enabled is always true for user spend limits
▸ 主项目介绍 · 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.