fix(agent_graph): Prevent duplicate edges in agent graph

This commit is contained in:
David Schmidt
2025-06-23 19:54:36 +02:00
committed by GitHub
parent bd67e8480f
commit a794728a2f
+1 -1
View File
@@ -284,7 +284,7 @@ async def build_graph(
async def get_agent_graph(root_agent, highlights_pairs, image=False):
print('build graph')
graph = graphviz.Digraph(graph_attr={'rankdir': 'LR', 'bgcolor': '#333537'})
graph = graphviz.Digraph(graph_attr={'rankdir': 'LR', 'bgcolor': '#333537'}, strict=True)
await build_graph(graph, root_agent, highlights_pairs)
if image:
return graph.pipe(format='png')