MCPcopy Index your code
hub / github.com/google/adk-python / get_agent_graph

Function get_agent_graph

src/google/adk/cli/agent_graph.py:300–311  ·  view source on GitHub ↗
(
    root_agent, highlights_pairs, image=False, dark_mode=True
)

Source from the content-addressed store, hash-verified

298
299
300async def get_agent_graph(
301 root_agent, highlights_pairs, image=False, dark_mode=True
302):
303 bg_color = '#333537' if dark_mode else '#ffffff'
304 graph = graphviz.Digraph(
305 graph_attr={'rankdir': 'LR', 'bgcolor': bg_color}, strict=True
306 )
307 await build_graph(graph, root_agent, highlights_pairs)
308 if image:
309 return graph.pipe(format='png')
310 else:
311 return graph

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.85
pipeMethod · 0.45

Tested by

no test coverage detected