8000 feat(utils): visualize agent workflows in Mermaid by d33bs · Pull Request #1441 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content

feat(utils): visualize agent workflows in Mermaid #1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

d33bs
Copy link
@d33bs d33bs commented Jun 16, 2025

This PR adds visualization capabilities for agent workflows by using Mermaid, a code-as-diagram solution which is compatible with many different platforms (including GitHub comment markdown). This change generates Mermaid diagram code based on a root_agent input and then leverages https://kroki.io/ to render the Mermaid diagram code into PNG bytes which may be displayed where convenient. The visualizations may be most helpful in environments where users may have access to Jupyter notebooks or similar, creating a nice graphical experience whereby they can make decisions about and understand their google-adk workflows from a visual perspective (see the prototype for this here).

Closes #1309

@d33bs d33bs force-pushed the agent-mermaid-diagrams branch from 17da718 to cc51f40 Compare June 16, 2025 21:05
@d33bs d33bs changed the title Visualize agent workflows through Mermaid feat(utils): visualize agent workflows in Mermaid Jun 16, 2025
@d33bs d33bs marked this pull request as ready for review June 16, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mermaid diagram export capabilities for agent workflow understandability
1 participant
0