This release adds 3 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Topics
+13 more
ReleasePort's take
Light signalRelease v1.40.0 of the SDK sets `use_native_token_count` default to false.
Why it matters: Update configurations before upgrading; existing setups relying on true may break.
Summary
AI summarySet use_native_token_count default to false.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Feature | Medium |
Proactive context compression added to conversation managers. Proactive context compression added to conversation managers. Source: llm_adapter@2026-05-21 Confidence: low |
— |
| Feature | Medium |
AccessDenied error cached for count tokens. AccessDenied error cached for count tokens. Source: llm_adapter@2026-05-21 Confidence: low |
— |
| Feature | Medium |
Official Discord link added to SDK. Official Discord link added to SDK. Source: llm_adapter@2026-05-21 Confidence: low |
— |
| Bugfix | Medium |
Swarm bug fixing context detachment with OpenTelemetry. Swarm bug fixing context detachment with OpenTelemetry. Source: llm_adapter@2026-05-21 Confidence: high |
— |
| Bugfix | Medium |
Ollama latencyMs metric return type updated. Ollama latencyMs metric return type updated. Source: llm_adapter@2026-05-21 Confidence: low |
— |
| Bugfix | Medium |
use_native_token_count default set to false. use_native_token_count default set to false. Source: llm_adapter@2026-05-21 Confidence: low |
— |
Full changelog
What's Changed
- feat: add proactive context compression to conversation managers by @opieter-aws in https://github.com/strands-agents/sdk-python/pull/2239
- feat: cache AccessDenied error for count tokens by @opieter-aws in https://github.com/strands-agents/sdk-python/pull/2279
- fix(ollama): update return type of latencyMs metric for ollama model provider by @paliwalvimal in https://github.com/strands-agents/sdk-python/pull/2236
- feat: add official Discord link by @Albertozhao in https://github.com/strands-agents/sdk-python/pull/2285
- fix: set use_native_token_count default to false by @opieter-aws in https://github.com/strands-agents/sdk-python/pull/2284
- fix: swarm bug "Failed to detach context" with opentelemetry by @mehtarac in https://github.com/strands-agents/sdk-python/pull/2281
New Contributors
- @paliwalvimal made their first contribution in https://github.com/strands-agents/sdk-python/pull/2236
- @Albertozhao made their first contribution in https://github.com/strands-agents/sdk-python/pull/2285
Full Changelog: https://github.com/strands-agents/sdk-python/compare/v1.39.0...v1.40.0
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About sdk-python
All releases →Related context
Beta — feedback welcome: [email protected]