semantic_router.layer.is_valid#

semantic_router.layer.is_valid(layer_config)#

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

Return type:

bool