sdk-v1.7.0
Anthropic TypeScript SDK v1.7.0 adds references to new models (claude-fable-5-2 and claude-mythos-5-2), updates organization webhook and report APIs, and fixes structured output schema handling for const and enum values.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The Anthropic TypeScript SDK release v1.7.0 includes multiple feature updates, bug fixes, and documentation improvements. Key additions include API references for claude-fable-5-2 and claude-mythos-5-2, parent organization filtering and grouping for usage/cost reports, sandbox egress restricted error handling for Admin API write methods, and a user profile.program status updated webhook event. Bug fixes ensure the body of failed responses is logged in debug mode and retain const and enum definitions in structured output schemas. In documentation and chores, examples now demonstrate Zod v4 imports, error code types are listed, and error detail types were updated.
可执行摘要
Anthropic TypeScript SDK v1.7.0 introduces support for claude-fable-5-2 and claude-mythos-5-2, adds parent org filtering/grouping in usage/cost reports, handles user profile.program status update webhooks, preserves const and enum in structured output schemas, and logs response bodies on failed requests in debug mode.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Update to @anthropic-ai/sdk v1.7.0 if targeting the new models or webhook events.
- Verify structured output schemas if relying on const or enum fields, which are now explicitly preserved.
- Review Zod imports in examples if migrating or using Zod 3.25+.