Skip to content
ChartForgeX
Class

MermaidAgentflowDocument

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

A source-preserving agent workflow; instructions and connector metadata are inert diagram data.

Inheritance

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 8

Constructors

public MermaidAgentflowDocument() #

Properties

public string? Direction { get; set; } #

Gets or sets the authored direction; null uses top-to-bottom native layout.

public List<MermaidAgentflowNode> Nodes { get; } #

Gets nodes in first-reference order, excluding container identities.

public List<MermaidAgentflowFlow> Flows { get; } #

Gets flows in declaration order.

public List<MermaidAgentflowEdge> Edges { get; } #

Gets relationships in source order.

Extension Methods

public static byte[] ToPng(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #

Exports the same native workflow as PNG.

Parameters

document ChartForgeX.Mermaid.MermaidAgentflowDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

byte[]
public static string ToSvg(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #

Exports the native workflow as script-free SVG.

Parameters

document ChartForgeX.Mermaid.MermaidAgentflowDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional

Returns

string
public static TopologyChart ToTopologyChart(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #

Creates a native workflow layout without invoking instructions, connectors or external engines.

Parameters

document ChartForgeX.Mermaid.MermaidAgentflowDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional
public static VisualArtifact ToVisualArtifact(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #

Creates an SVG/PNG/HTML/JSON artifact backed by one native workflow.

Parameters

document ChartForgeX.Mermaid.MermaidAgentflowDocument required
options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null optional