langgoap.visualize#
- visualize(plan, *, format='auto', show_resources=True, show_schedule=True)[source]#
Render a Plan for display.
Return types:
format="ascii"orformat="ascii_gantt"→ always astr.format="mermaid"→IPython.display.Markdownif IPython is importable, otherwise a plainstr.format="gantt"→ same detection rules as"mermaid".format="dot"→IPython.display.Imagewhen IPython and thegraphvizPython package with thedotbinary are available. Otherwise returns the DOT source asstr.format="auto"→"mermaid"when IPython is available,"ascii"otherwise.
- Parameters:
plan (Plan) – Plan to render.
format (VizFormat) – Output format selector.
show_resources (bool) – Forwarded to the underlying renderer.
show_schedule (bool) – Forwarded to the underlying renderer.
- Returns:
Rendered output; exact type depends on
formatand the presence of IPython in the current environment.- Return type:
str | Any