Structure visualizer
StructureVisualizer
Utility class to visualize a Structure structure
Source code in griptape/utils/structure_visualizer.py
header: str = field(default='graph TD;', kw_only=True)
class-attribute
instance-attribute
structure: Structure = field()
class-attribute
instance-attribute
__render_task(task)
to_url()
Generates a url that renders the Workflow structure as a Mermaid flowchart Reference: https://mermaid.js.org/ecosystem/tutorials#jupyter-integration-with-mermaid-js
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
URL to the rendered image |