google / google/adk-python

Add adk graph command and --ascii-only for DOT output

Open
#3,426 1 comment 0 reactions 1 assignee Claimed by @Jacksunwei View on GitHub
core needs review
Dominant language
Python
Stars
21.5k
Forks
4k
Avg merge
1d 14h
Merged PRs (30d)
37

Description

### Summary:
Add CLI command adk graph to render agent trees as DOT/PNG/SVG, plus an --ascii-only option to strip non-ASCII for Windows consoles.
Motivation: Improve developer experience to visualize multi-agent hierarchies without launching the web UI; enable Windows CMD users to generate readable DOT.
### Scope:
New subcommand: adk graph
Formats: dot|png|svg
Option: --ascii-only for DOT
### Acceptance Criteria:
Running adk graph on a sample agent produces DOT with readable labels.
Optionally produces PNG/SVG when Graphviz is installed.
Windows CMD can generate ASCII-only DOT without encoding errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.