def build_save_planner(name: str, **kwargs: Any) -> SavePlanner:
    """Builds a save planner from the registry.

    Args:
        name (str): Name of the save planner to build.
        kwargs (Any): Other relevant keyword arguments.

    Returns:
        savePlanner: The save planner.
    """
    return construct_from_registry(
        name=name,
        registry=registry.save_planners,
        partial_function=True,
        pre_validation_function=SavePlanner,
        post_validation_function=None,
        kwargs=kwargs,
    )
Builds a save planner from the registry.

    Args:
        name (str): Name of the save planner to build.
        kwargs (Any): Other relevant keyword arguments.

    Returns:
        savePlanner: The save planner.
    
llmfoundry/utils/builders.py