Mermaid export with path walked #350
Replies: 4 comments 2 replies
-
|
Hi @marceloandrader, Neuron already have a Marmeid exporter: https://github.com/neuron-core/neuron-ai/blob/2.x/src/Workflow/Exporter/MermaidExporter.php You can eventually improve it. You can inject the use NeuronAI\Workflow\Exporter\MermaidExporter;
$workflow = Workflow::make()->addNodes([...]);
// Inject an Exporter class
$workflow->setExporter(new MermaidExporter());
// Draw the workflow graph
echo $workflow->export();The exporter depends by its own interface |
Beta Was this translation helpful? Give feedback.
-
|
Yeah I'm aware of the exporter, was wondering if you see a way to add some style to nodes that have been visited, like when there is a branch, I want to know which branch was used during th execution. I guess this kind of export will be performed when a StopEvent is emitted. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, @ilvalerione but is this a visual representation of the nodes? Could you please point me to where I can read more about it and how to integrate it? I couldn’t find anything like this in the documentation… |
Beta Was this translation helpful? Give feedback.
-
Yeeee, i maked it! ))) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hey, thanks for neuron is super helpful.
I was thinking if the Workflow class can export a mermaid graph, with some styles, saying which nodes have been visited on the execution. Using this https://mermaid.js.org/syntax/flowchart.html#styling-a-node
I can work on this one, if you give me some direction and if it's feasible.
Beta Was this translation helpful? Give feedback.
All reactions