Skip to content

Commit 299157a

Browse files
chore(deps): update bedrock-agentcore SDK to 1.1.x (#341)
Update bedrock-agentcore dependency version constraint. Includes compatibility updates for retrieve.py and test fixes.
1 parent d5b8211 commit 299157a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ local_chromium_browser = ["nest-asyncio>=1.5.0,<2.0.0", "playwright>=1.42.0,<2.0
9292
agent_core_browser = [
9393
"nest-asyncio>=1.5.0,<2.0.0",
9494
"playwright>=1.42.0,<2.0.0",
95-
"bedrock-agentcore==0.1.0"
95+
"bedrock-agentcore>=1.1.0,<1.2.0"
9696
]
9797
agent_core_code_interpreter = [
98-
"bedrock-agentcore==0.1.0"
98+
"bedrock-agentcore>=1.1.0,<1.2.0"
9999
]
100100
a2a_client = ["a2a-sdk[sql]>=0.3.0,<0.4.0"]
101101
diagram = [

src/strands_tools/retrieve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176
"lessThanOrEquals, in (value in list), notIn, listContains (list contains value), "
177177
"stringContains (substring match), startsWith (OpenSearch Serverless only), "
178178
"andAll (all conditions must match, min 2 items), orAll (at least one condition must match, "
179-
"min 2 items). Example: {\"andAll\": [{\"equals\": {\"key\": \"category\", "
180-
"\"value\": \"security\"}}, {\"greaterThan\": {\"key\": \"year\", \"value\": \"2022\"}}]}"
179+
'min 2 items). Example: {"andAll": [{"equals": {"key": "category", '
180+
'"value": "security"}}, {"greaterThan": {"key": "year", "value": "2022"}}]}'
181181
),
182182
},
183183
},

tests/test_calculator_precision.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def extract_text(result):
1616
# Core regression tests (original bug)
1717
# ------------------------------------------------------------
1818

19+
1920
def test_precision_does_not_change_real_value():
2021
r2 = calculator("221 * 318.11", precision=2)
2122
r4 = calculator("221 * 318.11", precision=4)
@@ -24,7 +25,7 @@ def test_precision_does_not_change_real_value():
2425
t4 = extract_text(r4)
2526

2627
assert "70302.31" in t2
27-
assert "70302.31" in t4 # trailing zeros are stripped by design
28+
assert "70302.31" in t4 # trailing zeros are stripped by design
2829

2930

3031
def test_precision_does_not_change_division_value():
@@ -42,6 +43,7 @@ def test_precision_does_not_change_division_value():
4243
# Complex number regression tests
4344
# ------------------------------------------------------------
4445

46+
4547
def test_precision_does_not_change_complex_value():
4648
r2 = calculator("(1 + I) * 318.11", precision=2)
4749
r4 = calculator("(1 + I) * 318.11", precision=4)
@@ -57,6 +59,7 @@ def test_precision_does_not_change_complex_value():
5759
# Symbolic guardrails (correct semantics)
5860
# ------------------------------------------------------------
5961

62+
6063
def test_expression_with_symbols_remains_symbolic():
6164
r = calculator("x + 1", precision=2)
6265
t = extract_text(r)
@@ -69,4 +72,3 @@ def test_force_numeric_applies_numeric_evaluation():
6972
t = extract_text(r)
7073

7174
assert "1.4142" in t
72-

0 commit comments

Comments
 (0)