8000 the agent evetn graph is not able to be shown due to missing `await` … · codefromthecrypt/adk-python@4151047 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4151047

Browse files
wyf7107copybara-github
authored andcommitted
the agent evetn graph is not able to be shown due to missing await keyword. this change is to fix missing await for build_graph
PiperOrigin-RevId: 756876056
1 parent 33acb26 commit 4151047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/cli/agent_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def draw_edge(from_name, to_name):
141141
async def get_agent_graph(root_agent, highlights_pairs, image=False):
142142
print('build graph')
143143
graph = graphviz.Digraph(graph_attr={'rankdir': 'LR', 'bgcolor': '#333537'})
144-
build_graph(graph, root_agent, highlights_pairs)
144+
await build_graph(graph, root_agent, highlights_pairs)
145145
if image:
146146
return graph.pipe(format='png')
147147
else:

0 commit comments

Comments
 (0)
0