providerplaneai
    Preparing search index...

    Exports a Workflow definition to a Mermaid diagram, JSON-serializable format, DOT graph, or a D3-compatible format. This can be used for visualization and diagnostic of workflow structures. Note that exported workflows only include node ids and dependencies, not execution logic or metadata.

    Index

    Constructors

    Methods

    • Exports workflow and persists the result to disk.

      Parameters

      • workflow: Workflow<unknown>

        Workflow to export

      • format: "json" | "mermaid" | "dot" | "d3"

        Target export format

      • filePath: string

        Destination file path

      • autoCreateDir: boolean = true

        Whether to automatically create the parent directory if it doesn't exist (default: true)

      Returns Promise<void>

      Promise resolved when file write completes

      When directory creation or file write fails