Agent workflow graph visualization plugin for LangGraph and other frameworks
Project description
agentworkflow-viz
Agent workflow graph visualization plugin for LangGraph and other frameworks.
Render live graphs of your agent workflows with a built-in web UI, trace logging, and full customization via Python callbacks or raw HTML/CSS/JS injection.
Installation
pip install agentworkflow-viz
For LangGraph support:
pip install "agentworkflow-viz[langgraph]"
Quick Start
import agentviz
viz = agentviz.VizPlugin()
viz.start()
# Wrap a LangGraph graph
graph = viz.wrap(my_langgraph_graph)
# Or use the manual tracer
tracer = agentviz.VizTracer()
with tracer.span("my_step"):
do_work()
viz.stop()
Then open http://localhost:8100/graph in your browser.
Customization
Full node customization with Python renderers, HTML templates, and CSS/JS injection:
import agentviz
class MyRenderer(agentviz.NodeRenderer):
def render(self, node_id, node_data):
if node_id == "agent":
return {
"icon": "\U0001f916",
"css_class": "custom-agent",
"width": 160,
"height": 60,
}
return {}
customization = agentviz.VizCustomization(
node_renderer=MyRenderer(),
custom_css=".custom-agent { fill: rgba(108,155,255,0.15); stroke: #6c9bff; }",
title="My Agent Graph",
)
viz = agentviz.VizPlugin(config=agentviz.VizConfig(customization=customization))
viz.start()
See examples/custom_nodes.py for a full working example.
Configuration
Environment variables:
| Variable | Default | Description |
|---|---|---|
AGENT_VIZ_ENABLED |
true |
Enable/disable the plugin |
AGENT_VIZ_PORT |
8100 |
Server port |
AGENT_VIZ_HOST |
0.0.0.0 |
Server host |
AGENT_VIZ_MOUNT |
false |
Mount mode (no standalone server) |
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentworkflow_viz-0.2.1.tar.gz.
File metadata
- Download URL: agentworkflow_viz-0.2.1.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2309af452a0641d6d595a3df8cc6b03310096e07222a04c9dbe71c84a7bdf7d
|
|
| MD5 |
7a9b36f1ddc2a80201eff19467aa1ca6
|
|
| BLAKE2b-256 |
faafde3ef1fe5364b79dd94e1742c4e09c6f5d0379164fa274ee1fb063857e4d
|
File details
Details for the file agentworkflow_viz-0.2.1-py3-none-any.whl.
File metadata
- Download URL: agentworkflow_viz-0.2.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f020d85f8a99d090e87195510f535adf55d60ca057027863bf967061d0b504
|
|
| MD5 |
31c67f6e82fcb2dec119d5e112d893b7
|
|
| BLAKE2b-256 |
e11775e0b5c599363071158ce33cd347c3bf96fbd93bad8169cf936df80247a6
|