Skip to content

Commit 5359f91

Browse files
sundargthb“Sundar”
andauthored
chore: release v0.1.1 (#24)
* chore: release v0.1.1 - Fix OAuth2 parameter name in identity module - Improve JSON serialization consistency - Fix memory client region detection - Fix JSON response double wrapping issue * updated comments in the memory test file --------- Co-authored-by: “Sundar” <“[email protected]”>
1 parent 5f1f077 commit 5359f91

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ labels: ''
66
assignees: ''
77

88
---
9-
10-

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [0.1.0] - 2025-01-XX
10+
## [0.1.0] - 2025-07-16
1111

1212
### Added
1313
- Initial release of Bedrock AgentCore Python SDK
@@ -21,3 +21,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- TLS 1.2+ enforcement for all communications
2222
- AWS SigV4 signing for API authentication
2323
- Secure credential handling via AWS credential chain
24+
25+
## [0.1.1] - 2025-07-23
26+
27+
### Fixed
28+
- **Identity OAuth2 parameter name** - Fixed incorrect parameter name in GetResourceOauth2Token
29+
- Changed `callBackUrl` to `resourceOauth2ReturnUrl` for correct API compatibility
30+
- Ensures proper OAuth2 token retrieval for identity authentication flows
31+
32+
- **Memory client region detection** - Improved region handling in MemoryClient initialization
33+
- Now follows standard AWS SDK region detection precedence
34+
- Uses explicit `region_name` parameter when provided
35+
- Falls back to `boto3.Session().region_name` if not specified
36+
- Defaults to 'us-west-2' only as last resort
37+
38+
- **JSON response double wrapping** - Fixed duplicate JSONResponse wrapping issue
39+
- Resolved issue when semaphore acquired limit is reached
40+
- Prevents malformed responses in high-concurrency scenarios
41+
42+
### Improved
43+
- **JSON serialization consistency** - Enhanced serialization for streaming and non-streaming responses
44+
- Added new `_safe_serialize_to_json_string` method with progressive fallbacks
45+
- Handles datetime, Decimal, sets, and Unicode characters consistently
46+
- Ensures both streaming (SSE) and regular responses use identical serialization logic
47+
- Improved error handling for non-serializable objects

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "bedrock-agentcore"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "An SDK for using Bedrock AgentCore"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/bedrock_agentcore/memory/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MemoryClient:
4040

4141
def __init__(self, region_name: Optional[str] = None):
4242
"""Initialize the Memory client."""
43-
self.region_name = boto3.Session().region_name or region_name or "us-west-2"
43+
self.region_name = region_name or boto3.Session().region_name or "us-west-2"
4444

4545
self.gmcp_client = boto3.client("bedrock-agentcore-control", region_name=self.region_name)
4646
self.gmdp_client = boto3.client("bedrock-agentcore", region_name=self.region_name)

tests/bedrock_agentcore/memory/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_client_initialization_region_mismatch():
4444

4545
# When region_name is provided, environment variable should still take precedence
4646
client1 = MemoryClient(region_name="us-west-2")
47-
assert client1.region_name == "us-east-1" # Environment wins over explicit param
47+
assert client1.region_name == "us-west-2"
4848

4949
# Second test - no environment variable, explicit param is used
5050
with patch("boto3.Session") as mock_session:

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)