Skip to content

Commit 2890c33

Browse files
author
Jack Gordley
committed
fixing nits
1 parent 81c4b1b commit 2890c33

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libs/langgraph-checkpoint-aws/langgraph_checkpoint_aws/agentcore/store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def _handle_search(self, op: SearchOp) -> list[SearchItem]:
195195

196196
def _convert_namespace_to_string(self, namespace_tuple: tuple[str, ...]) -> str:
197197
"""Convert namespace tuple to AgentCore namespace string."""
198+
if not isinstance(namespace_tuple, tuple):
199+
raise TypeError("namespace_tuple must be a tuple")
198200
if not namespace_tuple:
199201
return "/"
200202
return "/" + "/".join(namespace_tuple)

libs/langgraph-checkpoint-aws/langgraph_checkpoint_aws/agentcore/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __call__(self, config: dict | None = None) -> tuple[str, ...]:
5151
formatted_parts = []
5252

5353
for part in self.namespace_parts:
54-
if "{" in part and "}" in part:
54+
if part.startswith("{") and part.endswith("}"):
5555
# Format with configurable values
5656
try:
5757
formatted_part = part.format(**configurable)

libs/langgraph-checkpoint-aws/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ python = ">=3.9,<4.0"
2020
langgraph-checkpoint = ">=2.0.0"
2121
langgraph = ">=0.2.55,<0.7"
2222
boto3 = ">=1.37.3"
23-
bedrock-agentcore = ">=0.1.5"
23+
bedrock-agentcore = ">=0.1.4"
2424

2525
[tool.poetry.group.dev]
2626
optional = true

0 commit comments

Comments
 (0)