Skip to content

Commit f7c594d

Browse files
committed
feat: add visualization functions for agent graphs
1 parent aff1d60 commit f7c594d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/agents/visualizations.py renamed to src/agents/extensions/visualizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import graphviz
22

3-
from src.agents.agent import Agent
3+
from agents import Agent
44

55

66
def get_main_graph(agent: Agent) -> str:

tests/test_visualizations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import graphviz
44
import pytest
55

6-
from src.agents.agent import Agent
7-
from src.agents.visualizations import draw_graph, get_all_edges, get_all_nodes, get_main_graph
6+
from agents import Agent
7+
from agents.extensions.visualizations import draw_graph, get_all_edges, get_all_nodes, get_main_graph
88

99

1010
@pytest.fixture

0 commit comments

Comments
 (0)