Region Guard
agent_memory_hub.control_plane.region_guard.RegionGuard
Bases: RegionAware
Enforces region constraints for memory operations.
Source code in agent_memory_hub/control_plane/region_guard.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
check_residency(operation_region=None)
Raises generic RuntimeError if region mismatch.
Source code in agent_memory_hub/control_plane/region_guard.py
32 33 34 35 36 37 38 39 40 | |
validate_region(target_region)
Validates if the operation matches the guard's region.
Source code in agent_memory_hub/control_plane/region_guard.py
26 27 28 29 30 | |