mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-16 04:02:55 -06:00
fix: build_graph is not awaited.
Fixes https://github.com/google/adk-python/issues/927 PiperOrigin-RevId: 764113488
This commit is contained in:
parent
15109c6879
commit
f4c7d788b0
@ -130,7 +130,7 @@ async def build_graph(graph, agent: BaseAgent, highlight_pairs):
|
|||||||
|
|
||||||
draw_node(agent)
|
draw_node(agent)
|
||||||
for sub_agent in agent.sub_agents:
|
for sub_agent in agent.sub_agents:
|
||||||
build_graph(graph, sub_agent, highlight_pairs)
|
await build_graph(graph, sub_agent, highlight_pairs)
|
||||||
draw_edge(agent.name, sub_agent.name)
|
draw_edge(agent.name, sub_agent.name)
|
||||||
if isinstance(agent, LlmAgent):
|
if isinstance(agent, LlmAgent):
|
||||||
for tool in await agent.canonical_tools():
|
for tool in await agent.canonical_tools():
|
||||||
|
Loading…
Reference in New Issue
Block a user