bedrock-agentcore-starter-toolkit 0.1.15__py3-none-any.whl → 0.1.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bedrock-agentcore-starter-toolkit might be problematic. Click here for more details.
- bedrock_agentcore_starter_toolkit/operations/memory/strategy_validator.py +27 -14
- bedrock_agentcore_starter_toolkit/operations/runtime/configure.py +1 -1
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/METADATA +1 -1
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/RECORD +8 -8
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/WHEEL +0 -0
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/entry_points.txt +0 -0
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/licenses/LICENSE.txt +0 -0
- {bedrock_agentcore_starter_toolkit-0.1.15.dist-info → bedrock_agentcore_starter_toolkit-0.1.17.dist-info}/licenses/NOTICE.txt +0 -0
|
@@ -47,6 +47,21 @@ class UniversalComparator:
|
|
|
47
47
|
@staticmethod
|
|
48
48
|
def _deep_compare_normalized(obj1: Any, obj2: Any, path: str = "") -> tuple[bool, str]:
|
|
49
49
|
"""Compare normalized objects recursively."""
|
|
50
|
+
# Special handling for namespaces - check this first before general type/None handling
|
|
51
|
+
if path == "namespaces":
|
|
52
|
+
# Skip validation if either is None/empty or both are None
|
|
53
|
+
# This allows server-side namespace assignment when not provided by user
|
|
54
|
+
if not obj1 or not obj2:
|
|
55
|
+
return True, ""
|
|
56
|
+
# Only validate if both are non-empty lists
|
|
57
|
+
if isinstance(obj1, list) and isinstance(obj2, list):
|
|
58
|
+
set1 = set(obj1) if obj1 else set()
|
|
59
|
+
set2 = set(obj2) if obj2 else set()
|
|
60
|
+
if set1 != set2:
|
|
61
|
+
return False, f"{path}: mismatch ({sorted(set1)} vs {sorted(set2)})"
|
|
62
|
+
return True, ""
|
|
63
|
+
# If not both lists, fall through to normal comparison
|
|
64
|
+
|
|
50
65
|
# Handle None equivalence - treat None and empty values as equivalent
|
|
51
66
|
if obj1 is None and obj2 is None:
|
|
52
67
|
return True, ""
|
|
@@ -69,12 +84,18 @@ class UniversalComparator:
|
|
|
69
84
|
val1 = obj1.get(key)
|
|
70
85
|
val2 = obj2.get(key)
|
|
71
86
|
|
|
72
|
-
# Special handling for namespaces -
|
|
73
|
-
if key == "namespaces"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if
|
|
77
|
-
|
|
87
|
+
# Special handling for namespaces - only validate when both are non-empty lists
|
|
88
|
+
if key == "namespaces":
|
|
89
|
+
# Skip validation if either is None/empty or both are None
|
|
90
|
+
# This allows server-side namespace assignment when not provided by user
|
|
91
|
+
if not val1 or not val2:
|
|
92
|
+
continue
|
|
93
|
+
# Only validate if both are non-empty lists of strings
|
|
94
|
+
if isinstance(val1, list) and isinstance(val2, list):
|
|
95
|
+
set1 = set(val1) if val1 else set()
|
|
96
|
+
set2 = set(val2) if val2 else set()
|
|
97
|
+
if set1 != set2:
|
|
98
|
+
return False, f"{key_path}: mismatch ({sorted(set1)} vs {sorted(set2)})"
|
|
78
99
|
continue
|
|
79
100
|
|
|
80
101
|
matches, error = UniversalComparator._deep_compare_normalized(val1, val2, key_path)
|
|
@@ -84,14 +105,6 @@ class UniversalComparator:
|
|
|
84
105
|
return True, ""
|
|
85
106
|
|
|
86
107
|
elif isinstance(obj1, list):
|
|
87
|
-
# Special case: if this is a namespaces list at the root level, compare as sets
|
|
88
|
-
if path == "namespaces":
|
|
89
|
-
set1 = set(obj1) if obj1 else set()
|
|
90
|
-
set2 = set(obj2) if obj2 else set()
|
|
91
|
-
if set1 != set2:
|
|
92
|
-
return False, f"{path}: mismatch ({sorted(set1)} vs {sorted(set2)})"
|
|
93
|
-
return True, ""
|
|
94
|
-
|
|
95
108
|
if len(obj1) != len(obj2):
|
|
96
109
|
return False, f"{path}: list length mismatch ({len(obj1)} vs {len(obj2)})"
|
|
97
110
|
|
|
@@ -119,7 +119,7 @@ def configure_bedrock_agentcore(
|
|
|
119
119
|
if verbose:
|
|
120
120
|
log.debug("Prompting for memory configuration")
|
|
121
121
|
|
|
122
|
-
config_manager = ConfigurationManager(build_dir / ".bedrock_agentcore.yaml")
|
|
122
|
+
config_manager = ConfigurationManager(build_dir / ".bedrock_agentcore.yaml", non_interactive)
|
|
123
123
|
|
|
124
124
|
# New memory selection flow
|
|
125
125
|
action, value = config_manager.prompt_memory_selection()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bedrock-agentcore-starter-toolkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.17
|
|
4
4
|
Summary: A starter toolkit for using Bedrock AgentCore
|
|
5
5
|
Project-URL: Homepage, https://github.com/aws/bedrock-agentcore-starter-toolkit
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/aws/bedrock-agentcore-starter-toolkit/issues
|
|
@@ -25,7 +25,7 @@ bedrock_agentcore_starter_toolkit/operations/memory/README.md,sha256=ruf0ljBArKP
|
|
|
25
25
|
bedrock_agentcore_starter_toolkit/operations/memory/__init__.py,sha256=PAj25QAlnlvjaQIgfIpfxXXVXu5BTOXy-xDMDh6_HIc,59
|
|
26
26
|
bedrock_agentcore_starter_toolkit/operations/memory/constants.py,sha256=0HWpxJZXmnmekIEW5TJjn9KmEqVi_REJzUN1l68ohYQ,3226
|
|
27
27
|
bedrock_agentcore_starter_toolkit/operations/memory/manager.py,sha256=EwwNInqlIU3_d3dIphzp5ylNEEWISDduhlmjHkXrioA,44514
|
|
28
|
-
bedrock_agentcore_starter_toolkit/operations/memory/strategy_validator.py,sha256=
|
|
28
|
+
bedrock_agentcore_starter_toolkit/operations/memory/strategy_validator.py,sha256=s01xd0x2cMNweuQdB6Fiyxz3RU3mTkHUC5zFW28jfXE,18754
|
|
29
29
|
bedrock_agentcore_starter_toolkit/operations/memory/models/DictWrapper.py,sha256=GtPnR2NoZ9BXZX4fFYupG97T-YEet2NrBFlaDZIS-gM,1693
|
|
30
30
|
bedrock_agentcore_starter_toolkit/operations/memory/models/Memory.py,sha256=As1b9al57zlYWUAHcwIuHjL-6QAsfH_zhxD8xU9gh3I,424
|
|
31
31
|
bedrock_agentcore_starter_toolkit/operations/memory/models/MemoryStrategy.py,sha256=CnVfWqrSWefSxK5Oh1jllZRr1_JTnUvROLuuqTVVlWM,478
|
|
@@ -38,7 +38,7 @@ bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/semantic.p
|
|
|
38
38
|
bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/summary.py,sha256=X0sVh-6Hw9PPnpPQucG_M7gVyXUiElZInFXBN8WDFUQ,1015
|
|
39
39
|
bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/user_preference.py,sha256=JJPAzt_Shix5a-RJEf7xOEzN5kxtX3dpP8xoMvry61U,996
|
|
40
40
|
bedrock_agentcore_starter_toolkit/operations/runtime/__init__.py,sha256=0jRUuwSoqh4R_WqzfP4XAXngrgyFK5uH8JGXUVars6Y,793
|
|
41
|
-
bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=
|
|
41
|
+
bedrock_agentcore_starter_toolkit/operations/runtime/configure.py,sha256=wQAYfKfYOp_YXh90bfwzMWB8vhW76fndZ30q-nbfE4M,12823
|
|
42
42
|
bedrock_agentcore_starter_toolkit/operations/runtime/create_role.py,sha256=1-b_wBvkOXNh-HJsxATwHfXQqj0dpdETds0FNSTY0BE,16116
|
|
43
43
|
bedrock_agentcore_starter_toolkit/operations/runtime/destroy.py,sha256=w80NppiAFEQefrQpBoF4YBL2pCreKM_TFNYG68irdYs,25147
|
|
44
44
|
bedrock_agentcore_starter_toolkit/operations/runtime/invoke.py,sha256=49bfVSGICisXlOiqtFc6vUfd24z3ibQxPPeZy1QMoWw,6764
|
|
@@ -72,9 +72,9 @@ bedrock_agentcore_starter_toolkit/utils/runtime/templates/Dockerfile.j2,sha256=f
|
|
|
72
72
|
bedrock_agentcore_starter_toolkit/utils/runtime/templates/dockerignore.template,sha256=b_70sBi0MwkTuA9TqxPqFcWK7TcmpaXBJ6M2Ipox65Q,691
|
|
73
73
|
bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_policy.json.j2,sha256=hsYLCgaWMfXuwva90yb1DVEO_HUkIjHHNcPKb60E18k,6180
|
|
74
74
|
bedrock_agentcore_starter_toolkit/utils/runtime/templates/execution_role_trust_policy.json.j2,sha256=PPJF6Ofq70W5DUE0NlbmnZjw5RkgepPgkskxEgEG28o,473
|
|
75
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
76
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
77
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
78
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
79
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
80
|
-
bedrock_agentcore_starter_toolkit-0.1.
|
|
75
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/METADATA,sha256=ffd_TqBJzo8dC83UdCCBZ-KNIevFhe8mz_c2HK3-JmI,9999
|
|
76
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
77
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/entry_points.txt,sha256=Tf94DkUf2Tp8P7p8MEXLxre7A7Pp_XNukteiz0wHnk8,77
|
|
78
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/licenses/LICENSE.txt,sha256=nNPOMinitYdtfbhdQgsPgz1UowBznU6QVN3Xs0pSTKU,10768
|
|
79
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/licenses/NOTICE.txt,sha256=rkBsg8DbKqfIoQbveqX9foR4uJPUVAokbkr02pRPilE,8674
|
|
80
|
+
bedrock_agentcore_starter_toolkit-0.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|