sdk: v0.127.0
Anthropic TypeScript SDK v0.127.0 adds rate limit group display names, introduces compactBeforeNextTurn() in the tool runner, and fixes compaction delta and stream-retry bugs.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Anthropic TypeScript SDK v0.127.0 introduces new features and bug fixes across API handling, streaming, and tool execution. Key additions include the compactBeforeNextTurn() method for tool runners and rate limit display name support (alongside deprecation of the older group type). Key fixes address BetaMessageStream incorrectly coercing null compaction delta content to the string "null", omitting automatic retries on stream/iterator request bodies, properly joining multiple anthropic-beta headers without spaces, preserving $defs when resolving JSON Schema $ref roots in tools, and correcting pagination exports to type-only.
可执行摘要
Anthropic TypeScript SDK v0.127.0 adds compactBeforeNextTurn() to the tool runner, updates rate limit headers/typing (deprecating group type in favor of group with display name), resolves a bug coercing null compaction delta content to "null" in BetaMessageStream , avoids retrying streaming/iterator request bodies, and preserves $defs in transformJSONSchema when the root is $ref .
- Agent 实用度
- 82/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update to @anthropic-ai/sdk v0.127.0.
- Adopt compactBeforeNextTurn() in tool runners if managing token compaction between turns.
- Migrate deprecated rate limit group types to the new group with display name structure.
- Verify stream handling logic if relying on previous retry behavior or stream-based compaction delta serialization.