semantic_router.layer.is_valid#

semantic_router.layer.is_valid(layer_config: str) bool#

Make sure the given string is json format and contains the 3 keys: [“encoder_name”, “encoder_type”, “routes”]