semantic_router.index.postgres.clean_route_name#
- semantic_router.index.postgres.clean_route_name(route_name: str) str #
Cleans and formats the route name by stripping spaces and replacing them with hyphens.
- Parameters:
route_name (str) – The original route name.
- Returns:
The cleaned and formatted route name.
- Return type:
str