(
root_agent, highlights_pairs, image=False, dark_mode=True
)
| 298 | |
| 299 | |
| 300 | async 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 |
nothing calls this directly
no test coverage detected