Skip to content

sdk-python

v1.40.0 Feature

This release adds 3 notable features for engineering teams evaluating rollout.

Published 20d MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

agentic agentic-ai agents ai anthropic autonomous-agents
+13 more
bedrock genai litellm llama llm machine-learning mcp multi-agent-systems ollama openai opentelemetry python strands-agents

ReleasePort's take

Light signal
editorial:auto 13d

Release 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 summary

Set use_native_token_count default to false.

Changes in this release

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

Track sdk-python

Get notified when new releases ship.

Sign up free

About sdk-python

All releases →

Beta — feedback welcome: [email protected]