mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-14 01:41:25 -06:00
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
This commit is contained in:
parent
33acb26565
commit
415104743d
@ -141,7 +141,7 @@ async def build_graph(graph, agent: BaseAgent, highlight_pairs):
|
||||
async def get_agent_graph(root_agent, highlights_pairs, image=False):
|
||||
print('build graph')
|
||||
graph = graphviz.Digraph(graph_attr={'rankdir': 'LR', 'bgcolor': '#333537'})
|
||||
build_graph(graph, root_agent, highlights_pairs)
|
||||
await build_graph(graph, root_agent, highlights_pairs)
|
||||
if image:
|
||||
return graph.pipe(format='png')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user