# sdk-python

> A model-driven approach to building AI agents in just a few lines of code.

- **URL**: https://www.freshcrate.ai/projects/sdk-python
- **Author**: strands-agents
- **Category**: MCP Servers
- **Latest version**: `python/v1.42.0` (2026-06-01)
- **License**: Apache-2.0
- **Source**: https://github.com/strands-agents/sdk-python
- **Homepage**: https://strandsagents.com
- **Language**: Python
- **GitHub**: 5,677 stars, 794 forks
- **Registry**: github
- **Tags**: `agentic`, `agentic-ai`, `agents`, `ai`, `anthropic`, `autonomous-agents`, `bedrock`, `genai`, `python`

## Description

A model-driven approach to building AI agents in just a few lines of code.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `python/v1.42.0` | 2026-06-01 | High | ## What's Changed  * fix(tests): fix flaky tests to accept string or number by @lizradway in https://github.com/strands-agents/sdk-python/pull/2319 * chore: prepare directory layout for monorepo convergence by @zastrowm in https://github.com/strands-agents/sdk-python/pull/2317 * feat: add endpoint_url parameter to S3SessionManager by @tealgreen0503 in https://github.com/strands-agents/sdk-python/pull/1934 * feat(gemini): plumb through cache tokens in metadata events by @yatszhash in https:/ |
| `v1.41.0` | 2026-05-21 | High | ## What's Changed * feat(plugins): add MultiAgentPlugin for Swarm and Graph orchestrators by @zastrowm in https://github.com/strands-agents/sdk-python/pull/2280 * feat: bump starlette dependency to 1.x by @pgrayy in https://github.com/strands-agents/sdk-python/pull/2297 * feat(bedrock): add TTL support to auto-injected tool and system/user cache points by @kpx-dev in https://github.com/strands-agents/sdk-python/pull/2232 * fix(tests): add use_native_token_count=True when expected by @lizradw |
| `v1.40.0` | 2026-05-14 | High | ## 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 |
| `v1.39.0` | 2026-05-08 | High | ## What's Changed * feat: enable openai provider use aws profile by @JackYPCOnline in https://github.com/strands-agents/sdk-python/pull/2230 * fix: include root cause in MCPClientInitializationError message by @aidandaly24 in https://github.com/strands-agents/sdk-python/pull/2238 * feat: add context window limit lookup table by @opieter-aws in https://github.com/strands-agents/sdk-python/pull/2249 * fix: fix count tokens for bedrock models by @mehtarac in https://github.com/strands-agents/sd |
| `v1.38.0` | 2026-04-30 | High | ## What's Changed * feat(mcp): preserve CallToolResult.isError flag in MCPToolResult by @Zelys-DFKH in https://github.com/strands-agents/sdk-python/pull/2118 * feat: add `count_token` method to model with naive estimation using tiktoken by @lizradway in https://github.com/strands-agents/sdk-python/pull/2031 * chore(log): added warning for default model awareness and is subject to change by @poshinchen in https://github.com/strands-agents/sdk-python/pull/2164 * fix(litellm): forward ttl field |
| `v1.37.0` | 2026-04-22 | High | ## What's Changed * fix: add fallback trim point for tool-heavy conversations in SlidingWindowConversationManager by @lufecadu in https://github.com/strands-agents/sdk-python/pull/2174 * feat: introduce checkpoint in experimental by @JackYPCOnline in https://github.com/strands-agents/sdk-python/pull/2181 * feat: add context_window_limit to model configs by @opieter-aws in https://github.com/strands-agents/sdk-python/pull/2176 * fix(mcp): skip MCPClient cleanup during interpreter finalization |
| `v1.36.0` | 2026-04-17 | High | ## What's Changed * feat(hooks): accept callable hook callbacks in Agent constructor  by @agent-of-mkmeral in https://github.com/strands-agents/sdk-python/pull/1992 * fix: handle missing optional fields in non-streaming citation conversion by @agent-of-mkmeral in https://github.com/strands-agents/sdk-python/pull/2098 * fix(telemetry): add common gen_ai attributes to event loop cycle spans by @giulio-leone in https://github.com/strands-agents/sdk-python/pull/1973 * fix(telemetry): use per-inv |
| `v1.35.0` | 2026-04-08 | High | ## What's Changed   ### Features  #### Bedrock Service Tier Support — [PR#1799](https://github.com/strands-agents/sdk-python/pull/1799)  Amazon Bedrock now offers service tiers (Priority, Standard, Flex) that let you control the trade-off between latency and cost on a per-request basis. `BedrockModel` accepts a new `service_tier` configuration field, consistent with how other Bedrock-specific features like guardrails are exposed. When not set, the field is omitted and Bedrock uses its def |
| `v1.34.1` | 2026-04-01 | Medium | ## What's Changed * fix: fix type imcompatible by @JackYPCOnline in https://github.com/strands-agents/sdk-python/pull/2018 * fix: isolate langfuse env vars by @lizradway in https://github.com/strands-agents/sdk-python/pull/2022 * fix: restore explicit span.end() to fix span end_time regression by @zastrowm in https://github.com/strands-agents/sdk-python/pull/2032 * feat(context): track context tokens by @lizradway in https://github.com/strands-agents/sdk-python/pull/2009   **Full Changelo |
| `v1.34.0` | 2026-03-31 | Medium | ## What's Changed * chore: remove Cohere from required integ test providers by @zastrowm in https://github.com/strands-agents/sdk-python/pull/1967 * feat: add AgentAsTool by @notowen333 in https://github.com/strands-agents/sdk-python/pull/1932 * feat: auto-wrap Agent instances passed in tools list by @agent-of-mkmeral in https://github.com/strands-agents/sdk-python/pull/1997 * feat(telemetry): emit system prompt on chat spans per GenAI semconv by @sanjeed5 in https://github.com/strands-agent |

## Citation

- HTML: https://www.freshcrate.ai/projects/sdk-python
- Markdown: https://www.freshcrate.ai/projects/sdk-python.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/sdk-python/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
