github strands-agents/sdk-python v1.38.0

7 hours ago

What's Changed

  • feat(mcp): preserve CallToolResult.isError flag in MCPToolResult by @Zelys-DFKH in #2118
  • feat: add count_token method to model with naive estimation using tiktoken by @lizradway in #2031
  • chore(log): added warning for default model awareness and is subject to change by @poshinchen in #2164
  • fix(litellm): forward ttl field from CachePoint in _format_system_messages by @ElliottJW in #2153
  • fix(skills): preserve cache points in system prompt during skills inj… by @mattdai01 in #2134
  • fix(ollama): generate unique toolUseId instead of reusing tool name by @Ratansairohith in #2053
  • feat(cache): add TTL support to CachePoint for prompt caching by @kpx-dev in #1660
  • fix: use non-interactive flag for Nova Sonic history and system promp… by @prettyprettyprettygood in #2188
  • ci: update litellm requirement from <=1.82.6,>=1.75.9 to >=1.75.9,<=1.83.13 by @dependabot[bot] in #2197
  • ci: update pre-commit requirement from <4.6.0,>=3.2.0 to >=3.2.0,<4.7.0 by @dependabot[bot] in #2185
  • feat: large tool result offload by @lizradway in #2162
  • feat: override count_tokens with native token counting for supported providers by @opieter-aws in #2189
  • fix(bedrock): upgrade default model to Claude Sonnet 4.5 by @afarntrog in #2193
  • chore: update style guide for tool spec navigation by @lizradway in #2203
  • feat: add ProviderTokenCountError for native token counting failures by @opieter-aws in #2211
  • fix(conversation-manager): handle window_size=0 and reject negative values by @SuperMarioYL in #2208
  • fix: change token counting fallback log from warning to debug by @opieter-aws in #2220
  • fix: do not synthesize exception for cancelled tools by @Gastly in #2106
  • feat: estimate input tokens before model calls by @opieter-aws in #2221
  • feat(offloader): return explicit paths in preview and auto-enable retrieval by @lizradway in #2222
  • fix: update tests to use non-EOL'd model by @zastrowm in #2226
  • feat(bedrock): add strict_tools config with auto-inject of additional… by @kaghatim in #2213

New Contributors

Full Changelog: v1.37.0...v1.38.0

Don't miss a new sdk-python release

NewReleases is sending notifications on new releases.