MermaidAgentflowDocument
ChartForgeX.Mermaid
A source-preserving agent workflow; instructions and connector metadata are inert diagram data.
Inheritance
- MermaidDocument
- MermaidAgentflowDocument
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
- Method MermaidParser.ParseAgentflow
Accepted by parameters 8
- Extension method MermaidAgentflowDocument.ToPng
- Extension method MermaidAgentflowDocument.ToSvg
- Extension method MermaidAgentflowDocument.ToTopologyChart
- Extension method MermaidAgentflowDocument.ToVisualArtifact
- Method MermaidAgentflowRendering.ToPng
- Method MermaidAgentflowRendering.ToSvg
- Method MermaidAgentflowRendering.ToTopologyChart
- Method MermaidAgentflowRendering.ToVisualArtifact
Constructors
public MermaidAgentflowDocument() #Inherited Methods
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.
Inherited Properties
public MermaidSourceSpan HeaderSpan { get; set; } #public VisualAccessibility Accessibility { get; } #public MermaidSourceConfiguration Configuration { get; internal set; } #public List<MermaidDirective> Directives { get; } #public List<MermaidRawStatement> RawStatements { get; } #Extension Methods
public static byte[] ToPng(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #Exports the same native workflow as PNG.
Parameters
- document ChartForgeX.Mermaid.MermaidAgentflowDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
byte[]public static string ToSvg(MermaidAgentflowDocument document, MermaidTopologyRenderOptions? options = null) #Exports the native workflow as script-free SVG.
Parameters
- document ChartForgeX.Mermaid.MermaidAgentflowDocument
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
stringpublic 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
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
TopologyChartpublic 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
- options ChartForgeX.Mermaid.MermaidTopologyRenderOptions? = null
Returns
VisualArtifact