• Format multiple paths for LLM context

    Formats an array of paths, with each path on its own line showing the full hierarchy.

    Parameters

    • paths: any[]

      Array of paths, where each path is an array of nodes

    Returns string

    Formatted multi-line string with all paths, one per line

    const formatted = convertPathsForContext([[node1, node2], [node3, node4]]);
    // Returns:
    // "Path 0:: node2 -> node1
    // Path 1:: node4 -> node3"